summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
Commit message (Collapse)AuthorAgeFilesLines
* Add pci_resume() to reestablish interrupt routing afteriwasaki2003-09-171-0/+1
| | | | | | suspend/resume. Especially after hibernation, interrupt routing went back to initial status on some machines.
* Prefer the uintXX_t to the u_intXX_t names.imp2003-08-221-2/+2
|
* Add a new PCI interface method, assign_interrupt, to determine thetmm2003-07-011-0/+1
| | | | | | | | | | | | | | | | interrupt to be used for a device. This is intended solely for internal use of PCI bus implementations, and exists so that PCI bus drivers implementing special interrupt assignment methods which require additional work at the bus level to work right can be easily derived from the generic driver (or any other one) without resorting to hacks. It will be used in the sparc64 ofw_pcibus driver, which will be committed shortly. Make use of this method in the generic implementation, and add it to the method table of bus drivers derived from the PCI one. Reviewed by: imp, -hackers
* Return status for PCI methods '{enable,disable}_{io,busmaster}'.mdodd2003-04-161-4/+4
| | | | Reviewed by: imp
* Move the pnp and location info into the common pci bus. Make all knownimp2003-02-171-0/+4
| | | | | | | | | pci busses implement this. Also minor comment smithing in cardbus. Fix copyright to this year with my name on it since I've been doing a lot to this file. Reviewed by: jhb
* These don't need to be semi-public after all.imp2003-02-171-3/+0
|
* Use rman_get_device rather than rle->resl->r_dev.imp2003-02-161-1/+3
| | | | | make pci_hdrtypedata and pci_read_extcap accessible (but maybe in the end we'll make them private again).
* - Make pci_load_vendor_data() static and do it during MOD_LOAD instead ofjhb2002-09-041-1/+0
| | | | | | | when the first PCI bus attaches. - Create /dev/pci during MOD_LOAD as well. - Destroy /dev/pci during MOD_UNLOAD (not that you can kldunload pci, but might as well get the code right)
* Various changes to make it easier to subclass the PCI bus device.jhb2002-08-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | - Make the pci devclass a global variable. - Add child devices in pci_attach() instead of pci_probe(). Change pci_probe() to just check for a valid bus number from the associated bridge and return -1000 if successful. This allows subclasses of the PCI bus driver to override the generic driver. - Move the code to load the vendor data into its own public function. Really though, doing this at attach is just plain wrong. This should really be done in the module load routine instead. As a side effect, the 'busno' variable in pci_attach() is now no longer static (minor bug that was harmless so far.) - Change pci_add_children() to take an extra argument that is the size of the device info structure passed to pci_read_device() and make it public so subclasses of the PCI bus can call it in their attach routines. - Move the bits to attach a probed PCI child to a PCI bus into a global pci_add_child() function. This will allow subclasses that can detect a PCI device not found in the normal PCI probe to add those devices in their own attach routine. (I have seen this in the ACPI tree on my laptop for example.) As a side effect, change the static function pci_add_resources() to get the busno, slot, and func from the passed in dinfo structure instead of requiring them as function arguments. Tested on: i386, alpha, ia64, sparc64
* Add 5th parameter to pci_read_device specifying the size of the objectimp2002-03-131-1/+2
| | | | to create.
* Use the pci.c code wherever possible, rather than copying all the pciimp2002-02-271-0/+67
code into cardbus and s/pci/cardbus. This exposes a few pci_* functions that are now static. This work is similar to work Justin posted to the mobile list about a year or two ago, which I have neglected since then. This is a subset of his current work with the multiple inheritance newbus architecutre. When completed, that will eliminate the need for pci/pci_private.h. Similar work is needed for the cardbus_cis and pccard_cis code as well.
OpenPOWER on IntegriCloud