2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 07:11:32 +00:00

Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139)

can fill them in.
This commit is contained in:
Michael Brown 2005-04-13 00:16:42 +00:00
parent 28590d718b
commit 17d69d8930

View File

@ -14,6 +14,11 @@ typedef enum {
FORCE
} irq_action_t;
typedef enum duplex {
HALF_DUPLEX = 1,
FULL_DUPLEX
} duplex_t;
/*
* Structure returned from eth_probe and passed to other driver
* functions.
@ -26,6 +31,8 @@ struct nic {
unsigned int packetlen;
unsigned int ioaddr;
unsigned char irqno;
unsigned int mbps;
duplex_t duplex;
void *priv_data; /* driver can hang private data here */
};