1 | #ifndef ISA_H
|
---|
2 | #define ISA_H
|
---|
3 |
|
---|
4 | struct dev;
|
---|
5 |
|
---|
6 | #define ISAPNP_VENDOR(a,b,c) (((((a)-'A'+1)&0x3f)<<2)|\
|
---|
7 | ((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
|
---|
8 | ((((c)-'A'+1)&0x1f)<<8))
|
---|
9 |
|
---|
10 | #define GENERIC_ISAPNP_VENDOR ISAPNP_VENDOR('P','N','P')
|
---|
11 |
|
---|
12 | struct isa_driver
|
---|
13 | {
|
---|
14 | int type;
|
---|
15 | const char *name;
|
---|
16 | int (*probe)(struct dev *, unsigned short *);
|
---|
17 | unsigned short *ioaddrs;
|
---|
18 | };
|
---|
19 |
|
---|
20 | #ifndef __HYPERSTONE__
|
---|
21 | #define __isa_driver __attribute__ ((used,__section__(".drivers.isa")))
|
---|
22 | #else
|
---|
23 | #define __isa_driver __attribute__ ((used,__section__(".drivisa")))
|
---|
24 | #endif
|
---|
25 |
|
---|
26 | extern const struct isa_driver isa_drivers[];
|
---|
27 | extern const struct isa_driver isa_drivers_end[];
|
---|
28 |
|
---|
29 | #define ISA_ROM(IMAGE, DESCRIPTION)
|
---|
30 |
|
---|
31 | #endif /* ISA_H */
|
---|
32 |
|
---|