summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci_pci.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that theAndrew Thompson2009-02-231-524/+0
| | | | | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build. Notes: svn path=/head/; revision=188939
* Add workaround for Parallels 4.0. Without it, ehci and uhci driversEdward Tomasz Napierala2009-01-061-0/+6
| | | | | | | | | | | would fail to attach due to unsupported USB revision. It should have no effect when running on a real hardware. Reviewed by: imp Approved by: rwatson (mentor) Notes: svn path=/head/; revision=186808
* Add modules for the HCI part of USB. This is convenient when having a UHCINick Hibma2008-10-091-0/+1
| | | | | | | controller in your laptop but inserting a (OHCI-based) Option Cardbus card. Notes: svn path=/head/; revision=183728
* opt_bus.h is supposed to be for subr_bus.c only. There's no need forWarner Losh2008-08-301-2/+0
| | | | | | | it in the usb code. Notes: svn path=/head/; revision=182479
* Identify ICH9 USB controllers.Benno Rice2008-04-111-0/+20
| | | | | | | | | | | I've taken a slightly different approach than is used with the ICH8 controllers in that each controller is not identified individually (eg USB A, USB B, etc). Instead I've given then same description to each one even though the device ID differs. This can easily be changed if desired, or ICH8 (and any others using that approach) can be made to work as this does. Notes: svn path=/head/; revision=178099
* Add PCI ID's for ICH8 USB controllers.John Baldwin2008-04-071-0/+25
| | | | | | | | | MFC after: 1 week PR: usb/116574 Submitted by: Dave Grochowski malus.x of gmail Notes: svn path=/head/; revision=177989
* Add PCI device support for Intel S7000FC4UR in usb and ichwd, systemsJack F Vogel2007-11-151-0/+20
| | | | | | | | | | will not install without the usb changes in the install kernel, so I would like to MFC this in time for 7.0 RC MFC: 3 days Notes: svn path=/head/; revision=173661
* Latest round of usb cleanups:Warner Losh2007-06-211-7/+4
| | | | | | | | | | | | | | | | | | | | | | o Consistently use device_foo_t and bus_foo_t for functions implementing device_foo and bus_foo respectively. Adjust those routines that were wrong (we should do this throughout the tree). o make all the modules depend on usb. Otherwise these modules won't load. o ucycom doesn't need usb_port.h o Minor unifdefing o uhub, umass, ums, urio, uscanner conversion complete. o ukbd: Remove the NO_SET_PROTO quirk (fixes a PR 77940). NetBSD removed their check and setting the proto a long time ago. o umodem panic fixed. UQ_ASSUME_CM_OVER_DATA quirk removed because I've never seen a umodem that needed this rejection for proection (this gets rid of ~20% of the quirks). Approved by: re@ (kensmith) PR: 77940 Notes: svn path=/head/; revision=170969
* o break newbus api: add a new argument of type driver_filter_t toPaolo Pisati2007-02-231-1/+1
| | | | | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@ Notes: svn path=/head/; revision=166901
* Change the remainder of the drivers for DMA'ing devices enabled in theMarius Strobl2007-01-211-4/+4
| | | | | | | | | | | sparc64 GENERIC and the sound device drivers known working on sparc64 to use bus_get_dma_tag() to obtain the parent DMA tag so we can get rid of the sparc64_root_dma_tag kludge eventually. Except for ath(4), sk(4), stge(4) and ti(4) these changes are runtime tested (unless I booted up the wrong kernels again...). Notes: svn path=/head/; revision=166165
* Use the limited scatter-gather capabilities of ehci, ohci and uhciIan Dowse2006-05-281-0/+29
| | | | | | | | | | | | | | | | | | host controllers to avoid the need to allocate any multi-page physically contiguous memory blocks. This makes it possible to use USB devices reliably on low-memory systems or when memory is too fragmented for contiguous allocations to succeed. The USB subsystem now uses bus_dmamap_load() directly on the buffers supplied by USB peripheral drivers, so this also avoids having to copy data back and forth before and after transfers. The ehci and ohci controllers support scatter/gather as long as the buffer is contiguous in the virtual address space. For uhci the hardware cannot handle a physical address discontinuity within a USB packet, so it is necessary to copy small memory fragments at times. Notes: svn path=/head/; revision=158998
* Use BUS_PROBE_DEFAULT in preference to 0. Also for vx, returnWarner Losh2005-03-011-1/+1
| | | | | | | | BUS_PROBE_LOW_PRIORITY in stead of ifdef for devices that xl and vx both support so that xl will snarf them on up. Notes: svn path=/head/; revision=142880
* Pass an explicit pointer to the bus structure in the 'usb' device ivarJohn Birrell2004-12-281-1/+1
| | | | | | | | | | | rather than a softc pointer (with the bus structure at the start). This is a non-functional change. It just helps when reading the code to know that the ehci, ohci and uhci drivers share the bus structure, not the entire softc. Notes: svn path=/head/; revision=139383
* Add device IDs for Intel ICH6.Lukas Ertl2004-10-131-0/+20
| | | | | | | | PR: kern/72492 Submitted by: Florian Le Goff <madflo@beertech.org> Notes: svn path=/head/; revision=136485
* Make the USB subsystem unloadable and detachable, though currentlyIan Dowse2004-08-021-16/+8
| | | | | | | | a significant amount of memory may be leaked each time a host controller is detached. Notes: svn path=/head/; revision=133018
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+3
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Fix a suspend/resume issue. My Compaq N400c works fine.Takeshi Shibagaki2004-01-121-0/+2
| | | | Notes: svn path=/head/; revision=124433
* Sometimes cardbus attachments don't attach, so while we track downWarner Losh2003-11-281-0/+1
| | | | | | | | | | | this problem put these lines back in. While they should be unnecessary, they appear to be sometimes necessary. Reviewed in concept: dfr Approved by: re (scottl@) Notes: svn path=/head/; revision=123019
* Remove explicit cardbus attachments from drivers where this is identicalDoug Rabson2003-11-031-1/+0
| | | | | | | | | | to the pci attachment. Cardbus is a derived class of pci so all pci drivers are automatically available for matching against cardbus devices. Reviewed by: imp Notes: svn path=/head/; revision=121939
* Use __FBSDID().David E. O'Brien2003-08-241-3/+4
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119287
* Enable bus mastering in the attach routine. This appears to fix theWarner Losh2003-06-121-0/+2
| | | | | | | | | USB 2.0 cardbus cards that have been floating around. Submitted by: Craig Boston Notes: svn path=/head/; revision=116240
* Add PCI ID's for the 4 USB hubs on the ICH5 controller.John Baldwin2003-05-061-0/+20
| | | | | | | Approved by: re (murray) Notes: svn path=/head/; revision=114783
* These appear to work as cardbus cards tooWarner Losh2003-02-281-0/+1
| | | | Notes: svn path=/head/; revision=111669
* Use the correct size for reading and writing the PCI config space.Marcel Moolenaar2003-02-231-5/+5
| | | | | | | | | | | Reading the PCI config space with the wrong (larger) size is not a problem in this case, but writing can be as it clobbers unrelated registers. In this case the clobbering is for reserved fields, which too is mostly harmless... for now. Hence, this change is mostly preventive in nature. Notes: svn path=/head/; revision=111380
* Add a device description for Intel 82801CA/CAM (ICH3) USB controllerJosef Karthauser2002-08-281-0/+5
| | | | | | | | | USB-C. PR: kern/41963 Notes: svn path=/head/; revision=102537
* Add a comment to remind that uhci_pci_match will never return NULL.Josef Karthauser2002-08-181-6/+11
| | | | | | | | Don't display the "New UHCI DeviceId" message unless booting verbosely. Use a switch statement for the vendor match code. Notes: svn path=/head/; revision=102055
* Consolidate the device recognition code.Josef Karthauser2002-08-181-57/+4
| | | | Notes: svn path=/head/; revision=102038
* UHCI_DEBUG -> USB_DEBUG.Josef Karthauser2002-08-151-1/+1
| | | | Notes: svn path=/head/; revision=101952
* Add PCI IDs for the A, B, and C UHCI controllers in the ICH4.John Baldwin2002-07-191-0/+27
| | | | | | | Sponsored by: The Weather Channel Notes: svn path=/head/; revision=100381
* Fix a formatting error.Josef Karthauser2002-02-171-6/+6
| | | | Notes: svn path=/head/; revision=90767
* KNF style the code, ready for an MFC.Josef Karthauser2002-02-171-54/+64
| | | | Notes: svn path=/head/; revision=90766
* Add ICH3 (82801CA/CAM) and 460GXPeter Wemm2001-11-031-0/+24
| | | | Notes: svn path=/head/; revision=85945
* Add description for 82801BA controller.Jun Kuriyama2001-05-211-0/+16
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=76916
* Remove a couple of leftover unused variables.Mike Smith2000-12-131-1/+0
| | | | Notes: svn path=/head/; revision=69951
* We now have the ability to assign the correct IRQ when PNP-OS is turnedNick Sayer2000-12-031-10/+0
| | | | | | | | | | | on. So stop failing the attach if the IRQ is unassigned. With this patch, I can now boot with PNP-OS YES in my BIOS no differently than PNP-OS NO (which is a good thing since Windows hangs with PNP-OS NO). Obtained from: msmith Notes: svn path=/head/; revision=69553
* Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ingPoul-Henning Kamp2000-10-291-1/+0
| | | | | | | | | | | | | the offending inline function (BUF_KERNPROC) on it being #included already. I'm not sure BUF_KERNPROC() is even the right thing to do or in the right place or implemented the right way (inline vs normal function). Remove consequently unneeded #includes of <sys/proc.h> Notes: svn path=/head/; revision=67885
* Add 440MX chipset.Jun Kuriyama2000-05-241-0/+8
| | | | | | | | Submitted by: YOSHIMURA Hideaki <hideakiy@cs-tokyo01.chuosystem.co.jp> References: [bsd-nomads:13764] Notes: svn path=/head/; revision=60847
* Only display the 'Disable PNP-OS BIOS option' message on the i386 arch.John Baldwin2000-05-111-0/+2
| | | | | | | | | Alpha's don't have a PNP BIOS option. Reviewed by: n_hibma Notes: svn path=/head/; revision=60403
* Do the attach (and detach) properly. Store the cookies.Nick Hibma2000-05-071-40/+76
| | | | | | | This is a first step to make usb unloadable. Notes: svn path=/head/; revision=60191
* Add an ID for the SiS 5571.Nick Hibma2000-03-151-3/+2
| | | | | | | Remove the unnecessary use of parent. Notes: svn path=/head/; revision=58121
* Move the warning on wrong IRQ values to the right place, before anyNick Hibma2000-02-201-8/+8
| | | | | | | | | | resource allocation is attempted. It will present the user with a message that he has to switch on USB support in his BIOS. Notes: svn path=/head/; revision=57358
* Add PCI Id's for i810 chipsets.Nick Hibma2000-02-071-0/+16
| | | | | | | | | PR: 16517 Submitted by: SAKIYAMA Nobuo <sakichan@lares.dti.ne.jp> Approved by: jhk Notes: svn path=/head/; revision=57021
* Disable the generation of SMIs (System Management Interrupts). Always setNick Hibma2000-02-061-10/+10
| | | | | | | | | | | | | the PIRQD bit. This fixes the problem of uhub0 hanging forever during boot when USB keyboard support is switched on in the BIOS on motherboards with Intel chipsets (UHCI). Approved by: The Sheep Notes: svn path=/head/; revision=57009
* Commit missing bits, forgotten when committing support for suspend/resumeNick Hibma2000-02-041-4/+7
| | | | | | | | | | | for USB. Call uhci_power when suspending and resuming. Approved by: The One. Notes: svn path=/head/; revision=56987
* bus_release_resource is spellt like bus_release_resource not likeNick Hibma2000-01-311-13/+13
| | | | | | | | | | | | bus_delete_resource. Fixes a problem when the probe succeeded, but the attach failed. The release of the resources was done inproperly. Approved by: jkh Notes: svn path=/head/; revision=56921
* Properly teardown the allocated and initialised stuff when an errorNick Hibma2000-01-261-7/+5
| | | | | | | | | | | occurs (OHCIwas already done for UHCI). Get rid of the usbus variable. It is confusing. Align uhci_pci.c and ohci_pci.c again. Notes: svn path=/head/; revision=56632
* Don't set ivars until we checked the return value from device_add_child.Nick Hibma2000-01-261-1/+1
| | | | Notes: svn path=/head/; revision=56630
* Fix some warnings.Peter Wemm2000-01-231-2/+2
| | | | Notes: svn path=/head/; revision=56480
* Properly remove interrupts if initialisation fails.Nick Hibma2000-01-201-29/+37
| | | | Notes: svn path=/head/; revision=56343