david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

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
1 changed files with 7 additions and 0 deletions

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 */
};