summaryrefslogtreecommitdiffstats
path: root/sys/modules
Commit message (Collapse)AuthorAgeFilesLines
* Sound Mega-commit. Expect further cleanup until code freeze.ariff2009-06-071-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For a slightly thorough explaination, please refer to [1] http://people.freebsd.org/~ariff/SOUND_4.TXT.html . Summary of changes includes: 1 Volume Per-Channel (vpc). Provides private / standalone volume control unique per-stream pcm channel without touching master volume / pcm. Applications can directly use SNDCTL_DSP_[GET|SET][PLAY|REC]VOL, or for backwards compatibility, SOUND_MIXER_PCM through the opened dsp device instead of /dev/mixer. Special "bypass" mode is enabled through /dev/mixer which will automatically detect if the adjustment is made through /dev/mixer and forward its request to this private volume controller. Changes to this volume object will not interfere with other channels. Requirements: - SNDCTL_DSP_[GET|SET][PLAY|REC]_VOL are newer ioctls (OSSv4) which require specific application modifications (preferred). - No modifications required for using bypass mode, so applications like mplayer or xmms should work out of the box. Kernel hints: - hint.pcm.%d.vpc (0 = disable vpc). Kernel sysctls: - hw.snd.vpc_mixer_bypass (default: 1). Enable or disable /dev/mixer bypass mode. - hw.snd.vpc_autoreset (default: 1). By default, closing/opening /dev/dsp will reset the volume back to 0 db gain/attenuation. Setting this to 0 will preserve its settings across device closing/opening. - hw.snd.vpc_reset (default: 0). Panic/reset button to reset all volume settings back to 0 db. - hw.snd.vpc_0db (default: 45). 0 db relative to linear mixer value. 2 High quality fixed-point Bandlimited SINC sampling rate converter, based on Julius O'Smith's Digital Audio Resampling - http://ccrma.stanford.edu/~jos/resample/. It includes a filter design script written in awk (the clumsiest joke I've ever written) - 100% 32bit fixed-point, 64bit accumulator. - Possibly among the fastest (if not fastest) of its kind. - Resampling quality is tunable, either runtime or during kernel compilation (FEEDER_RATE_PRESETS). - Quality can be further customized during kernel compilation by defining FEEDER_RATE_PRESETS in /etc/make.conf. Kernel sysctls: - hw.snd.feeder_rate_quality. 0 - Zero-order Hold (ZOH). Fastest, bad quality. 1 - Linear Interpolation (LINEAR). Slightly slower than ZOH, better quality but still does not eliminate aliasing. 2 - (and above) - Sinc Interpolation(SINC). Best quality. SINC quality always start from 2 and above. Rough quality comparisons: - http://people.freebsd.org/~ariff/z_comparison/ 3 Bit-perfect mode. Bypasses all feeder/dsp effects. Pure sound will be directly fed into the hardware. 4 Parametric (compile time) Software Equalizer (Bass/Treble mixer). Can be customized by defining FEEDER_EQ_PRESETS in /etc/make.conf. 5 Transparent/Adaptive Virtual Channel. Now you don't have to disable vchans in order to make digital format pass through. It also makes vchans more dynamic by choosing a better format/rate among all the concurrent streams, which means that dev.pcm.X.play.vchanformat/rate becomes sort of optional. 6 Exclusive Stream, with special open() mode O_EXCL. This will "mute" other concurrent vchan streams and only allow a single channel with O_EXCL set to keep producing sound. Other Changes: * most feeder_* stuffs are compilable in userland. Let's not speculate whether we should go all out for it (save that for FreeBSD 16.0-RELEASE). * kobj signature fixups, thanks to Andriy Gapon <avg@freebsd.org> * pull out channel mixing logic out of vchan.c and create its own feeder_mixer for world justice. * various refactoring here and there, for good or bad. * activation of few more OSSv4 ioctls() (see [1] above). * opt_snd.h for possible compile time configuration: (mostly for debugging purposes, don't try these at home) SND_DEBUG SND_DIAGNOSTIC SND_FEEDER_MULTIFORMAT SND_FEEDER_FULL_MULTIFORMAT SND_FEEDER_RATE_HP SND_PCM_64 SND_OLDSTEREO Manual page updates are on the way. Tested by: joel, Olivier SMEDTS <olivier at gid0 d org>, too many unsung / unnamed heroes.
* Remove opt_mac.h generation for various kernel modules that no longerrwatson2009-06-0621-23/+19
| | | | | | require it. Submitted by: pjd
* move kernel ipfw-related sources to a separate directory,luigi2009-06-053-3/+3
| | | | | | | | | adjust conf/files and modules' Makefiles accordingly. No code or ABI changes so this and most of previous related changes can be easily MFC'ed MFC after: 5 days
* Import ACPICA 20090521.jkim2009-06-0512-23/+21
|
* add two prerequisites; if_zydreg.h and if_zydfw for dependency check.weongyo2009-06-041-1/+1
|
* driver for Marvell 88W8363 Wireless LAN controllersam2009-06-013-0/+56
|
* connect urtw(4) to the amd64/i386 build that it's not tested on the bigweongyo2009-06-011-1/+9
| | | | endian machines yet.
* Introduce support for cpufreq on PowerPC with the dynamic frequencynwhitehorn2009-05-312-0/+6
| | | | switching capabilities of the MPC7447A and MPC7448.
* fix xdrmem_control to be safe in an if statementkmacy2009-05-301-5/+0
| | | | | | | fix zfs to depend on krpc remove xdr from zfs makefile Submitted by: dchagin@freebsd.org
* g_part_ebr.c includes opt_geom.hmarcel2009-05-301-0/+1
|
* Add the kernel build glue for the experimental NFS subsystem thatrmacklem2009-05-284-0/+62
| | | | | | | | | | | | | includes support for NFSv4. The subsystem can optionally be linked into the kernel using the two options: NFSCL - the client NFSD - the server It is also built as three modules: nfscl - the client nfsd - the server nfscommon - functions shared by the client and server Approved by: kib (mentor)
* MFdevbranch 192944kmacy2009-05-281-4/+4
| | | | | | - add FreeBSD implementation of xdrmem_control needed by zfs - have zfs define xdr_ops using FreeBSD's definition - remove solaris xdr files from zfs compile
* Hook ubt and ubtbcmfw back up to the build.thompsa2009-05-273-11/+12
|
* ports urtw(4) for USB2. Additionally it supports a 8187B chipset weaklyweongyo2009-05-271-0/+10
| | | | that it needs more stabilization.
* Add the ksyms(4) pseudo driver. The ksyms driver allows a process tosson2009-05-262-0/+11
| | | | | | | | | | | | | | get a quick snapshot of the kernel's symbol table including the symbols from any loaded modules (the symbols are all merged into one symbol table). Unlike like other implementations, this ksyms driver maps memory in the process memory space to store the snapshot at the time /dev/ksyms is opened. It also checks to see if the process has already a snapshot open and won't allow it to open /dev/ksyms it again until it closes first. This prevents kernel and process memory from being exhausted. Note that /dev/ksyms is used by the lockstat(1) command. Reviewed by: gallatin kib (freebsd-arch) Approved by: gnn (mentor)
* Move opt_apic.h closer to the "XXX: for assym.s" comment.des2009-05-261-1/+4
| | | | | Suggested by: jhb MFC after: 1 week
* Add the OpenSolaris dtrace lockstat provider. The lockstat providersson2009-05-262-0/+2
| | | | | | | | | | adds probes for mutexes, reader/writer and shared/exclusive locks to gather contention statistics and other locking information for dtrace scripts, the lockstat(1M) command and other potential consumers. Reviewed by: attilio jhb jb Approved by: gnn (mentor)
* opt_apic.h is i386-only.des2009-05-261-2/+2
| | | | MFC after: 1 week
* MFp4 changes neccessary for NFSv4 ACLs support in ZFS. This is mostlytrasz2009-05-261-0/+1
| | | | | | | | | | | about removing a few #ifdefs and providing compatibility wrappers and VOP implementations to get and set an ACL; ZFS does ACL enforcement all by itself. Note that the VOPs are ifdefed out for now, so this change should be a no-op. Reviewed by: pjd
* Remove the unmaintained University of Michigan NFSv4 client from 8.xrwatson2009-05-222-47/+1
| | | | | | | prior to 8.0-RELEASE. Rick Macklem's new and more feature-rich NFSv234 client and server are replacing it. Discussed with: rmacklem
* update for r192468 (monitor mode changes)sam2009-05-211-1/+1
| | | | Submitted by: jkim
* Remove empty files and do nto try to build them.kan2009-05-181-3/+0
| | | | | | | Apparently, they are problematic for CTF users. PR: 119298 Submitted by: Julian H. Stacey
* connect upgt(4) to the build. It should work on all architectures.weongyo2009-05-121-1/+1
|
* rename xdr support files to avoid conflicts when linking in to the kernelkmacy2009-05-111-3/+3
|
* ports upgt(4) driver for USB2.weongyo2009-05-111-0/+10
|
* PowerPC does not, in general, have ISA sound devices or an ISA bus,nwhitehorn2009-05-101-1/+1
| | | | | so add PowerPC to list of platforms for which we don't want to depend on ISA.
* fix atomic.S rename and vimage breakagekmacy2009-05-092-4/+4
| | | | The latter was pointed out by Artem Belevich
* - rename atomic.S and crc32.c to avoid collisions when linking zfs in to the ↵kmacy2009-05-091-2/+2
| | | | | | | kernel - update Makefile - ifdef out acl_{alloc, free}, they aren't used by zfs and conflict with existing in-kernel routines
* Burn TTY ioctl bridges in compat layers.ed2009-05-081-1/+1
| | | | | | | | | I really don't want any pieces of code to include ioctl_compat.h, so let the ibcs2 and svr4 compat leave sgtty alone. If they want to support sgtty, they should emulate it on top of termios, not sgtty. The code has been marked with BURN_BRIDGES for a long time. ibcs2 and svr4 are not really popular pieces of code anyway.
* Add preliminary KTR(9) support to the linux emulation layer.dchagin2009-05-071-0/+3
| | | | | Approved by: kib (mentor) MFC after: 1 month
* Bring in Andrew Thompson's port of Sepherosa Ziehau's bwi driver forimp2009-05-031-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Broadcom BCM43xx chipsets. This driver uses the v3 firmware that needs to be fetched separately. A port will be committed to create the bwi firmware module. The driver matches the following chips: Broadcom BCM4301, BCM4307, BCM4306, BCM4309, BCM4311, BCM4312, BCM4318, BCM4319 The driver works for 802.11b and 802.11g. Limitations: This doesn't support the 802.11a or 802.11n portion of radios. Some BCM4306 and BCM4309 cards don't work with Channel 1, 2 or 3. Documenation for this firmware is reverse engineered from http://bcm.sipsolutions.net/ V4 of the firmware is needed for 11a or 11n support http://bcm-v4.sipsolutions.net/ Firmware needs to be fetched from a third party, port to be committed # I've tested this with a BCM4319 mini-pci and a BCM4318 CardBus card, and # not connected it to the build until the firmware port is committed. Obtained from: DragonFlyBSD, //depot/projects/vap Reviewed by: sam@, thompsa@
* add ralfwsam2009-05-011-0/+1
|
* Build sound modules on PowerPC.nwhitehorn2009-04-191-0/+1
|
* Garbage collect unbuildable and unusable non-MPSAFE network devicerwatson2009-04-166-71/+0
| | | | | | | | | | | drivers that depended on the historic IFF_NEEDSGIANT compatibility mechanism: ar(4) ray(4) sr(4) Discussed on: arch@
* Change nfsserver so that it uses the nfssvc() system call providedrmacklem2009-04-122-0/+10
| | | | | | | | | | | in sys/nfs/nfs_nfssvc.c by registering with it using the nfsd_call_nfsserver function pointer. Also, add the build glue for nfs_nfssvc.c optionally based on "nfsserver" and also as a loadable module. Submitted by: rmacklem Reviewed by: kib Approved by: kib (mentor)
* Add support file for 82599 in Makefilejfv2009-04-101-1/+2
| | | | MFC after: 2 weeks
* Add opt_kdtrace.h to fix standalone module build.jhb2009-04-061-1/+1
|
* connect uath(4) to the build. uath(4) should work on all architectures.weongyo2009-04-061-1/+1
|
* Remove usb_sw_transfer.[ch] which are now empty after r190735.thompsa2009-04-061-1/+1
|
* Add uath(4) wireless USB driver for Atheros AR5005UG and AR5005UXweongyo2009-04-041-0/+10
| | | | | | chipsets. Reviewed by: sam
* Remove ATH_SUPPORT_TDMA and use IEEE80211_SUPPORT_TDMA instead. Itsam2009-03-301-2/+2
| | | | | doesn't make much sense to configure driver support w/o net80211. Note this means ath now depends on opt_wlan.h.
* New PHY driver for the internal PHY found in the AX88790. There's aimp2009-03-301-1/+2
| | | | | number of quirks for this device, and this implements just the basics. The 2.5s powerdown recommended in the datasheet will be next...
* Import the gvinum work that have been done during and after Summer of Code 2007.lulf2009-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work have been under testing and fixing since then, and it is mature enough to be put into HEAD for further testing. A lot have changed in this time, and here are the most important: - Gvinum now uses one single workerthread instead of one thread for each volume and each plex. The reason for this is that the previous scheme was very complex, and was the cause of many of the bugs discovered in gvinum. Instead, gvinum now uses one worker thread with an event queue, quite similar to what used in gmirror. - The rebuild/grow/initialize/parity check routines no longer runs in separate threads, but are run as regular I/O requests with special flags. This made it easier to support mounted growing and parity rebuild. - Support for growing striped and raid5-plexes, meaning that one can extend the volumes for these plex types in addition to the concat type. Also works while the volume is mounted. - Implementation of many of the missing commands from the old vinum: attach/detach, start (was partially implemented), stop (was partially implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes with one plex of these organizations). - The parity check and rebuild no longer goes between userland/kernel, meaning that the gvinum command will not stay and wait forever for the rebuild to finish. You can instead watch the status with the list command. - Many problems with gvinum have been reported since 5.x, and some has been hard to fix due to the complicated architecture. Hopefully, it should be more stable and better handle edge cases that previously made gvinum crash. - Failed drives no longer disappears entirely, but now leave behind a dummy drive that makes sure the original state is not forgotten in case the system is rebooted between drive failures/swaps. - Update manpage to reflect new commands and extend it with some examples. Sponsored by: Google Summer of Code 2007 Mentored by: le Tested by: Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
* Add support for Phenom (Family 10h) to cpufreq.mr2009-03-281-1/+1
| | | | | | | Its a newer version provided by the author than in the PR. PR: kern/128575 Submitted by: Gen Otsuji annona2 [at] gmail.com
* Add in forgotten module ipmi_linux.ambrisko2009-03-261-0/+8
| | | | Found by: mlaier
* Add stuff to support upcoming BMC/IPMI flashing of newer Dell machineambrisko2009-03-262-0/+3
| | | | | | | | | | | | | | | | | | | | via the Linux tool. - Add Linux shim to ipmi(4) - Create a partitions file to linprocfs to make Linux fdisk see disks. This file is dynamic so we can see disks come and go. - Convert msdosfs to vfat in mtab since Linux uses that for msdosfs. - In the Linux mount path convert vfat passed in to msdosfs so Linux mount works on FreeBSD. Note that tasting works so that if da0 is a msdos file system /compat/linux/bin/mount /dev/da0 /mnt works. - fix a 64it bug for l_off_t. Grabing sh, mount, fdisk, df from Linux, creating a symlink of mtab to /compat/linux/etc/mtab and then some careful unpacking of the Linux bmc update tool and hacking makes it work on newer Dell boxes. Note, probably if you can't figure out how to do this, then you probably shouldn't be doing it :-)
* Move dtnfsclient.c in the cddl tree to nfs_kdtrace.c in the nfsclientrwatson2009-03-251-2/+2
| | | | | | | | directory, since it's under a BSD license, and this keeps NFS internals- aware tracing parts close to NFS. MFC after: 1 month Suggested by: jhb
* Revert unintended part of r190375.marius2009-03-241-1/+0
|
* Given that zfs.ko depends on opensolaris.ko also build the latter bymarius2009-03-241-0/+4
| | | | default on sparc64.
* As with ZFS use real atomic operations for sparc64.marius2009-03-241-1/+1
|
OpenPOWER on IntegriCloud