diff options
author | imp <imp@FreeBSD.org> | 2008-11-02 18:48:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-11-02 18:48:54 +0000 |
commit | e4a289ae9df429422b7271131d81a416f660f896 (patch) | |
tree | 75daffb6fb9ee47bd587003a933fb3a9e9254f46 /sys/isa/isa_common.c | |
parent | e0025a35ca7e80d6daca4e6d249bef6d86f3db89 (diff) | |
download | FreeBSD-src-e4a289ae9df429422b7271131d81a416f660f896.zip FreeBSD-src-e4a289ae9df429422b7271131d81a416f660f896.tar.gz |
MFp4:
Make the ISA bus keep track of more PNP details. Plus a minor style
fix while I'm here. More could be done here, but except for some SBCs
that don't have ACPI, there's limited value to anybody in doing so.
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r-- | sys/isa/isa_common.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c index 2a108f9..eb0618e 100644 --- a/sys/isa/isa_common.c +++ b/sys/isa/isa_common.c @@ -467,9 +467,6 @@ isa_assign_resources(device_t child) return (0); } -/* - * Called after other devices have initialised to probe for isa devices. - */ void isa_probe_children(device_t dev) { @@ -762,6 +759,18 @@ isa_read_ivar(device_t bus, device_t dev, int index, uintptr_t * result) *result = idev->id_config_attr; break; + case ISA_IVAR_PNP_CSN: + *result = idev->id_pnp_csn; + break; + + case ISA_IVAR_PNP_LDN: + *result = idev->id_pnp_ldn; + break; + + case ISA_IVAR_PNPBIOS_HANDLE: + *result = idev->id_pnpbios_handle; + break; + default: return (ENOENT); } @@ -1026,6 +1035,13 @@ static int isa_child_location_str(device_t bus, device_t child, char *buf, size_t buflen) { +#if 0 + /* id_pnphandle isn't there yet */ + struct isa_device *idev = DEVTOISA(child); + + if (idev->id_vendorid) + snprintf(buf, buflen, "pnphandle=%d", idev->id_pnphandle); +#endif /* Nothing here yet */ *buf = '\0'; return (0); |