2018-10-24 10:42:12 +03:00
|
|
|
# $NetBSD: files.ata,v 1.30 2018/10/24 07:42:12 jdolecek Exp $
|
1998-01-15 02:36:30 +03:00
|
|
|
#
|
|
|
|
# Config file and device description for machine-independent devices
|
|
|
|
# which attach to ATA busses. Included by ports that need it. Ports
|
|
|
|
# that use it must provide their own "major" declarations for the
|
|
|
|
# appropriate devices.
|
|
|
|
|
|
|
|
# ATA disks
|
1998-02-17 01:12:45 +03:00
|
|
|
device wd: disk
|
2003-10-09 00:57:59 +04:00
|
|
|
attach wd at ata_hl
|
2001-02-24 04:59:46 +03:00
|
|
|
file dev/ata/wd.c wd needs-flag
|
2004-08-12 08:23:02 +04:00
|
|
|
file dev/ata/ata_wdc.c wd & atabus & wdc_common
|
1998-10-12 20:09:10 +04:00
|
|
|
|
Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch
ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.
Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).
Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.
Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).
Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.
Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
2017-10-07 19:05:31 +03:00
|
|
|
defflag opt_wd.h WD_SOFTBADSECT
|
|
|
|
defflag opt_wd.h WD_CHAOS_MONKEY
|
2004-08-30 13:34:41 +04:00
|
|
|
|
2017-10-10 20:19:38 +03:00
|
|
|
file dev/ata/ata.c (ata_hl | atapi) & atabus
|
2018-10-24 10:42:12 +03:00
|
|
|
file dev/ata/ata_subr.c (ata_hl | atapi) & atabus
|
2018-10-24 09:53:26 +03:00
|
|
|
file dev/ata/ata_recovery.c (ata_hl | atapi) & atabus
|
2003-01-27 21:21:23 +03:00
|
|
|
|
|
|
|
# ATA RAID configuration support
|
2008-06-10 16:49:16 +04:00
|
|
|
defpseudodev ataraid {[vendtype = -1], [unit = -1]}
|
2003-01-27 21:21:23 +03:00
|
|
|
file dev/ata/ata_raid.c ataraid needs-flag
|
2008-09-16 15:45:30 +04:00
|
|
|
file dev/ata/ata_raid_subr.c ataraid
|
2003-01-27 21:21:23 +03:00
|
|
|
file dev/ata/ata_raid_promise.c ataraid
|
2005-06-20 06:11:57 +04:00
|
|
|
file dev/ata/ata_raid_adaptec.c ataraid
|
2008-08-20 19:00:34 +04:00
|
|
|
file dev/ata/ata_raid_nvidia.c ataraid
|
2007-03-27 04:10:20 +04:00
|
|
|
file dev/ata/ata_raid_via.c ataraid
|
2008-09-05 16:37:13 +04:00
|
|
|
file dev/ata/ata_raid_jmicron.c ataraid
|
2008-09-11 15:08:50 +04:00
|
|
|
file dev/ata/ata_raid_intel.c ataraid
|
2003-01-27 21:21:23 +03:00
|
|
|
|
|
|
|
attach ld at ataraid with ld_ataraid
|
|
|
|
file dev/ata/ld_ataraid.c ld_ataraid
|
2004-05-29 03:26:27 +04:00
|
|
|
|
|
|
|
# Common SATA subroutines
|
2006-10-26 00:14:00 +04:00
|
|
|
file dev/ata/sata_subr.c sata needs-flag
|
2009-06-17 07:07:51 +04:00
|
|
|
|
|
|
|
# Common SATA FIS subroutines
|
|
|
|
file dev/ata/satafis_subr.c sata_fis
|
2012-07-31 19:50:31 +04:00
|
|
|
|
|
|
|
# SATA port multiplier support
|
|
|
|
file dev/ata/satapmp_subr.c sata_pmp needs-flag
|