diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/bios.c | 7 | ||||
-rw-r--r-- | sys/i386/i386/bios.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c index 5fc0a4296738..4b422f5c6f17 100644 --- a/sys/amd64/amd64/bios.c +++ b/sys/amd64/amd64/bios.c @@ -44,8 +44,7 @@ #include <machine/tss.h> #include <machine/vmparam.h> #include <machine/pc/bios.h> -#include <i386/isa/isa_device.h> -#include <i386/isa/pnp.h> +#include <isa/pnpreg.h> #define BIOS_START 0xe0000 #define BIOS_SIZE 0x20000 @@ -556,12 +555,12 @@ pnpbios_scan(void) if (PNP_RES_TYPE(tag) == 0) { /* Small resource */ switch (PNP_SRES_NUM(tag)) { - case COMP_DEVICE_ID: + case PNP_TAG_COMPAT_DEVICE: compid = (u_int32_t *)(pd->devdata + idx); if (bootverbose) printf("pnpbios: node %d compat ID 0x%08x\n", pd->handle, *compid); /* FALLTHROUGH */ - case END_TAG: + case PNP_TAG_END: idx = left; break; default: diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c index 5fc0a4296738..4b422f5c6f17 100644 --- a/sys/i386/i386/bios.c +++ b/sys/i386/i386/bios.c @@ -44,8 +44,7 @@ #include <machine/tss.h> #include <machine/vmparam.h> #include <machine/pc/bios.h> -#include <i386/isa/isa_device.h> -#include <i386/isa/pnp.h> +#include <isa/pnpreg.h> #define BIOS_START 0xe0000 #define BIOS_SIZE 0x20000 @@ -556,12 +555,12 @@ pnpbios_scan(void) if (PNP_RES_TYPE(tag) == 0) { /* Small resource */ switch (PNP_SRES_NUM(tag)) { - case COMP_DEVICE_ID: + case PNP_TAG_COMPAT_DEVICE: compid = (u_int32_t *)(pd->devdata + idx); if (bootverbose) printf("pnpbios: node %d compat ID 0x%08x\n", pd->handle, *compid); /* FALLTHROUGH */ - case END_TAG: + case PNP_TAG_END: idx = left; break; default: |