Selaa lähdekoodia

Add MCA devices

tags/v0.9.3
Michael Brown 19 vuotta sitten
vanhempi
commit
ac1c0a753d
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3
    0
      src/include/dev.h

+ 3
- 0
src/include/dev.h Näytä tiedosto

4
 #include "stdint.h"
4
 #include "stdint.h"
5
 #include "nic.h"
5
 #include "nic.h"
6
 #include "pci.h"
6
 #include "pci.h"
7
+#include "mca.h"
7
 
8
 
8
 /* Need to check the packing of this struct if Etherboot is ported */
9
 /* Need to check the packing of this struct if Etherboot is ported */
9
 struct dev_id {
10
 struct dev_id {
12
 	uint8_t		bus_type;
13
 	uint8_t		bus_type;
13
 #define	PCI_BUS_TYPE	1
14
 #define	PCI_BUS_TYPE	1
14
 #define	ISA_BUS_TYPE	2
15
 #define	ISA_BUS_TYPE	2
16
+#define MCA_BUS_TYPE	3
15
 } __attribute__ ((packed));
17
 } __attribute__ ((packed));
16
 
18
 
17
 /* Dont use sizeof, that will include the padding */
19
 /* Dont use sizeof, that will include the padding */
24
 	/* All possible bus types */
26
 	/* All possible bus types */
25
 	union {
27
 	union {
26
 		struct pci_device pci;
28
 		struct pci_device pci;
29
+		struct mca_device mca;
27
 	};
30
 	};
28
 	/* All possible device types */
31
 	/* All possible device types */
29
 	union {
32
 	union {

Loading…
Peruuta
Tallenna