summaryrefslogtreecommitdiff
path: root/os/boot/pc/etherif.h
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-06-11 14:21:44 +0000
committerCharles.Forsyth <devnull@localhost>2008-06-11 14:21:44 +0000
commit8a8c2d742b51525f66c2210e3c8a251de10022ff (patch)
tree8282ce595e5fbe2e487dc20f54891d9e9e7cbf37 /os/boot/pc/etherif.h
parent31a18a6996a6b5927e39cc553696c167e6c88e3d (diff)
20080611-1520
Diffstat (limited to 'os/boot/pc/etherif.h')
-rw-r--r--os/boot/pc/etherif.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/boot/pc/etherif.h b/os/boot/pc/etherif.h
index 522fd9b0..f4a6482c 100644
--- a/os/boot/pc/etherif.h
+++ b/os/boot/pc/etherif.h
@@ -17,7 +17,7 @@ typedef struct Ether Ether;
struct Ether {
ISAConf; /* hardware info */
int ctlrno;
- int state;
+ int state; /* 0: unfound, 1: found, 2: attaching */
int tbdf;
void (*attach)(Ether*); /* filled in by reset routine */
@@ -36,7 +36,8 @@ struct Ether {
ushort th; /* first transmit buffer belonging to host */
ushort ti; /* first transmit buffer belonging to card */
- int tbusy; /* transmitter is busy */
+ int tbusy; /* transmitter is busy */
+ int mbps; /* zero means link down */
};
extern void etherrloop(Ether*, Etherpkt*, long);