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