aboutsummaryrefslogtreecommitdiffstats
path: root/src/std
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-14 23:04:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-18 20:48:34 -0400
commit4f790aa922d57fe52cd6dab1d40ff02f6f2d3911 (patch)
treecd831e62f972af54726f6fa3837c22db35f6b2d0 /src/std
parent5a7545ca4acc1213d96af7ce32a707df89940f11 (diff)
downloadseabios-4f790aa922d57fe52cd6dab1d40ff02f6f2d3911.tar.gz
Move pnpbios definition to new file std/pnpbios.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/std')
-rw-r--r--src/std/pnpbios.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/std/pnpbios.h b/src/std/pnpbios.h
new file mode 100644
index 00000000..0871e3ab
--- /dev/null
+++ b/src/std/pnpbios.h
@@ -0,0 +1,24 @@
+#ifndef __PNPHEADER_H
+#define __PNPHEADER_H
+
+#define PNP_SIGNATURE 0x506e5024 // $PnP
+
+struct pnpheader {
+ u32 signature;
+ u8 version;
+ u8 length;
+ u16 control;
+ u8 checksum;
+ u32 eventloc;
+ u16 real_ip;
+ u16 real_cs;
+ u16 prot_ip;
+ u32 prot_base;
+ u32 oemid;
+ u16 real_ds;
+ u32 prot_database;
+} PACKED;
+
+#define FUNCTION_NOT_SUPPORTED 0x82
+
+#endif // pnpheader.h