diff options
author | Tao Bao <tbao@google.com> | 2015-01-28 10:07:51 -0800 |
---|---|---|
committer | Tao Bao <tbao@google.com> | 2015-02-06 14:48:41 -0800 |
commit | d7db594b8d1dab36b711bd887a9dd21675c87243 (patch) | |
tree | 214b4e6e4510386ffc05c9a43dd3c153c6cf89a0 /libc/kernel/uapi/linux/can.h | |
parent | 11829be3e1a9e9e2271ba64a78c327bde6e044eb (diff) | |
download | bionic-d7db594b8d1dab36b711bd887a9dd21675c87243.zip bionic-d7db594b8d1dab36b711bd887a9dd21675c87243.tar.gz bionic-d7db594b8d1dab36b711bd887a9dd21675c87243.tar.bz2 |
Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang.
Bug: 18937958
Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
Diffstat (limited to 'libc/kernel/uapi/linux/can.h')
-rw-r--r-- | libc/kernel/uapi/linux/can.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/libc/kernel/uapi/linux/can.h b/libc/kernel/uapi/linux/can.h index df7715b..4c4f2c6 100644 --- a/libc/kernel/uapi/linux/can.h +++ b/libc/kernel/uapi/linux/can.h @@ -39,22 +39,22 @@ typedef __u32 can_err_mask_t; #define CANFD_MAX_DLC 15 #define CANFD_MAX_DLEN 64 struct can_frame { - canid_t can_id; + canid_t can_id; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 can_dlc; - __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); + __u8 can_dlc; + __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); }; #define CANFD_BRS 0x01 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CANFD_ESI 0x02 struct canfd_frame { - canid_t can_id; - __u8 len; + canid_t can_id; + __u8 len; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 flags; - __u8 __res0; - __u8 __res1; - __u8 data[CANFD_MAX_DLEN] __attribute__((aligned(8))); + __u8 flags; + __u8 __res0; + __u8 __res1; + __u8 data[CANFD_MAX_DLEN] __attribute__((aligned(8))); /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; #define CAN_MTU (sizeof(struct can_frame)) @@ -71,18 +71,20 @@ struct canfd_frame { #define SOL_CAN_BASE 100 struct sockaddr_can { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __kernel_sa_family_t can_family; - int can_ifindex; - union { - struct { canid_t rx_id, tx_id; } tp; + __kernel_sa_family_t can_family; + int can_ifindex; + union { + struct { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - } can_addr; + canid_t rx_id, tx_id; + } tp; + } can_addr; }; -struct can_filter { - canid_t can_id; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - canid_t can_mask; +struct can_filter { + canid_t can_id; + canid_t can_mask; }; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define CAN_INV_FILTER 0x20000000U #endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |