12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ISAPNP (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> ISAPNP (9)<strong>NAME</strong>ISAPNP, isapnp_devmatch, isapnp_config, isapnp_unconfig —Plug ’n’ Play ISA busSYNOPSIS#include #include #include #include #include #include intisapnp_devmatch(const struct isapnp_attach_args ∗ipa ,const struct isapnp_devinfo ∗dinfo , int ∗variant);intisapnp_config(bus_space_tag_t iot , bus_space_tag_t memt ,struct isapnp_attach_args ∗ipa);voidisapnp_unconfig(bus_space_tag_t iot , bus_space_tag_t memt ,struct isapnp_attach_args ∗ipa);DESCRIPTIONThe machine-independent ISAPNP subsystem provides support for ISAPNP devices. ISAPNP devices weredeveloped to support "plug and play" connection on the ISA bus. In all other aspects, the ISAPNP bus issame as the ISA bus (see isa(9)).Devices on the ISAPNP bus are uniquely identified by a 7-character string. Resources, such as I/O addressspace and interrupts, should be allocated to the devices by the machine firmware. On some machine thefirmware seems doesn’t work correctly and <strong>NetBSD</strong> will attempt to allocate resources as necessary.DATA TYPESDrivers attached to the ISAPNP bus will make use of the following data types:struct isapnp_matchinfo<strong>NetBSD</strong> kernel contains a database of known ISAPNP devices. Each entry in the database has astruct isapnp_matchinfo. Itcontains the following members:const char ∗name; /∗ device id string ∗/int variant; /∗ variant flag ∗/struct isapnp_devinfoDefines the devices supported by a driver. It contains pointer to an array of supported structisapnp_matchinfo structures and a pointer to another array of compatibility devices. It containsthe following members:struct isapnp_matchinfo ∗devlogic;int nlogic;struct isapnp_matchinfo ∗devcompat;int ncompat;struct isapnp_regionDescribes ISAPNP bus-space regions. It contains the following members:<strong>NetBSD</strong> 3.0 June 19, 2001 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!