diff options
author | imp <imp@FreeBSD.org> | 2002-10-07 05:06:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-10-07 05:06:38 +0000 |
commit | b88d741bf8d4ed8ef60c0e933dc8cdc371b8370c (patch) | |
tree | 0417b6b7c3c0f92dbc2cd75b6e73c8c65368a717 /sys/kern/bus_if.m | |
parent | 54633f4bcc0f1945181488e7bfe425df85fbfe89 (diff) | |
download | FreeBSD-src-b88d741bf8d4ed8ef60c0e933dc8cdc371b8370c.zip FreeBSD-src-b88d741bf8d4ed8ef60c0e933dc8cdc371b8370c.tar.gz |
Add two interfaces to allow for busses to report the pnpinfo for
devices as well as their location on the bus.
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r-- | sys/kern/bus_if.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 7b8a135..0529220 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -258,3 +258,25 @@ METHOD int child_present { device_t _dev; device_t _child; } DEFAULT bus_generic_child_present; + +# +# Returns the pnp info for this device. Return it as a string. If the +# string is insufficient for the storage, then return EOVERFLOW. +# +METHOD int child_pnpinfo_str { + device_t _dev; + device_t _child; + char *_buf; + size_t _buflen; +}; + +# +# Returns the location for this device. Return it as a string. If the +# string is insufficient for the storage, then return EOVERFLOW. +# +METHOD int child_location_str { + device_t _dev; + device_t _child; + char *_buf; + size_t _buflen; +}; |