summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-03-19 02:43:38 +0000
committerbrad <brad@openbsd.org>2006-03-19 02:43:38 +0000
commitae08a99d4fbf2d03e79bcc50735d63ebce979d93 (patch)
treea1630da899385215a42aa392cc2a0f8f843fd7de /sys/dev/i2c
parentpotential NULL pointer dereferences detected by Coverity (diff)
downloadwireguard-openbsd-ae08a99d4fbf2d03e79bcc50735d63ebce979d93.tar.xz
wireguard-openbsd-ae08a99d4fbf2d03e79bcc50735d63ebce979d93.zip
rev 1.86
make the "generic" PCI bus enumeration code the standard case which gets used if nothing else is defined in MD headers, introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can be used by MD headers (just 1 port atm) to plug in special code rev 1.62 * Implement a machine-dependent pci_enumerate_bus() for sparc64 which uses OFW device nodes to enumerate the bus. When a PCI bus that is behind a bridge is attached, pci_attach_hook() allocates a new PCI chipset tag for the new bus and sets it's "curnode" to the OFW node of the bridge. This is used as a starting point when enumerating that bus. Root busses get the OFW node of the host bridge (psycho). rev 1.59 Split the code that enumerates the PCI bus and that actually probes for a device into two functions: * pci_probe_device() actually probes/attaches the device specified by the provide pcitag_t. * pci_enumerate_bus() enumerates the bus, and calls pci_probe_device() for each device on the bus. A pci_enumerate_bus_generic() is provided which implements the old method of doing this: If something found at dev0/func0, determine number of functions and probe each one. From NetBSD ok kettenis@ Tested on a good number of amd64/i386/macppc/sparc64 systems
Diffstat (limited to 'sys/dev/i2c')
0 files changed, 0 insertions, 0 deletions