diff options
Diffstat (limited to 'isys/silraid.c')
-rw-r--r-- | isys/silraid.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/isys/silraid.c b/isys/silraid.c index 8256ca125..e7683f5e4 100644 --- a/isys/silraid.c +++ b/isys/silraid.c @@ -10,7 +10,6 @@ #include <sys/ioctl.h> #include <stdio.h> #include <fcntl.h> -#include <linux/hdreg.h> #ifdef DIET #include <sys/mount.h> @@ -34,6 +33,18 @@ typedef unsigned int uint32_t; #define BLKSSZGET _IO(0x12,104)/* get block device sector size */ #endif +#ifndef HDIO_GETGEO_BIG_RAW +#define HDIO_GETGEO_BIG_RAW 0x0331 + +/* BIG GEOMETRY */ +struct hd_big_geometry { + unsigned char heads; + unsigned char sectors; + unsigned int cylinders; + unsigned long start; +}; +#endif + struct sil_raid_conf { char unknown[0x36]; /* 0x00 to 0x35 */ char diskname[32]; /* 0x36 to 0x56 */ |