ahci: centralize, fix port reset
[minix.git] / include / minix / partition.h
blob21f743d70bfcea6b5bc9db36b47ce9ffc81d16dd
1 /* minix/partition.h Author: Kees J. Bot
2 * 7 Dec 1995
3 * Place of a partition on disk and the disk geometry,
4 * for use with the DIOCGETP and DIOCSETP ioctl's.
5 */
6 #ifndef _MINIX__PARTITION_H
7 #define _MINIX__PARTITION_H
9 #include <sys/types.h>
11 #include <minix/u64.h>
13 int minix_sizeup(char *name, u64_t *bytes);
15 struct partition {
16 u64_t base; /* byte offset to the partition start */
17 u64_t size; /* number of bytes in the partition */
18 unsigned cylinders; /* disk geometry */
19 unsigned heads;
20 unsigned sectors;
23 #endif /* _MINIX__PARTITION_H */