summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix Tx/Rx checksum offload ioctl handling and make Rx handler honoryongari2008-11-251-9/+26
| | | | | | | checksum offload configuration. Now checksum offload can be controlled by ifconfig(8). While I'm here add an additional check for interface capabilities before applying user's request.
* Make fxp(4) build with FXP_IP_CSUM_WAR.yongari2008-11-251-2/+2
|
* Sort head files and removed ununsed header file.yongari2008-11-251-13/+9
|
* Whitespace fix.yongari2008-11-253-25/+25
|
* Add support for Marvell PATA M88SX6121.rpaulo2008-11-252-0/+2
| | | | | | PR: 129154 Submitted by: João Barros <joao.barros at gmail.com> MFC after: 1 month
* Restore sfence semantics in mxge after the introductiongallatin2008-11-242-25/+25
| | | | of a global mfence based mb() in r185162
* Make sure arc4random(9) is properly seeded when /etc/rc.d/initrandom returns.cperciva2008-11-242-3/+24
| | | | | | Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-08:11.arc4random
* Save the value read from TX queue CSR, so we don't test against ayongari2008-11-241-1/+1
| | | | | | stale one. Submitted by: sephe
* print the extended tx/rx descriptor for 5416 and later partssam2008-11-241-9/+32
|
* nuke special handling of RXORN interrupt; the hal marks the FATALsam2008-11-242-17/+4
| | | | | bit in the interrupt status when RXORN is hit and the chip requires a reset so our special handling was causing useless resets
* Remove DELAY() on hdac_audio_commit().mav2008-11-231-1/+0
| | | | I don't see the reason why it is needed.
* Eliminate an unused variable reported by coverityimp2008-11-231-4/+2
| | | | Submitted by: Ganbold
* Do not use soft PCM volume for digital outputs to allow SPDIF AC3 bypassmav2008-11-231-4/+8
| | | | to work. Soft PCM volume (and vchans) unable to bypass AC3 stream now.
* Strictly differentiate digital and analog PCM devices according to codecmav2008-11-232-58/+91
| | | | | | | nodes capabilities. Add "Analog"/"Digital" marks to the pcm device names. I hope it will help new users easier accept concept of several PCM devices and understand exact purposes of that devices.
* Report card erase sector size as disk stripe size.mav2008-11-231-0/+2
|
* Improve detach handling: close races, flush queue.mav2008-11-231-13/+16
|
* Add backward compatibility ifdefs for non-multiq kernelskmacy2008-11-233-2/+29
|
* work around periodic leak on queue overrun by enabling coalescing of packets ↵kmacy2008-11-231-1/+1
| | | | | | in to work requests by default
* intr_machdep.h breaks build on some arches and is not neededkmacy2008-11-231-4/+0
|
* Cast to uintptr_t before casting to void*. This allows themarcel2008-11-221-3/+3
| | | | | | | QUICC backend to be built on LP64 platforms. This makes it possible to include the QUICC backend in the kernel module. PR: 127120
* Whitespace cleanup for previous commit.mav2008-11-221-3/+3
|
* Handle device_get_children() errors in more correct way.mav2008-11-221-9/+12
| | | | | | | We shouldn't detach until all children are surely destroyed. Found with: Coverity Prevent(tm) CID: 2137
* Change check order to avoid array overrun.mav2008-11-221-2/+2
| | | | | Found with: Coverity Prevent(tm) CID: 2497
* Unbreak LINT.jkoshy2008-11-224-0/+24
|
* - enable multiple transmit queueskmacy2008-11-225-246/+109
| | | | | | | | | | | - invert sense of hw.cxgb.singleq tunable to hw.cxgb.multiq - don't wake up transmitting thread by default - add per tx queue ifaltq to handle ALTQ - remove several unused functions in cxgb_multiq.c - add several sysctls: multiq_tx_enable, coalesce_tx_enable, and wakeup_tx_thread - this obsoletes the hw.cxgb.snd_queue_len as ifq is replaced by a buf_ring
* - bump __FreeBSD version to reflect added buf_ring, memory barriers,kmacy2008-11-229-225/+49
| | | | | | | | | | | | | | | | | and ifnet functions - add memory barriers to <machine/atomic.h> - update drivers to only conditionally define their own - add lockless producer / consumer ring buffer - remove ring buffer implementation from cxgb and update its callers - add if_transmit(struct ifnet *ifp, struct mbuf *m) to ifnet to allow drivers to efficiently manage multiple hardware queues (i.e. not serialize all packets through one ifq) - expose if_qflush to allow drivers to flush any driver managed queues This work was supported by Bitgravity Inc. and Chelsio Inc.
* Several small additions to the Chelsio 10G driver.gnn2008-11-214-5/+38
| | | | | | | | | | | | | 1) Fix a bug in dealing with the Alerus 1006 PHY which prevented the device from ever coming back up once it had been set to down. 2) Add a kernel tunable (hw.cxgb.snd_queue_len) which makes it possible to give the device more than IFQ_MAXLEN entries in its send queue. The default remains 50. 3) Add code to place the card'd identification and serial number into its description (%desc) so that users can tell which card they have installed.
* Create a /dev/cardbus%d.cis, to be compatible with older versions ofimp2008-11-212-1/+6
| | | | | the software. This is a trivial amount of code to keep wireless monitoring software working... I plan on removing it in 9.0.
* Given that the buffer dcons_crom(4) exposes is used for both inputmarius2008-11-191-1/+1
| | | | | | | | | | | and output, set BUS_DMA_COHERENT when creating the DMA map used for loading the buffer. As a side-effect this solves locking issues on sparc64 when dcons(4) calls bus_dmamap_sync(9) while in an interrupt filter, which are executed in a critical section, and iommu(4) has to use a sleep lock when taking advantage of the streaming buffer. Reported and tested by: kensmith Approved by: simokawa
* Also make dcons(4) use MPSAFE callouts.ed2008-11-191-1/+1
| | | | | The callout locks the TTY layer the way it should, so there is no reason why its callout shouldn't set this flag.
* Make nmdm(4) use MPSAFE callouts.ed2008-11-191-2/+2
| | | | | | For some reason the nmdm(4) driver doesn't use CALLOUT_MPSAFE, even though we live in the MPSAFE TTY era. Add the CALLOUT_MPSAFE flags. System survives.
* Make sure legacy replacement route is turned off when enbling HPET.jkim2008-11-191-2/+5
| | | | Reviewed by: jhb
* Change the initialization methodology for global variables scheduledzec2008-11-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | for virtualization. Instead of initializing the affected global variables at instatiation, assign initial values to them in initializer functions. As a rule, initialization at instatiation for such variables should never be introduced again from now on. Furthermore, enclose all instantiations of such global variables in #ifdef VIMAGE_GLOBALS blocks. Essentialy, this change should have zero functional impact. In the next phase of merging network stack virtualization infrastructure from p4/vimage branch, the new initialization methology will allow us to switch between using global variables and their counterparts residing in virtualization containers with minimum code churn, and in the long run allow us to intialize multiple instances of such container structures. Discussed at: devsummit Strassburg Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* src/sys/dev/usb2/controller/uss820dci_pccard.calfred2008-11-1927-3172/+520
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/sys/dev/usb2/core/usbdevs src/sys/dev/usb2/include/urio2_ioctl.h src/sys/dev/usb2/storage/ustorage2_fs.h These files are not used any more. src/usr.sbin/Makefile src/etc/mtree/BSD.include.dist src/include/Makefile src/lib/Makefile src/share/man/man7/hier.7 src/share/mk/bsd.libnames.mk src/etc/mtree/BSD.include.dist Make "usbconfig" and "libusb20" a part of the default build. src/sys/dev/usb/rio500_usb.h src/sys/dev/usb2/storage/urio2.c Use common include file. src/sys/dev/usb2/bluetooth/ng_ubt2.c Make USB bluetooth depend on "ng_hci" module. src/sys/dev/usb2/controller/ehci2.c src/sys/dev/usb2/controller/ehci2.h Patches for Marvell EHCI. src/sys/dev/usb2/core/usb2_busdma.c Bugfix for 64-bit platforms. Need to unload the previously loaded DMA map and some cleanup regarding some corner cases. src/sys/dev/usb2/core/usb2_core.h src/sys/dev/usb2/core/usb2_dev.c src/sys/dev/usb2/core/usb2_dev.h Bugfix for libusb filesystem interface. New feature: Add support for filtering device data at the expense of the userland process. Add some more comments. Some minor code styling. Remove unused function, usb2_fifo_get_data_next(). Fix an issue about "fifo_index" being used instead of "ep_index". src/sys/dev/usb2/core/usb2_device.c src/sys/dev/usb2/core/usb2_generic.c Bugfix for Linux USB compat layer. Do not free non-generic FIFOs when doing an alternate setting. Cleanup USB IOCTL and USB reference handling. Fix a corner case where USB-FS was left initialised after setting a new configuration or alternate setting. src/sys/dev/usb2/core/usb2_hub.c Improvement: Check all USB HUB ports by default at least one time. src/sys/dev/usb2/core/usb2_request.c Bugfix: Make sure destination ASCII string is properly zero terminated in all cases. Improvement: Skip invalid characters instead of replacing with a dot. src/sys/dev/usb2/core/usb2_util.c src/sys/dev/usb2/image/uscanner2.c Spelling. src/sys/dev/usb2/include/Makefile Share "usbdevs" with the old USB stack. src/sys/dev/usb2/include/usb2_devid.h src/sys/dev/usb2/include/usb2_devtable.h Regenerate files. Alfred: Please fix the RCS tag at the top. src/sys/dev/usb2/include/usb2_ioctl.h Fix compilation of "kdump". src/sys/dev/usb2/serial/ubsa2.c src/sys/dev/usb2/serial/ugensa2.c Remove device ID's which will end up in a new 3G driver. src/sys/dev/usb2/sound/uaudio2.c Correct a debug printout. src/sys/dev/usb2/storage/umass2.c Sync with old USB stack. src/lib/libusb20/libusb20.3 Add more documentation. src/lib/libusb20/libusb20.c Various bugfixes and improvements. src/usr.sbin/usbconfig/dump.c src/usr.sbin/usbconfig/usbconfig.c New commands for dumping strings and doing custom USB requests from the command line. Remove keyword requirements from generated files: "head/sys/dev/usb2/include/usb2_devid.h" "head/sys/dev/usb2/include/usb2_devtable.h"
* Correct a logic error when testing BCE_PHY_SERDES_FLAG.delphij2008-11-191-1/+1
| | | | | | | PR: kern/128801 Pointed out by: Adam Morrison Ok'ed by: davidch MFC after: 3 days
* Allow device hints to wire the unit numbers of devices.jhb2008-11-183-60/+86
| | | | | | | | | | | | | | | | | | | | - An "at" hint now reserves a device name. - A new BUS_HINT_DEVICE_UNIT method is added to the bus interface. When determining the unit number of a device, this method is invoked to let the bus driver specify the unit of a device given a specific devclass. This is the only way a device can be given a name reserved via an "at" hint. - Implement BUS_HINT_DEVICE_UNIT() for the acpi(4) and isa(4) bus drivers. Both of these busses implement this by comparing the resources for a given hint device with the resources enumerated by ACPI/PnPBIOS and wire a unit if the hint resources are a subset of the "real" resources. - Use bus_hinted_children() for adding hinted devices on isa(4) busses now instead of doing it by hand. - Remove the unit kludging from sio(4) as it is no longer necessary. Prodding from: peter, imp OK'd by: marcel MFC after: 1 month
* 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]
OpenPOWER on IntegriCloud