Commit Graph

313 Commits

Author SHA1 Message Date
mrg 6c81cd39b8 Hauke Fath's port of the openbsd SUNW,spif driver from PR#26061.
the driver was originally written by Jason L. Wright.

XXX: i haven't tested this on sparc64 at all...
2004-07-24 12:45:00 +00:00
mrg 5df9a04912 Hauke Fath's port of the openbsd SUNW,spif driver from PR#26061.
the driver was originally written by Jason L. Wright.

XXX: i haven't tested this on sparc64 at all...
2004-07-24 12:37:20 +00:00
pk 1aca1da8a8 No need to allocate our own bus tag here. 2004-07-19 13:33:35 +00:00
pk 9fb9c69cd9 Make this compile with the TCX_CG8 option turned on (PR#26269). 2004-07-14 19:07:29 +00:00
pk bab17de2f5 Use bus_space_tag_alloc(). Remove unused `sc_bustag' from softc. 2004-07-05 10:48:29 +00:00
martin 2aef6e6521 Adapt to new (non optional) bus space on sparc. 2004-07-05 07:26:04 +00:00
pk b7d8cee837 The sc_range and sc_nrange fields are no longer used. 2004-06-30 21:41:36 +00:00
pk 889aa9f444 Introduce bus_space_tag_alloc() for the common parts of bus tag allocation. 2004-06-30 21:16:38 +00:00
pk 75c422dbc4 Put back qec_bus_map(), since sparc64's mainbus and sbus drivers do not
use the tag's translation ranges yet.
2004-06-28 10:30:48 +00:00
pk 777714c310 Bus tags should now be constructed by copying the parent's bus tag and
then changing the fields that need to be handled by the child bus.
2004-06-27 18:28:26 +00:00
martin 804267781d Handle STP4020_ISR0_SCINT (status change interrupt posted) - by ignoring
it.
2004-05-18 06:20:28 +00:00
pk b3d526b501 Fix incorrect diagnostic. 2004-05-04 15:34:37 +00:00
pk ea53363e84 Rename PROM_getprop*() => prom_getprop*(). 2004-03-17 17:04:58 +00:00
pk 967492ee53 Replace myetheraddr() by prom_getether(). 2004-03-15 23:51:11 +00:00
martin d11a3aeebb Only ACK pending interrupts (instead of all possible). Log interrupts we
probably should have handled but didn't. Minor cleanup.
2003-12-23 13:46:18 +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
keihan 8476e6755a NetBSD.ORG -> NetBSD.org
Now all "NetBSD.ORG" are gone from src/sys.
2003-12-04 12:42:54 +00:00
chs e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
pk bb69a241e8 Remove ancient DDB-dependent `hide/integrate'.
Simplify lewrcsr/lerdcsr; read-back after write doesn't hurt on sun4 so
skip the cpu type test in generic kernels.
2003-11-11 15:01:05 +00:00
chs cd23cf5c7c uninitialized variables. 2003-10-28 15:25:27 +00:00
ad f67ac65f3d Uninitialized variable. 2003-10-28 14:18:39 +00:00
pk f845a339ac Enable VLAN encapsulation. 2003-10-16 07:20:54 +00:00
uwe a0a4638c6f Get rid of the disgusting struct apc_dma *dma = NULL; hack now that we
have proper definitions for offsets of APM DMA registers.

NULL out round_buffersize and round_blocksize in audio_hw_if.  We
don't seem to have any special requirements and audio(9) already
provides enough rounding.
2003-09-10 11:45:45 +00:00
mrg 9e599bdb11 change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function.  this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing.  testing by martin@
2003-08-27 15:59:49 +00:00
uwe bb09aff859 Undo previous as it broke things.
There are some scattered implicit RASTERCONSOLE dependencies,
so there should be a better way.
2003-08-25 17:50:22 +00:00
uwe 65aeb1d742 #include "opt_rcons.h" 2003-08-24 17:31:59 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
pk 184c0df1a9 Get machine/dev/sbusvar.h for SUN4D too. 2003-08-01 12:21:59 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 28c230cff5 More changes for providing lwpid for ktrace (sparc GENERIC built) 2003-06-29 09:56:29 +00:00
wiz 1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
martin dc09fa82ac Fix attachment for sparc64 systems (missing bus_space_vaddr).
Patches submitted in PR 21188.
2003-04-24 05:06:32 +00:00
pk 7f7fb5aa9c Back out rev. 1.26; I forgot about the Javastations.. 2003-02-27 13:33:23 +00:00
pk db07312961 Some machine have a `SUNW,CS4231' node, but no actual hardware. It seems
these can be identified by a `serial' device type.
From Julian Coleman.
2003-02-27 13:30:39 +00:00
tsutsui 29849ba3b6 hz -> Hz 2003-02-22 05:06:36 +00:00
hannken 9ec14301ad Remove unneeded #include's.
Approved by: Paul Kranenburg <pk@netbsd.org>
2003-02-06 16:20:05 +00:00
martin 63f12be4f3 Add <sys/lock.h> include for ncr53c9xvar.h. 2003-02-06 15:21:21 +00:00
martin 9da7636a93 Add SUN4U magic to make nell work without things like WI_AT_BIGENDIAN_HACK.
XXX - need to move this (as well as the equivalent sparc stuff added
recently) outa here into sbus_machdep or something. We should not need
to know details of the actual bus_space implementation here.
2003-01-07 20:39:19 +00:00
martin 6833c24639 Separate the sbus bus_space_tag_t used for access to nell hardware from
the self constructed little endian pcmcia bus_space_tag_t used for the
client drivers.
2003-01-03 13:28:54 +00:00
mrg 7bd617d237 part one of bus_space(9) fixes to enable bus spaces to override the
bus_space_{read,write}_[1248]() functions, which will allow 16-bit
PCMCIA support to work without additional hacks in MI drivers.
this option is not enabled yet.
2003-01-03 11:57:45 +00:00
martin 12da8a0066 Call interrupt handlers from a soft interrupt to decouple them from the
(sometimes excessive) SPL assigned by the firmware to the sbus interrupt.
Protect access to hardware by splhigh().
2003-01-02 20:01:57 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
jdolecek a80733a697 fix typo in QE_CR_STAT_BITS - bit indication for EDEFER was wrong
Reported in kern/19557 by Ron Roskens
2002-12-25 08:24:30 +00:00
pk 456e1ad2d2 Establish high-level interrupt with IPL_SERIAL. 2002-12-17 08:32:12 +00:00
pk 725a6aebf7 Remove the `flags' argument from bus_intr_establish(). 2002-12-10 13:44:47 +00:00
pk db6d8afe02 bus_intr_establish() signature change.
The additional `fast trap' argument is ignored in these drivers.
2002-12-10 12:21:02 +00:00
pk 7007959dc1 Switch to softintr(9). 2002-12-10 12:17:35 +00:00
christos 514f7047e4 si_ -> sel_ 2002-11-26 18:49:40 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
martin de956cbcda Only use one interrupt handler for both status changes and pcmcia IO
intterupts. No more races between the two interrupt handlers, without any
locking, and the driver becomes a bit simpler too.

Use the last bit of the config flags to select between the first and the
second sbus interrupt level the firmware has assigned to us.
2002-10-10 22:23:16 +00:00