Module Name: src Committed By: riastradh Date: Wed Jul 24 03:24:03 UTC 2013
Modified Files: src/sys/external/bsd/drm2/dist/include/drm [riastradh-drm2]: drmP.h src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: pci.h src/sys/external/bsd/drm2/pci [riastradh-drm2]: drm_pci.c Log Message: Kludge up Linux PCI device shims. . New drm_pci_attach/drm_pci_detach simplify initialization of autoconf-derived struct pci_dev. . New linux_pci_dev_init initializes struct pci_dev so that there's one place where all its fields are listed. The kludge parameter is, well, kludgey. Sorry. . Replace pci_kludgey_find_dev by pci_get_bus_and_slot with the same interface as Linux's, but some kasserts requiring it to look for the one bus/device/function tuple that i915drm is interested in. . Add pci_get_class which does similarly, for intel_detect_pch. Later pci_get_bus_and_slot and pci_get_class should be fixed once we can pass a cookie through PCI bus enumeration and pci_find_device. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1.2.48 -r1.1.1.1.2.49 \ src/sys/external/bsd/drm2/dist/include/drm/drmP.h cvs rdiff -u -r1.1.2.12 -r1.1.2.13 \ src/sys/external/bsd/drm2/include/linux/pci.h cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/external/bsd/drm2/pci/drm_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.