#define IIC_MSG_CB_PROC 0x400
typedef struct iic_msg_head {
- __u16 flags; /* message flags */
- __u8 sl_cmd; /* command for slave queue lookup */
- __u8 sl_msk; /* sl_cmd match mask */
- __u16 addr; /* message destination address */
- __u16 tx_rq; /* requested TX transfer length */
- __u16 rx_rq; /* requested RX transfer length */
- __u16 tx_len; /* finished TX transfer length */
- __u16 rx_len; /* finished RX transfer length */
- __u8 *tx_buf; /* pointer to TX data */
- __u8 *rx_buf; /* pointer to RX data */
+ uint16_t flags; /* message flags */
+ uint8_t sl_cmd; /* command for slave queue lookup */
+ uint8_t sl_msk; /* sl_cmd match mask */
+ uint16_t addr; /* message destination address */
+ uint16_t tx_rq; /* requested TX transfer length */
+ uint16_t rx_rq; /* requested RX transfer length */
+ uint16_t tx_len; /* finished TX transfer length */
+ uint16_t rx_len; /* finished RX transfer length */
+ uint8_t *tx_buf; /* pointer to TX data */
+ uint8_t *rx_buf; /* pointer to RX data */
struct iic_msg_head *prev;
struct iic_msg_head *next;
struct iic_msg_head **on_queue;
#define IIC_IFC_ON 1
typedef struct iic_ifc {
- __u8 flags;
- __u16 self_addr;
+ uint8_t flags;
+ uint16_t self_addr;
iic_msg_head_t *master_queue;
iic_msg_head_t *slave_queue;
iic_msg_head_t *proc_queue;