浏览代码

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

can fill them in.
tags/v0.9.3
Michael Brown 20 年前
父节点
当前提交
17d69d8930
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/include/nic.h

+ 7
- 0
src/include/nic.h 查看文件

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
 

正在加载...
取消
保存