00001 /*- 00002 * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting 00003 * Copyright (c) 2004 Atheros Communications, Inc. 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer, 00011 * without modification. 00012 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 00013 * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 00014 * redistribution must be conditioned upon including a substantially 00015 * similar Disclaimer requirement for further binary redistribution. 00016 * 3. Neither the names of the above-listed copyright holders nor the names 00017 * of any contributors may be used to endorse or promote products derived 00018 * from this software without specific prior written permission. 00019 * 00020 * Alternatively, this software may be distributed under the terms of the 00021 * GNU General Public License ("GPL") version 2 as published by the Free 00022 * Software Foundation. 00023 * 00024 * NO WARRANTY 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00026 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00027 * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 00028 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00029 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 00030 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00031 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00032 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00033 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00034 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 00035 * THE POSSIBILITY OF SUCH DAMAGES. 00036 * 00037 * $Id: if_ath_pci.h,v 1.2 2005/01/20 01:06:27 jbicket Exp $ 00038 */ 00039 00040 #ifndef _DEV_ATH_PCI_H_ 00041 #define _DEV_ATH_PCI_H_ 00042 #include <linux/pci.h> 00043 #define bus_map_single pci_map_single 00044 #define bus_unmap_single pci_unmap_single 00045 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) 00046 #define bus_dma_sync_single pci_dma_sync_single_for_cpu 00047 #define PCI_SAVE_STATE(a,b) pci_save_state(a) 00048 #define PCI_RESTORE_STATE(a,b) pci_restore_state(a) 00049 #else 00050 #define bus_dma_sync_single pci_dma_sync_single 00051 #define PCI_SAVE_STATE(a,b) pci_save_state(a,b) 00052 #define PCI_RESTORE_STATE(a,b) pci_restore_state(a,b) 00053 #endif 00054 #define bus_alloc_consistent pci_alloc_consistent 00055 #define bus_free_consistent pci_free_consistent 00056 #define BUS_DMA_FROMDEVICE PCI_DMA_FROMDEVICE 00057 #define BUS_DMA_TODEVICE PCI_DMA_TODEVICE 00058 00059 #endif /* _DEV_ATH_PCI_H_ */