Commit Graph

66 Commits

Author SHA1 Message Date
cegger
59717d7121 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-06 09:25:14 +00:00
cegger
6a970ea21d device_t/softc split 2009-05-05 09:51:23 +00:00
yamt
b1fea83762 remove extra semicolons. 2009-01-03 03:43:21 +00:00
dyoung
b982c25441 Use device_t and accessors. Use aprint_*_dev(). Use PMF_FN_*. 2008-02-22 23:24:07 +00:00
macallan
671b15c8ef get rid of the shutdown hook, add suspend and resume handlers instead
XXX: ahc_suspend panics here so suspend calls ahc_shutdown and resume does
nothing.
This fixes a hangup and subsequent panic which occured when the shutdown hooks
were called and /afterwards/ the sd suspend handler tried to flush caches
through an already shut down ahc.
2008-01-28 16:08:37 +00:00
tsutsui
61126beefc Rename a device property name: "override_ultra" -> "aic7xxx-override-ultra" 2007-12-15 14:23:14 +00:00
ad
a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
macallan
db7f214b33 allow to override the check for an external precision resistor via device
property so we can have 40MB/s on SGI O2
2007-09-26 01:22:29 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
thorpej
55e8bbeb6e Put appropriate prefixes on property names to reduce chances of name
collisions.
2006-07-10 16:28:44 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
tsutsui
ce21617f93 Add AHC_USETARGETDEFAULTS to ahc_flag, which enables to
use default target (but not for host) device settings on
ahc(4) interface without its SEEPROM (mostly on-board one).

This flag could be useful if host's BIOS (firmware) initializes
ahc(4) chip with some conservative (async, no tagged queuing etc.)
target settings for minimum support to load its primary loader etc.,
and it will be enabled in each attachment according to MD device
properties(9). Currently this property is set only on sgimips for
O2 on-board aic7880 adapters.

No objection on tech-kern (and netbsd-bugs), and closes PR kern/23276.
2006-04-15 14:22:52 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
thorpej
d36c43c511 Use ANSI function decls and static. 2005-06-28 00:28:41 +00:00
christos
bb4c90071c - const poisoning
- avoid variable shadowing.
2005-05-30 04:35:22 +00:00
perry
f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
perry
18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
christos
ed27e77c16 Bring back ALLOW_MEMIO change that was lost between 1.38 and 1.39. This
change reportedly makes the driver work on macppc. There must be a better
way of doing this (based on the chip revision?).
2004-10-17 01:10:44 +00:00
christos
6a5f6766d4 Make a commented out print statement compile and avoid wrapped lines.
No functional change.
2004-10-16 22:52:37 +00:00
simonb
98cd2fe77e Fix an assigned-to-but-not-used variable in the non AHC_ALLOW_MEMIO case. 2004-03-16 05:32:09 +00:00
augustss
9fc19b76bb Print the device description in the attach routine like all other drivers do. 2004-01-13 14:07:09 +00:00
taca
88b2ae484d make ahc(4) to recognize Adaptec 2915LP Ultra160 SCSI adapter. 2003-08-18 09:16:22 +00:00
lukem
365cbd9428 add missing __KERNEL_RCSID() 2003-07-14 15:47:00 +00:00
pk
8b535e80c4 ahc_pci_probe: avoid placeholder entries in the `identities' table. 2003-06-04 11:55:05 +00:00
fvdl
5aecd7c8fc On the first read of the DEVCONFIG PCI config register, sparc64 systems
seem to return all 1s. The second read is ok, though. So, as a workaround,
read it twice. From Manuel Bouyer.
2003-04-25 16:02:52 +00:00
fvdl
ec7141e045 Newer ahc driver, port from Justin Gibbs' driver in FreeBSD. Ported by
Pascal Renauld at Network Storage Solutions, Inc, with some changes
by me.
2003-04-19 19:34:23 +00:00
thorpej
7ec10e2d99 Use aprint_*(). 2003-01-31 00:07:39 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
simonb
188094a61f Remove variable that is only assigned too but not referenced. 2003-01-20 04:10:26 +00:00
thorpej
9b2c2ec24d Add trailing ; to CFATTACH_DECL. 2002-10-02 16:50:59 +00:00
thorpej
387fc6dc87 Use CFATTACH_DECL(). 2002-09-30 20:37:04 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
wiz
1f1e26bd6d Presence looks better with a 'c' instead of an 's'. 2001-11-21 19:01:31 +00:00
lukem
9048aaae21 add RCSID 2001-11-13 07:48:40 +00:00
christos
3319b05361 There was a stray debugging message "OptionMode = %x\n". Prefix it with
the device name, and enable it only in debugging mode.
2001-03-24 02:04:40 +00:00
jdolecek
34c8ae80da constify 2001-01-18 20:28:15 +00:00
sommerfeld
851de295eb Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
jdolecek
5fea96167f use new generic bootverbose instead of local definition 2000-09-24 12:37:03 +00:00
soren
fe2b627962 Fix 'RAID unsupported' printf. 2000-09-04 20:21:30 +00:00
soren
ac5ac55b06 Add support for the AAA-131 RAID controller by treating it as a 7890.
Taken from rev 1.32 of the FreeBSD ahc_pci.c.
2000-09-04 19:56:04 +00:00
thorpej
d56c0ff801 Support Adaptec U2W cards with a 64-bit PCI memory range (such cards
are available with Power Macintosh G3 and G4 systems).
2000-05-10 17:07:52 +00:00
fvdl
1a774a9979 Set bus_intr to ahc_pci_intr. 2000-03-16 10:34:33 +00:00
fvdl
14620f1eee PCI frontend for new ahc driver. 2000-03-15 02:33:52 +00:00
thorpej
4656f0ba52 Remove the FreeBSD support from this file. It hasn't worked in FreeBSD
for some time, and only made the code harder to read.
2000-01-26 06:41:11 +00:00
thorpej
8949eab0cb Split the code that reads the SEEPROM into its own file. 2000-01-26 06:04:37 +00:00
hannken
9d12a71473 Add support for `Adaptec AHA 2940UW Pro'.
Behaves like the `Adaptec AHA 2940UW'.

Device info: product id = 0x8778, Chip = AIC7880P.
1999-10-12 08:41:55 +00:00
thorpej
ea3a1d9c44 Nuke __BROKEN_INDIRECT_CONFIG. 1998-06-08 06:55:54 +00:00
leo
d2551d5b3f Use bus-dma functions. 1998-03-16 15:36:17 +00:00