summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/isapnp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/isapnp.h')
-rw-r--r--sys/boot/common/isapnp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/boot/common/isapnp.h b/sys/boot/common/isapnp.h
index 6c07282..0b3b9ec 100644
--- a/sys/boot/common/isapnp.h
+++ b/sys/boot/common/isapnp.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pnp.h,v 1.6 1998/01/10 07:41:43 kato Exp $
+ * $Id: isapnp.h,v 1.1 1998/09/18 00:24:25 msmith Exp $
*/
#ifndef _I386_ISA_PNP_H_
@@ -210,6 +210,12 @@
/*** 32-bit memory accesses are at 0x76 ***/
+/* Macros to parse Resource IDs */
+#define PNP_RES_TYPE(a) (a >> 7)
+#define PNP_SRES_NUM(a) (a >> 3)
+#define PNP_SRES_LEN(a) (a & 0x07)
+#define PNP_LRES_NUM(a) (a & 0x7f)
+
/* Small Resource Item names */
#define PNP_VERSION 0x1
#define LOG_DEVICE_ID 0x2
OpenPOWER on IntegriCloud