summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix the maximum transfer size for mfi(4) disk devices to not exceed thejhb2008-11-171-1/+2
| | | | | | | maximum number of scatter/gather elements supported in the bus dma tag. Reviewed by: scottl MFC after: 1 week
* Undo revision 185013 until better solution is found.emax2008-11-171-4/+0
| | | | Pointed out by: bde
* Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).philip2008-11-171-3/+7
| | | | | Spotted by: Coverity MFC after: 1 week
* Overhaul of CIS parsing, next step: keep a cached copy of the CIS,imp2008-11-174-73/+68
| | | | | | | | | read before we configure the card, so we can implement /dev/cardbus*.cis. Also, do this on a per-child basis, so we now have a different name than before. I think i'll have to fix that for some legacy tools to keep working. I can now do a dumpcis on my running atheros card and have it still work!
* Fix typo. It restuled in activating unwanted Rx filtering as wellyongari2008-11-171-1/+2
| | | | | | as resetting Rx threshold configuration. Submitted by: Joost Mulders < Joost.Mulders <> Sun DOT COM >
* More locking for syscons(4). This should prevent races with sckbdevent().emax2008-11-161-0/+4
| | | | | PR: kern/127446 Submitted by: Eygene Ryabinkin rea-fbsd at codelabs dot ru
* Various whitespace and style fixes.jhb2008-11-1619-284/+291
|
* Print PMC widths in the initialization announcement.jkoshy2008-11-161-1/+2
|
* Correct an oversight: call the MD finalize hook at module unloadjkoshy2008-11-151-0/+3
| | | | time.
* Fix assertions.jkoshy2008-11-151-6/+9
| | | | Reported by: keramida
* Correct an indexing error (a change missed out in #184802).jkoshy2008-11-151-1/+1
|
* Correct association 0 handling.mav2008-11-151-14/+24
| | | | as=0 means unused pin, so disable it explicitly, this is mostly cosmetics.
* First step in cleaning up CIS parsing and /dev/cardbus*.cis: removeimp2008-11-153-38/+42
| | | | | | redundant malloc/free. Add comments about how this should really be done. Fix an overly verbose comment about under 1MB mapping: go ahead and set the bits, but we ignore them.
* - Revive fdc(4) per-device flag 0x10, which was removed in r1.284[1].jkim2008-11-151-63/+86
| | | | | | | | | | | | | - If the flag is set and auto-select fails, assume disk is not present. - Set disk empty flag only when the floppy controller reset is needed. It fixes regression introduced in r1.311, which prevented it from ignoring errors. Now fdformat(1) and dd(1) with conv=noerror option can continue when read/write errors occur as they should. - Do not retry disk probing as it is extremely slow and pointless. - Move the disk probing code into a separate function. - Do not reset disk empty flag if write-protect check fails somehow. PR: kern/116538[1]
* Fix compile. I was in the wrong tree when I tested it :-(ambrisko2008-11-141-2/+2
| | | | Pointed out by: Andrzej
* When running a 32bit app. on amd64, ensure the bits above 32bitambrisko2008-11-141-0/+15
| | | | are zero for the copyout. Confirmed by LSI.
* Fix typo where the code was missing the "IPMICTL_RECEIVE_MSG_32" conditionobrien2008-11-141-1/+1
| | | | test.
* Hide the attach message. This needs to be done in the probe as well, asn_hibma2008-11-131-6/+23
| | | | | | | | the softc is reset a few times during probing. Print 'changing to modem mode' messages if booting verbose to show the reason for the time delay. Note: Some devices (Huawei for one) take 20 seconds to appear on the USB bus).
* Silence detach messages if the device has marked itself quiet (u3g).n_hibma2008-11-131-12/+14
| | | | MFC after: 3 weeks
* Add a reset device command to ugen.c.n_hibma2008-11-135-10/+19
| | | | | This is needed to make some devices work that require a firmware upload and a USB reset afterwards.
* Add ADMA, SATA and SAS mass storage subclasses reporting.mav2008-11-131-0/+3
|
* One more piece to add to make sense data work for a user app. from LSI.ambrisko2008-11-131-0/+10
| | | | | Submitted by: LSI MFC after: 3 days
* Fix Rx/Tx checksum offload ioctl handling. Now checksum offloadyongari2008-11-131-7/+9
| | | | | | | | can be controlled by ifconfig(8). Note, VLAN hardware tagging controls still lacks required handler but it requires more driver cleanups so I didn't touch that part. PR: kern/128766
* - Fix from jhb for failing I/O request when bus_dmamap_load fails.ambrisko2008-11-125-30/+85
| | | | | | | | | | | | | | - Fix to ioctl path in which the length could be 0 which means no data in/out from LSI. - Fix to ioctl path in which the data in the sense data space of the ioctl packet is a really a pointer to some location in user-space. From LSI re-worked a bit by me. - Add HW support for next gen cards from LSI. Thanks to LSI for their support! Submitted by: jhb, LSI MFC after: 3 days
* Various style and whitespace fixes. Previously parts of this file usedjhb2008-11-121-363/+371
| | | | | 8 space indent, parts used 4 space indent, and other parts used a weird mixture (8 spaces for first indent, 4 spaces for the rest).
* Probe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. Thisnwhitehorn2008-11-121-1/+1
| | | | | allows us to probe the brightness and volume control buttons on PPC Apple laptops, though there is not yet a driver to do anything useful with them.
* Add a quirk for Belkin USB Bluetooth adapters (F8T012xx1 series)keramida2008-11-122-0/+10
| | | | | | | | | | | The same (vendor, product) tuple is used for aue(4) adapters, but I am not sure if the quirk is correct. I'm using the USB device 'release' info to skip aue(4) detection right now, but if there's a better way to differentiate between USB-LAN and USB Bluetooth we should update the quirk. Reviewed by: imp, rink MFC after: 2 weeks
* Add support for the Microsoft Comfort Optical Mouse 3000 (model 1043).cperciva2008-11-122-0/+3
| | | | | PR: usb/128760 Submitted by: Arjan de Vet
* Add ale(4), a driver for Atheros AR8121/AR8113/AR8114 PCIe ethernetyongari2008-11-123-0/+4090
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | controller. The controller is also known as L1E(AR8121) and L2E(AR8113/AR8114). Unlike its predecessor Attansic L1, AR8121/AR8113/AR8114 uses completely different Rx logic such that it requires separate driver. Datasheet for AR81xx is not available to open source driver writers but it shares large part of Tx and PHY logic of L1. I still don't understand some part of register meaning and some MAC statistics counters but the driver seems to have no critical issues for performance and stability. The AR81xx requires copy operation to pass received frames to upper stack such that ale(4) consumes a lot of CPU cycles than that of other controller. A couple of silicon bugs also adds more CPU cycles to address the known hardware bug. However, if you have fast CPU you can still saturate the link. Currently ale(4) supports the following hardware features. - MSI. - TCP Segmentation offload. - Hardware VLAN tag insertion/stripping with checksum offload. - Tx TCP/UDP checksum offload and Rx IP/TCP/UDP checksum offload. - Tx/Rx interrupt moderation. - Hardware statistics counters. - Jumbo frame. - WOL. AR81xx PCIe ethernet controllers are mainly found on ASUS EeePC or P5Q series of ASUS motherboards. Special thanks to Jeremy Chadwick who sent the hardware to me. Without his donation writing a driver for AR81xx would never have been possible. Big thanks to all people who reported feedback or tested patches. HW donated by: koitsu Tested by: bsam, Joao Barros <joao.barros <> gmail DOT com > Jan Henrik Sylvester <me <> janh DOT de > Ivan Brawley < ivan <> brawley DOT id DOT au >, CURRENT ML
* Update firmware version checkkmacy2008-11-125-17/+28
| | | | | | | make ddp a tunable Obtained from: Chelsio Inc. MFC after: 3 days
* Fake the assoc id so that ndis can work on the latest net80211.thompsa2008-11-111-1/+10
| | | | | PR: kern/128750 Submitted by: Paul B. Mahol
* Make ispfw(4) play nice with individual firmware modules.jkim2008-11-111-41/+109
| | | | | | | | | | - Do not let individual KLD module unregister firmware image loaded by ispfw or vice versa. - Make 'kldunload ispfw' actually unregister all firmware images loaded by ispfw, not just 'isp_1040'. - Print which KLD module actually loaded the firmware image. - Remove unused return value from do_load_fw() and do_unload_fw() and remove duplicate sys/param.h while I am here.
* Add missing USB_BUS_LOCK* change from r184824.thompsa2008-11-101-1/+1
|
* Convert the two main locking areas into macros to make it clear on what we arethompsa2008-11-1027-338/+350
| | | | | | | | | grabbing and why. These are now: USB_BUS_LOCK/USB_BUS_UNLOCK USB_XFER_LOCK/USB_XFER_UNLOCK Reviewed by: alfred
* - Separate PMC class dependent code from other kinds of machinejkoshy2008-11-0913-912/+1455
| | | | | | | | | | | | | | | | | dependencies. A 'struct pmc_classdep' structure describes operations on PMCs; 'struct pmc_mdep' contains one or more 'struct pmc_classdep' structures depending on the CPU in question. Inside PMC class dependent code, row indices are relative to the PMCs supported by the PMC class; MI code in "hwpmc_mod.c" translates global row indices before invoking class dependent operations. - Augment the OP_GETCPUINFO request with the number of PMCs present in a PMC class. - Move code common to Intel CPUs to file "hwpmc_intel.c". - Move TSC handling to file "hwpmc_tsc.c".
* Style tweak.jkoshy2008-11-091-2/+2
|
* Reduce the default baud rate of PTY's to 9600.ed2008-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | On RELENG_6 (and probably RELENG_7) we see our syscons windows and pseudo-terminals have the following buffer sizes: | LINE RAW CAN OUT IHIWT ILOWT OHWT LWT COL STATE SESS PGID DISC | ttyv0 0 0 0 7680 6720 2052 256 7 OCcl 1146 1146 term | ttyp0 0 0 0 7680 6720 1296 256 0 OCc 82033 82033 term These buffer sizes make no sense, because we often have much more output than input, but I guess having higher input buffer sizes improves guarantees of the system. On MPSAFE TTY I just sent both the input and output buffer sizes to 7 KB, which is pretty big on a standard FreeBSD install with 8 syscons windows and some PTY's. Reduce the baud rate to 9600 baud, which means we now have the following buffer sizes: | LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE | ttyv0 1920 0 0 192 1984 0 199 7 2401 2401 Oil | pts/0 1920 0 0 192 1984 0 199 5631 1305 2526 Oi This is a lot smaller, but for pseudo-devices this should be good enough. You need to do a lot of punching to fill up a 7.5 KB input buffer. If it turns out things don't work out this way, we'll just switch to 19200 baud.
* Remove informational messages left. These messages were intended toyongari2008-11-071-7/+7
| | | | | | show up in verbose boot mode. Reported by: pluknet ( pluknet<> gmail DOT com )
* Bring in http://perforce.freebsd.org/chv.cgi?CH=152584 from hps.imp2008-11-0616-17/+1
| | | | Submitted by: hps
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+5
| | | | MFC after: 2 months
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+5
| | | | MFC after: 2 months
* For now our LRO code (tcp_lro.c) only supports IPv4 properly thusbz2008-11-061-0/+3
| | | | | | | only enable if INET is on. Reviewed by: kmacy MFC after: 2 months
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+4
| | | | | Reviewed by: kmacy MFC after: 2 months
* Hide an unused variable in case we compile with neither INET nor INET6.bz2008-11-061-1/+5
| | | | | | | NATM needs 'struct in_addr' to compile, which is a problem on its own but include in.h for now if we have NATM but neither INET or INET6. MFC after: 2 months
* In case INET is not defined, then ANCACHE is not defined andbz2008-11-061-0/+2
| | | | | | | | the sc does not have 'an_have_rssimap' variable. Add an ANCACHE check to poperly hide the case and make an(4) compile without INET. MFC after: 2 months
* Reintroduce the snp(4) driver.ed2008-11-051-517/+231
| | | | | | | | | | | | Because the TTY hooks interface was not finished when I imported the MPSAFE TTY layer, I had to disconnect the snp(4) driver. This snp(4) implementation has been sitting in my P4 branch for some time now. Unfortunately it still doesn't use the same error handling as snp(4) (returning codes through FIONREAD), but it should already be usable. I'm committing this to SVN, hoping someone else could polish off its rough edges. It's always better than having a broken driver sitting in the tree.
* Even though the previous commit was functionally equivalent with the code it ↵rink2008-11-041-1/+1
| | | | | | | | | replaced, it was wrong: le16toh should have been used. Note that these changes will not make the driver work on powerpc, but it should fix at least the i386/amd64 cases. Obtained from: //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#20 Noticed by: jeli, ed
* Fix the build (on at least powerpc) by moving the htole16() from the case(x) ↵rink2008-11-041-3/+3
| | | | | | expression directly to the switch(x) itself. Reviewed by: imp@
* Remove unnecessary locking around vn_fullpath(). The vnode lock for thejhb2008-11-041-2/+0
| | | | | | | | | | | | | | | | vnode in question does not need to be held. All the data structures used during the name lookup are protected by the global name cache lock. Instead, the caller merely needs to ensure a reference is held on the vnode (such as vhold()) to keep it from being freed. In the case of procfs' <pid>/file entry, grab the process lock while we gain a new reference (via vhold()) on p_textvp to fully close races with execve(2). For the kern.proc.vmmap sysctl handler, use a shared vnode lock around the call to VOP_GETATTR() rather than an exclusive lock. MFC after: 1 month
* Add support for Asus A8Sr notebooks.rpaulo2008-11-041-0/+75
| | | | | | | PR: 128553 Submitted by: Eygene Ryabinkin <rea-fbsd at codelabs.ru> Reviewed by: philip MFC after: 2 months
OpenPOWER on IntegriCloud