summaryrefslogtreecommitdiff
path: root/libc/bios/rawio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bios/rawio.h')
-rw-r--r--libc/bios/rawio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libc/bios/rawio.h b/libc/bios/rawio.h
new file mode 100644
index 0000000..3e378d7
--- /dev/null
+++ b/libc/bios/rawio.h
@@ -0,0 +1,16 @@
+#ifndef __readfs_h__ /* multi-inclusion protection */
+#define __readfs_h__
+
+#ifdef __STDC__
+#define P(x) x
+#else
+#define P(x) ()
+#endif
+
+#define rawio_read_sector(__sect, __buffer) rawio_read_lsector((unsigned long)__sect, __buffer)
+int rawio_read_lsector P((long sector, char* buffer));
+
+extern int rawio_disk_cyls;
+extern int rawio_disk_heads;
+extern int rawio_disk_spt;
+#endif