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_bus.h,v 1.1.1.1 2004/05/29 02:49:49 jbicket Exp $ 00038 */ 00039 #ifndef _IF_ATHBUS_H 00040 #define _IF_ATHBUS_H 00041 00042 struct ath_bus_softc { 00043 struct ath_softc aps_sc; 00044 #ifdef CONFIG_PM 00045 u32 aps_pmstate[16]; 00046 #endif 00047 }; 00048 00049 extern struct ath_bus_softc *ath_bus_getsc(void); 00050 extern void ath_bus_freesc(struct ath_bus_softc *sc); 00051 extern void bus_read_cachesize(struct ath_softc *sc, u_int8_t *csz); 00052 00053 #ifdef ATH_PCI /* PCI BUS */ 00054 #include "if_ath_pci.h" 00055 #else 00056 #ifdef ATH_LBUS /* LBUS */ 00057 #include "if_ath_lbus.h" 00058 #endif /* LBUS */ 00059 #endif /* PCI BUS */ 00060 00061 #endif /* _IF_ATHBUS_H */