]>
Commit | Line | Data |
---|---|---|
a6316ce4 MT |
1 | /* |
2 | * These are fixed and write only. Reads are done from a port with a | |
3 | * relocatable address... | |
4 | */ | |
5 | #define ISAPNP_ADDR_PORT 0x279 | |
6 | #define ISAPNP_DATA_PORT 0xa79 | |
7 | ||
8 | ||
9 | /* | |
10 | * ISA PnP resource types | |
11 | */ | |
12 | #define RES_PNP_VERSION 0x01 | |
13 | #define RES_LOG_DEV_ID 0x02 | |
14 | #define RES_COMPAT_DEV_ID 0x03 | |
15 | #define RES_IRQ 0x04 | |
16 | #define RES_DMA 0x05 | |
17 | #define RES_START_DEP 0x06 | |
18 | #define RES_END_DEP 0x07 | |
19 | #define RES_IO 0x08 | |
20 | #define RES_FIXED_IO 0x09 | |
21 | #define RES_VENDOR_SMALL 0x0e | |
22 | #define RES_END 0x0f | |
23 | ||
24 | #define RES_MEM_RANGE 0x81 | |
25 | #define RES_ANSI_NAME 0x82 | |
26 | #define RES_UNICODE_NAME 0x83 | |
27 | #define RES_VENDOR_LARGE 0x84 | |
28 | #define RES_MEM32_RANGE 0x85 | |
29 | #define RES_FIXED_MEM32_RANGE 0x86 | |
30 | ||
31 | ||
32 | /* | |
33 | * ISA PnP configuration regs | |
34 | */ | |
35 | #define CFG_MEM24 0x40 | |
36 | #define CFG_MEM32_0 0x76 | |
37 | #define CFG_MEM32_1 0x80 | |
38 | #define CFG_MEM32_2 0x90 | |
39 | #define CFG_MEM32_3 0xa0 | |
40 | #define CFG_IO_HI_BASE 0x60 | |
41 | #define CFG_IO_LO_BASE 0x61 | |
42 | #define CFG_IRQ 0x70 | |
43 | #define CFG_IRQ_TYPE 0x71 | |
44 | #define CFG_DMA 0x74 | |
45 | ||
46 | ||
47 | /* gather ISA-PnP info */ | |
48 | void hd_scan_isapnp(hd_data_t *hd_data); | |
49 | ||
50 | ||
51 | /* | |
52 | * Interface functions to the pnpdump lib. | |
53 | */ | |
54 | int pnpdump(hd_data_t *hd_data, int read_boards); | |
55 | unsigned char *add_isapnp_card_res(isapnp_card_t *, int, int); | |
56 | isapnp_card_t *add_isapnp_card(isapnp_t *, int); | |
57 |