Commit Graph

344 Commits

Author SHA1 Message Date
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