summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak DEVICE_POLLING build / LINT. Sorry!mlaier2004-08-021-1/+1
| | | | Submitted by: roam
* Document machdep.enable_panic_key.scottl2004-08-021-1/+1
| | | | Submitted by: Craig Rodrigues
* * Add a "how" argument to uma_zone constructors and initialization functionsgreen2004-08-021-21/+12
| | | | | | | | | | | | | | | | | so that they know whether the allocation is supposed to be able to sleep or not. * Allow uma_zone constructors and initialation functions to return either success or error. Almost all of the ones in the tree currently return success unconditionally, but mbuf is a notable exception: the packet zone constructor wants to be able to fail if it cannot suballocate an mbuf cluster, and the mbuf allocators want to be able to fail in general in a MAC kernel if the MAC mbuf initializer fails. This fixes the panics people are seeing when they run out of memory for mbuf clusters. * Allow debug.nosleepwithlocks on WITNESS to be disabled, without changing the default. Both bmilekic and jeff have reviewed the changes made to make failable zone allocations work.
* Second part of ALTQ driver modifications, covering:mlaier2004-08-016-26/+49
| | | | | | | | | | an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4) Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/ Tested by: Vaidas Damosevicius (an, ath, wi) Roman Divacky (vr) Submitted by: yongari (hme)
* The watchdog callout executes with the (non-sleepable) ifnet lock heldwpaul2004-08-011-1/+1
| | | | | | | now, but it's possible for ndis_reset_nic() to sleep (sometimes the MiniportReset() method returns NDIS_STATUS_PENDING and we have to wait for completion). To get around this, execute the ndis_reset_nic() routine in the NDIS_TASKQUEUE thread.
* Implement basic support for EHCI interrupt pipes. This is unlikelyiedowse2004-08-012-11/+283
| | | | | | | | to be particularly correct or optimal, but it seems to be enough to allow the attachment of USB2 hubs and USB2 devices connected via USB2 hubs. None of the split transaction support is implemented in our USB stack, so USB1 peripherals will definitely not work when connected via USB2 hubs.
* YA oops. Remove code that was being tested locally.markm2004-08-011-21/+0
|
* Change the default to switch on DMA on ATAPI devices if they cansos2004-08-011-3/+5
| | | | do UDMA2 (ATA33) mode and beyond.
* Break out the MI part of the /dev/[k]mem and /dev/io drivers intomarkm2004-08-013-9/+224
| | | | | | | | their own directory and module, leaving the MD parts in the MD area (the MD parts _are_ part of the modules). /dev/mem and /dev/io are now loadable modules, thus taking us one step further towards a kernel created entirely out of modules. Of course, there is nothing preventing the kernel from having these statically compiled.
* Add some minor changes related to PCMCIA attribute memory mappingwpaul2004-08-011-2/+18
| | | | | | (which I apparently forgot to commit earlier). Acquire NDIS_LOCK() in ndis_linksts_done().
* Add copyright notices.fjoe2004-07-313-3/+78
| | | | Prodded by: imp
* Fix the panic (""memory modified after free") when ata_getparam() failssos2004-07-311-0/+1
| | | | | | and retries. Found by: Nate Lawson
* Fix the reset sequence for sx4/sx4000 type controllers, it could hang thesos2004-07-301-1/+1
| | | | chip in an indefinite state.
* Add support for the Synaptics Touchpad mouse driver. I reworked thenjl2004-07-301-1/+213
| | | | | | | | | submitted version with style cleanups and changes to comments. I also modified the ioctl interface. This version only has one ioctl (to get the Synaptics-specific config parameters) since this is the only information a user might want. Submitted by: Arne Schwabe <arne -at- rfc2549.org>
* Clean up structure packing.ps2004-07-292-25/+22
|
* Fix ACPI floppy enumeration for three types of divergent behavior.njl2004-07-281-40/+90
| | | | | | | | | | | | | | | | | * Some systems have _FDE and child floppy devices, but no _FDI. This seems to be compatible with the standard. Don't error out if there is no _FDI. Instead, continue on to the next device. The normal fd probe will take care of this device. * Some systems have _FDE but no child devices in AML. For these, add a second pass that compares the results of _FDE to the presence of devices. If not present, add the missing device. * Some BIOS authors didn't read the spec. They use tape drive values for all fdc(4) devices. Since this isn't grossly incompatible with the required boolean value, use them. They also define the _FDE items as a package instead of buffer. Regenerate the buffer from the package if it is present. Tested by: tjr, marcel
* Remove buggy (root filesystems may not have cdev) and pointlessphk2004-07-281-8/+3
| | | | customization of an error message.
* Avoid casts as lvalues.kan2004-07-282-3/+3
|
* Avoid casts as lvalues.kan2004-07-285-15/+29
|
* Make __packed attribute apply to structs themselves, not their typedefs.kan2004-07-281-14/+17
| | | | GCC 3.4.2 issues warning about that.
* Name non-physical devices.ps2004-07-281-1/+1
|
* Don't force an immediate probe/attach for all devices when compiled withnjl2004-07-261-3/+0
| | | | | | | | ACPI_DEBUG. This upset the ordering that acpi_probe_order() was meant to provide, causing devices to attach before the sysresource object. This debugging feature has been unnecessary for a while so just remove it. Testing by: marcel
* When sizing the FIFO, don't count all the way up to 1030 if any FIFOmarcel2004-07-261-1/+1
| | | | | size larger than 128 is considered an incompatible size. Stop counting when we reach 130 in the loop.
* Whitespace cleanup and move static variables together.njl2004-07-241-23/+23
|
* Remove unneeded parens and fix whitespace.njl2004-07-241-36/+29
|
* Refine the wait for ATAPI_RESET.sos2004-07-241-2/+10
| | | | | | | | Properly wait for not busy and introduce a timeout for devices not setting busy (as they should). Leave a printf in there that states how long the wait was, as I'd like to get an idea of the variations here. The time needed seems also to be affected by whether a medium is present or not.
* Fix a bug where an item was being removed from a list without usingnjl2004-07-241-34/+29
| | | | | | FOREACH_SAFE. Remove bad cast of retp and instead use an additional arg to pass back the number of valid outputs. Use the package convenience functions for parsing packages.
* Remove rev 1.50.obrien2004-07-241-9/+0
|
* Bring the advertised interface capabilities into line with the realityyar2004-07-241-6/+14
| | | | | | | | | | | (in particular, bge(4) hasn't supported rxcsum since if_bge.c#1.5) Clean up some aspects of capabilities usage, i.e. stop using if_hwassist to see whether we are doing offload now because if_hwassist is for TCP/IP layer and it is subordinate to if_capenable. Thanks to: Aled Morris for donating a nice bge(4) NIC to me Reviewed by: -net, -hackers (silence)
* Dont expect interrupt from ATAPI_RESET, it doesn't deliver one.sos2004-07-231-0/+11
|
* If you insert a pccard modem and then eject it, you get a panic. Thisimp2004-07-221-1/+2
| | | | | | | happens because the sio device was never opened and com->tp is therefore NULL. ttygone can't swallow a NULL, so guard against that possibility. Other places in this function make similar checks, so I believe this is correct.
* Remove redundant inclusion of bus_if.h. It isn't needed in this file, asimp2004-07-221-1/+0
| | | | sys/bus.h includes it.
* MFp4:imp2004-07-221-30/+29
| | | | | | | Improve child_detached a little and make it conform better to style(9). Also, improve comment about what we'll be doing in the future about driver_added. Soon it will be possible to kldload usb drivers and have them attach w/o a need to disconnect/reconnect them.
* Add IDs from TI's web site. Reports from the field and inspection ofimp2004-07-222-1/+14
| | | | | | | | | | | the data sheets leads me to believe these will just work. Those parts with the various media readers on them may not have the required FreeBSD drivers that will attach to the subdevices that will be seen on some of these parts. PCI 1515, 1530, 1620, 4520, 6411, 6420, 7410, 7510, 7610 Prompted by: Havard Eidnes
* More TI device IDs.imp2004-07-221-0/+3
| | | | | | These are from the datasheets downloaded from TI's web site. They describe the PCI[67]x[12]1 and PCI[67]x20 parts, with and without the smartcard enabled.
* Update comment about fast interrupts to be closer to realityimp2004-07-221-0/+4
|
* Remove duplicate $FreeBSD$imp2004-07-223-9/+0
| | | | Noticed by: njl
* Reinsert the bus space handle and tag, they are needed for the timer test.njl2004-07-221-0/+2
|
* Instead of doing everything in identify, do a proper probe/attach. Also,njl2004-07-221-23/+45
| | | | | | | don't add another device if identify is called twice. Minor reworking by myself. Submitted by: marcel
* Remove unused (and bogus) locking, style cleanup, remove unnecessary casts.njl2004-07-221-145/+84
|
* Minor style nitimp2004-07-221-1/+1
|
* It is a little better to return ENXIO from probe/match routine than EIO.imp2004-07-211-1/+1
|
* Add the ACPI Panasonic extras driver.nyan2004-07-211-0/+410
| | | | Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> and nyan
* Slight cosmetic changes.julian2004-07-203-6/+6
| | | | | | | | | Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author. Make node flags have a consistent style in naming. Document the change.
* Temporary fix for interoperability with Windows and OS X. A more completedfr2004-07-201-1/+1
| | | | | | fix will follow when its ready. Submitted by: simokawa
* Don't output too many debug messages for bootverbose.simokawa2004-07-203-11/+16
| | | | This driver seems to be fairly stable now.
* Initialize ifp->if_output for FreeBSD-4.simokawa2004-07-201-0/+3
|
* Adjust packet length correctly for FreeBSD-4.simokawa2004-07-201-2/+4
| | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
* Identify VIA EHCI root hubs and at least one VIA USB2.0 controller.benno2004-07-191-0/+9
|
* Diff reduction to NetBSD.le2004-07-191-5/+6
| | | | | | | usbdi.c rev. 1.104, author: mycroft ugen_isoc_rintr() may recycle the xfer immediately. Therefore, we avoid touching the xfer after calling the callback in usb_transfer_complete(). From PR 25960.
OpenPOWER on IntegriCloud