浏览代码

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

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

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

@@ -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
 

正在加载...
取消
保存