Commit Graph

515 Commits

Author SHA1 Message Date
rmind
c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
simonb
8b21752dcd KNF previous change. 2008-02-13 04:17:26 +00:00
dogcow
40aa5193f8 make it compile. 2008-02-13 02:11:42 +00:00
joerg
e69482d49d Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
dyoung
b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
martin
258a4b78cf With the new IPL world, things are easier for us: if we can get the
nell hardware interrupt handler run at IPL_VM, we can call the socket
drivers interrupt handler directly.
This is always possible on sparc64, but on sparc we might have to fall
back to the old softint bounce. Since this uses arbitrary IPLs, we
can not use the new softint_* for this - we'll have to use the old
sparc_softintr_* functions.
2008-01-06 02:29:58 +00:00
pooka
4e38160d4d Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
d37935697b Merge tty changes from the vmlocking branch. 2007-11-07 15:56:11 +00:00
ad
a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
ad
46ed8f7d77 Use the softint API. 2007-10-08 16:18:02 +00:00
martin
eebdcf6078 Add a ddb command table at first attach to register "mach esp". 2007-09-22 23:32:27 +00:00
macallan
a53919d5b0 clean up a little bit, while there let userland mmap the whole glint video
memory.
Note: this needs changes in the XF86 driver committed a few minutes ago.
2007-09-11 00:46:12 +00:00
dyoung
dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
macallan
f9794c16db add screen blanking support 2007-09-01 03:45:14 +00:00
macallan
2be61cb9fc attach a /dev/fb* so X can talk to the board 2007-08-30 04:18:18 +00:00
macallan
699639e68b add hardware cursor support 2007-08-28 00:21:43 +00:00
macallan
639b5a68a6 let userland mmap() the GLint framebuffer and make it visible when switching
to WSDISPLAYIO_MODE_MAPPED - so X with wsfb can run in 24bit colour
2007-08-27 02:03:15 +00:00
macallan
7863a2faed cleanup, fix some typos 2007-08-26 07:24:28 +00:00
macallan
09a01aa602 add a driver for Fujitsu AG-10e graphics boards
Features so far:
- use the blitter for scrolling and solid fills
- the usual wscons stuff, virtual consoles etc.
Things missing:
- /dev/fb* support
- XFree86 support although wsfb in 8bit should work
- hardware cursor support for X
- character drawing in hardware so we can run the blitter completely
  asynchronous
2007-08-26 00:39:39 +00:00
macallan
860afb1c25 make this compile (again?) on sparc64 by sprinkling bus_space_vaddr().
Needs testing on both sparc and sparc64 - I don't have a magma.
2007-08-12 17:53:01 +00:00
macallan
84b4b152a9 fix typo - fbsize is /height/ * stride. Doh. 2007-08-05 03:23:02 +00:00
macallan
7f13961be1 pull in mulaw with dbri
Although dbri supports mulaw and a-law in hardware we can unly use it in mono
so for 8bit stereo we need to use sw encoding
2007-07-20 22:23:08 +00:00
macallan
0d2dd3f5fa make this work with the onboard codec found on my SS20 2007-07-20 22:21:51 +00:00
macallan
002ad49155 - don't pretend to support 8bit stereo - the hardware can do it but not the
way we currently use it ( needs a 2nd pipe for each direction )
- 8bit mono a-law and u-law should work now
- add support for audio input
2007-07-12 22:58:50 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
mjacob
32f752a395 Remove some #if'd out dead code.
Put in the boundary limit for SBus/ISP dma engines (16MiB).
2007-07-07 00:04:10 +00:00
mjacob
f0b57d5f54 Major update to isp(4) driver to bring it in line with external sources.
The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.
2007-05-24 21:30:41 +00:00
macallan
7c906f3f93 return 100 in match() so we beat genfb 2007-04-11 05:01:39 +00:00
macallan
9b5f7f0162 add an sbus frontend fro genfb
in theory this should work on any SBus framebuffer
tested on various cgsix and p9100, needs to be tested on more hardware
2007-04-11 04:45:45 +00:00
macallan
2f4ccf79fa - add dummy input methods so we don't panic if someone tries to read
- add dummy input mixer controls
- restart tx DMA on PWR_RESUME
- power up on PWR_RESUME only if we really have to
- add an option to control wether to spin or sleep when waiting for the chip
  to switch between data and control mode
