summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix if_vr's handling of vr_encap failures. 3 parts:silby2003-04-092-20/+18
| | | | | | | | | | | | | | - Don't bother setting OACTIVE when the descriptors are all full or there's a vr_encap failure, it doesn't help anything. - Correctly roll back on the descriptor list after a failure so as not to corrupt the list. - Add a missing VR_UNLOCK(). Without these changes, vr_encap failure (which is assured during a low mbuf situation) would result in the card locking until the watchdog could fire. MFC after: 1 week
* Sync with NetBSD.mdodd2003-04-091-1/+1
| | | | | | | | | | | | | | - Bump shared library version on libusbhid. - Retire libusbhid.h; it is called usbhid.h now. - hid_start_parse() takes a third argument. - hid_locate() takes a fifth argument. - hid_report_size() order of arguments changes. - Other changes, including formatting and whitespace. Bump __FreeBSD_version. This change will break all third party applications that rely on previous FreeBSD specific behavior.
* The fxp(4) driver is now working on sparc64 too!mux2003-04-081-1/+1
| | | | Tested by: jake
* Almost the finished article.phk2003-04-081-23/+276
| | | | | | | | | | | | Boost sample rate to 1.25 MSPS since that allows us to use a 5Mhz (/4) or 10Mhz (/8) external clock. Make the interrupt both MPSAFE and FAST, at 610 interrupts a second, and a max time to service of 5 msec, we brake for nobody. Use kernel thread to accumulate into the 25 possible wave signals. Use #ifdef _KERNEL to let .c file double as .h file defining the ioctls.
* - Pass a busdma tag and a busdma map to fxp_dma_wait() so thatmux2003-04-081-8/+13
| | | | | it can do the necessary bus_dmamap_sync() calls. - While I'm here, reorder arguments to match other functions.
* Add an XXX comment for the atomic operation in the __alpha__mux2003-04-081-1/+3
| | | | | case so that it doesn't confuse more people. Use the more correct atomic_clear_16() instead of atomic_clear_short().
* Remove some dead code.alc2003-04-081-8/+1
|
* Remove invalid cast to vm_offset_t to avoid truncating a physical addressjake2003-04-082-2/+2
| | | | | | | when doing pmap_kextract on a 2MB page. Spotted by: peter Sponsored by: DARPA, Network Associates Laboratories
* Fix breakage on sparc64.sos2003-04-081-2/+2
| | | | Note to self: always test even the smallest changes on all platforms.
* - Endian fixes.mux2003-04-081-5/+6
| | | | - 6 -> ETHER_ADDR_LEN.
* Use the new _ND macros to not include the description strings. If anyimp2003-04-081-40/+43
| | | | | | | | | | of the entries have a description, we'll use that to override the description that the pccard layer generates for us. This saves about 930 bytes in the module, so I feel it won't hurt the crowded boot disks.... # other modules to follow
* Create new _ND versions to allow one to not specify the description beimp2003-04-081-0/+5
| | | | stored in the table.
* Don't set the decription, since the pccard layer does that for us now.imp2003-04-081-10/+1
| | | | | Remove the duplicate entries that were there to disambiguate different cards that were the same, yet people wanted to have different dmesg.
* Introduce an M_ASSERTPKTHDR() macro which performs the very common taskdes2003-04-0831-66/+52
| | | | | | | of asserting that an mbuf has a packet header. Use it instead of hand- rolled versions wherever applicable. Submitted by: Hiten Pandya <hiten@unixdaemons.com>
* Fix the hangs people have been seeing. For some reason, themux2003-04-081-11/+7
| | | | | atomic operation change caused this, so backout it until I can figure out what's wrong with it.
* Remove COMPAT_FREEBSD4. It's impossible because FreeBSD 4 does notmarcel2003-04-082-2/+0
| | | | run on ia64 at all.
* Merged from kern_thread.c 1.113, avoid a panic in cpu_throw when the firstjake2003-04-081-0/+2
| | | | | | | thread of a multithreaded process exits. This unrelated and possibly wrong change was not mentioned in the commit message for kern_thread.c 1.113.
* Fix a long standing bug in handling the last part of a stripesos2003-04-082-7/+43
| | | | | | on "odd" size disks. Add printout of the RAID structure on verbose boot.
* Inherit blocked thread's context for upcall thread.davidxu2003-04-082-14/+10
|
* MFp4: when you can't allocate a resource, print a message, don't panic.imp2003-04-081-0/+19
|
* MFP4:imp2003-04-081-3/+21
| | | | | o don't access struct resource members directly. o Set a default device description based on the CIS name.
* u_int*_t -> uint*_timp2003-04-081-14/+14
| | | | -1 -> 0xffffffff
* Don't need to read this config register if we're just going toimp2003-04-081-2/+1
| | | | overwrite it in the next line.
* MFp4: Massively unbreak module loading/unloading:imp2003-04-081-62/+32
| | | | | | | | | | | | | | | | | | o Only complain about detached children that aren't pccard/cardbus. o Don't NULL out the pccarddev and cbdev devices. detach just disassociates the device and driver. It doesn't delete the child. o on driver added, just probe_and_attach the children. If there's any children attached, wakeup the device add/delete thread. o wakeup the add/delete thread with the correct cv_signal() rather than the bogus wakeup(sc). It used to be that we did a tsleep on sc in this thread, but switched to the more reliable cv stuff a while ago w/o changing this. o Remove bogus checks when reallocating memory for the registers. They weren't needed and turned out to be completely bogus. This lets me load/unload pccard with a pccard in a slot and have the child correctly detach/attach. This should help people that have wi in their kernel, but that kldload cbb and pccard, for example.
* Use vm_paddr_t for physical addresses.jake2003-04-0823-102/+102
|
* Quick fix so that the watchdog timer is not set unless packets aresilby2003-04-081-4/+5
| | | | | | | actually queued for transmission. Without this, a low memory situation would trigger false watchdog timeouts. MFC after: 1 week
* Fix up callers of xl_encap so that they handle a failure responsesilby2003-04-081-3/+10
| | | | | | | | | | | properly (likely due to mbuf exhaustion.) Previously, the driver got somewhat wedged. Also, remove the annoying messages printed every time xl_encap couldn't allocate a mbuf; they served no useful purpose, and just made an mbuf exhaustion situation more annoying. MFC after: 1 week
* Correct the maxsize and maxsegsz parameters for themux2003-04-071-7/+7
| | | | | bus_dma_tag_create() calls. Without this, fxp(4) + PAE would consume insane amounts of bounce pages.
* Add a PAE kernel config. This includes GENERIC through the config includejake2003-04-071-0/+107
| | | | | | | mechanism, and then excludes device drivers which have not been tested or are known to not work with more than 4G of ram. Sponsored by: DARPA, Network Associates Laboratories
* Add support for bounce buffers to _bus_dmamap_load_buffer, which is thejake2003-04-072-40/+126
| | | | | | | | | | | | | | | | | | | | | backend for bus_dmamap_load_mbuf and bus_dmamap_load_uio. - Increaes MAX_BPAGES to 512. Less than this causes fxp to quickly runs out of bounce pages. - Add an argument to reserve_bounce_pages indicating wether this operation should fail or be queued for later processing if we run out of memory. The EINPROGRESS return value is not handled properly by consumers of bus_dmamap_load_mbuf. - If bounce buffers are required allocate minimum 1 bounce page at map creation time. If maxsize was small previously this could get truncated to 0 and the drivers would quickly run out of bounce pages. - Fix a bug handling the return value of alloc_bounce_pages at map creation time. It returns the number of pages allocated, not 0 on success. - Use bus_addr_t for physical addresses to avoid truncation. - Assert that the map is non-null and not the no bounce map in add_bounce_pages. Sponsored by: DARPA, Network Associates Laboratories
* resyncimp2003-04-072-2/+9
|
* Remove an erroneous htole16(). The byte_count field in themux2003-04-071-1/+1
| | | | | struct fxp_cb_config is a 6-bit field, not a 16-bit integer as in struct fxp_cb_tx.
* Better fix for previous previous which still allows the 4megs of kva atjake2003-04-074-6/+6
| | | | | | | | | | | the top of the address space to be reclaimed. The problem is that with the APTD gone the mapable kernel address space runs right to the end of the 32 bit address space. As a max this is 0x100000000, which can't be represented in 32 bits, so we have to use ptd entry n-1 and pte offset n-1, instead of ptd entry n and pte offset 0. There's still 1 page we can't use, but we gain just under 4 megs of kva (8 megs with PAE). Sponsored by: DARPA, Network Associates Laboratories
* Minor cleanup of the ATA RAID code.sos2003-04-072-9/+9
|
* Third round of updates to the ATA driver.sos2003-04-076-62/+136
| | | | | | More DMA cleanups, including fix for breakage on older Promise controllers. Add more ways of getting to the ATA registers.
* Add ID for Kawasaki LSI Inc. USB-Ethernet, rev 1.00/2.02 adapter.murray2003-04-072-0/+2
| | | | | | PR: kern/50064 Submitted by: Scott Renfro <scott@renfro.org> MFC after: 3 days
* - Add PCI support (Adaptec AHA-2920/A,Future Domain TMC-18XX/3260).mdodd2003-04-077-340/+358
| | | | | | | - Reduce duplicated code. PR: 50427 Submitted by: Bob Bishop <rb@gid.co.uk>
* Fix typo.murray2003-04-072-2/+2
| | | | | | PR: kern/50504 Submitted by: Alex Semenyaka <alexs@snark.ratmir.ru> MFC after: 3 days
* Correct typos.murray2003-04-071-2/+2
| | | | | | PR: kern/50619 Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> MFC after: 3 days
* Retire these files.mdodd2003-04-072-189/+0
|
* Move a bus_dmamap_sync() to the correct place.mux2003-04-061-1/+1
|
* Because alpha can't access memory in 16-bit granularity,mux2003-04-061-7/+11
| | | | | | | | | | | we're using an atomic operation to clear the suspend flag in fxp_start(). Since other architectures may need the same thing, we want to do it all the time and not only in the __alpha__ case. However, we don't want to use atomic operations on 16-bit integers, because those may not be available on any architecture. We're thus faking a 32-bit atomic operation here. This patch also deals with endianness here.
* Sufficient access checks are performed by vmapbuf() that calling useracc()alc2003-04-061-19/+0
| | | | is pointless. Remove the calls to useracc().
* Revert the s/u_int/u_int8_t/ changes, we can't really use othermux2003-04-061-22/+22
| | | | | | integer types than int with bit-fields in a portable way. Prodded by: bde
* Remove the 32KB VHPT section from the kernel image. We don't reallymarcel2003-04-064-26/+4
| | | | | | | | | | | | use it because we allocate a VHPT based on the size of the physical memory and even if the allocated VHPT is 32KB, we don't use the in- image section for it. Since the VHPT must be naturally aligned, we save 48K on average (due to alignment). Consequently, we start off with the VHPT disabled (it is assumed the VHPT is disabled because the EFI loader runs without memory address translation and thus has no need to setup the VHPT). It's probably a good idea to explicitly disable the VHPT if we make the use of the VHPT optional.
* Sufficient access checks are performed by vmapbuf() that calling useracc()alc2003-04-061-5/+0
| | | | | | | | is pointless. Remove the call to useracc(). Don't reinitialize fields that are already initialized by getpbuf(). Reviewed by: tegge
* Initialize the PIIX timecounter in piix_attach(), which is called onlydes2003-04-061-8/+12
| | | | | once, instead of doing it in piix_probe(), which is called every time the PCI bus is rescanned.
* Remove a largely useless statistic (its kept elsewhere too).jake2003-04-061-3/+0
|
* Make the pmap stats writeable. It can be useful to clear them.jake2003-04-061-1/+1
|
* Add support for the CLIE 5.0 series of PDAsscottl2003-04-061-0/+1
|
OpenPOWER on IntegriCloud