summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* add Roel's copyright as he did the initial versionsam2009-02-031-0/+1
|
* honor any interface width (e.g. setup by the bus shim) and don't probe;sam2009-02-032-5/+89
| | | | this is needed for the moment to workaround bus shim issues
* reorg ioctl code to simplify adding new requestssam2009-02-031-16/+21
|
* fix compilation w/ AH_DEBUGsam2009-02-032-2/+2
|
* Delete fwohci_filt() as it is now unusedsbruno2009-02-031-1/+0
| | | | | Obtained from: Marius Strobl <marius@alchemy.franken.de> MFC after: 2 weeks
* Don't right-adjust the SMBus slave address for SSIF IPMI BMCs enumeratedjhb2009-02-031-1/+1
| | | | | via ACPI either. This is somewhat academic since we don't currently support such devices though.
* - Change ichsmb(4) to follow the format of all the other smbus controllersjhb2009-02-033-12/+16
| | | | | | | | | | | | | for slave addressing by using left-adjusted slave addresses (i.e. xxxxxxx0b). - Require the low bit of the slave address to always be zero in smb(4) to help catch broken applications. - Adjust some code in the IPMI driver to not convert the slave address for SSIF to a right-adjusted address. I (or possibly ambrisko@) added this in the past to (unknowingly) work around the bug in ichsmb(4). Submitted by: Andriy Gapon <avg of icyb.net.ua> (1,2) MFC after: 1 month
* - Keep the same sorting on usb_errstr_table as the enum.thompsa2009-02-032-43/+44
| | | | - Use c99 array initializers for usb_quirk_str so the indexing isnt critical.
* Add missing string table for the usb quirk enum.thompsa2009-02-032-3/+28
| | | | | Pointy hat: me Submitted by: rrs
* Adds support for SCTP checksum offload. This meansrrs2009-02-031-1/+12
| | | | | | | | | | | | | we, like TCP and UDP, move the checksum calculation into the IP routines when there is no hardware support we call into the normal SCTP checksum routine. The next round of SCTP updates will use this functionality. Of course the IGB driver needs a few updates to support the new intel controller set that actually does SCTP csum offload too. Reviewed by: gnn, rwatson, kmacy
* Move away from autogenerated enums, these values never change and its helpfulthompsa2009-02-035-124/+114
| | | | to be able to look them up.
* o Define some symbols for a few items that are bare constants in theimp2009-02-032-16/+34
| | | | | | code. o Use NULL in preference to 0 for a few pointers. o default to bus timing normal, like we default to bus_width_1.
* break out of loop if we run out of mbufskmacy2009-02-021-5/+6
|
* Goof, catch up to constant rename (I renamed it to match the overall PCIjhb2009-02-021-1/+1
| | | | | | style of having register offsets start with PCIR_* rather than PCI_*). Submitted by: rss
* Properly retun error core from kbdmux_modevent()emax2009-02-021-1/+1
| | | | | Reported by: Christoph Mallon < christoph -dot- mallon -at- gmx -dot- de > MFC after: 1 week
* - Add a new ioctl to /dev/pci to fetch details on an individual BAR of ajhb2009-02-022-4/+73
| | | | | | | | | | | | | | device. The details include the current value of the BAR (including all the flag bits and the current base address), its length, and whether or not it is enabled. Since this operation is not invasive, non-root users are allowed to use it (unlike manual config register access which requires root). The intention is that userland apps (such as Xorg) will use this interface rather than dangerously frobbing the BARs from userland to obtain this information. - Add a new sub-mode to the 'list' mode of pciconf. The -b flag when used with -l will now list all the active BARs for each device. MFC after: 1 month
* o make SAVE_CCK slightly less error prone by always writing the _flagsam2009-02-021-2/+3
| | | | | value used later by RESTORE_CCK o swap arg order in RESTORE_CCK to slightly reduce cost
* restore variable initialization removed in r187831; this brokesam2009-02-021-1/+1
| | | | | the horrible SAVE/RESTORE_CCK macros used by swan/nala cards to implement 11b using 11g
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-02-025-43/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps
* Some updates and bug squashing in the firewire stack.sbruno2009-02-015-69/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the interupt handler to a driver_intr_t type function as it was trying to do way to much for a lightweight filter interrupt function. Introduce much more locking around fc->mtx. Tested this for lock reversals and other such lockups. Locking seems to be working better, but there is much more to do with regard to locking. The most significant lock is in the BUS RESET handler. It was possible, before this checkin, to set a bus reset via "fwcontrol -r" and have the BUS RESET handler fire before the code responsible for asserting BUS RESET was complete. This locking fixes that issue. Move some of the memory allocations in the fc struct to the attach function in firewire.c Rework the businfo.generation indicator to be merely a on/off bit now. It's purpose according to spec is to notify the bus that the config ROM has changed. That's it. Catch and squash a possible panic in SBP where in the SBP_LOCK was held during a possible error case. The error handling code would definitely panic as it would try to acquire the SBP_LOCK on entrance. Catch and squash a camcontrol/device lockup when firewire drives go away. When a firewire device was powered off or disconnected from the firewire bus, a "camcontrol rescan all" would hang trying to poll removed devices as they were not properly detached. Don't do that. Approved by: scottl MFC after: 2 weeks
* Revert part of r187970, the NULL check was removed fromthompsa2009-02-011-0/+3
| | | | udbp_bulk_read_complete() as well as udbp_attach.
* Remove check for null softc in attach, it can never happen.thompsa2009-02-0144-140/+0
|
* Fix bug in hint.hdac.X.config parsing.mav2009-01-311-2/+2
|
* Use si_drv1 to hold the softc for the adb_mouse character device instead ofjhb2009-01-291-1/+2
| | | | | | using devclass_get_softc(). Tested by: nwhitehorn
* Make adb_mouse use dev2unit() instead of minor().ed2009-01-291-1/+1
| | | | | A real fix would be to migrate it to si_drv0 to store the softc directly, but this is the quickest way to fix it right now.
* Add one more debug level.mav2009-01-281-2/+2
|
* Add hw.sdhci.debug sysctl to control debug level.mav2009-01-281-20/+23
|
* Improve mmc driver verbose logging.mav2009-01-281-12/+78
| | | | Make requests logging controllable by hw.mmc.debug sysctl.
* Update ubtbcmfw2 (aka usb2_bluetooth_fw) driveremax2009-01-281-225/+207
| | | | Reviewed by: HPS
* Make ng_ubt2 (aka usb2_bluetooth_ng) driver only attach as "generic" driveremax2009-01-281-0/+3
| | | | Reviewed by: HPS
* Overhaul regulatory support:sam2009-01-2838-3423/+2411
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o remove HAL_CHANNEL; convert the hal to use net80211 channels; this mostly involves mechanical changes to variable names and channel attribute macros o gut HAL_CHANNEL_PRIVATE as most of the contents are now redundant with the net80211 channel available o change api for ath_hal_init_channels: no more reglass id's, no more outdoor indication (was a noop), anM contents o add ath_hal_getchannels to have the hal construct a channel list without altering runtime state; this is used to retrieve the calibration list for the device in ath_getradiocaps o add ath_hal_set_channels to take a channel list and regulatory data from above and construct internal state to match (maps frequencies for 900MHz cards, setup for CTL lookups, etc) o compact the private channel table: we keep one private channel per frequency instead of one per HAL_CHANNEL; this gives a big space savings and potentially improves ani and calibration by sharing state (to be seen; didn't see anything in testing); a new config option AH_MAXCHAN controls the table size (default to 96 which was chosen to be ~3x the largest expected size) o shrink ani state and change to mirror private channel table (one entry per frequency indexed by ic_devdata) o move ani state flags to private channel state o remove country codes; use net80211 definitions instead o remove GSM regulatory support; it's no longer needed now that we pass in channel lists from above o consolidate ADHOC_NO_11A attribute with DISALLOW_ADHOC_11A o simplify initial channel list construction based on the EEPROM contents; we preserve country code support for now but may want to just fallback to a WWR sku and dispatch the discovered country code up to user space so the channel list can be constructed using the master regdomain tables o defer to net80211 for max antenna gain o eliminate sorting of internal channel table; now that we use ic_devdata as an index, table lookups are O(1) o remove internal copy of the country code; the public one is sufficient o remove AH_SUPPORT_11D conditional compilation; we always support 11d o remove ath_hal_ispublicsafetysku; not needed any more o remove ath_hal_isgsmsku; no more GSM stuff o move Conformance Test Limit (CTL) state from private channel to a lookup using per-band pointers cached in the private state block o remove regulatory class id support; was unused and belongs in net80211 o fix channel list construction to set IEEE80211_CHAN_NOADHOC, IEEE80211_CHAN_NOHOSTAP, and IEEE80211_CHAN_4MSXMIT o remove private channel flags CHANNEL_DFS and CHANNEL_4MS_LIMIT; these are now set in the constructed net80211 channel o store CHANNEL_NFCREQUIRED (Noise Floor Required) channel attribute in one of the driver-private flag bits of the net80211 channel o move 900MHz frequency mapping into the hal; the mapped frequency is stored in the private channel and used throughout the hal (no more mapping in the driver and/or net80211) o remove ath_hal_mhz2ieee; it's no longer needed as net80211 does the calculation and available in the net80211 channel o change noise floor calibration logic to work with compacted private channel table setup; this may require revisiting as we no longer can distinguish channel attributes (e.g. 11b vs 11g vs turbo) but since the data is used only to calculate status data we can live with it for now o change ah_getChipPowerLimits internal method to operate on a single channel instead of all channels in the private channel table o add ath_hal_gethwchannel to map a net80211 channel to a h/w frequency (always the same except for 900MHz channels) o add HAL_EEBADREG and HAL_EEBADCC status codes to better identify regulatory problems o remove CTRY_DEBUG and CTRY_DEFAULT enum's; these come from net80211 now o change ath_hal_getwirelessmodes to really return wireless modes supported by the hardware (was previously applying regulatory constraints) o return channel interference status with IEEE80211_CHANSTATE_CWINT (should change to a callback so hal api's can take const pointers) o remove some #define's no longer needed with the inclusion of <net80211/_ieee80211.h> Sponsored by: Carlson Wireless
* Last step of splitting up minor and unit numbers: remove minor().ed2009-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Inside the kernel, the minor() function was responsible for obtaining the device minor number of a character device. Because we made device numbers dynamically allocated and independent of the unit number passed to make_dev() a long time ago, it was actually a misnomer. If you really want to obtain the device number, you should use dev2udev(). We already converted all the drivers to use dev2unit() to obtain the device unit number, which is still used by a lot of drivers. I've noticed not a single driver passes NULL to dev2unit(). Even if they would, its behaviour would make little sense. This is why I've removed the NULL check. Ths commit removes minor(), minor2unit() and unit2minor() from the kernel. Because there was a naming collision with uminor(), we can rename umajor() and uminor() back to major() and minor(). This means that the makedev(3) manual page also applies to kernel space code now. I suspect umajor() and uminor() isn't used that often in external code, but to make it easier for other parties to port their code, I've increased __FreeBSD_version to 800062.
* change ic_getradiocaps driver callback to include the max # channelssam2009-01-271-2/+2
| | | | so callers know the size of the array passed down
* Fix the input buffer at 1024. The previous calculated buffer sizen_hibma2009-01-271-5/+6
| | | | | | exceeded the maximum size of 1 page for OHCI controllers. Other serial drivers use the same size, so I assume this should be enough (1MB/s throughput?).
* - Add support for Moxa Technologies CP-168EL/PCIe card.stas2009-01-271-0/+6
| | | | | Submitted by: dmarck MFC after: 1 week
* - Add support for nehalem/corei7 cpus. This supports all of the corejeff2009-01-273-53/+838
| | | | | | | | counters defined in the reference manual. It does not support the 'uncore' events. Reviewed by: jkoshy Sponsored by: Nokia
* Clean up ng_ubt2. Get rid of excessive use of NG_NODE_REF/UNREF().emax2009-01-262-503/+244
| | | | | | | | | Make detach() completely synchronous. Properly handle stalled USB transfers (use internal mechanism instead of submitting own control transfers). Rename/remove a couple of variables and update comments. This work was done in close collaboration with HPS. Reviewed by: HPS
* Don't unlock the parent ppc lock until after releasing the ppbus.jhb2009-01-261-1/+1
| | | | Submitted by: csjp
* MFp4 //depot/projects/usb/ @156706thompsa2009-01-261-6/+10
| | | | | | Adjust an UHCI portreset delay. Submitted by: Hans Petter Selasky
* Regen.thompsa2009-01-262-2/+46
|
* MFp4 //depot/projects/usb/ @156522,156530thompsa2009-01-263-1/+36
| | | | | | | UHCI SOF Quirk. Makes some broken USB devices work again. Reported by several people. Patch made by me. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb/ @156521thompsa2009-01-261-22/+50
| | | | | | | U3G regression issue. Patch to support multiple modem instances per logical USB interface. Submitted by: Hans Petter Selasky
* Fix up USB_GET_REPORT_DESC ioctl.thompsa2009-01-261-1/+1
| | | | Submitted by: daichi
* Add umass quirk.thompsa2009-01-262-0/+5
| | | | Submitted by: Hans Petter Selasky
* Add a usb hid quirk.thompsa2009-01-262-0/+2
| | | | Submitted by: Andre Guibert de Bruet
* Specify analog beep pin widget for several AD codecs.mav2009-01-261-1/+8
| | | | It gives working speaker control for that systems.
* Change the way our softc is stored to use the devinfo facility provided by pcmnwhitehorn2009-01-264-27/+20
| | | | | | | instead of the regular device softc interface. This brings the AOA driver in line with the other pcm drivers. Requested by: ariff
* Add missing locking around setting the ppc interrupt handler IVAR.jhb2009-01-261-0/+2
| | | | Reported by: many
* Teach iic(4) the 'repeated start' I2C condition. This will be used by theraj2009-01-262-0/+6
| | | | | | | upcoming i2c(8) diag utility. Reviewed by: bms, stas Obtained from: Semihalf
* Add support for the I2S and davbus audio controllers found in Apple PowerPCnwhitehorn2009-01-257-0/+2953
| | | | | | hardware. Submitted by: Marco Trillo
OpenPOWER on IntegriCloud