aboutsummaryrefslogtreecommitdiff
path: root/src/include/nic.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2005-04-13 00:16:42 +0000
committerMichael Brown <mcb30@etherboot.org>2005-04-13 00:16:42 +0000
commit17d69d89308f99f67472842178395fea3861ea21 (patch)
treed24db413ca7d1255019b6d422f90cd4527048b47 /src/include/nic.h
parent28590d718bf472570c87014d654a177888e310c9 (diff)
downloadipxe-17d69d89308f99f67472842178395fea3861ea21.zip
ipxe-17d69d89308f99f67472842178395fea3861ea21.tar.gz
ipxe-17d69d89308f99f67472842178395fea3861ea21.tar.bz2
Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139)
can fill them in.
Diffstat (limited to 'src/include/nic.h')
-rw-r--r--src/include/nic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/nic.h b/src/include/nic.h
index ae7dd60..439e5a9 100644
--- a/src/include/nic.h
+++ b/src/include/nic.h
@@ -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 */
};