diff options
| author | Michael Brown | 2005-04-15 16:27:49 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-15 16:27:49 +0200 |
| commit | 888277d2d17d18e851ae2a6dd6a684358a1a6507 (patch) | |
| tree | 3679d91de168ae6b98921afd38fde4b6e372f0f4 /src/include | |
| parent | Don't verify checksum except after serial isolation (diff) | |
| download | ipxe-888277d2d17d18e851ae2a6dd6a684358a1a6507.tar.gz ipxe-888277d2d17d18e851ae2a6dd6a684358a1a6507.tar.xz ipxe-888277d2d17d18e851ae2a6dd6a684358a1a6507.zip | |
Read current ioaddr and irqno from PnP registers.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/isapnp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/isapnp.h b/src/include/isapnp.h index d5d9ed005..c9f35ad78 100644 --- a/src/include/isapnp.h +++ b/src/include/isapnp.h @@ -66,6 +66,9 @@ #define ISAPNP_LOGICALDEVICENUMBER 0x07 #define ISAPNP_ACTIVATE 0x30 #define ISAPNP_IORANGECHECK 0x31 +#define ISAPNP_IOBASE(n) ( 0x60 + ( (n) * 2 ) ) +#define ISAPNP_IRQNO(n) ( 0x70 + ( (n) * 2 ) ) +#define ISAPNP_IRQTYPE(n) ( 0x71 + ( (n) * 2 ) ) /* Bits in the CONFIGCONTROL register */ #define ISAPNP_CONFIG_RESET ( 1 << 0 ) @@ -143,6 +146,8 @@ struct isapnp_device { unsigned char csn; uint16_t vendor_id; uint16_t prod_id; + uint16_t ioaddr; + uint8_t irqno; int already_tried; }; |
