summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make it clear that the statement following the conditional is a NOP.mdodd2005-04-132-2/+4
|
* Follow i386's suit and include AGP support in the generic kernel.anholt2005-04-131-0/+2
|
* Define additional commands.mdodd2005-04-131-0/+15
| | | | Obtained from: Linux
* Whitespace cleanup.mdodd2005-04-135-33/+33
|
* Remove unnecessary dpt_free().mdodd2005-04-131-1/+0
|
* Implement SOUND_MIXER_INFO ioctl in compat layer.mdodd2005-04-131-3/+36
|
* Add support for O_NOFOLLOW and O_DIRECT to Linux fcntl() F_GETFL/F_SETFL.mdodd2005-04-132-0/+21
|
* Invert conditional and use continue to reduce nesting.mdodd2005-04-131-5/+5
|
* Add ISACFGATTR_HINTS flag to allow detection of a device that was createdmdodd2005-04-132-0/+3
| | | | as a result of the hints mechanism.
* Build cpufreq on ia64. The upcoming Montecito processor supports themarcel2005-04-131-0/+1
| | | | | | | | Enhanced SpeedStep (that is, a follow-up of it called Foxton). Until we actually have support for that, we build to catch regressions in the framework. Triggered by: njl
* Invert conditional and use continue to reduce nesting.mdodd2005-04-131-16/+16
|
* Bump __FreeBSD_version for LOCAL_CREDS, LOCAL_CONNWAIT.mdodd2005-04-131-1/+1
| | | | Requested by: marcus
* Provide a sysctl (net.link.tap.user_open) to allow unpriviligedmdodd2005-04-131-3/+12
| | | | | | | acces to tap(4) device nodes based on file system permission. Duplicate the 'debug.if_tap_debug' sysctl under the 'net.link.tap' hierarchy.
* Implement unix(4) socket options LOCAL_CREDS and LOCAL_CONNWAIT.mdodd2005-04-134-16/+129
| | | | | | | | - Add unp_addsockcred() (for LOCAL_CREDS). - Add an argument to unp_connect2() to differentiate between PRU_CONNECT and PRU_CONNECT2. (for LOCAL_CONNWAIT) Obtained from: NetBSD (with some changes)
* Consistently style function declarations in kern_malloc.c.rwatson2005-04-121-23/+7
| | | | MFC after: 3 days
* don't use C keyword register as CPP macro argument nameimp2005-04-121-2/+2
|
* Use PCPU_LAZY_INC() for cnt.v_{intr,trap,syscalls} rather than atomicjhb2005-04-1216-25/+25
| | | | operations in some places and simple non-per CPU math in others.
* Tidy vcnt() by moving a duplicated line above #ifdef and removing a uselessjhb2005-04-121-5/+2
| | | | variable.
* Use NULL rather than 0 in a couple of places.jhb2005-04-121-2/+2
|
* The memory operands to fldcw and ldmxcsr are inputs, not outputs.jhb2005-04-121-2/+2
|
* We have an asm version of bcmp(), so we could use it as well.cognet2005-04-122-2/+1
|
* The latest release of the FreeBSD driver (twa) forvkashyap2005-04-1238-31888/+36496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ware's 9xxx series controllers. This corresponds to the 9.2 release (for FreeBSD 5.2.1) on the 3ware website. Highlights of this release are: 1. The driver has been re-architected to use a "Common Layer" (all tw_cl* files), which is a consolidation of all OS-independent parts of the driver. The FreeBSD OS specific portions of the driver go into an "OS Layer" (all tw_osl* files). This re-architecture is to achieve better maintainability, consistency of behavior across OS's, and better portability to new OS's (drivers for new OS's can be written by just adding an OS Layer that's specific to the OS, by complying to a "Common Layer Programming Interface" API. 2. The driver takes advantage of multiple processors. 3. The driver has a new firmware image bundled, the new features of which include Online Capacity Expansion and multi-lun support, among others. More details about 3ware's 9.2 release can be found here: http://www.3ware.com/download/Escalade9000Series/9.2/9.2_Release_Notes_Web.pdf Since the Common Layer is used across OS's, the FreeBSD specific include path for header files (/sys/dev/twa) is not part of the #include pre-processor directive in any of the source files. For being able to integrate twa into the kernel despite this, Makefile.<arch> has been changed to add the include path to CFLAGS. Reviewed by: scottl
* Replace spl protection in rtcin() and writertc() with spinlocksmdodd2005-04-122-12/+12
| | | | using the existing clock_lock mutex.
* - Consistently protect against NULL dereference.mdodd2005-04-121-48/+58
| | | | - Simplify conditional logic to make code easier to read.
* Dot the i's:marcel2005-04-121-5/+7
| | | | | | | | | | | | | | | | | 1 Move the debug.clock_adjust_* sysctls to debug.clock.adjust_* to make it easier to get only the clock statistics. 2 Make the sysctls read-only [suggested by Marius]. 3 When determining the new clock adjustment, we checked for an error either larger than 12.5% or smaller than 12.5%. We left out an error of exactly 12.5%. For errors larger than 12.5% we adjust the clock reload value in such a way that the next clock interrupt would be early (as in premature). For errors less than 12.5% we stopped the adjustment. The current algorithm doesn't benefit from excluding an error of exactly 12.5%. Change the code to stop adjusting the clock if the error is *not* larger than 12.5% [suggested by Marius]. Discussed with: marius@
* honor new IEEE80211_KEY_GROUP key flagsam2005-04-122-1/+31
| | | | Reviewed by: Tai-hwa Liang
* Revise crypto api lightly to improve group key handling:sam2005-04-123-33/+44
| | | | | | | | | | | | | | | o don't pre-assign key index to the global key table entries so device has a chance to decide what to use o make ieee80211_crypto_newkey take the desired flags as an argument instead of wacking the key structure directly; this eliminates a bunch of code warts o add a new flag IEEE80211_KEY_GROUP to indicate a key is a WPA Group key so devices don't need to guess (temporarily add this flag in the ioctl code until we can get wpa_supplicant+hostapd updated) o shuffle IEEE80211_KEY_* bits to move flags used internally to the high nibble of the flags word Reviewed by: Tai-hwa Liang
* Unbreak the powerpc build by fixing some ATA constants that were renamed.ssouhlal2005-04-121-3/+3
| | | | Approved by: grehan (mentor)
* Big cleanup of resource code for pccard. Once coventry noticedimp2005-04-122-104/+30
| | | | | | | | | | problems here, it became clear we were being too complex. o Don't keep track of resources in two places o Use resource_list_purge instead of rolling our own o Just reassign the ownership of the resource, rather than freeing it and reallocating it. o Fix compile problems when sizeof(u_long) != sizeof(int)
* On amd64 int64_t != long long.sos2005-04-121-1/+2
|
* resource_list_purge: release the resources in this list, and purge theimp2005-04-122-0/+22
| | | | | | elements of this list (eg, reset it). Man page to follow
* Better use the right name for the VIA software RAID.sos2005-04-122-3/+3
|
* Add support for VIA Tech metadata as used on thier SATA parts.sos2005-04-122-42/+235
|
* Protect against recursive labels creation in simlar way as it is donepjd2005-04-121-6/+46
| | | | | | | | | | in BSD and MBR classes, ie. if provider below us uses the same metadata, don't create labels based on the metadata. This allows to create labels on geoms with rank != 1 without hacks. Tested by: Chris Elsworth <chris@shagged.org> on sparc64 OK'ed by: phk MFC after: 2 weeks
* rman_set_device() seems to have been omitted by mistake. Implement it.imp2005-04-122-0/+7
|
* Cleanup of resource allocation code after having my attention focused onimp2005-04-122-34/+61
| | | | | | | | this code: o rid is stored in the resource, so don't bother keeping track of it here. o Implement memory space o Don't try to activate 'memory card' CFEs. This is type memory, as opposed to the memory resource.
* - Remove unused include.jeff2005-04-121-1/+0
|
* - Differentiate two UPGRADE panics so I have a better idea of what's goingjeff2005-04-121-1/+3
| | | | on here.
* Use return value of resource_list_add to avoid a secondimp2005-04-121-7/+11
| | | | | | | | | | | | resource_list_find. Check to make sure that rle is not NULL and panic if it is (but it appears that resource_list_add already panics, so I'm not entirely sure it is necessary now). Add a test to make sure we have a interrupt resource when we're disabling it. This is also a cannot happen, but the extra care shoudln't hurt. Found by: Coventry tool via sam@
* Return the resource created/found in resource_list_add to avoid an extraimp2005-04-122-3/+5
| | | | | | | resouce_list_find in some places. Suggested by: sam Found by: Coventry Analysis tool.
* - Add the mising ASSERT_VOP_ELOCKED code in the !DEBUG_VFS_LOCKS case.jeff2005-04-121-1/+1
| | | | Pointy hat to: me
* Fix the handling of the UCS_RXSTOP flag so that it always tracksiedowse2005-04-121-5/+8
| | | | | | | | | | whether or not the receive pipe is stopped. This ensures that we do not attempt to start the same transfer twice, and it allows ucomstop() to skip the restarting of the read pipe if it was not originally running, such as when called indirectly from ucomreadcb(). PR: kern/79420 MFC after: 1 day
* Fix the same silly alloc mistake for nVidia and SiS as with VIA insos2005-04-111-4/+6
| | | | the previous commit.
* Fix the bug that caused SATA disks on VIA etc to fail attach.sos2005-04-112-4/+3
|
* In winx32_wrap.S, preserve return values in the fastcall and regparmwpaul2005-04-111-10/+12
| | | | | wrappers by pushing them onto the stack rather than keeping them in %esi and %edi.
* Add winx32_wrap.S to files.i386 for the NDISulator.wpaul2005-04-111-0/+1
|
* - Mark the VOPs that require exclusive locks. Those that aren't markedjeff2005-04-111-26/+26
| | | | | | | | | with E may be called with a shared lock held. This list really could be made per filesystem if we had any filesystems which differed from ffs in locking guarantees. VFS itself is not sensitive to this except where vgone() etc. are concerned. Sponsored by: Isilon Systems, Inc.
* - Enable ASSERT_VOP_ELOCKED and assert_vop_elocked() now that vnode_if.awkjeff2005-04-112-3/+3
| | | | | | uses it. Sponsored by: Isilon Systems, Inc.
* - Add the character "E" to the understood lock types. This meansjeff2005-04-111-0/+2
| | | | | | the VOP requires an exclusive lock. Sponsored by: Isilon Systems, Inc.
* Use comments after .endif to please make(1) with latest changes somux2005-04-111-2/+2
| | | | | that it's possible to build a kernel without getting flooded with thousands of warnings.
OpenPOWER on IntegriCloud