summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-04-15 17:37:39 +0200
committerMichael Brown2005-04-15 17:37:39 +0200
commite6e43a2f2f6885409f2c317f8c86a27939558bd9 (patch)
tree1c877b296587657d73b4700b22a5028ad79ac995 /src/include
parentCanonicalised tag names (diff)
downloadipxe-e6e43a2f2f6885409f2c317f8c86a27939558bd9.tar.gz
ipxe-e6e43a2f2f6885409f2c317f8c86a27939558bd9.tar.xz
ipxe-e6e43a2f2f6885409f2c317f8c86a27939558bd9.zip
We now correctly use logical devices.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/isapnp.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/isapnp.h b/src/include/isapnp.h
index 3ed0aa1bc..7bcc59640 100644
--- a/src/include/isapnp.h
+++ b/src/include/isapnp.h
@@ -81,7 +81,10 @@
/* The LFSR used for the initiation key and for checksumming */
#define ISAPNP_LFSR_SEED 0x6a
-/* Short Tags */
+/* Small tags */
+#define ISAPNP_IS_SMALL_TAG(tag) ( ! ( (tag) & 0x80 ) )
+#define ISAPNP_SMALL_TAG_NAME(tag) ( ( (tag) >> 3 ) & 0xf )
+#define ISAPNP_SMALL_TAG_LEN(tag) ( ( (tag) & 0x7 ) )
#define ISAPNP_TAG_PNPVERNO 0x01
#define ISAPNP_TAG_LOGDEVID 0x02
#define ISAPNP_TAG_COMPATDEVID 0x03
@@ -97,7 +100,9 @@
#define ISAPNP_TAG_RSVDSHORTD 0x0D
#define ISAPNP_TAG_VENDORSHORT 0x0E
#define ISAPNP_TAG_END 0x0F
-/* Long Tags */
+/* Large tags */
+#define ISAPNP_IS_LARGE_TAG(tag) ( ( (tag) & 0x80 ) )
+#define ISAPNP_LARGE_TAG_NAME(tag) ( (tag) & 0x7f )
#define ISAPNP_TAG_MEMRANGE 0x81
#define ISAPNP_TAG_ANSISTR 0x82
#define ISAPNP_TAG_UNICODESTR 0x83