mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-27 05:31:15 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
20 lines
842 B
C
20 lines
842 B
C
typedef unsigned char uint8_t;
|
|
typedef unsigned short uint16_t;
|
|
typedef unsigned int uint32_t;
|
|
typedef unsigned long long uint64_t;
|
|
|
|
struct rte_kni_fifo {
|
|
volatile unsigned write; /**< Next position to be written*/
|
|
volatile unsigned read; /**< Next position to be read */
|
|
unsigned len; /**< Circular buffer length */
|
|
unsigned elem_size; /**< Pointer size - for 32/64 bit OS */
|
|
void *volatile buffer[]; /**< The buffer contains mbuf pointers */
|
|
};
|
|
|
|
__extension__
|
|
struct rte_eth_link {
|
|
uint32_t link_speed; /**< ETH_SPEED_NUM_ */
|
|
uint16_t link_duplex : 1; /**< ETH_LINK_[HALF/FULL]_DUPLEX */
|
|
uint16_t link_autoneg : 1; /**< ETH_LINK_SPEED_[AUTONEG/FIXED] */
|
|
uint16_t link_status : 1; /**< ETH_LINK_[DOWN/UP] */
|
|
} __attribute__((aligned(8))); /**< aligned for atomic64 read/write */ |