aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk/write.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/write.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/write.h')
-rw-r--r--com32/gplinclude/disk/write.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/gplinclude/disk/write.h b/com32/gplinclude/disk/write.h
new file mode 100644
index 00000000..89ca8736
--- /dev/null
+++ b/com32/gplinclude/disk/write.h
@@ -0,0 +1,11 @@
+#ifndef _WRITE_H_
+#define _WRITE_H_
+int write_sectors(const struct driveinfo* drive_info, const unsigned int lba,
+ const void *data, const int size);
+int write_verify_sector(struct driveinfo* drive_info,
+ const unsigned int lba,
+ const void *data);
+int write_verify_sectors(struct driveinfo* drive_info,
+ const unsigned int lba,
+ const void *data, const int size);
+#endif