浏览代码

Add EISA as a bus type.

tags/v0.9.3
Michael Brown 19 年前
父节点
当前提交
a4f1a058a4
共有 1 个文件被更改,包括 11 次插入4 次删除
  1. 11
    4
      src/include/dev.h

+ 11
- 4
src/include/dev.h 查看文件

@@ -2,10 +2,15 @@
2 2
 #define DEV_H
3 3
 
4 4
 #include "stdint.h"
5
-#include "nic.h"
5
+
6
+/* Bus types */
6 7
 #include "pci.h"
8
+#include "eisa.h"
7 9
 #include "mca.h"
8 10
 
11
+/* Device types */
12
+#include "nic.h"
13
+
9 14
 /* Need to check the packing of this struct if Etherboot is ported */
10 15
 struct dev_id {
11 16
 	uint16_t	vendor_id;
@@ -13,7 +18,8 @@ struct dev_id {
13 18
 	uint8_t		bus_type;
14 19
 #define	PCI_BUS_TYPE	1
15 20
 #define	ISA_BUS_TYPE	2
16
-#define MCA_BUS_TYPE	3
21
+#define EISA_BUS_TYPE	3
22
+#define MCA_BUS_TYPE	4
17 23
 } __attribute__ ((packed));
18 24
 
19 25
 /* Dont use sizeof, that will include the padding */
@@ -25,8 +31,9 @@ struct dev {
25 31
 	struct dev_id	devid;	/* device ID string (sent to DHCP server) */
26 32
 	/* All possible bus types */
27 33
 	union {
28
-		struct pci_device pci;
29
-		struct mca_device mca;
34
+		struct pci_device	pci;
35
+		struct eisa_device	eisa;
36
+		struct mca_device	mca;
30 37
 	};
31 38
 	/* All possible device types */
32 39
 	union {

正在加载...
取消
保存