1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | struct oeth_private { struct sk_buff *rx_skbuff[OETH_RXBD_NUM]; struct sk_buff *tx_skbuff[OETH_TXBD_NUM]; ushort tx_next; /* Next buffer to be sent */ ushort tx_last; /* Next buffer to be checked if packet sent */ ushort tx_full; /* Buffer ring full indicator */ ushort rx_cur; /* Next buffer to be checked if packet received */ volatile oeth_regs *regs; /* Address of controller registers. */ volatile oeth_bd *rx_bd_base;/* Address of Rx BDs. */ volatile oeth_bd *tx_bd_base;/* Address of Tx BDs. */ struct net_device_stats stats; struct tasklet_struct oeth_rx_tasklet; struct tasklet_struct oeth_tx_tasklet; struct mii_if_info mii; spinlock_t lock; }; |
1 2 3 4 | struct _oeth_bd { uint len_status; uint addr; /* Buffer address */ } oeth_bd; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |