From 880061ca43c5eb7110f8b122628b447b5df729e9 Mon Sep 17 00:00:00 2001 From: msmith Date: Wed, 21 Oct 1998 20:07:05 +0000 Subject: Make ISA PnP work. This successfully enumerates as many ISA devices as I can fit into my test machine. - Move to using STAILQs rather than ad-hoc singly-linked lists. - Use a mostly procedural interface to the PnP information. This improves data-hiding. Implement a new linker-set technique (currently on i386 only but should work on Alpha as well). This is a good candidate for replacing the current gensetdefs cruft completely. --- sys/boot/common/isapnp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/boot/common/isapnp.h') 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 -- cgit v1.1