Commit Graph

390 Commits

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