Read current ioaddr and irqno from PnP registers.

This commit is contained in:
Michael Brown
2005-04-15 14:27:49 +00:00
parent ab443ba4b0
commit 888277d2d1
2 changed files with 33 additions and 2 deletions

View File

@@ -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;
};