1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * You should have received a copy of the GNU General Public License along with 15 * this program; if not, write to the Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 * 18 * 19 ******************************************************************************/ 20 #ifndef __PCI_OSINTF_H 21 #define __PCI_OSINTF_H 22 23 #ifdef RTK_129X_PLATFORM 24 #define PCIE_SLOT1_MEM_START 0x9804F000 25 #define PCIE_SLOT1_MEM_LEN 0x1000 26 #define PCIE_SLOT1_CTRL_START 0x9804EC00 27 28 #define PCIE_SLOT2_MEM_START 0x9803C000 29 #define PCIE_SLOT2_MEM_LEN 0x1000 30 #define PCIE_SLOT2_CTRL_START 0x9803BC00 31 32 #define PCIE_MASK_OFFSET 0x100 /* mask offset from CTRL_START */ 33 #define PCIE_TRANSLATE_OFFSET 0x104 /* translate offset from CTRL_START */ 34 #endif 35 36 void rtw_pci_disable_aspm(_adapter *padapter); 37 void rtw_pci_enable_aspm(_adapter *padapter); 38 void PlatformClearPciPMEStatus(PADAPTER Adapter); 39 #ifdef CONFIG_64BIT_DMA 40 u8 PlatformEnableDMA64(PADAPTER Adapter); 41 #endif 42 43 #endif 44