소스 검색

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
 

Loading…
취소
저장