Commit Graph

18 Commits

Author SHA1 Message Date
marius
769bdd48e6 - With the demise of !ATA_CAM, ATA_STATIC_ID is the only ata(4) related
option left but actually consumed by ada(4), so move it to opt_ada.h
  and get rid of opt_ata.h.
- Fix stand-alone build of atacore(4) by adding opt_cam.h.
- Use __FBSDID.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2013-04-06 19:12:49 +00:00
nwhitehorn
e7512f1da4 Unbreak build.
Pointy hat to: me
2009-12-06 17:26:43 +00:00
mav
6a3018e7cf MFp4:
Introduce ATA_CAM kernel option, turning ata(4) controller drivers into
cam(4) interface modules. When enabled, this options deprecates all ata(4)
peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers
(ada, cd, ...) and interfaces to be natively used instead.

As side effect of this, ata(4) mode setting code was completely rewritten
to make controller API more strict and permit above change. While doing
this, SATA revision was separated from PATA mode. It allows DMA-incapable
SATA devices to operate and makes hw.ata.atapi_dma tunable work again.

Also allow ata(4) controller drivers (except some specific or broken ones)
to handle larger data transfers. Previous constraint of 64K was artificial
and is not really required by PCI ATA BM specification or hardware.

Submitted by:	nwitehorn (powerpc part)
2009-12-06 00:10:13 +00:00
imp
cb4bb46e16 Move from using devclass_find_free_unit(ata_devclass, 0) to -1 for the
unit number.  Basically they are the same...
2009-06-10 17:40:18 +00:00
grehan
1e312e1197 ata_generic_hw takes a dev as a parameter, not a channel. 2005-11-11 09:36:38 +00:00
ssouhlal
28f1c84813 Unbreak the powerpc build by fixing some ATA constants that were renamed.
Approved by:	grehan (mentor)
2005-04-12 15:59:54 +00:00
grehan
a6baad1fc1 Introduce channel-level setmode newbus method.
Thanks to sos for the code re-org that allowed this.
2005-04-01 03:28:55 +00:00
grehan
c68e3ffea6 Catch up with ATA-mkIII 2005-03-31 01:57:51 +00:00
grehan
5b55ad0716 Long overdue sync-up with ATA code 2005-03-15 11:41:05 +00:00
imp
f0bf889d0d /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
grehan
769af6f7d4 - fixed trailing whitespace and indentation
- removed unused variable to fix compile warning
2004-02-11 07:58:43 +00:00
grehan
8e1d4bce98 Catch up with ATA UMA changes 2004-01-15 23:52:32 +00:00
grehan
4208dc0071 Catch up with ATA changes by including <sys/sema.h> 2004-01-13 10:54:35 +00:00
grehan
a7a354cc2b ATAng requires <sys/taskqueue.h> 2003-09-22 11:55:02 +00:00
grehan
f1e6671946 Remove reference to ata resource in print_child. 2003-04-18 02:47:12 +00:00
grehan
47fb20d3f1 Catch up with ATAng changes 2003-02-24 03:12:30 +00:00
grehan
0d5519ef7a Removed unnecessary includes and brought up to date with ata
common code by adding lock functions.
2003-01-18 11:46:50 +00:00
grehan
22d2979d2d Support files and a h/w tree description for the PSIM ppc simulator
Approved by: benno
2002-09-19 04:57:10 +00:00