libhd 5.0
isapnp.h
Go to the documentation of this file.
00001 /*
00002  * These are fixed and write only. Reads are done from a port with a
00003  * relocatable address...
00004  */
00005 #define ISAPNP_ADDR_PORT        0x279
00006 #define ISAPNP_DATA_PORT        0xa79
00007 
00008 
00009 /*
00010  * ISA PnP resource types
00011  */
00012 #define RES_PNP_VERSION         0x01
00013 #define RES_LOG_DEV_ID          0x02
00014 #define RES_COMPAT_DEV_ID       0x03
00015 #define RES_IRQ                 0x04
00016 #define RES_DMA                 0x05
00017 #define RES_START_DEP           0x06
00018 #define RES_END_DEP             0x07
00019 #define RES_IO                  0x08
00020 #define RES_FIXED_IO            0x09
00021 #define RES_VENDOR_SMALL        0x0e
00022 #define RES_END                 0x0f
00023 
00024 #define RES_MEM_RANGE           0x81
00025 #define RES_ANSI_NAME           0x82
00026 #define RES_UNICODE_NAME        0x83
00027 #define RES_VENDOR_LARGE        0x84
00028 #define RES_MEM32_RANGE         0x85
00029 #define RES_FIXED_MEM32_RANGE   0x86
00030 
00031 
00032 /*
00033  * ISA PnP configuration regs
00034  */
00035 #define CFG_MEM24               0x40
00036 #define CFG_MEM32_0             0x76
00037 #define CFG_MEM32_1             0x80
00038 #define CFG_MEM32_2             0x90
00039 #define CFG_MEM32_3             0xa0
00040 #define CFG_IO_HI_BASE          0x60
00041 #define CFG_IO_LO_BASE          0x61
00042 #define CFG_IRQ                 0x70
00043 #define CFG_IRQ_TYPE            0x71
00044 #define CFG_DMA                 0x74
00045 
00046 
00047 /* gather ISA-PnP info */
00048 void hd_scan_isapnp(hd_data_t *hd_data);
00049 
00050 
00051 /*
00052  * Interface functions to the pnpdump lib.
00053  */
00054 int pnpdump(hd_data_t *hd_data, int read_boards);
00055 unsigned char *add_isapnp_card_res(isapnp_card_t *, int, int);
00056 isapnp_card_t *add_isapnp_card(isapnp_t *, int);
00057