diff options
| author | Arjan van de Ven <arjan@linux.intel.com> | 2008-10-17 12:20:26 -0400 |
|---|---|---|
| committer | Arjan van de Ven <arjan@linux.intel.com> | 2008-10-17 12:20:26 -0400 |
| commit | 651dab4264e4ba0e563f5ff56f748127246e9065 (patch) | |
| tree | 016630974bdcb00fe529b673f96d389e0fd6dc94 /include/linux/fd.h | |
| parent | 40b8606253552109815786e5d4b0de98782d31f5 (diff) | |
| parent | 2e532d68a2b3e2aa6b19731501222069735c741c (diff) | |
Merge commit 'linus/master' into merge-linus
Conflicts:
arch/x86/kvm/i8254.c
Diffstat (limited to 'include/linux/fd.h')
| -rw-r--r-- | include/linux/fd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/fd.h b/include/linux/fd.h index b6bd41d2b460..f5d194af07a8 100644 --- a/include/linux/fd.h +++ b/include/linux/fd.h | |||
| @@ -15,10 +15,16 @@ struct floppy_struct { | |||
| 15 | sect, /* sectors per track */ | 15 | sect, /* sectors per track */ |
| 16 | head, /* nr of heads */ | 16 | head, /* nr of heads */ |
| 17 | track, /* nr of tracks */ | 17 | track, /* nr of tracks */ |
| 18 | stretch; /* !=0 means double track steps */ | 18 | stretch; /* bit 0 !=0 means double track steps */ |
| 19 | /* bit 1 != 0 means swap sides */ | ||
| 20 | /* bits 2..9 give the first sector */ | ||
| 21 | /* number (the LSB is flipped) */ | ||
| 19 | #define FD_STRETCH 1 | 22 | #define FD_STRETCH 1 |
| 20 | #define FD_SWAPSIDES 2 | 23 | #define FD_SWAPSIDES 2 |
| 21 | #define FD_ZEROBASED 4 | 24 | #define FD_ZEROBASED 4 |
| 25 | #define FD_SECTBASEMASK 0x3FC | ||
| 26 | #define FD_MKSECTBASE(s) (((s) ^ 1) << 2) | ||
| 27 | #define FD_SECTBASE(floppy) ((((floppy)->stretch & FD_SECTBASEMASK) >> 2) ^ 1) | ||
| 22 | 28 | ||
| 23 | unsigned char gap, /* gap1 size */ | 29 | unsigned char gap, /* gap1 size */ |
| 24 | 30 | ||