2007-03-14 05:40:35 +00:00
macallan
5b56050bcf whitespace police, some cleanup - no functional changes 2007-03-11 08:52:12 +00:00
macallan
2f1817f673 some more overhaul:
- use static consistently
- convert to auconv instead of pretending to support LE samples
2007-03-11 00:36:57 +00:00
macallan
d6f540f111 don't pull in stuff we don't actually use:
- nuke mulaw from dbri
- nuke rasops16 and rasops32 from pnozz
2007-03-11 00:35:32 +00:00
macallan
964f61e42e adjust some debug output verbosity and use aprint_*() 2007-03-10 18:42:37 +00:00
macallan
749b17a7c8 make the dbri driver work again
while there enforce some alignment rules, adjust some timeouts, retry when
probing the codec fails
2007-03-08 21:15:20 +00:00
mrg
a4960a24c9 fix fall out from caddr_t changes. 2007-03-04 22:12:43 +00:00
christos
fffc9c66c9 fix fallout from caddr_t changes. 2007-03-04 07:54:07 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
jdc
517cd3237d Allow this to compile with -DDEBUG: convert proc to lwp->l_proc. 2007-01-07 12:54:57 +00:00
jdc
9b64ec0143 Allow this to compile with -DDEBUG: convert proc to lwp->l_proc. 2007-01-07 12:32:29 +00:00
jdc
7bf256869d Add an explicit NULL for the card_detect function (that we don't have/need)
in struct pcmcia_chip_functions {}.
This now compiles again (adding -Wextra exposed this).

OK martin@.
2006-12-11 11:42:48 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
martin
381d97cf19 Snapshot of work in progress gem @ sbus attachement. Don't use at home
yet!
Thanks to Steve Rikli for providing hardware and test equipement,
and to uwe for a lot help understanding the hardware.
2006-11-24 13:23:32 +00:00
martin
c8982ceb2a Missing initializers 2006-10-15 20:50:29 +00:00
martin
c335701fe5 Add missing initializer 2006-10-15 19:43:45 +00:00
martin
61baadbc7f Add missing initializer 2006-10-15 19:29:10 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad
bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill
5b8b677431 PR# 29516: magma.c comments are wrong, also splhigh is excessive 2006-09-23 04:45:49 +00:00
dogcow
f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
ad
3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
blymn
3a0170518a Clean up bogus whitespace 2006-05-28 13:12:42 +00:00
yamt
441bc06826 include kauth.h for kauth_authorize_generic. 2006-05-15 11:17:55 +00:00
elad
2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
drochner
41a5bdfbb9 kill NULL initialisation of get/setborder 2006-04-06 12:22:05 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
thorpej
dbf31290b3 Use device_parent(). 2006-03-25 23:25:24 +00:00
macallan
b4978607ac keep the chip powered down when not in use on machines that support it
( like SPARCbooks ) - needs testing on other machines
tested on my SPARCbook 3GX
2006-03-09 20:44:18 +00:00
macallan
4e4b29e7e3 this should have been committed with p9100.*
add the vcons attribute to pnozz
2006-03-09 05:42:35 +00:00
macallan
a12ced4fd9 sprinkle #if NWSDISPLAY > 0 to make this compile cleanly without wscons again 2006-03-08 20:09:01 +00:00
macallan
8700623aff - use vcons
- enable the external VGA port when tctrl detects a monitor
2006-03-06 21:53:17 +00:00
kleink
1c977dd5bd Fix inverted device_is_a() logic in previous conversion. 2006-02-28 23:10:49 +00:00
thorpej
d1f18238ca Use device_is_a(). 2006-02-27 02:59:24 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
perry
3d4ed1fbc7 __inline__ -> inline 2005-12-24 23:41:33 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos
9f7f6692b9 proc -> lwp 2005-12-14 00:35:31 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
macallan
0ea32fbae1 Add hardware cursor support, needs testing. 2005-11-12 23:25:46 +00:00
martin
a332f6615a Use mstohz() for timeout calculations.
Avoid local stack addresses as tsleep identifiers.
2005-11-10 21:25:35 +00:00
bouyer
dfbaaaef48 ETHERCAP_VLAN_MTU is a flag for ec_capabilities, the size of the 802.1q
encaptulation header is ETHER_VLAN_ENCAP_LEN. Pointed out by der Mouse on
tech-kern.
2005-11-05 16:01:52 +00:00
martin
4daa98c618 Rename the wait channels (one was a copy&pasto, the other much too long) 2005-11-05 13:59:02 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
macallan
5d5d363c01 Updated license 2005-07-28 21:36:48 +00:00
macallan
71b0921a17 driver for the audio part of SUNW,DBRI ISDN/audio controllers 2005-07-16 18:58:49 +00:00
tsutsui
5304f91e7a Add const. 2005-06-04 04:40:57 +00:00
tsutsui
435d547a7c Add const. 2005-06-04 04:37:21 +00:00
tsutsui
b22c03af41 Fix a shadowing variable. 2005-06-04 04:35:27 +00:00
tsutsui
296114a214 Add const. 2005-06-03 22:06:24 +00:00
jdc
d71f5da715 Add const (catching up with additions to MI ddb code). 2005-06-01 21:24:05 +00:00
jdc
4612fcc60c Rename "delay" variable to avoid shadowing the "delay" from param.h. 2005-06-01 21:17:28 +00:00
christos
ed88e61d2f avoid shadow variables. 2005-05-30 22:17:47 +00:00
macallan
8f8a7a4e38 forgot to include rasops_glue.h 2005-05-16 15:16:43 +00:00
macallan
9efeaffa68 Added:
- wscons support
- acceleration
- virtual consoles
- colour
- made cg3 emulation optional for native XFree driver
2005-05-16 14:43:23 +00:00
macallan
5d7cb1a721 Added support for virtual consoles, colour and some code to determine the
usable amount of VRAM for XFree86
2005-05-16 14:29:11 +00:00
perry
f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
martin
eefe758c2d From Micahel Lorenz: wsdisplay support for cg6 2005-02-25 16:03:09 +00:00
perry
18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
kent
93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
kent
23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
thorpej
e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
yamt
18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
mycroft
38ce741470 Clear IOIE in settype(), too. Not that we currently change modes without
powering down the socket, but...
2004-08-11 00:59:40 +00:00
mycroft
d978001d30 Clear some more ICR0 bits on socket enable/disable. 2004-08-11 00:58:08 +00:00
mycroft
b9798ff4a2 Add a settype() function.
XXX Note that I haven't even compiled this, but any problems are likely to be
more straightforward than crashing with a null pointer dereference.
2004-08-11 00:55:38 +00:00
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