From 17d69d89308f99f67472842178395fea3861ea21 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 13 Apr 2005 00:16:42 +0000 Subject: [PATCH] Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139) can fill them in. --- src/include/nic.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/nic.h b/src/include/nic.h index ae7dd606..439e5a90 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 */ };