aboutsummaryrefslogtreecommitdiff
path: root/sftsr.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-15 10:48:48 +0200
committerJavier <dev.git@javispedro.com>2022-04-15 10:48:48 +0200
commit30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9 (patch)
treec6b721d9456a2d92dafe2ab57715e6b2720fa63d /sftsr.h
parent528069dc5992bd069a3c1783db50d630c3d355b4 (diff)
downloadvbados-30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9.tar.gz
vbados-30c3e414c423bcbfe10b1e40bb8a0e01d3eec7c9.zip
show disk free space (up to 2GB), necessary for filemgr to work
Diffstat (limited to 'sftsr.h')
-rw-r--r--sftsr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sftsr.h b/sftsr.h
index 48ffa4f..ab1b0d2 100644
--- a/sftsr.h
+++ b/sftsr.h
@@ -33,6 +33,12 @@
/** Maximum number of open files */
#define NUM_FILES 40
+/** Parameters used for returning disk geometry.
+ * For compatibility, better if sector_per_cluster * bytes_per_sector <= 32K. */
+#define SECTORS_PER_CLUSTER 8
+#define BYTES_PER_SECTOR 4096
+#define BYTES_PER_CLUSTER (SECTORS_PER_CLUSTER * BYTES_PER_SECTOR)
+
/** Directory enumeration needs an open file, this is its index in the "openfile" table. */
#define SEARCH_DIR_FILE 0