Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
qib_twsi.c File Reference
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/vmalloc.h>
#include "qib.h"

Go to the source code of this file.

Macros

#define READ_CMD   1
 
#define WRITE_CMD   0
 
#define SCL_WAIT_USEC   1000
 
#define TWSI_BUF_WAIT_USEC   60
 
#define QIB_TWSI_START   0x100
 
#define QIB_TWSI_STOP   0x200
 
#define QIB_TEMP_DEV   0x98
 

Functions

int qib_twsi_reset (struct qib_devdata *dd)
 
int qib_twsi_blk_rd (struct qib_devdata *dd, int dev, int addr, void *buffer, int len)
 
int qib_twsi_blk_wr (struct qib_devdata *dd, int dev, int addr, const void *buffer, int len)
 

Macro Definition Documentation

#define QIB_TEMP_DEV   0x98

Definition at line 340 of file qib_twsi.c.

#define QIB_TWSI_START   0x100

Definition at line 319 of file qib_twsi.c.

#define QIB_TWSI_STOP   0x200

Definition at line 320 of file qib_twsi.c.

#define READ_CMD   1

Definition at line 55 of file qib_twsi.c.

#define SCL_WAIT_USEC   1000

Definition at line 82 of file qib_twsi.c.

#define TWSI_BUF_WAIT_USEC   60

Definition at line 87 of file qib_twsi.c.

#define WRITE_CMD   0

Definition at line 56 of file qib_twsi.c.

Function Documentation

int qib_twsi_blk_rd ( struct qib_devdata dd,
int  dev,
int  addr,
void buffer,
int  len 
)

Definition at line 354 of file qib_twsi.c.

int qib_twsi_blk_wr ( struct qib_devdata dd,
int  dev,
int  addr,
const void buffer,
int  len 
)

Definition at line 432 of file qib_twsi.c.

int qib_twsi_reset ( struct qib_devdata dd)

qib_twsi_reset - reset I2C communication : the qlogic_ib device

Definition at line 262 of file qib_twsi.c.