aboutsummaryrefslogtreecommitdiff
path: root/src/std
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-14 22:22:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-18 20:48:34 -0400
commitc5e06fb2452476e45dbae2d9f72bec7d2e874266 (patch)
tree682e705e74fce3876efddb87539b1b771cebe9d7 /src/std
parent836ec5cd0066188e191c892b87cb473221a0b570 (diff)
downloadseabios-hppa-c5e06fb2452476e45dbae2d9f72bec7d2e874266.zip
seabios-hppa-c5e06fb2452476e45dbae2d9f72bec7d2e874266.tar.gz
seabios-hppa-c5e06fb2452476e45dbae2d9f72bec7d2e874266.tar.bz2
Move pirtable definitions from hw/pci.h to std/pirtable.h and util.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/std')
-rw-r--r--src/std/pirtable.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/std/pirtable.h b/src/std/pirtable.h
new file mode 100644
index 0000000..9de3a43
--- /dev/null
+++ b/src/std/pirtable.h
@@ -0,0 +1,35 @@
+#ifndef __PIRTABLE_H
+#define __PIRTABLE_H
+
+#include "types.h" // u32
+
+struct link_info {
+ u8 link;
+ u16 bitmap;
+} PACKED;
+
+struct pir_slot {
+ u8 bus;
+ u8 dev;
+ struct link_info links[4];
+ u8 slot_nr;
+ u8 reserved;
+} PACKED;
+
+struct pir_header {
+ u32 signature;
+ u16 version;
+ u16 size;
+ u8 router_bus;
+ u8 router_devfunc;
+ u16 exclusive_irqs;
+ u32 compatible_devid;
+ u32 miniport_data;
+ u8 reserved[11];
+ u8 checksum;
+ struct pir_slot slots[0];
+} PACKED;
+
+#define PIR_SIGNATURE 0x52495024 // $PIR
+
+#endif // pirtable.h