summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove left-over #ifdef alpha routines. They aren't used by any ofimp2006-01-011-5/+0
| | | | | our drivers, and don't appear to be necessary for GENERIC and LINT on the alpha. They don't belong in a MI header anyway...
* Fix another xruns counting logic, this time, for recording.ariff2006-01-011-6/+8
|
* Remove stray debug from p4 integration.imp2006-01-011-5/+1
|
* Unbreak kernel build.netchild2006-01-011-3/+3
| | | | | | | | A happy new year to all. Submitted by: Goran Gajic <ggajic@afrodita.rcub.bg.ac.yu>, bz Pointy hat to: netchild Appologies to: all
* Remove extra debugging that crept in with the integration from p4.imp2005-12-311-1/+1
|
* Remove K&R vestige. It is no longer necessary to concatenate stringsimp2005-12-311-2/+2
| | | | using /**/. A simple space will do.
* It is next year in Asia already, so jump the gun a little and commitimp2005-12-311-3/+3
| | | | | | | | | | the year bump. # If we behaved like book publishers, we'd do this in July. I can't find # a good reference for why they do it then, but it has been explained to # me that copyrights in the last 1/2 of the year expire as if they were # published in the following year. I can't confirm this info, but if you # have a pointer, please send it to me.
* MI changes:netchild2005-12-3119-159/+762
| | | | | | | | | | | | | | | | | | | | | | | | | | - provide an interface (macros) to the page coloring part of the VM system, this allows to try different coloring algorithms without the need to touch every file [1] - make the page queue tuning values readable: sysctl vm.stats.pagequeue - autotuning of the page coloring values based upon the cache size instead of options in the kernel config (disabling of the page coloring as a kernel option is still possible) MD changes: - detection of the cache size: only IA32 and AMD64 (untested) contains cache size detection code, every other arch just comes with a dummy function (this results in the use of default values like it was the case without the autotuning of the page coloring) - print some more info on Intel CPU's (like we do on AMD and Transmeta CPU's) Note to AMD owners (IA32 and AMD64): please run "sysctl vm.stats.pagequeue" and report if the cache* values are zero (= bug in the cache detection code) or not. Based upon work by: Chad David <davidc@acns.ab.ca> [1] Reviewed by: alc, arch (in 2004) Discussed with: alc, Chad David, arch (in 2004)
* Bump FreeBSD_Version for tv_sec change.trhodes2005-12-311-1/+1
| | | | Reminded by: kris
* Introduce a new sysctl variable:csjp2005-12-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | security.mac.biba.interfaces_equal If non-zero, all network interfaces be created with the label: biba/equal(equal-equal) This is useful where programs which initialize network interfaces do not have any labeling support. This includes dhclient and ppp. A long term solution is to add labeling support into dhclient(8) and ppp(8), and remove this variable. It should be noted that this behavior is different then setting the: security.mac.biba.trust_all_interfaces sysctl variable, as this will create interfaces with a biba/high label. Lower integrity processes are not able to write to the interface in this event. The security.mac.biba.interfaces_equal will override trust_all_interfaces. The security.mac.biba.interfaces_equal variable will be set to zero or disabled by default. MFC after: 2 weeks
* Add a new vendor ID for Personal Cummunication Systems. They make a nicemux2005-12-311-0/+1
| | | | | | | | USB HID device that allows to plug two PS2 controllers. This specific device doesn't work yet but will as soon as we support devices with multiple report IDs. MFC after: 3 days
* Add support for the Wacom Graphire 3 4x5. Like the Graphire 3, it has amux2005-12-314-9/+107
| | | | | | | | broken report descriptor. While I'm here, make all the other report descriptors const to match the newly added one. Obtained from: NetBSD MFC after: 1 week
* Add support for Xbox 360 gamepads. They are HID-capable devices, butmux2005-12-313-4/+149
| | | | | | | | | | lack a report descriptor and don't use the standard interface class. This patch works around these deficiencies so that the uhid(4) driver can recognize and use those broken devices. PR: usb/90141 Submitted by: Ed Schouten <ed@fxq.nl> (with minor mods from me) MFC after: 1 week
* Fix LOR #174.ariff2005-12-311-3/+10
| | | | Tested with: WITNESS, INVARIANTS and DIAGNOSTICS
* Fixing build bustage.avatar2005-12-311-1/+1
|
* Add hotplug support for Marvell chips.sos2005-12-301-15/+42
|
* Make RID2BAR actually return a number that can be plugged into PCIR_BAR()imp2005-12-301-1/+1
| | | | | | rather than a bitmask. Submitted by: ru@
* Remove now-obsolete printf warning.imp2005-12-301-7/+2
|
* Remove debug now that I've looped back the big changes into my p4 tree.imp2005-12-301-4/+0
|
* Expose pci_add_resources to the outside world, add a 'force' flag toimp2005-12-302-29/+63
| | | | | | | | | | force allocation of unallocated BARs (cardbus uses this to preallocate everything). Add a prefetchmask to allow for busses that get prefetch hints to set them. Addjust pci_add_map and pci_ata_maps to take a new force flag which pci_add_resources will pass in. Implement 'force' in pci_add_map. Write new value of allocated resource into the bar, if the allocation succeeded (we should have done this before, but with the new force the bug was very obvious).
* Move all of the resource allocation into the pci layer. The resourceimp2005-12-301-321/+15
| | | | allocation here just duplicated it (badly).
* The RID2BAR macro returns a number, not a bitmask. Fix this.imp2005-12-301-4/+6
| | | | Spotted by: ru, jhb
* Remove duplicate options (originals in sys/conf/NOTES).ru2005-12-301-2/+0
| | | | Reported by: fresh config(8)
* Add mcopywrap prototype to ip_compat.hguido2005-12-302-1/+1
| | | | Remove h323 proxy from ip_proxy (copyright issue)
* Improve memguard a bit:pjd2005-12-304-13/+112
| | | | | | | | | | | | | | | | | - Provide tunable vm.memguard.desc, so one can specify memory type without changing the code and recompiling the kernel. - Allow to use memguard for kernel modules by providing sysctl vm.memguard.desc, which can be changed to short description of memory type before module is loaded. - Move as much memguard code as possible to memguard.c. - Add sysctl node vm.memguard. and move memguard-specific sysctl there. - Add malloc_desc2type() function for finding memory type based on its short description (ks_shortdesc field). - Memory type can be changed (via vm.memguard.desc sysctl) only if it doesn't exist (will be loaded later) or when no memory is allocated yet. If there is allocated memory for the given memory type, return EBUSY. - Implement two ways of memory types comparsion and make safer/slower the default.
* Resolve conflictsguido2005-12-3021-509/+916
|
* - Retire BARBIT in favor of new PCI_RID2BAR.glebius2005-12-301-5/+5
| | | | - Fix build.
* This commit was generated by cvs2svn to compensate for changes in r153872,guido2005-12-3013-64/+41
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import IP Filter version 4.1.10guido2005-12-3035-651/+1053
| |
* | Disable frantic DMA update within few SNDCTL_DSP_* ioctl.ariff2005-12-301-4/+4
| | | | | | | | | | | | | | | | | | | | This should reduce huge playback / recording latency for applications that try to act smarter and manage their own buffering (XMMS, Skype, etc.). Note to Skype + via8xxx users: Remove previous hackish "hint.pcm.<unit>.via_dxs_disabled" from kernel hint and see whether this changes cure all those annoying sound issues.
* | Underruns counting logic should be based on bufhard free spaceariff2005-12-301-22/+6
| | | | | | | | | | and must be done after sndbuf_feed(), or any attempt to fill up bufhard. This should fix false underruns counter.
* | Add a bunch of ipod entries, one as suggested by Bryan Liesner. Weimp2005-12-302-0/+14
| | | | | | | | | | | | should likely fix this better... Submitted by: Bryan Liesner (ipod mini)
* | Few codec such as Conexant CX20468-21 does have this controlariff2005-12-301-0/+7
| | | | | | | | | | | | register, although the only usable part is the mute bit. Noticed by: Hans Petter Selasky <hselasky@c2i.net>
* | correct checking for turbo channels: rev 1.24 fixed static turbo channelssam2005-12-301-4/+4
| | | | | | | | | | | | | | | | but broke handling of the turboG channel; since we aren't ready to revamp the channel list just check for turboA channels for now so channel 6 is considered in auto mode Noticed by: gibbs
* | Retire BARBIT in favor of new PCI_RID2BAR.imp2005-12-292-5/+4
| |
* | Add a macro to map from BAR to rid # (inverse of PCIR_BARS).imp2005-12-291-0/+1
| |
* | Simplify the opening of the resources for cardbus cards. Before we'dimp2005-12-291-102/+53
| | | | | | | | | | | | | | | | | | | | | | | | try very hard to be perfect. However, these attempts broke down when there were large numbers of resources. We'd not be able to map them all. Instead, accept that we might pass more range to thse subbus than might be optimal be able to compute. However, there's little harm in this and it allows us to pass greater resources through. # it has been suggested that we allocate a fixed amount of resources # on attach and give it out upon request. This might not be a bad idea...
* | Print a warning when we miss vinactive() call, because of race in vget().pjd2005-12-291-0/+20
| | | | | | | | | | | | | | | | | | | | | | The race is very real, but conditions needed for triggering it are rather hard to meet now. When gjournal will be committed (where it is quite easy to trigger) we need to fix it. For now, verify if it is really hard to trigger. Discussed with: kan
* | This is the style-fix for my previous commit. Sorry for the delay, Icracauer2005-12-291-7/+1
| | | | | | | | forgot about it.
* | patch(1) and I aren't friends today. Axe a duplicate copy ofjhb2005-12-291-82/+0
| | | | | | | | | | | | the msleep_spin() function definition. Spotted by: pjd
* | Add a new function msleep_spin() which is a slightly stripped down versionjhb2005-12-292-0/+165
| | | | | | | | | | | | | | | | | | | | of msleep(). msleep_spin() doesn't support changing the priority of the thread while it is asleep nor does it support interruptible sleeps (PCATCH) or the PDROP flag. It does support timeouts however. It differs from msleep() in that the passed in mutex is a spin mutex. This means one can use msleep_spin() and wakeup() with a spin mutex similar to msleep() and wakeup() with a regular mutex. Note that the spin mutex in question needs to come before sched_lock and the sleepq locks in lock order.
* | Teach WITNESS_SAVE() and WITNESS_RESTORE() to work with spin locks insteadjhb2005-12-291-8/+18
| | | | | | | | of only sleep locks.
* | Fix a deadlock I introduced with the recently added printf to warn aboutjhb2005-12-291-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | spin locks that are not in the static order list. It is not safe to call printf while holding the witness spin mutex since the console drivers that back printf may need to use their own spin locks which would try to talk to witness when they were locked. Given this, it is possible for one CPU to lock a console driver lock (such as sio) which then tries to lock the witness lock while another CPU is doing the printf while holding the witness lock. Fix this by moving the printf outside of the witness lock. All other printf's in witness are already correct. MFC after: 3 days
* | correct (reversed) ms<->tu macrossam2005-12-291-2/+2
| | | | | | | | Reviewed by: apatti, kcyu
* | Sync the type (and size, compare mousestatus_t in /usr/include/sys/mouse.h)netchild2005-12-291-1/+1
| | | | | | | | | | | | | | of a variable according to the usage (after increasing the number of max buttons this may matter). Noticed by: flz
* | Add support for the HP 8200C/8250C/8290C scanners.netchild2005-12-292-0/+2
| | | | | | | | | | PR: 90467 Submitted by: Adam McDougall <mcdouga9@egr.msu.edu>
* | Add support for the Canon CanoSvan LIDE 25.netchild2005-12-292-0/+2
| | | | | | | | | | PR: 89509 Submitted by: David Gilbert <dgilbert@daveg.ca>
* | Fix some kind of "off by one"-error: the min or max sample rate thenetchild2005-12-291-2/+2
| | | | | | | | | | | | | | | | device is able to reproduce should be usable too instead of failing in such a case. PR: 89269 Submitted by: Don L. Belcher <don@siad.net>
* | Increment kobj_lookup_misses on a miss rather than decrementing it.jhb2005-12-291-1/+1
| | | | | | | | | | Otherwise, the miss count is actually -kobj_lookup_misses. Mostly a pedantic change as KOBJ_STATS isn't on by default.
* | Merge NetBSD rev. 1.61:netchild2005-12-291-1/+1
| | | | | | | | | | | | | | - Support more than 7 buttons for USB mice. Patch from NetBSD kern/30248. PR: 83353 Submitted by: Seán Farley <sean-freebsd@farley.org>
OpenPOWER on IntegriCloud