xref: /illumos-gate/usr/src/grub/grub-0.97/netboot/isa.h (revision 80c94ecd7a524eb933a4bb221a9618b9dc490e76)
1 #if !defined(ISA_H) && defined(CONFIG_ISA)
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 #define __isa_driver	__attribute__ ((unused,__section__(".drivers.isa")))
21 extern const struct isa_driver isa_drivers[];
22 extern const struct isa_driver isa_drivers_end[];
23 
24 #define ISA_ROM(IMAGE, DESCRIPTION)
25 
26 #endif /* ISA_H */
27 
28