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:
parent
28590d718b
commit
17d69d8930
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user