summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorgoogle <google@daverabbitz.ath.cx>2012-09-09 17:22:12 +1200
committergoogle <google@daverabbitz.ath.cx>2012-09-09 17:22:12 +1200
commitdd1b8df8808df4fe295a90ab494da90162c5654f (patch)
treeeabbba5b00e6a1288001f4fb8ae5a5ee667cc234 /sys/include
parentaead11533ec4d17f4382b1e10f850042391bccb2 (diff)
Add alignment hints for e512 ATA drives.
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/disk.h2
-rw-r--r--sys/include/fis.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/disk.h b/sys/include/disk.h
index be0a4a0fe..c22928b49 100644
--- a/sys/include/disk.h
+++ b/sys/include/disk.h
@@ -42,6 +42,8 @@ struct Disk {
vlong size;
vlong offset; /* within larger disk, perhaps */
int width; /* of disk size in bytes as decimal string */
+ int psecsize;
+ int physalign;
int c;
int h;
int s;
diff --git a/sys/include/fis.h b/sys/include/fis.h
index 9ec0ba6aa..8c7ca2c32 100644
--- a/sys/include/fis.h
+++ b/sys/include/fis.h
@@ -102,6 +102,7 @@ struct Sfis {
uint sig;
uint lsectsz;
uint physshift; /* log2(log/phys) */
+ uint physalign; /* location of lba0 within phys0 */
uint c; /* disgusting, no? */
uint h;
uint s;