mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[intel] Expose functionality to be shared with intelx driver
The Intel 10 Gigabit NICs have a datapath that is almost register-compatible with the Intel 1 Gigabit NICs. Expose common functionality to avoid duplication of code in the new "intelx" driver. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -242,4 +242,15 @@ struct intel_nic {
|
||||
struct io_buffer *rx_iobuf[INTEL_NUM_RX_DESC];
|
||||
};
|
||||
|
||||
extern int intel_create_ring ( struct intel_nic *intel,
|
||||
struct intel_ring *ring );
|
||||
extern void intel_destroy_ring ( struct intel_nic *intel,
|
||||
struct intel_ring *ring );
|
||||
extern void intel_refill_rx ( struct intel_nic *intel );
|
||||
extern void intel_empty_rx ( struct intel_nic *intel );
|
||||
extern int intel_transmit ( struct net_device *netdev,
|
||||
struct io_buffer *iobuf );
|
||||
extern void intel_poll_tx ( struct net_device *netdev );
|
||||
extern void intel_poll_rx ( struct net_device *netdev );
|
||||
|
||||
#endif /* _INTEL_H */
|
||||
|
||||
Reference in New Issue
Block a user