mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 20:09:53 +03:00
Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139)
can fill them in.
This commit is contained in:
@@ -14,6 +14,11 @@ typedef enum {
|
|||||||
FORCE
|
FORCE
|
||||||
} irq_action_t;
|
} irq_action_t;
|
||||||
|
|
||||||
|
typedef enum duplex {
|
||||||
|
HALF_DUPLEX = 1,
|
||||||
|
FULL_DUPLEX
|
||||||
|
} duplex_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure returned from eth_probe and passed to other driver
|
* Structure returned from eth_probe and passed to other driver
|
||||||
* functions.
|
* functions.
|
||||||
@@ -26,6 +31,8 @@ struct nic {
|
|||||||
unsigned int packetlen;
|
unsigned int packetlen;
|
||||||
unsigned int ioaddr;
|
unsigned int ioaddr;
|
||||||
unsigned char irqno;
|
unsigned char irqno;
|
||||||
|
unsigned int mbps;
|
||||||
|
duplex_t duplex;
|
||||||
void *priv_data; /* driver can hang private data here */
|
void *priv_data; /* driver can hang private data here */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user