summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci_pci.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass an explicit pointer to the bus structure in the 'usb' device ivarjb2004-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.
* Add device IDs for Intel ICH6.le2004-10-131-0/+20
| | | | | PR: kern/72492 Submitted by: Florian Le Goff <madflo@beertech.org>
* Make the USB subsystem unloadable and detachable, though currentlyiedowse2004-08-021-16/+8
| | | | | a significant amount of memory may be leaked each time a host controller is detached.
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+3
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Fix a suspend/resume issue. My Compaq N400c works fine.shiba2004-01-121-0/+2
|
* Sometimes cardbus attachments don't attach, so while we track downimp2003-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@)
* Remove explicit cardbus attachments from drivers where this is identicaldfr2003-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
* Use __FBSDID().obrien2003-08-241-3/+4
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-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.
* Enable bus mastering in the attach routine. This appears to fix theimp2003-06-121-0/+2
| | | | | | USB 2.0 cardbus cards that have been floating around. Submitted by: Craig Boston
* Add PCI ID's for the 4 USB hubs on the ICH5 controller.jhb2003-05-061-0/+20
| | | | Approved by: re (murray)
* These appear to work as cardbus cards tooimp2003-02-281-0/+1
|
* Use the correct size for reading and writing the PCI config space.marcel2003-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.
* Add a device description for Intel 82801CA/CAM (ICH3) USB controllerjoe2002-08-281-0/+5
| | | | | | USB-C. PR: kern/41963
* Add a comment to remind that uhci_pci_match will never return NULL.joe2002-08-181-6/+11
| | | | | Don't display the "New UHCI DeviceId" message unless booting verbosely. Use a switch statement for the vendor match code.
* Consolidate the device recognition code.joe2002-08-181-57/+4
|
* UHCI_DEBUG -> USB_DEBUG.joe2002-08-151-1/+1
|
* Add PCI IDs for the A, B, and C UHCI controllers in the ICH4.jhb2002-07-191-0/+27
| | | | Sponsored by: The Weather Channel
* Fix a formatting error.joe2002-02-171-6/+6
|
* KNF style the code, ready for an MFC.joe2002-02-171-54/+64
|
* Add ICH3 (82801CA/CAM) and 460GXpeter2001-11-031-0/+24
|
* Add description for 82801BA controller.kuriyama2001-05-211-0/+16
| | | | MFC after: 1 week
* Remove a couple of leftover unused variables.msmith2000-12-131-1/+0
|
* We now have the ability to assign the correct IRQ when PNP-OS is turnednsayer2000-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
* Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ingphk2000-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>
* Add 440MX chipset.kuriyama2000-05-241-0/+8
| | | | | Submitted by: YOSHIMURA Hideaki <hideakiy@cs-tokyo01.chuosystem.co.jp> References: [bsd-nomads:13764]
* Only display the 'Disable PNP-OS BIOS option' message on the i386 arch.jhb2000-05-111-0/+2
| | | | | | Alpha's don't have a PNP BIOS option. Reviewed by: n_hibma
* Do the attach (and detach) properly. Store the cookies.n_hibma2000-05-071-40/+76
| | | | This is a first step to make usb unloadable.
* Add an ID for the SiS 5571.n_hibma2000-03-151-3/+2
| | | | Remove the unnecessary use of parent.
* Move the warning on wrong IRQ values to the right place, before anyn_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.
* Add PCI Id's for i810 chipsets.n_hibma2000-02-071-0/+16
| | | | | | PR: 16517 Submitted by: SAKIYAMA Nobuo <sakichan@lares.dti.ne.jp> Approved by: jhk
* Disable the generation of SMIs (System Management Interrupts). Always setn_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
* Commit missing bits, forgotten when committing support for suspend/resumen_hibma2000-02-041-4/+7
| | | | | | | | for USB. Call uhci_power when suspending and resuming. Approved by: The One.
* bus_release_resource is spellt like bus_release_resource not liken_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
* Properly teardown the allocated and initialised stuff when an errorn_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.
* Don't set ivars until we checked the return value from device_add_child.n_hibma2000-01-261-1/+1
|
* Fix some warnings.peter2000-01-231-2/+2
|
* Properly remove interrupts if initialisation fails.n_hibma2000-01-201-29/+37
|
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-1/+2
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Fix the 'usb0: USB revision unknown, not supported' people have been seeingn_hibma1999-12-031-15/+10
| | | | | | | | by identifying the version in the PCI drivers. The OHCI driver just presets this to 1.0 as it is not specified in the PCI registers anywhere. This should be revisited once USB 2.0 is in wide spread use.
* Remove some bogus bus methods peter added. We are hardly doingn_hibma1999-11-221-6/+1
| | | | anything as a bus.
* remove the use of uhci_reset to wake up the controller aftern_hibma1999-10-071-5/+4
| | | | | | resume/suspend (->resume is broken again, will be fixed properly ASAP) style fixes
* Check for a valid irq number before calling BUS_SETUP_INTR.n_hibma1999-10-031-3/+14
| | | | Requested-By: msmith
* Reset the UHCI controller when the device comes back from suspend.n_hibma1999-08-231-6/+33
| | | | | | | This should be replaced by proper support for suspend one day (global suspend). Submitted-by: Christopher Masto <chris@netmonger.net>
* 1) rename dev->self to be consistentn_hibma1999-08-181-44/+60
| | | | | 2) use device_printf 3) properly tear down and disable interrupts when init fails
* Remove option USBVERBOSEn_hibma1999-06-161-2/+2
| | | | | | Add the options for debugging used in dev/usb/*.c Submitted by: Kazu
* Shorten the strings a bit (remove 'Host')n_hibma1999-06-131-9/+10
|
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-3/+3
| | | | to the BUS_SETUP_INTR call.
* Move the disabling of interrupts right before the allocation of then_hibma1999-05-011-1/+16
| | | | | | resource. Avoids useless interrupts occurring between the allocation of the interrupt resource and the final initialisation of the kernel. Cause of these interrupts is unknown (a resuming device?).
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-71/+95
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
OpenPOWER on IntegriCloud