diff options
author | Stuart Bennett <stuart@freedesktop.org> | 2009-03-24 23:26:30 +0000 |
---|---|---|
committer | Stuart Bennett <stuart@freedesktop.org> | 2009-03-25 02:50:34 +0000 |
commit | 03ca202fa56ad7711ad0f7527a1e537154093e8a (patch) | |
tree | efb9e6c5c0c7fd1609b4fb075b1653b33b675b8e /linux-core | |
parent | b71f3f114e6f0e94e15958c0aa12e804392f9df2 (diff) |
nouveau: add linux compat defines for PCI config access, use them for nvidia IGPs
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_os_linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drm_os_linux.h b/linux-core/drm_os_linux.h index 4f1e83bf..f58296b7 100644 --- a/linux-core/drm_os_linux.h +++ b/linux-core/drm_os_linux.h @@ -125,3 +125,7 @@ do { \ #define DRM_SPINLOCK_IRQSAVE(l, _flags) spin_lock_irqsave(l, _flags); #define DRM_SPINUNLOCK_IRQRESTORE(l, _flags) spin_unlock_irqrestore(l, _flags); #define DRM_SPINLOCK_ASSERT(l) do {} while (0) + +#define DRM_PCI_DEV struct pci_dev +#define drm_pci_get_bsf(b, s, f) pci_get_bus_and_slot(b, PCI_DEVFN(s, f)) +#define drm_pci_read_config_dword pci_read_config_dword |