During autoconfiguration, an ISAPNP driver will receive a pointer to
struct isapnp_attach_args describing the device attached to the ISAPNP bus. Drivers match the device using
ispnp_devmatch().
During the driver attach step, driver should initially allocate and map resources using
isapnp_config(). The I/O (memory) bus-space resources can be accessed using the bus-space tag
ipa_iot (
ipa_memt) and the bus-space handle
ipa_io[0].h (
ipa_mem[0].h) members of
ipa.
Interrupts should be established using
isa_intr_establish() (see
isa(9)) with the IRQ specified by the
ipa_irq[0].num member of
ipa. Similarly, the standard
isa(9) DMA interface should be used with the
ipa_drq[0].num member of
ipa.