aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-02-17 22:55:36 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-02-17 22:55:36 -0500
commita4bd91927115773a58363171cb2977574bd51491 (patch)
tree50fea9c249efed7f69a4a2da4c1b3f7b1b94701e
parentdac46b1400787cdf04d2f3a3671bc78b3584fb71 (diff)
downloadseabios-a4bd91927115773a58363171cb2977574bd51491.tar.gz
Minor - arrange struct drive_s to clarify field roles.
-rw-r--r--src/disk.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/disk.h b/src/disk.h
index 635d5119..90ca04df 100644
--- a/src/disk.h
+++ b/src/disk.h
@@ -173,20 +173,21 @@ struct chs_s {
};
struct drive_s {
- u8 type; // Driver type (DTYPE_*)
- u8 removable; // Removable device flag
- u16 blksize; // block size
+ u8 type; // Driver type (DTYPE_*)
+ u8 floppy_type; // Type of floppy (only for floppy drives).
+ struct chs_s lchs; // Logical CHS
+ u64 sectors; // Total sectors count
+
+ // Info for EDD calls
+ u16 blksize; // block size
+ struct chs_s pchs; // Physical CHS
+ u8 translation; // type of translation
+
+ // Driver specific
u32 cntl_id;
u32 cntl_info;
- u8 floppy_type; // Type of floppy (only for floppy drives).
-
+ u8 removable; // Removable device flag
char model[41];
-
- u8 translation; // type of translation
- struct chs_s lchs; // Logical CHS
- struct chs_s pchs; // Physical CHS
-
- u64 sectors; // Total sectors count
};
#define DISK_SECTOR_SIZE 512