summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* reduce user-visible namespace to just what is neededsam2007-01-091-0/+2
| | | | MFC after: 2 weeks
* Capitalize thisimp2007-01-091-1/+1
|
* Julian says that he doesn't need the advertising clause, so out it goes.imp2007-01-091-5/+1
|
* Remove duplicated legacy SYS_RES_IRQ resources assignment.yongari2007-01-091-3/+1
| | | | Noticed by: jhb
* Remove California Regent's clause 3, per letterimp2007-01-09100-400/+14
|
* Remove silly n that crept inimp2007-01-091-1/+1
|
* bandaid to unbreak build (user code includes this file)sam2007-01-091-0/+1
|
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-09749-3005/+1
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Remove my "custom" locks that allow for lock acquire abort, they arealfred2007-01-082-177/+52
| | | | | | | | | | not needed if the proper ordering is done in attach and shutdown. Remove usage of if_timer/watchdog and roll my own by piggybacking off the tick() function. Use the new usb system to allocate task queues instead of using the system wide thread for taskqueues.
* Add the following functions to abstract away the creation of task threadsalfred2007-01-082-0/+39
| | | | | | | | | | | | | | | | | for usb. I hope that this will eventually be used for generic devices that need full fledged blocking threads for event processing. Create a taskqueue: void usb_ether_task_init(device_t, int, struct usb_taskqueue *); Enqueue a task: void usb_ether_task_enqueue(struct usb_taskqueue *, struct task *); Wait for all tasks queued to complete: void usb_ether_task_drain(struct usb_taskqueue *, struct task *); Destroy the taskqueue: void usb_ether_task_destroy(struct usb_taskqueue *);
* Factor out my copyrights + licenses from Charles D. Cranor andrwatson2007-01-084-10/+32
| | | | | | | | University of Washington copyrights, which include the advertising clause. Move $NetBSD$ into standard location for FreeBSD source files, and normalize formatting. MFC after: 3 days
* Factor out UCB and my copyrights from copyrights of Mike Mitchell;rwatson2007-01-0819-20/+501
| | | | | | | the former use a three-clause BSD license (per UCB authorization letter), whereas he uses a four-clause BSD license. MFC after: 3 days
* Replace (name) with Henric Vestergaard Draboel since it was clear thatimp2007-01-082-2/+2
| | | | | this was just cut N paste and '(name)' doesn't make any sense. If someone knows how to contact Mr. Draboel, please let me know.
* Sort copyrights together.rwatson2007-01-081-2/+4
| | | | MFC after: 3 days
* Resort copyrights and licenses in kern_acct.c: per UCB letter,rwatson2007-01-081-1/+27
| | | | | | | | the UCB license now excludes the advertising clause. I'm not interested in it either, so move my copyright. This leaves only a CGD copyright with the advertising clause. MFC after: 3 days
* Per Olivier Houchard, use the proper license for this file. Heimp2007-01-081-10/+10
| | | | | | | bogusly used the kvm_powerpc.c file as a template for the license, but then either wrote the code himself, or cribbed it from the kvm_i386 file. The only thing from the kvm_powerpc.c file was the license. Correct this mistake with his blessing.
* Fix potential node refcnt leak. If mbufs are q'd on ic_mgtq whensam2007-01-083-7/+31
| | | | | | | | | | the state machine clocks to INIT, node references are not reclaimed. Add a new routine ieee80211_drain_ifq that does this and use it instead of IF_DRAIN. Submitted by: Sepherosa Ziehau Obtained from: DragonFly MFC after: 1 month
* Break out my copyrights with our 2-clause BSD license from the UMichrwatson2007-01-086-5/+95
| | | | | | copyright, which while similar, is different. MFC after: 3 days
* Canonicalize copyright: use a date range rather than comma-delimitedrwatson2007-01-081-1/+1
| | | | | | list. MFC after: 3 days
* Canonicalize copyrights in some files I hold copyrights on:rwatson2007-01-083-3/+4
| | | | | | | | - Sort by date in license blocks, oldest copyright first. - All rights reserved after all copyrights, not just the first. - Use (c) to be consistent with other entries. MFC after: 3 days
* Remove the advertising clause. UCB did this some time ago, but theseimp2007-01-0818-72/+0
| | | | | | files were never updated to reflect that. MFC After: 2 days
* Correct several issues with rate set negotiation:sam2007-01-084-40/+46
| | | | | | | | | | | | | | | | | | | | o add IEEE80211_F_JOIN flag to ieee80211_fix_rate to indicate a station is joining a BSS; this is used to control whether or not we over-write the basic rate bit in the calculated rate set o fix ieee80211_fix_rate to honor IEEE80211_F_DODEL when IEEE80211_F_DONEGO is not specified (e.g. when joining an ibss network) o on sta join always delete unusable rates from the negotiated rate set, this was being done only ibss networks but is also needed for 11g bss with mixed stations o on sta join delete unusable rates from the bss node's rate set, not the scan table entry's rate set o when calculating a rate set for new neighbors in an ibss caculate a negotiated rate set so drivers are not presented with rates they should not use Submitted by: Sepherosa Ziehau (w/ modifications) Obtained from: DragonFly MFC after: 1 month
* o Changes to psycho_attach(): [1]marius2007-01-082-64/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clear the PCI AFSR and status error bits as previous errors still might be indicated. - Set up the PCI control and diagnostic registers according to the capabilities, workarounds, etc of/for specific revisions of the supported bridges. This includes no longer setting Hummingbird-/ Sabre-specific bits in the PCI control register but preserving what the firmware has initialized them to like OpenSolaris does. Previously we were setting these bits according to the example in the Sabre documentation, which I doubt is appropriate for all Sabre based designs and especially not for Hummingbirds. This also includes not enabling bus parking unless the firmware tells us to. - Set the PCI latency timer register as this isn't always done by the firmware. o Remove a redundant argument from psycho_set_intr() and in this function check the return value of bus_setup_intr(). [2] o Let psycho_setup_intr() return ENOMEM instead of 0 when it can't allocate memory for the interrupt wrapper stub and EINVAL instead of 0 if it can't find the interrupt vector in the interrupt map. o Add a workaround for a bug of the Sabre-APB-combination where it doesn't drain DMA write data for devices behind additional PCI-PCI bridges underneath the APB PCI-PCI bridge. This workaround (do things necessary in order to achieve a manual drain when coherency is required) is currently implemented in psycho_setup_intr() and psycho_intr_stub() (for easy MFC'ing) and therefore is only applied for interrupt handlers. This should be moved to psycho(4)-specific bus_dma_tag_create() and bus_dmamap_sync() methods, respectively, once this driver is converted to make use of BUS_GET_DMA_TAG(), so the workaround is also applied for polling(4) callbacks. [3] o Fix some minor style issues. Info from: OpenSolaris [1] Info from: Linux, OpenBSD, OpenSolaris [3] Suggested by: Coverity Prevent (CID 682) [2] MFC after: 1 month
* In ofw_pcibus_attach() skip dupe PCI devices reported by themarius2007-01-081-0/+2
| | | | | | | | | | | | | | | | | | firmware (mainly 'pmu' and its 'lomp' dupe found in a couple of later USII{e,i}-based machines) by checking whether a device with the same triple of bus number, slot and function already has been added. This is the simple yet effective approach introduced in OpenBSD some time ago, but which has the flaw that it assumes that the device and its dupe(s) found in the OFW device tree are equal or at least the one encountered first is in some way the more important one (this is the case with 'pmu' and 'lomp'; the 'pmu' node has couple of properties and children while the 'lomp' one misses most of these). If there's ever a device/dupe pair where we don't encounter the more important node first, we'll probably need to introduce a quirk list in order to add the desired device but prevent its dupe(s) from being added. MFC after: 1 week
* Fix a typo which blindly enabled TSO capability without respect toyongari2007-01-081-1/+1
| | | | chip type.
* Don't rely on GM_GP_CTRL register contents when mii(4) layer reportsyongari2007-01-081-19/+14
| | | | | | | | | | | link state changes. Instead, build new speed/duplex/flow-control settings from the values reported from PHY. This should fix speed/duplex/flow-control mismatches between GMAC and PHY which resulted in very poor Rx performance due to lots of out-of-order packet delivery. Reported by: Arno J. Klaassen <arno AT heho DOT snv DOT jussieu DOT fr> Tested by: Arno J. Klaassen <arno AT heho DOT snv DOT jussieu DOT fr>
* Fix LINT and ACPI_DEBUG builds and add print for use of flush cache inst.njl2007-01-081-5/+8
|
* - Garbage collect more alpha remnants.marius2007-01-085-1506/+2
| | | | - Fix a typo in a comment in boot_font.c.
* Initialize legacy SYS_RES_IRQ resources before attempting to use MSI.yongari2007-01-081-0/+1
| | | | | | | | This fixes legacy SYS_RES_IRQ resource allocation failure when MSI is disabled. Reported by: rrs Tested by: rrs
* Tell backing v_object the filesize right on it's creation.pav2007-01-071-1/+6
| | | | MFC after: 1 week
* Be more specific in ENXIO description:pjd2007-01-071-3/+4
| | | | | | - O_NONBLOCK flag has to be set, if it is not set, open(2) will wait for another process opening the fifo for reading, - Use O_WRONLY which implies that the file has to be opened _only_ for write.
* open(2) returns EROFS when O_CREAT is specified and the named file wouldpjd2007-01-071-0/+3
| | | | reside on a read-only file system.
* Garbage collect the code for auto-loading modules based on ISAPNP IDs,marius2007-01-072-381/+0
| | | | | | | which is #if'ed out since nearly eight years, along with its outdated database. Agreed by: ru (some months ago)
* Re-work Cx handling to be per-cpu and asymmetrical, fixing support onnjl2007-01-077-210/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modern dual-core systems as well. - Parse the _CST packages for each cpu and track all the states individually, on a per-cpu basis. - Revert to generic FADT/P_BLK based Cx control if the _CST package is not present on all cpus. In that case, the new driver will still support per-cpu Cx state handling. The driver will determine the highest Cx level that can be supported by all the cpus and configure the available Cx state based on that. - Fixed the case where multiple cpus in the system share the same registers for Cx state handling. To do that, added a new flag parameter to the acpi_PkgGas and acpi_bus_alloc_gas functions that enable the caller to add the RF_SHAREABLE flag. This flag could also be useful to other callers (acpi_throttle?) in the tree but this change is not yet made. - For Core Duo cpus, both cores seems to be taken out of C3 state when any one of the cores need to transition out. This broke the short sleep detection logic. It is disabled now if there is more than one cpu in the system for now as it fixed it in my case. This quirk may need to be re-enabled later differently. - Added support to control cx_lowest on a per-cpu basis. There is still a generic cx_lowest to enable changing cx_lowest for all cpus with a single sysctl and for ease of use. Sample output for the new sysctl: dev.cpu.0.cx_supported: C1/1 C2/1 C3/57 dev.cpu.0.cx_lowest: C3 dev.cpu.0.cx_usage: 0.00% 43.16% 56.83% dev.cpu.1.cx_supported: C1/1 C2/1 C3/57 dev.cpu.1.cx_lowest: C3 dev.cpu.1.cx_usage: 0.00% 45.65% 54.34% hw.acpi.cpu.cx_lowest: C3 This work was done by Stephane E. Potvin with some simple reworking by myself. Thank you. Submitted by: Stephane E. Potvin <sepotvin / videotron.ca> MFC after: 2 weeks
* Special case to support hard-coded configuration for building on Windows.kientzle2007-01-071-0/+3
|
* Document that we supported Intel PRO/100 VM Network Connection.delphij2007-01-071-1/+3
|
* Disable multichannel recording in snd_emu10kx module. Whith multichannelnetchild2007-01-071-1/+1
| | | | | | | | | | recording enabled some programs (audio/audacity from ports) can't correctly enumerate all /dev/dsp device. Note: previous commit did not enable some debugging stuff, my eyes did misread "#undef" as "#define". Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
* MFp4 (112646):netchild2007-01-071-1/+1
| | | | | | | | | Now (ok it's been a while...) that FreeBSD has RLIMIT_AS too, we can use it in the linuxolator instead of ignoring it. This fixes a LTP test. Submitted by: rdivacky
* MFp4 (112535):netchild2007-01-071-2/+0
| | | | | | | | | No need to lock prison in a case of linux_use26 because the int setting is atomic and process cannot leave jail. Submitted by: kib Reviewed by: jhb Requested by: rdivacky
* MFp4 (112534):netchild2007-01-072-7/+3
| | | | | | | | | Dont lock em in a case of just using em->shared->group_pid because the group_pid never changes. Submitted by: rdivacky Reviewed by: kib Glanced at by: jhb
* MFp4 (112499):netchild2007-01-071-0/+2
| | | | | | Protect em->shared with the lock in case of CLONE_THREAD. Submitted by: rdivacky
* MFp4 (112498):netchild2007-01-076-20/+20
| | | | | | Rename the locking flags to EMUL_DOLOCK and EMUL_DONTLOCK to prevent confusion. Submitted by: rdivacky
* Sort: powerpc comes after pc98.marcel2007-01-071-1/+1
|
* - POSIX mentions that EACCES can be returned when O_TRUNC is specifiedpjd2007-01-071-1/+18
| | | | | separately. Do the same. - Document when EPERM can be returned.
* Prefer "to be modified" over "to be opened for writing".pjd2007-01-071-1/+1
| | | | | | | | | | This is quite tricky situation, because we allow to open a file with O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open it for writing. EISDIR is also returned when we try to open a directory O_RDONLY|O_TRUNC, which is correct. POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.", we choose to accept it (Solaris did the same), that's why "to be modified" seems more accurate to me.
* MFi386: revision 1.646.nyan2007-01-071-0/+1
|
* Fix a few of the tests so that correct implementations actually pass them.das2007-01-071-6/+14
|
* Implement modfl().das2007-01-074-2/+104
|
* Declare the map entry created by kmem_init() for the range fromalc2007-01-071-1/+2
| | | | | VM_MIN_KERNEL_ADDRESS to the end of the kernel's bootstrap data as MAP_NOFAULT.
* Up the event class reporting from 10 (basically, nothing) to EVT_CLASS_INFO.scottl2007-01-071-1/+1
| | | | Submitted by: Doug Ambrisko
OpenPOWER on IntegriCloud