]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - arch/h8300/generic/drivers/periph/iic_ifc.h
It is 12 years after C99 standardization - switch to stdint.h and its types.
[sysless.git] / arch / h8300 / generic / drivers / periph / iic_ifc.h
index d17d2ceb0aedf6ba451918004568a775f0e563fd..930ef66dd68afd00b876fe5c9af5890bcd5c221f 100644 (file)
@@ -30,16 +30,16 @@ struct iic_ifc;
 #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;
@@ -53,8 +53,8 @@ typedef int (iic_ctrl_fnc_t)(struct iic_ifc *ifc, int ctrl, void *p);
 #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;