aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-21 13:32:34 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-03-21 13:32:34 -0400
commitfaa8b6f1bb40d74943baa19df2e8694e9cb9cb12 (patch)
tree1a90f01064e7af555811e9b6347fe41695e5e61c
parent7913f9df87c16b8a4f0b78530ba4f1249ada772d (diff)
downloadseabios-faa8b6f1bb40d74943baa19df2e8694e9cb9cb12.tar.gz
Guard header file pci.h
Compilation on Ubuntu fails without this. Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
-rw-r--r--src/pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pci.h b/src/pci.h
index 6afc9a99..48d47699 100644
--- a/src/pci.h
+++ b/src/pci.h
@@ -1,3 +1,6 @@
+#ifndef __PCI_H
+#define __PCI_H
+
#include "types.h" // u32
typedef struct PCIDevice {
@@ -11,3 +14,5 @@ void pci_config_writeb(PCIDevice *d, u32 addr, u8 val);
u32 pci_config_readl(PCIDevice *d, u32 addr);
u16 pci_config_readw(PCIDevice *d, u32 addr);
u8 pci_config_readb(PCIDevice *d, u32 addr);
+
+#endif