Commit Graph

448 Commits

Author SHA1 Message Date
yamt 6623bf87ee - include kauth.h for kauth_authorize_generic.
- wrap a long line.
2006-05-15 09:25:09 +00:00
elad 2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00
skrll a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +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
thorpej c8dd740fd0 Use ANSI function decls, apply static. 2006-03-31 17:39:33 +00:00
he 4fd5d495b6 Correct typo. 2006-03-31 07:34:31 +00:00
thorpej 516792c317 Use device_private() more. 2006-03-30 18:16:20 +00:00
thorpej 6ecb4ef75f Liberally apply static. 2006-03-30 18:14:37 +00:00
thorpej 07c30f824f Use device_private(). 2006-03-30 16:09:28 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
yamt 6bba73019a use VM_PAGE_TO_PHYS macro. 2005-12-08 22:41:44 +00:00
kleink 3b3dbbe727 Fix AUDIO_DEBUG printf formatting of size_t; from Pavel Cahyna in
PR kern/32207.
2005-12-02 19:26:14 +00:00
drochner 46ed4b50c4 s/locdesc_t/int/g 2005-08-26 12:42:11 +00:00
drochner 096c3e1d2c kill some more simple submatch() functions, use config_stdsubmatch() 2005-08-26 10:13:05 +00:00
drochner fa3cb84d62 replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
2005-08-25 18:35:38 +00:00
he beb03e4d32 Add __UNVOLATILE() to a cast when calling memset() to appease -Wcast-qual. 2005-06-08 22:33:56 +00:00
drochner c7783422f3 avoid "volatile" cast-aways 2005-06-02 13:11:39 +00:00
drochner 286fe4b79f fix cast-qual fallout 2005-06-01 16:17:40 +00:00
christos 7cdea212c0 No 0x in front of %p... 2005-05-22 15:54:45 +00:00
perry 4910249674 regen 2005-02-27 15:34:22 +00:00
perry 3bdad9eec5 do not leave spaces at the end of stripped RCS Ids 2005-02-27 15:33:58 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
simonb 59864224e3 Remove some erroneous semicolons. 2005-02-26 12:51:16 +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
mhitch 4b076289c1 Change screen blanking to be like other *fb.c drivers (and to not call
sfb_screenblank() needlessly).
2005-01-02 20:43:23 +00:00
mhitch b603617fbc Fix and simplify incorrect check for screen blanking in WSDISPLAYIO_SVIDEO. 2005-01-02 20:41:20 +00:00
mhitch c2f973c445 Fix a 3 year old error which caused px_init() to fail. Fixes PR 28798. 2005-01-02 19:25:56 +00:00
yamt 18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
drochner 2578f8fc3c remove unused variable 2004-09-13 14:08:39 +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
drochner 5b0932cc68 kick out the ioasic offset check which happens in submatch() now 2004-08-26 18:07:12 +00:00
drochner 131be74c33 turn the (unused) ioasic_submatch() function into something useful, use
the locator passing variant of config_found(), get rid of the macros
hiding cfdata accesses and include "locators.h" from the .c file only
2004-08-26 18:06:20 +00:00
drochner 73286594a1 some cleanup: use the locator-passing variant of config_found(), get
the macros just hiding cfdata members out of tcvar.h and include
"locators.h" only in the .c file
2004-08-26 17:57:00 +00:00
mycroft bde8e6c1bb Clean up open/close. 2004-07-09 02:51:17 +00:00
yamt 9c627df799 remove redundant function prototypes to make this compilable after
snprintf changes.
2004-04-27 12:35:26 +00:00
itojun aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
wiz 85746c6759 Spell interrupt with two rs. From Peter Postma. 2004-02-24 15:16:04 +00:00
tsutsui 4664ac3ea2 - Add /* CONSTCOND */ where appropriate.
- Use SFBWRITE32() in recently added sfb_screenblank() too.
2003-12-20 09:17:28 +00:00
nisimura 8dc9a144ab - Minor coding modifications for VDAC register access.
- De-__P() this time.
Tested valid with 4MAXINE.
2003-12-20 07:10:00 +00:00
nisimura d2164550f9 - Use volatile designations for memory writes to prevent compiler
change fallouts.
- De-__P() this time.
Tested valid with DEC3000/300 and 4MAXINE.
2003-12-20 06:41:14 +00:00
ad 35a755ce3a - Restore the display to a sane state when leaving mapped mode.
- OR updates into sc_changed, and protect with spltty()/splx().
2003-12-17 03:59:32 +00:00
jmc 43bf89bfc6 Fixes from PR#23177. Various lint/logic fixes:
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing

Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
ad 57ed05ac29 Make this compile again. 2003-12-13 23:02:50 +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
chs 3b6d3c710c uninitialized variables 2003-10-27 07:07:34 +00:00
chs 7bd0896538 regen 2003-10-25 16:24:44 +00:00
chs ae220470c0 add some missing. uncomment some. alphabetize. 2003-10-25 16:24:30 +00:00
mycroft ef51dc08fc NULL -> 0 2003-10-23 23:52:16 +00:00