summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Add an interface for drivers to be notified of changes to CPU frequency.njl2007-03-261-0/+19
| | | | | | | | | | | | | | | | | | cpufreq_pre_change is called before the change, giving each driver a chance to revoke the change. cpufreq_post_change provides the results of the change (success or failure). cpufreq_levels_changed gives the unit number of the cpufreq device whose number of available levels has changed. Hook in all the drivers I could find that needed it. * TSC: update TSC frequency value. When the available levels change, take the highest possible level and notify the timecounter set_cputicker() of that freq. This gets rid of the "calcru: runtime went backwards" messages. * identcpu: updates the sysctl hw.clockrate value * Profiling: if profiling is active when the clock changes, let the user know the results may be inaccurate. Reviewed by: bde, phk MFC after: 1 month
* Merge from vendor branch to fix tinderbox breakage.jkim2007-03-221-2/+4
|
* This commit was generated by cvs2svn to compensate for changes in r167817,jkim2007-03-221-1/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix tinderbox build breakage.jkim2007-03-222-3/+6
| | | | | | | | | | Note that it is committed on the vendor branch because it will be submitted to the vendor.
| * Remove files that are no longer needed or removed by vendor.jkim2007-03-225-3071/+0
| |
* | Update to reflect import of ACPI-CA 20070320.jkim2007-03-221-7/+6
| |
* | Resolve conflicts from import of Intel ACPI-CA 20070320.jkim2007-03-223-103/+143
| |
* | Resolve conflicts of unchanged files that are off the vendor branch.jkim2007-03-2221-1056/+1410
| |
* | Remove files that removed on the vendor branch.jkim2007-03-222-1549/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r167807,jkim2007-03-223-1522/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | This commit was generated by cvs2svn to compensate for changes in r167805,jkim2007-03-224-5/+21
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Add fixes for FreeBSD build that were submitted upstream.jkim2007-03-225-6/+22
| |
* | This commit was generated by cvs2svn to compensate for changes in r167802,jkim2007-03-22177-12462/+22966
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of Intel ACPI-CA 20070320jkim2007-03-22201-13627/+24503
| |
* | Teach pfsync(4) that its member interfaces may go away.bms2007-03-192-0/+50
| | | | | | | | | | | | | | | | | | This change partially resolves the issue in the PR. Further architectural fixes, in the form of reference counting, are needed. PR: 86848 Reviewed by: yar MFC after: 1 month
* | - Add Intel firmwares for Intel PRO/Wireless LAN 2100/2200/2915 cards in aflz2007-03-028-0/+27708
| | | | | | | | | | | | | | | | | | | | | | | | | | uuencoded format along with their respective LICENSE files. - Add new share/doc/legal directory to BSD.usr.dist mtree file. This is the place we install LICENSE files for restricted firmwares. - Teach firmware(9) and kmod.mk about licensed firmwares. Restricted firmwares won't load properly unless legal.<name>.license_ack is set to 1, either via kenv(1) or /boot/loader.conf. Reviewed by: mlaier, sam Permitted by: Intel (via Andrew Wilson) MFC after: 1 month
* | o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* | Clean up pfr_kentry_pl2 as well. This fixes a kernel panic in the vm.zonemlaier2007-01-011-0/+1
| | | | | | | | | | | | | | sysctl after unloading pf. Submitted by: Earl Lapus MFC after: 3 days
* | Various bpf(4) related fixes to catch places up to the new bpf(4)jhb2006-12-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | semantics. - Stop testing bpf pointers for NULL. In some cases use bpf_peers_present() and then call the function directly inside the conditional block instead of the macro. - For places where the entire conditional block is the macro, remove the test and make the macro unconditional. - Use BPF_MTAP() in if_pfsync on FreeBSD instead of an expanded version of the old semantics. Reviewed by: csjp (older version)
* | Work around a long standing LOR with user/group rules by doing the socketmlaier2006-12-291-0/+12
| | | | | | | | | | | | | | | | | | | | lookup early. This has some performance implications and should not be enabled by default, but might help greatly in certain setups. After some more testing this could be turned into a sysctl. Tested by: avatar LOR ids: 17, 24, 32, 46, 191 (conceptual) MFC after: 6 weeks
* | TCP Window scaling was being recognised but the recorded settings were beingdarrenr2006-12-241-19/+7
| | | | | | | | | | | | clobbered and thus effectively disabled. MFC after: 7 days
* | This commit was generated by cvs2svn to compensate for changes in r165182,sam2006-12-1335-123531/+118083
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Version 0.9.20.3:sam2006-12-1335-123531/+118083
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o remove os-specific glue code; it's now the responsibility of the driver o add wackelf utility for patching the ELF magic number on arm builds since noone can agree on how to mark a .o file as not having any floating point instructions o remove radar/dfs-related entry points; folks have finally decided how to support dfs w/o polluting the hal o properly recognize AR2424 chips (they were being rejected on attach despite being fully supported) o add HAL_CAP_RXORN_FATAL capability to control how RXORN errors are handled; previously RXORN was always treated as fatal because older chips required a reset; now we do not treat it as fatal for "newer chips" (noone seems to know what the cutoff is so this capability can be used to override the current guestimate) o HAL_CAP_RXTSTAMP_PREC capability to export the number of bits of precision for timestamp data returned in the rx descriptor o remove public exposure of the compression buffer; it is chip specific and never belonged in the public view o change definition of HAL_INT_GLOBAL from an enum member to a #define to workaround compilers that bitch about enum values that appear overflow 31 bits o add support for newer chips that can store the tkip mic key together with the cipher key in a single key cache entry o split tx/rx descriptor into a h/w section and a s/w portion; this permits storing the s/w area in cached memory when the h/w area is stored in uncached memory; this also shrinks memory use since only one status block is needed while multiple tx/rx descriptors may be required per frame o add final transmit series index to the transmit descriptor status so rate control algorithms don't need to grovel through h/w state to find it o remove ds_vdata field from the descriptor state as part of the radar changes o fix excessive stack usage for some 5212 rf backends o correct rfkill handling when the pin polarity is 0 true o correct handling of tsf wrap when reading 64-bit values MFC after: 1 month
| * | o move ath hal os glue code from the hal to the driver: this code wassam2006-09-183-661/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | part of the hal distribution early on when the hal was built for each os but it's been portable for a long time so move the os-specific code out (and off the vendor branch) o correct the copyright on ah_osdep.?; it was mistakenly given a restricted license and not a dual-bsd/gpl license o remove the module api definition as it was never used o fixup include paths for move of ah_osdep.h MFC after: 2 weeks
* | | Sweep kernel replacing suser(9) calls with priv(9) calls, assigningrwatson2006-11-067-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net>
* | | Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.hrwatson2006-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | begun with a repo-copy of mac.h to mac_framework.h. sys/mac.h now contains the userspace and user<->kernel API and definitions, with all in-kernel interfaces moved to mac_framework.h, which is now included across most of the kernel instead. This change is the first step in a larger cleanup and sweep of MAC Framework interfaces in the kernel, and will not be MFC'd. Obtained from: TrustedBSD Project Sponsored by: SPARTA
* | | Workaround bad locking design:oleg2006-10-051-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do not try to lock/unlock destroyed/non-existsing mutex. PR: kern/103569 Reviewed by: guido Approved by: glebius (mentor) Silence from: darrenr MFC: 2 week
* | | remove this from HEAD too since it got taken off the vendor branchsam2006-09-181-444/+0
| | |
* | | This commit was generated by cvs2svn to compensate for changes in r162413,sam2006-09-182-217/+0
| | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
* | | Introduce a new entry point, mac_create_mbuf_from_firewall. This entry pointcsjp2006-09-121-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exists to allow the mandatory access control policy to properly initialize mbufs generated by the firewall. An example where this might happen is keep alive packets, or ICMP error packets in response to other packets. This takes care of kernel panics associated with un-initialize mbuf labels when the firewall generates packets. [1] I modified this patch from it's original version, the initial patch introduced a number of entry points which were programmatically equivalent. So I introduced only one. Instead, we should leverage mac_create_mbuf_netlayer() which is used for similar situations, an example being icmp_error() This will minimize the impact associated with the MFC Submitted by: mlaier [1] MFC after: 1 week This is a RELENG_6 candidate
* | | Fix stateful filtering of loopback IPv6 traffic to an address not configuredmlaier2006-09-061-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | on lo0. While here fix a comment. PR: kern/102647 Reported by: Frank Steinborn Submitted by: suz (earlier version) MFC after: 3 days
* | | Resolve conflictsguido2006-08-1616-361/+501
| | | | | | | | | | | | MFC after: 2 weeks
* | | This commit was generated by cvs2svn to compensate for changes in r161351,guido2006-08-163-10/+23
|\ \ \ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | Import IP Filter 4.1.13guido2006-08-1621-402/+557
| | | |
* | | | The strstr() function is in the libkern now.pjd2006-08-121-22/+0
| | | |
* | | | Import from OpenBSD 1.168, dhartmei:mlaier2006-07-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix a bug in the input sanity check of DIOCCHANGERULE (not used by pfctl, but third-party tools). a rule must have a non-empty replacement address list when it's a translation rule but not an anchor call (i.e. "nat ... ->" needs a replacement address, but "nat-anchor ..." doesn't). the check confused "rule is an anchor call" with "rule is defined within an anchor". report from Michal Mertl, Max Laier. Obtained from: OpenBSD MFC after: 2 weeks
* | | | Revise network interface cloning to take an optional opaquesam2006-07-092-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parameter that can specify configuration parameters: o rev cloner api's to add optional parameter block o add SIOCCREATE2 that accepts parameter data o rev vlan support to use new api (maintain old code) Reviewed by: arch@
* | | | Make in-kernel multicast protocols for pfsync and carp work after enablingmlaier2006-07-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dynamic resizing of multicast membership array. Reported and testing by: Maxim Konovalov, Scott Ullrich Reminded by: thompsa MFC after: 2 weeks
* | | | Apply local modifications to make Unwind Express BETA 10 buildable andmarcel2006-07-0712-20/+92
| | | | | | | | | | | | | | | | usable in the FreeBSD kernel.
* | | | This commit was generated by cvs2svn to compensate for changes in r160160,marcel2006-07-074-1121/+0
| | | | | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
* | | | This commit was generated by cvs2svn to compensate for changes in r160157,marcel2006-07-0728-347/+1908
|\ \ \ \ | | | | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | | Import BETA 10 of HP's Unwind Express. This import does not containmarcel2006-07-0728-347/+1908
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | any modifications to make it build as part of the FreeBSD kernel. Now that the source appears to have stabilized, local changes will happen on HEAD and will therefore cause affected files to be pulled from the vendor branch.
* | | | | Fix pfsync w/o carp compilation.mlaier2006-06-161-0/+2
| | | | | | | | | | | | | | | | | | | | Submitted by: yar
* | | | | Fix byteorder of syncpeer and make it actually work.mlaier2006-06-141-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: glebius MFC after: 1 week
* | | | | reposition defines so things build on architectures where AH_REGOPS_FUNCsam2006-06-071-14/+14
| | | | | | | | | | | | | | | | | | | | is defined
* | | | | resolve merge conflictssam2006-06-051-9/+36
| | | | | | | | | | | | | | | | | | | | MFC after: 1 month
* | | | | This commit was generated by cvs2svn to compensate for changes in r159285,sam2006-06-0574-102663/+127118
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | | Version 0.9.17.2:sam2006-06-0575-102672/+127154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o define HAL_SOFTC, HAL_BUS_TAG, and HAL_BUS_HANDLE to be machine independent; this fixes portability issues with bsd systems o add ah_disable api for turning off operation of both MAC and PHY o add ah_getAntennaSwitch and ah_setAntennaSwitch api's for better control of antenna usage and diversity o add ah_setAckCTSRate and ah_setAckCTSRate for controlling tx rate of h/w generated frames o add ah_setBeaconTimers api for simpler setting of the beacon timer registers o remove ah_waitForBeaconDone api o add HAL_TXDESC_DURENA flag to enable h/w duration setting in tx descriptor o correct documentation of min/max tx power units (.5 dBm) o switch arm, mips, and powerpc builds to use functions for register read/write operations o fix sparc builds to not reference %g2 and %g3 registers o add public builds for SoC's MFC after: 1 month
* | | | | Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | unnecessary.
* | | | | Put debugging messages related to inconsistent ticket numbers under misc andmlaier2006-05-121-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wrap it __FreeBSD__ specific as I couldn't figure out which version of OpenBSD I got it from. Reported by: Scott Ullrich
OpenPOWER on IntegriCloud