summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/gsc
AgeCommit message (Collapse)Author
2016-09-19Remove unused getdev() audio driver functions.Alexandre Ratchov
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()Alexandre Ratchov
methods from all audio drivers and from the audio_if structure as they are never called.
2015-11-24You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.Martin Pieuchot
2015-11-24The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.Martin Pieuchot
2015-09-14Fix more ifmedia64 fallout in the kernel. It's hiding everywhere...Stefan Sperling
2015-09-08sizes for free(), when known; ok semarieTheo de Raadt
2015-05-24Follow the recent pckbc@isa changes and always establish all the necessaryMiod Vallat
interrupts at pckbc attach time, and get rid of the `intr_establish' pckbc callback. Tested on hppa (gsckbc) and sgi (pckbc@hpc); not tested on sparc64 (pckbc@ebus) but this attachment was already behaving this way and its intr_establish callback was an empty function.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2014-10-31remove a duplicate pckbdvar.h include under NGSCKBD > 0Jonathan Gray
gsckbd was removed back in 2008 so this was never defined.
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2013-05-23Revert Active PS/2 support for now, until we find a solution suitableTobias Stoeckmann
for chipsets which stopped working. ok mpi
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-04-20more pckbd fallout, sighTheo de Raadt
2013-04-20Enable active PS/2 multiplexing if available.Tobias Stoeckmann
Supported for i386 and amd64 except SMALL_KERNEL. Based on Miod's former work on this subject. ok mpi
2012-08-10simplify pckbc_xt_translation()Alexandr Shadchin
* call only for set translation on (once in /sys/dev/pckbd.c) therefore we can delete unused code. * change behavior (more standard) - return zero on success ok miod@
2011-12-21Work-in-progress driver for the HP ``Audio1'' device found on the HP 9000/425eMiod Vallat
(hp300) and the HP9000/705 and 9000/710 (hppa). 8-bit mono, 8KHz, no surprise since it is based upon a digital phone chip. Tested on 425e only so far, and playback only; configured in, but disabled, on hppa kernels until there are positive test reports (I am not sure the interrupt assignment on hppa is correct). And now people no longer can joke about audio on hp300.
2011-09-16Fix a bunch of typos: manaul, monnitor, machiune, autload.Miod Vallat
2010-12-03removed slot argument of function pckbd_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok miod@, krw@
2010-11-28Remove unused gscbus bus_dma_tag_t.Miod Vallat
2010-07-15add two new members to structs audio_encoding and audio_prinfo.Jacob Meuser
for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
2010-04-29Currently pdc_scanbus() scans in reverse, which results in physical CPU0Joel Sing
attaching as cpu1 and physical CPU1 attaching as cpu0. Split the device scan into two parts - the first pass scans forward and attaches memory and CPUs, whilst the second pass scans in reverse attaching the remaining devices, thus preserving current semantics. Found the hard way whilst trying to spin up the secondary CPU on my j6750. ok miod@ kettenis@
2010-04-20more misuse of user.h and sysctl.hTheo de Raadt
2010-04-20Allow MD oosiop(4) attachment to override default values for a few of theMiod Vallat
chip initialization values (SCNTL0, DMODE, DWT, CTEST7). No functional change on hppa; required by another upcoming attachment.
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-07-16Implement pckbc_xt_translation() in gsckbc. Thus, we can attach pckbd instead ofMiod Vallat
gsckbd; the former will cause a proper translation page to be selected by the keyboard. Because of this, we no longer depend on the page the keyboard is left in by the PDC (page 2 for all machines but the PrecisionBook, which is in page 3), and there is no longer any need to use separate keyboard maps.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-04-21allow low level audio drivers to specify a default sample format,Jacob Meuser
instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
2008-03-21regenMiod Vallat
2008-03-21Add option WSKBD_NO_INTL_LAYOUTS to prevent inclusion of internationalMiod Vallat
keyboard layouts, instead of having SMALL_KERNEL imply this on alpha. No functional change. ok deraadt@
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-08-23First stab at a driver for the onboard Fast-Wide SCSI on the 735 and 755.Mark Kettenis
Only partly tested; works fine if there are no devices on the SCSI bus.
2007-07-15Delay switching to the real serial console until we attach the serial device.Mark Kettenis
The variety of different serial devices is just too big to make a decision up front. This should make the second serial port on four-digit B/C/J-class workstation work as a serial console too. ok miod@
2006-12-17Sync with pckbc.c r1.12:Miod Vallat
silence a debug message; from kili@outback.escape.de
2006-12-17sync with pckbd.c r1.8:Miod Vallat
go via pckbc_enqeue_cmd() in pckbd_enable() if on; fixes PR 4615
2006-12-05regenOtto Moerbeek
2006-07-20regenMichael Shalayeff
2006-07-20regenMichael Shalayeff
2006-05-29Regen (although this does not change anything for these keyboards).Miod Vallat
2006-05-20do not even match on unsupported hw (instead of return from attach); from 710Michael Shalayeff
2005-12-22Postpone the hil console detection logic to the first detection of a keyboard.Miod Vallat
On hp300, hil would claim console against dnkbd if no dnkbd was found at the time the loop is probed, even if the loop is empty. Because of this, plugging dnkbd later would not select it as console keyboard, which is really annoying on kernels without wsmux, such as hp300 RAMDISK. Now the first keyboard plugged will become the console keyboard, whatever its type. No functional change on hppa, since the console path gives a definite console device setting.
2005-12-13remove ad clause that got copied from older versions of the files; pto by jsg@Michael Shalayeff
2005-06-09it appears asp occupies more space than intially thought andMichael Shalayeff
audio wraps off the edge making troubles. make sure gsc attachment follows the amsk from the parents and also extend the asp's range to a full 512m. found by Graham Gower <graham.gower@gmail.com> on 735 testing by miod@ on 715
2005-05-12RegenMiod Vallat
2005-05-12Populate \t better in the output, for human readability; no change in theMiod Vallat
map themselves.
2005-05-09RegenMiod Vallat
2005-05-09Sort the output tables, and mention the rcsid of the converter script inMiod Vallat
the output as well.
2005-05-06regenMichael Shalayeff
2005-05-06s/pckbd_keydesc_precisionbook/gsckbd_keydesc_precisionbook/gMichael Shalayeff
2005-05-06regenMichael Shalayeff