Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
This commit is contained in:
@@ -31,78 +31,75 @@
|
||||
#define HIPPI_UI_CMD 0x03
|
||||
struct hipnet_statistics {
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int rx_packets;
|
||||
int tx_packets;
|
||||
int rx_errors;
|
||||
int tx_errors;
|
||||
int rx_packets;
|
||||
int tx_packets;
|
||||
int rx_errors;
|
||||
int tx_errors;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int rx_dropped;
|
||||
int tx_dropped;
|
||||
int rx_length_errors;
|
||||
int rx_over_errors;
|
||||
int rx_dropped;
|
||||
int tx_dropped;
|
||||
int rx_length_errors;
|
||||
int rx_over_errors;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int rx_crc_errors;
|
||||
int rx_frame_errors;
|
||||
int rx_fifo_errors;
|
||||
int rx_missed_errors;
|
||||
int rx_crc_errors;
|
||||
int rx_frame_errors;
|
||||
int rx_fifo_errors;
|
||||
int rx_missed_errors;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int tx_aborted_errors;
|
||||
int tx_carrier_errors;
|
||||
int tx_fifo_errors;
|
||||
int tx_heartbeat_errors;
|
||||
int tx_aborted_errors;
|
||||
int tx_carrier_errors;
|
||||
int tx_fifo_errors;
|
||||
int tx_heartbeat_errors;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int tx_window_errors;
|
||||
int tx_window_errors;
|
||||
};
|
||||
struct hippi_fp_hdr {
|
||||
__be32 fixed;
|
||||
__be32 fixed;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__be32 d2_size;
|
||||
__be32 d2_size;
|
||||
} __attribute__((packed));
|
||||
struct hippi_le_hdr {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 fc:3;
|
||||
__u8 double_wide:1;
|
||||
__u8 message_type:4;
|
||||
__u8 fc : 3;
|
||||
__u8 double_wide : 1;
|
||||
__u8 message_type : 4;
|
||||
#elif defined(__LITTLE_ENDIAN_BITFIELD)
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 message_type:4;
|
||||
__u8 double_wide:1;
|
||||
__u8 fc:3;
|
||||
__u8 message_type : 4;
|
||||
__u8 double_wide : 1;
|
||||
__u8 fc : 3;
|
||||
#endif
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 dest_switch_addr[3];
|
||||
__u8 dest_switch_addr[3];
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
__u8 dest_addr_type:4,
|
||||
src_addr_type:4;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 dest_addr_type : 4, src_addr_type : 4;
|
||||
#elif defined(__LITTLE_ENDIAN_BITFIELD)
|
||||
__u8 src_addr_type:4,
|
||||
dest_addr_type:4;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 src_addr_type : 4, dest_addr_type : 4;
|
||||
#endif
|
||||
__u8 src_switch_addr[3];
|
||||
__u16 reserved;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 src_switch_addr[3];
|
||||
__u16 reserved;
|
||||
__u8 daddr[HIPPI_ALEN];
|
||||
__u16 locally_administered;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 saddr[HIPPI_ALEN];
|
||||
__u8 daddr[HIPPI_ALEN];
|
||||
__u16 locally_administered;
|
||||
__u8 saddr[HIPPI_ALEN];
|
||||
} __attribute__((packed));
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
#define HIPPI_OUI_LEN 3
|
||||
struct hippi_snap_hdr {
|
||||
__u8 dsap;
|
||||
__u8 ssap;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 dsap;
|
||||
__u8 ssap;
|
||||
__u8 ctrl;
|
||||
__u8 oui[HIPPI_OUI_LEN];
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__be16 ethertype;
|
||||
__u8 ctrl;
|
||||
__u8 oui[HIPPI_OUI_LEN];
|
||||
__be16 ethertype;
|
||||
} __attribute__((packed));
|
||||
struct hippi_hdr {
|
||||
struct hippi_fp_hdr fp;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
struct hippi_le_hdr le;
|
||||
struct hippi_snap_hdr snap;
|
||||
struct hippi_hdr {
|
||||
struct hippi_fp_hdr fp;
|
||||
struct hippi_le_hdr le;
|
||||
struct hippi_snap_hdr snap;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
} __attribute__((packed));
|
||||
#endif
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
|
||||
Reference in New Issue
Block a user