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
bouyer
6f3bab1f59
Merge scsipi branch in the mainline. This add support for ATAPI devices
...
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
thorpej
158a6e52a4
Garbage-collect and uneeded #ifdef.
1997-05-08 04:39:03 +00:00
cgd
36949596f0
rename pci_map_register to pci_mapreg_map. The latter name is more
...
descriptive, and allows for a sane name for a function which just digs
the info out of the mapping register but doesn't do the mapping.
1997-04-13 20:14:20 +00:00
cgd
cf2d73f749
use pci_map_register(). map both mem and I/O spaces, preferring mem
...
space if it's usable, but falling back to I/O space if mem isn't usable.
1997-04-13 19:48:16 +00:00
cgd
db0f072019
clean these up (mostly rename bus_space_{tag,handle}_t variables) so that
...
this code makes equal sense for memory and I/O space, prefer to map
the PCI front end via memory space (conditionalized on a patchable kernel
variable), and do a bit of other random NetBSD-specific cleanup. (These
changes were sent to Justin Gibbs on March 28.)
1997-04-10 02:48:38 +00:00
cgd
8aa5282c68
clean up the __BROKEN_INDIRECT_CONFIG chunks of the last change
1997-03-13 01:04:02 +00:00
cgd
4c654c0acf
fixes from Matt Jacob so that these can compile and run on the Alpha.
...
(aic7xxx has been tested and works on the Alpha, bha has not yet been
tested on thne Alpha.)
1997-03-13 00:38:48 +00:00
thorpej
546c8abcee
New bus.h implementation/interface:
...
- No more distinction between i/o-mapped and memory-mapped
devices. It's all "bus space" now, and space tags
differentiate the space with finer grain than the
bus chipset tag.
- Add memory barrier methods.
- Implement space alloc/free methods.
- Implement region read/write methods (like memcpy to/from
bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.
1996-10-21 22:56:24 +00:00