summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't set ifp->if_output to ether_output(), since ether_ifattach()mux2004-03-121-1/+0
| | | | | | | will do it for us (we either call ether_ifattach() directly, or it gets called within ieee80211_ifattach()). Approved by: wpaul
* Properly count references of our dev_t to avoid triggering a KASSERT inle2004-03-112-0/+4
| | | | | | | dev_strategy(). Submitted by: dwmalone Approved by: grog (mentor)
* Add yet another VIA pci id.sos2004-03-112-2/+4
|
* Stop setting ifp->if_output to ether_output() since ether_ifattach()mux2004-03-115-5/+0
| | | | does it for us already.
* Add clone_setup() function rather than rely on lazy initialization.phk2004-03-112-0/+2
| | | | Requested by: rwatson
* Fix the problem with the Cisco Aironet 340 PCMCIA card. Most newer driverswpaul2004-03-111-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | for Windows are deserialized miniports. Such drivers maintain their own queues and do their own locking. This particular driver is not deserialized though, and we need special support to handle it correctly. Typically, in the ndis_rxeof() handler, we pass all incoming packets directly to (*ifp->if_input)(). This in turn may cause another thread to run and preempt us, and the packet may actually be processed and then released before we even exit the ndis_rxeof() routine. The problem with this is that releasing a packet calls the ndis_return_packet() function, which hands the packet and its buffers back to the driver. Calling ndis_return_packet() before ndis_rxeof() returns will screw up the driver's internal queues since, not being deserialized, it does no locking. To avoid this problem, if we detect a serialized driver (by checking the attribute flags passed to NdisSetAttributesEx(), we use an alternate ndis_rxeof() handler, ndis_rxeof_serial(), which puts the call to (*ifp->if_input)() on the NDIS SWI work queue. This guarantees the packet won't be processed until after ndis_rxeof_serial() returns. Note that another approach is to always copy the packet data into another mbuf and just let the driver retain ownership of the ndis_packet structure (ndis_return_packet() never needs to be called in this case). I'm not sure which method is faster.
* Make the extern for adv_mcode match the reality: it's u_int8_t, butphk2004-03-101-1/+1
| | | | probably unendiansafely used as u_int16_t.
* Fix a long-standing deadlock issue with vnode backed md(4) devices:phk2004-03-101-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | On vnode backed md(4) devices over a certain, currently undetermined size relative to the buffer cache our "lemming-syncer" can provoke a buffer starvation which puts the md thread to sleep on wdrain. This generally tends to grind the entire system to a stop because the event that is supposed to wake up the thread will not happen until a fair bit of the piled up I/O requests in the system finish, and since a lot of those are on a md(4) vnode backed device which is currently waiting on wdrain until a fair amount of the piled up ... you get the picture. The cure is to issue all VOP_WRITES on the vnode backing the device with IO_SYNC. In addition to more closely emulating a real disk device with a non-lying write-cache, this makes the writes exempt from rate-limited (there to avoid starving the buffer cache) and consequently prevents the deadlock. Unfortunately performance takes a hit. Add "async" option to give people who know what they are doing the old behaviour.
* Eliminate multiple __FBSDID and sys/cdefs.h.bms2004-03-107-15/+0
|
* Use the external clock input for our PLL.phk2004-03-101-1/+1
| | | | | | | | | | | This may not be a generally valid configuration, but neither is relying on the PCI clock to be stable. The only currently known and supported hardware is the VPN14x1 from Soekris, and since it has external clock, we fail safe(r) by using it. Unfortunately there is no way to probe this reliably.
* Trim unneeded includes from if_ndis_pccard.c and if_ndis_pci.c. Also removedwpaul2004-03-092-26/+0
| | | | unused variables from if_ndis_pccard.c
* If the resource listing obtained from BUS_GET_RESOURCE_LIST() inwpaul2004-03-091-0/+20
| | | | | | | | ndis_probe_pci() doesn't contain an entry for an IRQ resource, try to force one to be routed to us anyway by adding an extra call to bus_alloc_resource(). If this fails, then we have to abort the attach. Patch provided by jhb, tweaked by me.
* Fix an integer overflow when dealing with very large volumes. This bugle2004-03-091-1/+1
| | | | | | | | prevented newfs to work on volumes that are larger than 1TB. PR: 63577 Submitted by: Masaki Takakashi <mtakahashi@se.gtd.cosmo.co.jp> Approved by: grog (mentor), bde
* Since vinum doesn't fake disklabels anymore, remove get_volume_label().le2004-03-092-62/+0
| | | | | | | Also, remove stale write_volume_label() declaration; the write_volume_label() function was deleted 8 months ago. Approved by: grog (mentor)
* Simplify some logic in converting a buffer to an integer.njl2004-03-091-1/+3
|
* Use an unsigned int instead of an int for the Get/Set Integer interface.njl2004-03-092-6/+6
| | | | Pointed out by: le
* Use one bus_dma_tag_t for all pSRB instead of creating one for each.cognet2004-03-072-25/+50
| | | | | Free what is allocated for pSRBs at unload time or if something bad happens, thanks to scottl for spotting this out.
* Sync to 1.166 of usbdevssanpei2004-03-072-2/+16
|
* Add support 2 devices(USB-DVD-R drives)sanpei2004-03-072-0/+10
| | | | | | | | | - Logitec LDR-H443SU2 - IO-DATA DVR-UEH8 PR: kern/63793 Submitted by: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp> MFC after: 1 week
* Add preliminary support for PCMCIA devices in addition to PCI/cardbus.wpaul2004-03-074-222/+648
| | | | | | | | | | | | if_ndis.c has been split into if_ndis_pci.c and if_ndis_pccard.c. The ndiscvt(8) utility should be able to parse device info for PCMCIA devices now. The ndis_alloc_amem() has moved from kern_ndis.c to if_ndis_pccard.c so that kern_ndis.c no longer depends on pccard. NOTE: this stuff is not guaranteed to work 100% correctly yet. So far I have been able to load/init my PCMCIA Cisco Aironet 340 card, but it crashes in the interrupt handler. The existing support for PCI/cardbus devices should still work as before.
* Augment /dev/sndstat with the module names, if applicable.matk2004-03-0624-44/+58
| | | | Approved by: tanimura (mentor)
* kthread_exit() no longer requires Giant, so don't force callers to acquirejhb2004-03-055-6/+2
| | | | | | Giant just to call kthread_exit(). Requested by: many
* Lock Giant around the body of the adlink_loran() function used by thejhb2004-03-051-0/+2
| | | | adlink device kthreads.
* Document a sysctl.njl2004-03-051-1/+2
| | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
* A user can set tz_requested via the hw.acpi.thermal.tzX.active sysctl.njl2004-03-051-1/+1
| | | | | | | | | The previous logic meant that if a user sets it to a minimal cooling value acpi_thermal will not use higher cooling levels. Reverse the logic so that the user requesting a level (say, 2) also gets 0 - 1 also. PR: kern/61592 Submitted by: Andrew Thompson <andy@fud.org.nz>
* Implement a crude but functional usbd_ratecheck() to limit the numberphk2004-03-041-5/+3
| | | | of "usb0: %d scheduling overruns" messages I have to contend with.
* Only setup sii_reset on sii311[24].sos2004-03-041-2/+3
|
* Use auto-sense data provided by the lowlevel ATA code.thomas2004-03-041-1/+10
|
* Nursemaid: Fix tinderbox builds by removing the shadowing of the globalbms2004-03-041-7/+7
| | | | preprocessor macro DEBUG. DEBUG() -> CTAU_DEBUG().
* Sync to 1.165 of usbdevssanpei2004-03-042-2/+18
|
* Add support SimpleTech UCF-100 USB CompactFlash reader(OnSpec Electronic, Inc.)sanpei2004-03-042-0/+8
| | | | | | PR: kern/63619 Submitted by: Greg Rivers <gcr@sa.fedex.com> MFC after: 1 week
* Fix an off-by-one error and rework our EC space handler. Writing to addressnjl2004-03-041-14/+15
| | | | | 0xFF would fail previously as AE_BAD_PARAMETER. It's unknown if this caused any actual problems.
* Don't disable Cx support and throttling on machines with a P_BLK_LEN != 6njl2004-03-041-3/+16
| | | | | | even though the spec mandates this. Some have a value of 5 to indicate throttling + C2 and some have 7 to indicate an extra C3 state. Support throttling if the value is >= 4, C2 for >= 5, and C3 for >= 6.
* Add a "quirks" value to disable quirks handling for a given boot.njl2004-03-041-5/+15
| | | | | | Also, disable quirks if booting with a custom DSDT. Add a quirk to disable loading ACPI so known bad systems can be completely blacklisted.
* Change to acpi_{Get,Set}Integer to provide both methods. Convert allnjl2004-03-0311-69/+52
| | | | | | callers to the new API. Submitted by: Mark Santcroos <marks@ripe.net>
* Peter prefers it this way, bde might also[*]. I just want to have a chanceobrien2004-03-032-2/+2
| | | | | of working on amd64 for vmware use. [*] bde will probably not like either version...
* Prefer uintptr_t to intptr_t.obrien2004-03-032-6/+6
|
* Use a long as the opaque type so that it matches the size of a pointerobrien2004-03-031-1/+1
| | | | on both 32-bit and 64-bit platforms.
* Adjust lnc(4) for 64-bit platforms should it get newbus'ified.obrien2004-03-032-4/+4
|
* Adjust ed(4) for 64-bit platforms should it get newbus'ified.obrien2004-03-032-11/+12
|
* Use a long as the opaque type so that it matches the size of a pointerobrien2004-03-032-5/+5
| | | | on both 32-bit and 64-bit platforms.
* Add memory barrier routines for AMD64.obrien2004-03-031-1/+7
|
* Cast thru intptr_t on the way to void* for success on 64-bit platforms.obrien2004-03-032-6/+6
|
* Add support for quirks for acpi tables. Key off OEM vendor and revision.njl2004-03-035-34/+87
| | | | | | Sort acpi debug values. Change "disable" to "disabled" to match rest of the kernel. Remove debugging from acpi_toshiba since it was only used for probe/attach.
* Make swapbacked md(4) devices respect the -x and -y emulation arguments.phk2004-03-021-0/+4
|
* Add new Matrix Orbital LCD panel id's so that they are recognized andpeter2004-03-021-1/+11
| | | | attached via uftdi->ucom.
* Regenpeter2004-03-022-2/+39
|
* Add some device id's for Matrix Orbital's newer LCD panels. These usepeter2004-03-021-0/+7
| | | | another ftdi usb->serial bridge with different ID's.
* 1. Fix compilation and panic while system boot problem after makedev wasrik2004-03-021-4/+22
| | | | | | changed to unde2dev. Approved by: imp (mentor)
* 1. Renames NCT constant to NCTAU. This will help while MFC to 4 branch.rik2004-03-021-25/+40
| | | | | | | 2. Fix compilation and panic while system boot problem after makedev was changed to unde2dev. Approved by: imp (mentor)
OpenPOWER on IntegriCloud