diff options
author | scottl <scottl@FreeBSD.org> | 2009-07-10 08:18:08 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2009-07-10 08:18:08 +0000 |
commit | e33e5dce327927280ca13509bde4fac5f9d39fe1 (patch) | |
tree | 65347229e3752769c4a701bd5f5308b2c8b4bf03 /sys/modules | |
parent | ee1bfac31aec467d00137d267df6bbe2744c596a (diff) | |
download | FreeBSD-src-e33e5dce327927280ca13509bde4fac5f9d39fe1.zip FreeBSD-src-e33e5dce327927280ca13509bde4fac5f9d39fe1.tar.gz |
Separate the parallel scsi knowledge out of the core of the XPT, and
modularize it so that new transports can be created.
Add a transport for SATA
Add a periph+protocol layer for ATA
Add a driver for AHCI-compliant hardware.
Add a maxio field to CAM so that drivers can advertise their max
I/O capability. Modify various drivers so that they are insulated
from the value of MAXPHYS.
The new ATA/SATA code supports AHCI-compliant hardware, and will override
the classic ATA driver if it is loaded as a module at boot time or compiled
into the kernel. The stack now support NCQ (tagged queueing) for increased
performance on modern SATA drives. It also supports port multipliers.
ATA drives are accessed via 'ada' device nodes. ATAPI drives are
accessed via 'cd' device nodes. They can all be enumerated and manipulated
via camcontrol, just like SCSI drives. SCSI commands are not translated to
their ATA equivalents; ATA native commands are used throughout the entire
stack, including camcontrol. See the camcontrol manpage for further
details. Testing this code may require that you update your fstab, and
possibly modify your BIOS to enable AHCI functionality, if available.
This code is very experimental at the moment. The userland ABI/API has
changed, so applications will need to be recompiled. It may change
further in the near future. The 'ada' device name may also change as
more infrastructure is completed in this project. The goal is to
eventually put all CAM busses and devices until newbus, allowing for
interesting topology and management options.
Few functional changes will be seen with existing SCSI/SAS/FC drivers,
though the userland ABI has still changed. In the future, transports
specific modules for SAS and FC may appear in order to better support
the topologies and capabilities of these technologies.
The modularization of CAM and the addition of the ATA/SATA modules is
meant to break CAM out of the mold of being specific to SCSI, letting it
grow to be a framework for arbitrary transports and protocols. It also
allows drivers to be written to support discrete hardware without
jeopardizing the stability of non-related hardware. While only an AHCI
driver is provided now, a Silicon Image driver is also in the works.
Drivers for ICH1-4, ICH5-6, PIIX, classic IDE, and any other hardware
is possible and encouraged. Help with new transports is also encouraged.
Submitted by: scottl, mav
Approved by: re
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/Makefile | 1 | ||||
-rw-r--r-- | sys/modules/ahci/Makefile | 8 | ||||
-rw-r--r-- | sys/modules/cam/Makefile | 6 |
3 files changed, 14 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index add5a26..a3f7082 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -14,6 +14,7 @@ SUBDIR= ${_3dfx} \ ${_agp} \ aha \ ${_ahb} \ + ahci \ ${_aic} \ aic7xxx \ aio \ diff --git a/sys/modules/ahci/Makefile b/sys/modules/ahci/Makefile new file mode 100644 index 0000000..d682839 --- /dev/null +++ b/sys/modules/ahci/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/ahci + +KMOD= ahci +SRCS= ahci.c ahci.h device_if.h bus_if.h pci_if.h opt_cam.h + +.include <bsd.kmod.mk> diff --git a/sys/modules/cam/Makefile b/sys/modules/cam/Makefile index 6f88b35..ca5c56a 100644 --- a/sys/modules/cam/Makefile +++ b/sys/modules/cam/Makefile @@ -2,7 +2,7 @@ S= ${.CURDIR}/../.. -.PATH: $S/cam $S/cam/scsi +.PATH: $S/cam $S/cam/scsi $S/cam/ata KMOD= cam @@ -24,6 +24,10 @@ SRCS+= scsi_sa.c SRCS+= scsi_ses.c SRCS+= scsi_sg.c SRCS+= scsi_targ_bh.c scsi_target.c +SRCS+= scsi_xpt.c +SRCS+= ata_all.c +SRCS+= ata_xpt.c +SRCS+= ata_da.c EXPORT_SYMS= YES # XXX evaluate |