Browse Source

Add EISA as a bus type.

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
a4f1a058a4
1 changed files with 11 additions and 4 deletions
  1. 11
    4
      src/include/dev.h

+ 11
- 4
src/include/dev.h View File

2
 #define DEV_H
2
 #define DEV_H
3
 
3
 
4
 #include "stdint.h"
4
 #include "stdint.h"
5
-#include "nic.h"
5
+
6
+/* Bus types */
6
 #include "pci.h"
7
 #include "pci.h"
8
+#include "eisa.h"
7
 #include "mca.h"
9
 #include "mca.h"
8
 
10
 
11
+/* Device types */
12
+#include "nic.h"
13
+
9
 /* Need to check the packing of this struct if Etherboot is ported */
14
 /* Need to check the packing of this struct if Etherboot is ported */
10
 struct dev_id {
15
 struct dev_id {
11
 	uint16_t	vendor_id;
16
 	uint16_t	vendor_id;
13
 	uint8_t		bus_type;
18
 	uint8_t		bus_type;
14
 #define	PCI_BUS_TYPE	1
19
 #define	PCI_BUS_TYPE	1
15
 #define	ISA_BUS_TYPE	2
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
 } __attribute__ ((packed));
23
 } __attribute__ ((packed));
18
 
24
 
19
 /* Dont use sizeof, that will include the padding */
25
 /* Dont use sizeof, that will include the padding */
25
 	struct dev_id	devid;	/* device ID string (sent to DHCP server) */
31
 	struct dev_id	devid;	/* device ID string (sent to DHCP server) */
26
 	/* All possible bus types */
32
 	/* All possible bus types */
27
 	union {
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
 	/* All possible device types */
38
 	/* All possible device types */
32
 	union {
39
 	union {

Loading…
Cancel
Save