summaryrefslogtreecommitdiffstats
path: root/src/include/isa.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/isa.h')
-rw-r--r--src/include/isa.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/isa.h b/src/include/isa.h
new file mode 100644
index 000000000..23a8f2ffa
--- /dev/null
+++ b/src/include/isa.h
@@ -0,0 +1,32 @@
+#ifndef ISA_H
+#define ISA_H
+
+struct dev;
+
+#define ISAPNP_VENDOR(a,b,c) (((((a)-'A'+1)&0x3f)<<2)|\
+ ((((b)-'A'+1)&0x18)>>3)|((((b)-'A'+1)&7)<<13)|\
+ ((((c)-'A'+1)&0x1f)<<8))
+
+#define GENERIC_ISAPNP_VENDOR ISAPNP_VENDOR('P','N','P')
+
+struct isa_driver
+{
+ int type;
+ const char *name;
+ int (*probe)(struct dev *, unsigned short *);
+ unsigned short *ioaddrs;
+};
+
+#ifndef __HYPERSTONE__
+#define __isa_driver __attribute__ ((used,__section__(".drivers.isa")))
+#else
+#define __isa_driver __attribute__ ((used,__section__(".drivisa")))
+#endif
+
+extern const struct isa_driver isa_drivers[];
+extern const struct isa_driver isa_drivers_end[];
+
+#define ISA_ROM(IMAGE, DESCRIPTION)
+
+#endif /* ISA_H */
+