summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-2147-99/+99
| | | | Submitted by: Hans Petter Selasky
* Use enums for speed and rev data types.thompsa2009-05-2112-39/+39
|
* - rename usb2_mode to usb_mode [1]thompsa2009-05-2159-138/+138
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* update for net80211 rx api changesam2009-05-201-3/+1
|
* Revert last junk...imp2009-05-203-6/+5
|
* Revert junk from last commit. These are WIP and not ready (and don'timp2009-05-203-116/+0
| | | | match the description of the last commit).
* Last commit was in error, revert.imp2009-05-201-1/+1
|
* Overhaul monitor mode handling:sam2009-05-2029-572/+426
| | | | | | | | | | | | | | | | | | | | | | | | o replace DLT_IEEE802_11 support in net80211 with DLT_IEEE802_11_RADIO and remove explicit bpf support from wireless drivers; drivers now use ieee80211_radiotap_attach to setup shared data structures that hold the radiotap header for each packet tx/rx o remove rx timestamp from the rx path; it was used only by the tdma support for debugging and was mostly useless due to it being 32-bits and mostly unavailable o track DLT_IEEE80211_RADIO bpf attachments and maintain per-vap and per-com state when there are active taps o track the number of monitor mode vaps o use bpf tap and monitor mode vap state to decide when to collect radiotap state and dispatch frames; drivers no longer explicitly directly check bpf state or use bpf calls to tap frames o handle radiotap state updates on channel change in net80211; drivers should not do this (unless they bypass net80211 which is almost always a mistake) o update various drivers to be more consistent/correct in handling radiotap o update ral to include TSF in radiotap'd frames o add promisc mode callback to wi Reviewed by: cbzimmer, rpaulo, thompsa
* Slightly adjust copyright text.joel2009-05-201-1/+1
| | | | Approved by: matk
* Remove license clauses 3 and 4 as per rev. 1.65 of midi.c in NetBSD.joel2009-05-201-7/+0
| | | | Approved by: matk
* Remove license clauses 3 and 4 as per rev. 1.65 of auvia.c in NetBSD.joel2009-05-201-7/+0
|
* Remove license clauses 3 and 4 as per rev. 1.112 of uaudio.c and rev. 1.15 ofjoel2009-05-202-14/+0
| | | | uaudioreg.h in NetBSD.
* Remove license clauses 3 and 4 as per rev. 1.12 of cs4231reg.h in NetBSD.joel2009-05-201-7/+0
|
* We no longer need to use d_thread_t, migrate to struct thread *.imp2009-05-2020-45/+162
|
* Use defines for register offsets that do not change.thompsa2009-05-202-63/+29
| | | | Submitted by: Hans Petter Selasky
* - Add new register definitionsthompsa2009-05-202-10/+45
| | | | | | - Enable the controller and wait for the PLL to start Submitted by: Hans Petter Selasky
* The register shift is not needed on this controller.thompsa2009-05-201-3/+0
| | | | Submitted by: Hans Petter Selasky
* Fix NULL dereference on Promise SX4 controllers, while executing commandsmav2009-05-201-1/+2
| | | | | | | that do not require data transfer (FLUSHCACHE). Tested by: Magnus Kling <klingfon@gmail.com> MFC after: 1 week
* try to unsetup USB xfers before calling ieee80211_ifdetach() to fix aweongyo2009-05-202-2/+2
| | | | | | | | bug referencing a destroyed lock within TX callbacks during device detach. Submitted by: hps (original version) Tested by: Lucius Windschuh <lwindschuh at googlemail.com>
* pci(4) handles PCIM_CMD_INTxDIS so there is no need to poke thisyongari2009-05-201-12/+0
| | | | bit in driver.
* correct HAL_INT_BNR comment, this bit is mapped directly the h/w nowsam2009-05-191-1/+1
|
* add TBTT interrupt support; this was added in Griffin so consumers shouldsam2009-05-194-5/+15
| | | | | | check HAL_CAP_INTRMASK before using it NB: didn't test 11n parts yet so supported only for 5212-class parts
* minor cleanupsam2009-05-192-18/+14
|
* remove special handling for BNR; it is direct mapped to the harwdare sosam2009-05-196-16/+5
| | | | can be added to HAL_INT_COMMON except on the 5210 where it doesn't exist
* add HAL_CAP_INTRMASK to return the set of interrupts supported by the devicesam2009-05-197-1/+36
|
* Updated PCI ID's from the vendorscottl2009-05-191-1/+4
|
* Add cpu_flush_dcache() for use after non-DMA based I/O so that amarcel2009-05-181-3/+6
| | | | | | | | | | | | | | | | | | | | | possible future I-cache coherency operation can succeed. On ARM for example the L1 cache can be (is) virtually mapped, which means that any I/O that uses temporary mappings will not see the I-cache made coherent. On ia64 a similar behaviour has been observed. By flushing the D-cache, execution of binaries backed by md(4) and/or NFS work reliably. For Book-E (powerpc), execution over NFS exhibits SIGILL once in a while as well, though cpu_flush_dcache() hasn't been implemented yet. Doing an explicit D-cache flush as part of the non-DMA based I/O read operation eliminates the need to do it as part of the I-cache coherency operation itself and as such avoids pessimizing the DMA-based I/O read operations for which D-cache are already flushed/invalidated. It also allows future optimizations whereby the bcopy() followed by the D-cache flush can be integrated in a single operation, which could be implemented using on-chips DMA engines, by-passing the D-cache altogether.
* Remove unnecessary comments. 11A read/write is the same: its just theimp2009-05-181-2/+0
| | | | | | classic indirect register dance. Submitted by: ddkprog at yahoo not com
* Fix a typo from the original driver. We need to write ctrl2 into RFimp2009-05-181-1/+1
| | | | | | | | | | | register 0x52, not ctrl1. This appears to be a mistake in the bcm reverse engineering page, and has been corrected there. Tracing through the code, this is more in keeping with the "documented" register. Sephe thinks it looks interesting and may be worth fixing. :) Submitted by: ddkprog at yahoo com Reviewed by: Sepherosa Ziehau
* Remove extra parenthesis used in macros. These macros are not usedyongari2009-05-181-2/+2
| | | | in driver, though.
* Consistently use tab characters instead of spaces.yongari2009-05-182-25/+25
|
* style(9)yongari2009-05-181-76/+76
|
* s/u_int8_t/uint8_t/gyongari2009-05-182-46/+46
| | | | | s/u_int16_t/uint16_t/g s/u_int32_t/uint32_t/g
* style(9) - space after keyword.yongari2009-05-181-25/+25
|
* Remove return statement at the end of functions that return void.yongari2009-05-181-35/+0
|
* Remove trailling whitespaces.yongari2009-05-182-37/+37
|
* Remove register keyword.yongari2009-05-181-6/+6
|
* Use ANSI C declarations for all functions.yongari2009-05-181-96/+37
|
* The merge in r189699 reverted part of the work done in a previous commitadrian2009-05-181-5/+6
| | | | | | (r188036.) Re-revert that change so the Xen networking functions again.
* Disable some un-needed console debugging.adrian2009-05-181-1/+1
|
* DMA synchronization fixes:delphij2009-05-181-16/+13
| | | | | | | | | | | | | | | - In bce_rx_intr(), use BUS_DMASYNC_POSTREAD instead of BUS_DMASYNC_POSTWRITE, as we want to "read" from the rx page chain pages. - Document why we need to do PREWRITE after we have updated the rx page chain pages. - In bce_intr(), use BUS_DMASYNC_POSTREAD and BUS_DMASYNC_PREREAD when before and after CPU "reading" the status block. - Adjust some nearby style mismatches/etc. Pointed out by: yongari Approved by: davidch (no objection) but bugs are mine :)
* Correct types of PHY, per http://bcm-specs.sipsolutions.net/PHYVersioningimp2009-05-181-1/+2
| | | | | | | | # Note: The driver doesn't support either these PHY types, so this is # effectively a nop. Submitted by: "ddk" Obtained from: http://paradox.lissyara.su/bwi.diff
* Turns out that my BCM4318 has a PCI ID of 0x4319, which lead me toimp2009-05-181-10/+12
| | | | | | | | | | | | | | believe it was a BCM4319. However, it is the a/b/g variation of the BCM4318. The chip itself is labelled BCM4318EKFBG, and the board is BCM94318MKABG. Paradox's patch includes the type of 802.11 wireless for each card, but changes all the names (I don't think the latter is quite right). Import that part of the patch, but keep the current set of BCM names (with a minor tweak for the 4306 ones). I'll need to verify them via some other means. Obtained from: http://paradox.lissyara.su/bwi.diff (partially)
* add TRENDnet TEW-504UB/EUsam2009-05-172-0/+2
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
* fix 11a channel use; mark OFDM operation correctlysam2009-05-171-2/+2
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
* Add a missing break in a switch statement.brueffer2009-05-151-0/+1
| | | | | | Found with: Coverity Prevent(tm) CID: 4302 MFC after: 2 weeks
* The module name convention is foo, not if_foo.imp2009-05-154-15/+15
|
* Cleanup module declarations:imp2009-05-151-6/+4
| | | | | | Use "bwi" consistently No need to have separate cardbus attachment No need to declare a module version
* Turn consolectl into a simple device node, not a TTY.ed2009-05-151-20/+26
| | | | | | | | | | | Apart from the 16 virtual terminals, Syscons allocates two device nodes that should not really be TTYs, even though they are. One of them is consolectl. In RELENG_7 and before, these device nodes are used in single user mode. After I simplified input path, we only use this device node to call ioctl() on (moused, Xorg, vidcontrol). When you call ioctl() on consolectl, it will behave the same as being called on the first window.
* Some comment/space changes (FALLTHRU -> FALLTHROUGH, space after while).delphij2009-05-141-3/+3
|
OpenPOWER on IntegriCloud