aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk/read.h
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-19 08:13:00 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-04-19 08:13:00 -0700
commita47eec26c8e5b269852fde63b9e3767ed76c1f47 (patch)
treed80eed5d325c6f181036ba485ad94d6d9590eba2 /com32/gplinclude/disk/read.h
parent796ac719ba031943201c5fc3cf740dea50315414 (diff)
downloadsyslinux-a47eec26c8e5b269852fde63b9e3767ed76c1f47.tar.gz
syslinux-a47eec26c8e5b269852fde63b9e3767ed76c1f47.tar.xz
syslinux-a47eec26c8e5b269852fde63b9e3767ed76c1f47.zip
gpllib: Add disk library
This library features read and write operations, as well as geometry detection. It will prevent duplicating code between several modules (e.g. hdt and chain.c32). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/disk/read.h')
-rw-r--r--com32/gplinclude/disk/read.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/gplinclude/disk/read.h b/com32/gplinclude/disk/read.h
new file mode 100644
index 00000000..f8000a41
--- /dev/null
+++ b/com32/gplinclude/disk/read.h
@@ -0,0 +1,6 @@
+#ifndef _READ_H_
+#define _READ_H_
+void *dev_read(int drive, unsigned int lba, int sectors);
+void *read_sectors(struct driveinfo* drive_info, const unsigned int lba,
+ const int sectors);
+#endif /* _READ_H */