jmcneill
4c1d81b2b5
Merge jmcneill-pm branch.
2007-12-09 20:27:42 +00:00
ad
3e9b14ec02
Noisy printfs.
2007-12-01 16:58:36 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +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
838ee1e0d9
Use device_private().
2006-03-29 06:51:47 +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
drochner
46ed4b50c4
s/locdesc_t/int/g
2005-08-26 12:42:11 +00:00
christos
362a4a0bd5
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
...
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +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
drochner
96b589fc18
a round of autoconf cleanup:
...
-convert submatch() style functions (passed to config_search() or
config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
on "locators.h"
2004-09-13 12:55:47 +00:00
keihan
b8702f530b
netbsd.org -> NetBSD.org
...
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
thorpej
72a7af27b0
Use aprint_normal() in cfprint routines.
2003-01-01 00:10:15 +00:00
thorpej
c9b3657ce9
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:33:28 +00:00
thorpej
9bb77522c1
Use CFATTACH_DECL().
2002-09-30 21:31:52 +00:00
thorpej
f818766afe
Declare all cfattach structures const.
2002-09-27 20:31:45 +00:00
thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
3835413bc1
Overhaul of the ISA autoconfiguration code to support direct
...
configuration of devices logically attached to the ISA bus:
* Change the isa_attach_args to have arrays of io, mem, irq, drq
resources.
* Add a "pnpnames" and a linked list of "pnpcompatnames" to the
isa_attach_args. If either of these members are non-NULL,
direct configuration of the bus is being performed. Add an
ISA_DIRECT_CONFIG() macro to test for this.
* Drivers are not allowed to modify the isa_attach_args unless
direct configuration is not being performed and the probe fucntion
is returning success.
* Adapt device drivers -- currently, all driver probe routines return
"no match" if ISA_DIRECT_CONFIG() evaluates to true.
2002-01-07 21:46:56 +00:00
lukem
9d2580ff16
add RCSID
2001-11-13 07:56:39 +00:00
mjl
4622761326
Enable workaround for isapnp assigning already used interrupts to pnp
...
cards by masking them out with a "options ISAPNP_ALLOC_INTR_MASK=..."
in kernel config.
1999-04-12 19:31:27 +00:00
mycroft
77274e73c6
Add a `variant number' to the tables, so we can handle slight variations in
...
the chipset without doing something substantially more gross.
1999-03-22 09:38:57 +00:00
mycroft
fd400e0ddc
Add a kluge to ignore I/O and memory ranges with a size of zero, so we don't
...
blow up in bus_space_{map,unmap}(). At least one card uses this to `disable'
a logical device.
(XXX There's probably a better way to do this.)
1999-03-22 07:40:57 +00:00
augustss
ddb8209b40
XXX Add a disgusting hack to make the CS sound chips work in PnP mode.
...
XXX Read about it in isapnp.c.
1999-01-10 10:23:24 +00:00
fvdl
c312dc3f08
Avoid looping forever with cards that can only use one I/O address,
...
and specify a 0 alignment.
1998-11-21 23:38:11 +00:00
hannken
f568c6347c
Fix last commit -- NISADMA is either 0 or 1.
1998-10-10 13:43:10 +00:00
thorpej
5599443810
If ISA DMA is not present in the kernel (i.e. no ISA DMA-using devices
...
configured in), don't call ISA DMA functions to check for DRQs being
free. Just return EINVAL in this case. Fixes PR #6187 , from Herb Peyerl.
1998-10-08 19:59:20 +00:00
christos
c7a4282124
Assign copyright to TNF.
1998-09-05 14:12:36 +00:00
thorpej
53878c1925
Change one word to be consistent w/ a previous message.
1998-07-31 05:37:02 +00:00
thorpej
99d64ae1ca
Oops, unused variable.
1998-07-31 05:29:48 +00:00
thorpej
4ea9132164
Rearrange isapnp_callback() slightly.
1998-07-31 05:28:24 +00:00
thorpej
c489673819
Ensure we're probed only once per ISA bus.
1998-07-31 05:26:15 +00:00
thorpej
f40a42d5c4
Use config_defer() to scan for ISA PnP cards.
1998-07-31 04:00:35 +00:00
christos
c1303944f7
Add a hook that resets the bios configuration from the pnp devices
...
thus making them invisible to isa probes [from OpenBSD]
1998-07-30 18:02:50 +00:00
christos
bdb2269a46
Create a master list of pnp logical and compatibility device codes instead
...
of hard-coding it into each driver and use a centralized probe function.
1998-07-23 19:30:44 +00:00
thorpej
5bc2217a49
Nuke __BROKEN_INDIRECT_CONFIG.
1998-06-09 07:24:55 +00:00
thorpej
129eab3152
Adjust for the changes to the ISA DMA API.
1998-06-09 00:05:19 +00:00
thorpej
cef633de2a
Fix a fencepost in last change.
1998-04-19 22:26:31 +00:00
thorpej
6ea0ab26e2
Don't reference functions defined in isadma.c if we don't have to,
...
since we might not have any ISA DMA-using devices configured, thus
isadma.c won't be compiled. Fixes a problem reported by Kevin Lahey.
Also, since there are only 8 DMA channels, don't bother checking
DRQs 8 - 15.
1998-04-15 01:53:47 +00:00
thorpej
095c4c092d
Adjust for config changes.
1998-01-12 09:23:08 +00:00
mjacob
f4b09b4771
fixme: still need a __BROKEN_INDIRECT_CONFIG case
1997-12-01 18:47:01 +00:00
drochner
8e7686a76b
make it compile without "__BROKEN_INDIRECT_CONFIG"
1997-11-30 15:13:30 +00:00
christos
c12bf4cc9f
DTRT with level and edge interrupts:
...
- add a type field to the isapnp_pin struct and set to IST_EDGE or
IST_LEVEL depending on the card configuration data.
- use the irq type field in all the drivers instead of hardcoding it.
1997-10-28 21:27:55 +00:00
thorpej
e0ccf46ed0
In isapnp_alloc_irq(), use isa_intr_alloc(), since it performs resource
...
conflict checking.
1997-10-27 23:42:30 +00:00
thorpej
16905ceeda
Make sure we don't allocate a conflicting DRQ. From Christos.
1997-10-27 22:16:49 +00:00
mikel
32407c5e4f
don't forget to unmap read port in match routine, if successful; also
...
ensure sc_ncards is initialized
short-circuit probing for cards once first is found in match routine
add support for !__BROKEN_INDIRECT_CONFIG
1997-08-12 07:38:10 +00:00
mikel
d3174941cd
don't clobber bus_space_{,un}map macros
1997-08-06 04:52:29 +00:00
mikel
93c4fda873
add support for compatible device IDs
1997-08-03 08:12:21 +00:00
thorpej
31498892b3
Fix a (fatal) typo in the bus dma changes. From Bill Coldwell
...
<billc@warped.com>
1997-06-08 08:43:52 +00:00