Browse Source

Add mbps and duplex to struct nic, since some drivers (e.g. rtl8139)

can fill them in.
tags/v0.9.3
Michael Brown 19 years ago
parent
commit
17d69d8930
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/include/nic.h

+ 7
- 0
src/include/nic.h View File

14
 	FORCE
14
 	FORCE
15
 } irq_action_t;
15
 } irq_action_t;
16
 
16
 
17
+typedef enum duplex {
18
+	HALF_DUPLEX = 1,
19
+	FULL_DUPLEX
20
+} duplex_t;
21
+
17
 /*
22
 /*
18
  *	Structure returned from eth_probe and passed to other driver
23
  *	Structure returned from eth_probe and passed to other driver
19
  *	functions.
24
  *	functions.
26
 	unsigned int	packetlen;
31
 	unsigned int	packetlen;
27
 	unsigned int	ioaddr;
32
 	unsigned int	ioaddr;
28
 	unsigned char	irqno;
33
 	unsigned char	irqno;
34
+	unsigned int	mbps;
35
+	duplex_t	duplex;
29
 	void		*priv_data;	/* driver can hang private data here */
36
 	void		*priv_data;	/* driver can hang private data here */
30
 };
37
 };
31
 
38
 

Loading…
Cancel
Save