X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=ath%2Fif_ath_pci.h;h=23e504c5f40f960c0117ac390e23ee644e3a140c;hb=e6cb21364bf51cb2379da273339249f05fdb8e30;hp=0263a68a494b4d580604009b72fda8f7978e2f0c;hpb=a08cab1f36b44eb147daf8c2a2e106fd136b7a28;p=madwifi%2F.git diff --git a/ath/if_ath_pci.h b/ath/if_ath_pci.h index 0263a68..23e504c 100644 --- a/ath/if_ath_pci.h +++ b/ath/if_ath_pci.h @@ -43,32 +43,10 @@ #include #define bus_map_single pci_map_single #define bus_unmap_single pci_unmap_single - -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) #define bus_dma_sync_single pci_dma_sync_single_for_cpu -#define PCI_SAVE_STATE(a,b) pci_save_state(a) -#define PCI_RESTORE_STATE(a,b) pci_restore_state(a) -#else -#define bus_dma_sync_single pci_dma_sync_single -#define PCI_SAVE_STATE(a,b) pci_save_state(a, b) -#define PCI_RESTORE_STATE(a,b) pci_restore_state(a, b) -#endif - #define bus_alloc_consistent pci_alloc_consistent #define bus_free_consistent pci_free_consistent #define BUS_DMA_FROMDEVICE PCI_DMA_FROMDEVICE #define BUS_DMA_TODEVICE PCI_DMA_TODEVICE -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) -#define pm_message_t u32 -#endif - -#ifndef PCI_D0 -#define PCI_D0 0 -#endif - -#ifndef PCI_D3hot -#define PCI_D3hot 3 -#endif - #endif /* _DEV_ATH_PCI_H_ */