From 9183f2412ec61216ac1e0ee0e202961db203be0b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 14 Apr 2005 14:26:28 +0000 Subject: [PATCH] bus header files must include dev.h to get struct dev. --- src/drivers/bus/eisa.c | 1 - src/drivers/bus/mca.c | 1 - src/drivers/bus/pci.c | 1 - src/include/eisa.h | 1 + src/include/mca.h | 4 +++- src/include/pci.h | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c index 1cd53c9b..00656511 100644 --- a/src/drivers/bus/eisa.c +++ b/src/drivers/bus/eisa.c @@ -1,5 +1,4 @@ #include "etherboot.h" -#include "dev.h" #include "io.h" #include "timer.h" #include "eisa.h" diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c index f87da8d2..60690ae1 100644 --- a/src/drivers/bus/mca.c +++ b/src/drivers/bus/mca.c @@ -6,7 +6,6 @@ */ #include "etherboot.h" -#include "dev.h" #include "io.h" #include "mca.h" diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c index e9831913..6e08f089 100644 --- a/src/drivers/bus/pci.c +++ b/src/drivers/bus/pci.c @@ -1,5 +1,4 @@ #include "etherboot.h" -#include "dev.h" #include "pci.h" /* diff --git a/src/include/eisa.h b/src/include/eisa.h index 081ce47e..df03fe84 100644 --- a/src/include/eisa.h +++ b/src/include/eisa.h @@ -2,6 +2,7 @@ #define EISA_H #include "isa_ids.h" +#include "dev.h" /* * EISA constants diff --git a/src/include/mca.h b/src/include/mca.h index 9115b98d..e5daf715 100644 --- a/src/include/mca.h +++ b/src/include/mca.h @@ -8,6 +8,9 @@ #ifndef MCA_H #define MCA_H +#include "isa_ids.h" +#include "dev.h" + /* * MCA constants * @@ -19,7 +22,6 @@ #define MCA_POS_REG(n) (0x100+(n)) /* Is there a standard that would define this? */ -#include "isa_ids.h" #define GENERIC_MCA_VENDOR ISA_VENDOR ( 'M', 'C', 'A' ) /* diff --git a/src/include/pci.h b/src/include/pci.h index e7ac084b..ee1631de 100644 --- a/src/include/pci.h +++ b/src/include/pci.h @@ -23,6 +23,7 @@ #include "stdint.h" #include "pci_ids.h" +#include "dev.h" /* * PCI constants