freebsd-skq/sys/dev/ata
Poul-Henning Kamp 7812d86f03 (This commit touches about 15 disk device drivers in a very consistent
and predictable way, and I apologize if I have gotten it wrong anywhere,
getting prior review on a patch like this is not feasible, considering
the number of people involved and hardware availability etc.)

If struct disklabel is the messenger: kill the messenger.

Inside struct disk we had a struct disklabel which disk drivers used to
communicate certain metrics to the disklayer above (GEOM or the disk
mini-layer).  This commit changes this communication to use four
explicit fields instead.

Amongst the benefits is that the fields do not get overwritten by
wrong or bogus on-disk disklabels.

Once that is clear, <sys/disk.h> which is included in the drivers
no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in,
the few places that needs them, have gotten explicit #includes for
them.

The disklabel inside struct disk is now only for internal use in
the disk mini-layer, so instead of embedding it, we malloc it as
we need it.

This concludes (modulus any mistakes) the series of disklabel related
commits.

I belive it all amounts to a NOP for all the rest of you :-)

Sponsored by:   DARPA & NAI Labs.
2002-09-20 19:36:05 +00:00
..
ata-all.c Rearrange where to get the ATAPI magic sequence. 2002-09-12 14:32:33 +00:00
ata-all.h Fix the breakage of tagged queueing that the busdma integration 2002-04-18 19:11:45 +00:00
ata-card.c Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h> 2002-09-20 18:08:57 +00:00
ata-disk.c (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
ata-disk.h Update the tags handling a bit, which makes support for the 2002-07-22 18:35:01 +00:00
ata-dma.c Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h> 2002-09-20 18:08:57 +00:00
ata-isa.c Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h> 2002-09-20 18:08:57 +00:00
ata-pci.c Remove unused #includes: <sys/disk.h> <sys/devicestat.h> and <sys/sysctl.h> 2002-09-20 18:08:57 +00:00
ata-raid.c (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
ata-raid.h Only calculate Promise magic if a device is there for info. 2002-04-11 08:52:32 +00:00
atapi-all.c Dont hang in atprq on poll_dsc command. 2002-09-12 13:53:33 +00:00
atapi-all.h Add the ability to use ATAPI devices via CAM. 2002-08-09 20:54:06 +00:00
atapi-cam.c Change a couple of splcam() calls that do not make sense in atapi-cam 2002-09-12 15:15:33 +00:00
atapi-cd.c Wait for drive to become ready if its in progress of loading.. 2002-09-12 13:55:24 +00:00
atapi-cd.h Add DVD+RW support to the ATA driver and burncd. This also closes 2002-08-08 07:59:24 +00:00
atapi-fd.c (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
atapi-fd.h Use si_iosize_max to tell the upper layers not to use more 2002-06-19 12:41:05 +00:00
atapi-tape.c OK, dont rely on the upper layers handling iosize_max correctly, 2002-07-28 23:59:00 +00:00
atapi-tape.h Major update of the ATA RAID code, part 1: 2002-02-04 19:23:40 +00:00