diff options
| author | Keith Wansbrough <[email protected]> | 2008-09-22 14:57:17 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2008-10-09 08:56:19 +0200 |
| commit | 9e49184c82e9ec3ab4d45f9ea5a17ccaf43869f0 (patch) | |
| tree | 532d70e75854e1f7c070d4818f3b44cefe528d3e /tools/perf/scripts/python | |
| parent | 061837bc8687edc2739ef02f721b7ae0b8076390 (diff) | |
floppy: support arbitrary first-sector numbers
The current floppy_struct allows floppies to number sectors starting
from 0 or 1. This patch allows arbitrary first-sector numbers - for
example, 0xC1 for Amstrad CPC disks.
This extends the existing 1-bit field (FD_ZEROBASED, bit 2 of stretch)
to 8 bits (FD_SECTMASK, bits 2 to 9).
Currently 0x00 denotes a first sector number of 1, and 0x01 denotes a
first sector number of 0. We extend this by interpreting FD_SECTMASK
as the first sector number with the LSB flipped.
Signed-off-by: Keith Wansbrough <[email protected]>
Cc: Alain Knaff <[email protected]>
Cc: Michael Kerrisk <[email protected]>
Cc: Karel Zak <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions