summaryrefslogtreecommitdiffstats
path: root/sys/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Merge ACPICA 20100428.jkim2010-04-2845-3908/+6034
|\
* | We don't need the definition for in_cksum repeated here since we getimp2010-04-141-1/+0
| | | | | | | | | | | | | | it from machine/in_cksum.h. This definition prevents us from using hand-tuned assembler versions of in_cksum. # this fixes the modules build on arm for ipfilter.
* | Update firmware for the 6000 series Intel cards to version 9.193.4.1.bschmidt2010-04-103-8142/+8182
| | | | | | | | | | Approved by: rpaulo (mentor) MFC after: 2 weeks
* | Merge ACPICA 20100331 (and four additional upstream patches).jkim2010-04-0228-566/+831
| |
* | Integrate OpenBSD rev 1.5 of x86emu.c.delphij2010-03-091-143/+205
| |
* | Since the interpreter slack mode is a tunable now, enable a local hack onlyjkim2010-03-091-6/+9
| | | | | | | | when it is set. Note the default behaviour does not change by this change.
* | Merge ACPICA 20100304.jkim2010-03-0573-986/+1402
|\ \ | |/
* | Merge DTC-d75b33af.raj2010-02-2810-0/+2980
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a split merge because of non-uniform licensing of the DTC package contents and the way these components will be used in the FreeBSD environment. The original DTC package is composed of the following two major pieces: 1. sys/contrib/libfdt (BSD [dual] license) 2. contrib/dtc (GPLv2) The libfdt component is going to be shared in all aspects of the environment: - /boot/loader - kernel - dtc (the device tree compiler proper, userspace tool)
* | Uuencode the rt2870 firmware into ascii like the other firmware blobs.thompsa2010-01-292-0/+225
| |
* | Add run(4), a driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices.thompsa2010-01-282-0/+39
| | | | | | | | | | This driver was written for OpenBSD by Damien Bergamini and ported over by Akinori Furukoshi.
* | Fix a new header inclusion.jkim2010-01-211-1/+1
| |
* | Merge ACPICA 20100121.jkim2010-01-21211-661/+794
| |
* | Fixes a firmware bug that in some devices (e.g. Netgear WG111T orweongyo2010-01-191-3050/+3139
| | | | | | | | | | | | | | | | TRENDnet TEW-504UB/EU) idProduct didn't be decreased after loading the firmware. Pointed by: Steven Friedrich <freebsd at insightbb.com> Reviewed by: sam
* | Fix array overflow.trasz2010-01-081-1/+1
| | | | | | | | Reviewed by: philip
* | Delete old firmware.rpaulo2009-12-292-0/+0
| |
* | iwn(4) update. Notable changes:rpaulo2009-12-296-9430/+23610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new firmware * untested support for 1000 and 6000 series * bgscan support * remove unnecessary RXON changes * allow setting of country/regdomain by enforcing channel flags read from the EEPROM * suspend/resume fixes * RF kill switch fixes * LED adjustments * several bus_dma*() related fixes * addressed some LORs * many other bug fixes Submitted by: Bernhard Schmidt <bschmidt at techwires.net> Obtained from: Brandon Gooch <jamesbrandongooch at gmail dot com> (LED related changes), Benjamin Kaduk <kaduk at mit dot edu> (LOR fixes), OpenBSD
* | Adapt OpenBSD pf's "sloopy" TCP state machine which is useful for Directdelphij2009-12-244-175/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Server Return mode, where not all packets would be visible to the load balancer or gateway. This commit should be reverted when we merge future pf versions. The benefit it would provide is that this version does not break any existing public interface and thus won't be a problem if we want to MFC it to earlier FreeBSD releases. Discussed with: mlaier Obtained from: OpenBSD Sponsored by: iXsystems, Inc. MFC after: 1 month
* | Merge ACPICA 20091214.jkim2009-12-1431-330/+859
| |
* | Merge ACPICA 20091112.jkim2009-11-1640-224/+1249
|\ \ | |/
* | Remove the explicit definition of inet_aton() as it was introduced as aattilio2009-11-121-103/+0
| | | | | | | | | | | | | | | | general function in r199208. Reported by: np Sponsored by: Sandvine Incorporated MFC: 1 week
* | Fix two memory leaks in error cases.brueffer2009-11-051-2/+7
| | | | | | | | | | | | | | PR: 138378 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Approved by: mlaier MFC after: 1 week
* | Updated iwn(4) driver supporting the newer series, 5000, 5150 and 5300.rpaulo2009-10-235-3437/+15430
| | | | | | | | Submitted by: Bernhard Schmidt <bschmidt at techwires.net>
* | Rewrite x86bios and update its dependent drivers.jkim2009-10-191-211/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not map entire real mode memory (1MB). Instead, we map IVT/BDA and ROM area separately. Most notably, ROM area is mapped as device memory (uncacheable) as it should be. User memory is dynamically allocated and free'ed with contigmalloc(9) and contigfree(9). Remove now redundant and potentially dangerous x86bios_alloc.c. If this emulator ever grows to support non-PC hardware, we may implement it with rman(9) later. - Move all host-specific initializations from x86emu_util.c to x86bios.c and remove now unnecessary x86emu_util.c. Currently, non-PC hardware is not supported. We may use bus_space(9) later when the KPI is fixed. - Replace all bzero() calls for emulated registers with more obviously named x86bios_init_regs(). This function also initializes DS and SS properly. - Add x86bios_get_intr(). This function checks if the interrupt vector is available for the platform. It is not necessary for PC-compatible hardware but it may be needed later. ;-) - Do not try turning off monitor if DPMS does not support the state. - Allocate stable memory for VESA OEM strings instead of just holding pointers to them. They may or may not be accessible always. Fix a memory leak of video mode table while I am here. - Add (experimental) BIOS POST call for vesa(4). This function calls VGA BIOS POST code from the current VGA option ROM. Some video controllers cannot save and restore the state properly even if it is claimed to be supported. Usually the symptom is blank display after resuming from suspend state. If the video mode does not match the previous mode after restoring, we try BIOS POST and force the known good initial state. Some magic was taken from NetBSD (and it was taken from vbetool, I believe.) - Add a loader tunable for vgapci(4) to give a hint to dpms(4) and vesa(4) to identify who owns the VESA BIOS. This is very useful for multi-display adapter setup. By default, the POST video controller is automatically probed and the tunable "hw.pci.default_vgapci_unit" is set to corresponding vgapci unit number. You may override it from loader but it is very unlikely to be necessary. Unfortunately only AGP/PCI/PCI-E controllers can be matched because ISA controller does not have necessary device IDs. - Fix a long standing bug in state save/restore function. The state buffer pointer should be ES:BX, not ES:DI according to VBE 3.0. If it ever worked, that's because BX was always zero. :-) - Clean up register initializations more clearer per VBE 3.0. - Fix a lot of style issues with vesa(4).
* | Merge ACPICA 20091013.jkim2009-10-1922-487/+1105
|\ \ | |/
* | Use __FBSDID to embed RCS ID.delphij2009-09-212-2/+6
| |
* | Collapase interrupt supporting functions to a new module, and switch fromdelphij2009-09-211-33/+0
| | | | | | | | | | | | | | | | | | | | x86emu to this new module. This changeset also brings a fix for bugs introduced with the initial x86emu commit, which prevents the user from using some display mode or cause instant reboots during mode switch. Submitted by: paradox <ddkprog yahoo com>
* | Canonify include paths for newly added files.jkim2009-09-114-9/+9
| |
* | MFV: r196804jkim2009-09-1176-2295/+5743
|\ \ | |/ | | | | Import ACPICA 20090903
* | - Port x86emu to FreeBSD.delphij2009-09-093-23/+47
| | | | | | | | | | | | | | - Connect x86emu to build. Tested with: make universe Submitted by: swell.k at gmail com
* | Import x86emu from OpenBSD as of OPENBSD_4_6.delphij2009-09-094-0/+8905
| |
* | Revert previous commit and add myself to the list of people who shouldphk2009-09-081-1/+0
| | | | | | | | know better than to commit with a cat in the area.
* | Add necessary include.phk2009-09-081-0/+1
| |
* | Fix argument ordering to memcpy as well as the size of the copy in themlaier2009-08-251-1/+1
| | | | | | | | | | | | | | | | (theoretical) case that pfi_buffer_cnt should be greater than ~_max. Submitted by: pjd Reviewed by: {krw,sthen,markus}@openbsd.org MFC after: 3 days
* | Rework global locks for interface list and index management, correctingrwatson2009-08-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | several critical bugs, including race conditions and lock order issues: Replace the single rwlock, ifnet_lock, with two locks, an rwlock and an sxlock. Either can be held to stablize the lists and indexes, but both are required to write. This allows the list to be held stable in both network interrupt contexts and sleepable user threads across sleeping memory allocations or device driver interactions. As before, writes to the interface list must occur from sleepable contexts. Reviewed by: bz, julian MFC after: 3 days
* | If we cannot immediately get the pf_consistency_lock in the purge thread,mlaier2009-08-192-24/+70
| | | | | | | | | | | | | | | | | | | | | | restart the scan after acquiring the lock the hard way. Otherwise we might end up with a dead reference. Reported by: pfsense Reviewed by: eri Initial patch by: eri Tested by: pfsense Approved by: re (kib)
* | Many network stack subsystems use a single global data structure to holdrwatson2009-08-021-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all pertinent statatistics for the subsystem. These structures are sometimes "borrowed" by kernel modules that require a place to store statistics for similar events. Add KPI accessor functions for statistics structures referenced by kernel modules so that they no longer encode certain specifics of how the data structures are named and stored. This change is intended to make it easier to move to per-CPU network stats following 8.0-RELEASE. The following modules are affected by this change: if_bridge if_cxgb if_gif ip_mroute ipdivert pf In practice, most of these statistics consumers should, in fact, maintain their own statistics data structures rather than borrowing structures from the base network stack. However, that change is too agressive for this point in the release cycle. Reviewed by: bz Approved by: re (kib)
* | Merge the remainder of kern_vimage.c and vimage.h into vnet.c andrwatson2009-08-018-14/+0
| | | | | | | | | | | | | | | | | | | | vnet.h, we now use jails (rather than vimages) as the abstraction for virtualization management, and what remained was specific to virtual network stacks. Minor cleanups are done in the process, and comments updated to reflect these changes. Reviewed by: bz Approved by: re (vimage blanket)
* | Build on Jeff Roberson's linker-set based dynamic per-CPU allocatorrwatson2009-07-148-39/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (DPCPU), as suggested by Peter Wemm, and implement a new per-virtual network stack memory allocator. Modify vnet to use the allocator instead of monolithic global container structures (vinet, ...). This change solves many binary compatibility problems associated with VIMAGE, and restores ELF symbols for virtualized global variables. Each virtualized global variable exists as a "reference copy", and also once per virtual network stack. Virtualized global variables are tagged at compile-time, placing the in a special linker set, which is loaded into a contiguous region of kernel memory. Virtualized global variables in the base kernel are linked as normal, but those in modules are copied and relocated to a reserved portion of the kernel's vnet region with the help of a the kernel linker. Virtualized global variables exist in per-vnet memory set up when the network stack instance is created, and are initialized statically from the reference copy. Run-time access occurs via an accessor macro, which converts from the current vnet and requested symbol to a per-vnet address. When "options VIMAGE" is not compiled into the kernel, normal global ELF symbols will be used instead and indirection is avoided. This change restores static initialization for network stack global variables, restores support for non-global symbols and types, eliminates the need for many subsystem constructors, eliminates large per-subsystem structures that caused many binary compatibility issues both for monitoring applications (netstat) and kernel modules, removes the per-function INIT_VNET_*() macros throughout the stack, eliminates the need for vnet_symmap ksym(2) munging, and eliminates duplicate definitions of virtualized globals under VIMAGE_GLOBALS. Bump __FreeBSD_version and update UPDATING. Portions submitted by: bz Reviewed by: bz, zec Discussed with: gnn, jamie, jeff, jhb, julian, sam Suggested by: peter Approved by: re (kensmith)
* | Remove build timestamps from the following files:cperciva2009-07-112-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /boot/kernel/hptrr.ko /etc/mail/*.cf /lib/libcrypto.so.5 /usr/bin/ntpq /usr/sbin/amd /usr/sbin/iasl /usr/sbin/ntpd /usr/sbin/ntpdate /usr/sbin/ntpdc There does not appear to be any purpose to having these timestamps, and they have the irritating consequence that the aforementioned files will be different every time they are rebuilt. After this commit, the only remaining build timestamps are in the kernel, the boot loaders, /usr/include/osreldate.h (the year in the copyright notice), and lib*.a (the timestamps on all of the included .o files). Reviewed by: scottl (hptrr), gshapiro (sendmail), simon (openssl), roberto (ntp), jkim (acpica) Approved by: re (kib)
* | Update to 3.6.2.2 firmware (latest w/o host-based power save support):sam2009-06-291-2121/+2098
| | | | | | | | | | | | | | | | | | | | | | o new tx ack queue (not used right now) o proxy-sta related changes (no proxy sta in driver) o explicit dwds ena/dis (needed only with proxy sta) o cleanup BA policy handling o new ampdu aggressive mode support o CFEnd use now controllable Approved by: re (kensmith)
* | Use proper form of gnu designated initalizers. This letsrdivacky2009-06-241-1/+1
| | | | | | | | | | | | | | clang compile this files. Approved by: ed (mentor) Silence from: harti (maintainer?)
* | Modify most routines returning 'struct ifaddr *' to return referencesrwatson2009-06-232-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than pointers, requiring callers to properly dispose of those references. The following routines now return references: ifaddr_byindex ifa_ifwithaddr ifa_ifwithbroadaddr ifa_ifwithdstaddr ifa_ifwithnet ifaof_ifpforaddr ifa_ifwithroute ifa_ifwithroute_fib rt_getifa rt_getifa_fib IFP_TO_IA ip_rtaddr in6_ifawithifp in6ifa_ifpforlinklocal in6ifa_ifpwithaddr in6_ifadd carp_iamatch6 ip6_getdstifaddr Remove unused macro which didn't have required referencing: IFP_TO_IA6 This closes many small races in which changes to interface or address lists while an ifaddr was in use could lead to use of freed memory (etc). In a few cases, add missing if_addr_list locking required to safely acquire references. Because of a lack of deep copying support, we accept a race in which an in6_ifaddr pointed to by mbuf tags and extracted with ip6_getdstifaddr() doesn't hold a reference while in transmit. Once we have mbuf tag deep copy support, this can be fixed. Reviewed by: bz Obtained from: Apple, Inc. (portions) MFC after: 6 weeks (portions)
* | After cleaning up rt_tables from vnet.h and cleaning up opt_route.hbz2009-06-233-3/+0
| | | | | | | | | | a lot of files no longer need route.h either. Garbage collect them. While here remove now unneeded vnet.h #includes as well.
* | All consumers of in_cksum.h have been properly #ifdefed already,bz2009-06-101-0/+2
| | | | | | | | | | so do not include the file either as it would give as an extra dependency on INET.
* | Rewrite OsdSynch.c to reflect the latest ACPICA more closely:jkim2009-06-081-0/+1
| | | | | | | | | | | | - Implement ACPI semaphore (ACPI_SEMAPHORE) with condvar(9) and mutex(9). - Implement ACPI mutex (ACPI_MUTEX) with mutex(9). - Implement ACPI lock (ACPI_SPINLOCK) with spin mutex(9).
* | After r193232 rt_tables in vnet.h are no longer indirectly dependent onbz2009-06-083-3/+0
| | | | | | | | | | | | | | | | | | the ROUTETABLES kernel option thus there is no need to include opt_route.h anymore in all consumers of vnet.h and no longer depend on it for module builds. Remove the hidden include in flowtable.h as well and leave the two explicit #includes in ip_input.c and ip_output.c.
* | Clean up FreeBSD-specific header file:jkim2009-06-081-6/+3
| | | | | | | | | | | | - Define ACPI_USE_DO_WHILE_0 to add do while(0) around return_*() macros. - Define __cdecl only for user land. It will never be used in kernel. - Remove __cli() and __sti(). They were deprecated long ago.
* | Import ACPICA 20090521.jkim2009-06-05211-16372/+25026
|\ \
| * | Do not install SSDT when DSDT is overriden by user.jkim2009-06-041-0/+15
| | |
| * | Trim unnecessary files from the import.jkim2009-06-0331-13100/+5
| | |
OpenPOWER on IntegriCloud