summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/sound
Commit message (Collapse)AuthorAgeFilesLines
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-6/+3
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* machine/soundcard.h is now in the standard location - sys/soundcard.hpeter1999-09-042-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-36/+14
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* Simplify cdevsw registration.phk1999-05-311-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* This commit should be a extensive NO-OP:phk1999-05-301-3/+19
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* correct params for sndmmap(). Don't bogo-initialize fields we don'tphk1999-05-101-3/+2
| | | | understand.
* Fix some of the places where too much inside knowledge about major/minorphk1999-05-081-25/+24
| | | | layout and dev_t structure is being (ab)used.
* Fix a warning - make sure the register is read regardless of the debuggingpeter1999-05-061-1/+2
| | | | options.
* Add sufficient braces to keep egcs happy about potentially ambiguouspeter1999-05-065-15/+21
| | | | if/else nesting.
* Attempt to make the sound driver recompile, at least for LINT which haspeter1999-05-021-1/+1
| | | | | | the sscape/trix driver active, which (for some reason) disables the mpu401 driver, causing an undefined reference to mpuintr. This was broken with rev 1.79 (part of the PC98 nss driver commit).
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-0/+5
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* o sys/i386/include/soundcard.hkato1999-04-081-3/+2
| | | | | | | | | Reduce synth_info.name lenght for binary compatibility. o sys/i386/isa/sound/mpu401.c Reduce mpu device number info to avoid overflow of mpu_synth_info.name. Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Include nss.h only when PC98 is defined.kato1999-04-031-0/+2
| | | | Pointed out by: "Pierre Y. Dampure" <pierre.dampure@k2c.co.uk>
* o sys/i386/include/soundcard.hkato1999-04-027-134/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Sound Card ID for the nss(NEC PC-9801-86 Sound System) driver. Old name of this driver was pcm driver in FreeBSD 2.2.x. Fix lack of the length of the name member of the synth_info structure. (attach_mpu401 in sys/i386/isa/sound/mpu401.c requires 33 chars.) o sys/i386/isa/sound/dev_table.h Add the DMAbuf flags definition DMA_DISABLE. Add the nss driver entry. o sys/i386/isa/sound/dmabuf.c Add the DMA_DISABLE flag check in DMAbuf_outputintr and DMAbuf_inputintr to disable DMA control in FIFO only use (nss driver required). o sys/i386/isa/sound/local.h Add the nss driver entry. o sys/i386/isa/sound/mpu401.c Replace inb function in probe_mpu401 to mpu401_status macro. Wrap macro argument for above replace. Add I/O port maping macro for NEC PC-98x1 arch. Add delay in NEC PC-98x1 arch. o sys/i386/isa/sound/pcm86.c Change driver name to avoid name space conflict to new pcm driver. Fix NEC PC-9801-86 driver to work on RELENG_3 branch or latter. o sys/i386/isa/sound/sound_calls.h Fix the mpuintr definition. Add the nss driver entry. attach_nss, probe_nss, nssintr o sys/i386/isa/sound/soundcard.c Fix lack of the mpuintr registration. Add the nss driver entry. o sys/pc98/conf/files.pc98 Add the nss driver entry. Reviewed by: kato Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Added a used include. This file doesn't get tested by LINT becausebde1999-02-041-0/+2
| | | | | | it is null when trix is configured. Submitted by: Brian Feldman <green@unixhelp.org> but moved by me
* Include <sys/select.h> -- don't depend on pollution in <sys/proc.h>.bde1999-01-273-0/+5
|
* Removed the asm version of translate_bytes(). When both the Cbde1999-01-091-29/+0
| | | | | | version and the asm version are inlined, and everything is cached, the asm version is 1.75 times slower than the C version on P5's. On K6's, it is only 1.25 times slower.
* Don't put operands in clobber lists, since this is dubious for oldbde1999-01-091-4/+6
| | | | | | | | | | versions of gcc and broken for current versions of egcs. The asm here (for translate_bytes()) is now an interesting example of one that needs to be volatile to work. Fixed missing "memory" in the clobber list for translate_bytes(). Submitted by: "John S. Dyson" <dyson@iquest.net> but rewritten by me
* Part 2 of pcvt/voxware revival. I hope I have not clobbered any otherpeter1999-01-0180-0/+37053
| | | | | | | | | deltas, but it is possible since I had a few merge conflicts over the last few days while this has been sitting ready to go. (Part 1 was committed to the config files, but cvs aborted grrr..) Approved by: core
* Pre 3.0 branch cleanup sos#2: soundsos1998-12-2780-37053/+0
| | | | Superceded by the snd driver...
* Rename one of the two devfs_link's to devfs_makelink.eivind1998-12-101-7/+7
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-078-16/+10
| | | | and local variables, goto labels, and functions declared but not defined.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-049-16/+24
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Removed all `vector xxxintr' specifications. Interrupt handlers are nowbde1998-10-222-10/+10
| | | | configured in drivers.
* Fixed the ifdef for `uart' driver being present. The sound-driver-specificbde1998-10-221-1/+3
| | | | | | ifdef used in uart6850.c is bogus. Reported by: Paul Allenby <pallenby@mikom.csir.co.za>
* The previous change was much too simple to actually compensate forbde1998-10-221-1/+15
| | | | | braindamage in sound driver confiruration. Attempt to only reference interrupt handlers if their driver is configured.
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-222-3/+29
| | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato
* Fixed bogus spelling `nx*' of some `no*' devswitch functions.bde1998-08-201-2/+2
|
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-162-3/+4
| | | | integers. Don't forget to cast to (void *) as well.
* Use offsetof() to avoid some casts from pointers to integers (of abde1998-08-152-2/+6
| | | | possibly different size).
* Changed %n to %r in devfs name format strings. %n has almost gone away.bde1998-07-151-7/+7
|
* Don't cast pointers to longs in asm statements.bde1998-07-151-1/+1
| | | | | | These asm statments are not quite as pessimal as when I complained about them in rev.1.9 of audio.c. They seem to be only 40% slower than the C version on P5's and the same speed on K6's.
* document options to hardwire GUS irq/dmas...jmg1998-06-301-0/+3
|
* Don't declare isa device structs or isa interrupt handlers in <sys/conf>,bde1998-06-171-1/+3
| | | | | | | and don't depend on them being declared there. This will cause lots of warnings for a few minutes until config is updated. Interrupt handlers should never have been configured by config, and the machine generated declarations get in the way of changing the arg type from int to void *.
* Added used include of <i386/isa/isa_device.h> - don't depend onbde1998-06-171-0/+3
| | | | pollution in <sys/conf.h>
* This commit fixes various 64bit portability problems required fordfr1998-06-071-1/+1
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Oops, the previous commit should have changed `i386' to `__i386__',bde1998-05-011-2/+2
| | | | not `__i386'.
* Submitted by: Doug Ambrisko <ambrisko@whistle.com>julian1998-04-281-19/+35
| | | | make standard links for the first detected sound card.
* Add devfs support.eivind1998-04-231-2/+32
| | | | Submitted by: somebody whose name escapes me :-(
* PC-98 does not supports DMA automode lager than 65535 bytes.kato1998-04-211-0/+4
|
* Supports PC-98 again.kato1998-04-211-0/+6
|
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-175-8/+8
|
* Support compiling with `gcc -ansi'.bde1998-04-151-4/+4
|
* Replace direct access to time with getmicrotime().phk1998-03-291-4/+1
|
* Remove an ifdef (to get linker errors instead of compile errors in theeivind1998-03-151-3/+0
| | | | absence of 'controller snd0').
* Fixed staticization (the behaviour is undefined when something withbde1998-02-121-1/+1
| | | | external linkage is redeclared as static).
* Unstaticized.bde1998-02-121-2/+2
|
* Back out statification and restore a declaration that got lost.eivind1998-02-102-4/+8
|
* Un-staticize.peter1998-02-091-1/+1
|
OpenPOWER on IntegriCloud