Przeglądaj źródła

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

can fill them in.
tags/v0.9.3
Michael Brown 19 lat temu
rodzic
commit
17d69d8930
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7
    0
      src/include/nic.h

+ 7
- 0
src/include/nic.h Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz