Commit Graph

433 Commits

Author SHA1 Message Date
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
mycroft 56e88d0d24 NULL -> 0 2003-10-23 23:25:39 +00:00
tsutsui b8ecd4c7a4 Regen from tcdevs rev 1.18:
>- Move PMAGB-BA and PMAG-JA (which I have) out of "may be incorrect" entries.
>- Put driver name "tfb" for PMAG-JA (which will appear in future pmax-wscons).
2003-10-04 16:17:16 +00:00
tsutsui 6865a39a35 - Move PMAGB-BA and PMAG-JA (which I have) out of "may be incorrect" entries.
- Put driver name "tfb" for PMAG-JA (which will appear in future pmax-wscons).
2003-10-04 16:15:00 +00:00
tsutsui 2fe24b8c7f Use strlcpy() rather than strncpy() + `\0' termination. 2003-09-27 17:42:11 +00:00
tsutsui b299c2186f Remove casts and use %x in printf for tc_offset_t,
which is int32_t on both alpha and pmax.
2003-09-26 17:17:47 +00:00
mycroft c7d415bac1 Fix off-by-one problem in array size. 2003-09-26 16:00:12 +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
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
simonb 168c4e411f Fix 'struct lwp *' lossage. 2003-06-29 15:07:08 +00:00
wiz 1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
thorpej 52d8769e0b Use PAGE_SIZE rather than NBPG. 2003-04-01 02:01:43 +00:00
matt 7109fe9012 Add cn_halt and cn_flush entries to consdevs. (needed for dma-only console
devices).
2003-03-06 00:38:26 +00:00
tsutsui 29849ba3b6 hz -> Hz 2003-02-22 05:06:36 +00:00
matt e372842a1a deal with malloc_type fallout. 2003-02-04 05:24:51 +00:00
mhitch 0dec3c2159 Lance chip needs to be accessed in sparse address space for alpha. Fixes
Turbochannel Ethernet card on Alpha 3000 systems.
2003-01-22 08:06:21 +00:00