00001 /** ============================================================================ 00002 * @file dm648_phy_pci.h 00003 * 00004 * @path $(DSPLINK)/gpp/inc/sys/arch/DM648/Linux/ 00005 * 00006 * @brief Hardware Abstraction Layer for DM648. 00007 * Define the Platform specific HAL (Hardware Abstraction Layer) 00008 * object. 00009 * 00010 * @ver 1.65.00.03 00011 * ============================================================================ 00012 * @copyright Copyright (C) 2002-2009, Texas Instruments Incorporated - 00013 * http://www.ti.com/ 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions 00017 * are met: 00018 * 00019 * * Redistributions of source code must retain the above copyright 00020 * notice, this list of conditions and the following disclaimer. 00021 * 00022 * * Redistributions in binary form must reproduce the above copyright 00023 * notice, this list of conditions and the following disclaimer in the 00024 * documentation and/or other materials provided with the distribution. 00025 * 00026 * * Neither the name of Texas Instruments Incorporated nor the names of 00027 * its contributors may be used to endorse or promote products derived 00028 * from this software without specific prior written permission. 00029 * 00030 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00031 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00032 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00033 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00034 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00035 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00036 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00037 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00038 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00039 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00040 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00041 * ============================================================================ 00042 */ 00043 00044 00045 #if !defined (DM648_PHY_PCI_H) 00046 #define DM648_PHY_PCI_H 00047 00048 00049 /* ----------------------------------- DSP/BIOS Link */ 00050 #include <dsplink.h> 00051 00052 /* ----------------------------------- Hardware Abstraction Layer */ 00053 #include <hal.h> 00054 #include <dm648_hal.h> 00055 #include <dm648_phy_pci.h> 00056 00057 00058 #if defined (__cplusplus) 00059 extern "C" { 00060 #endif 00061 00062 00063 /** ============================================================================ 00064 * @name DM648_pciInterface 00065 * 00066 * @brief Interface functions exported by the PCI subcomponent. 00067 * ============================================================================ 00068 */ 00069 extern HAL_Interface DM648_pciInterface ; 00070 00071 00072 /* ============================================================================ 00073 * @func DM648_phyPciInit 00074 * 00075 * @brief Initializes PCI device. 00076 * 00077 * @param halObject. 00078 * HAL object. 00079 * 00080 * @return DSP_SOK 00081 * Operation successfully completed. 00082 * DSP_EFAIL 00083 * All other error conditions. 00084 * 00085 * @pre None. 00086 * 00087 * @post None. 00088 * 00089 * @see None 00090 * ============================================================================ 00091 */ 00092 NORMAL_API 00093 DSP_STATUS 00094 DM648_phyPciInit (IN Pvoid halObject) ; 00095 00096 00097 /* ============================================================================ 00098 * @func DM648_phyPciExit 00099 * 00100 * @brief Finalizes PCI device. 00101 * 00102 * @param halObject. 00103 * HAL object. 00104 * 00105 * @return DSP_SOK 00106 * Operation successfully completed. 00107 * DSP_EFAIL 00108 * All other error conditions. 00109 * 00110 * @pre None. 00111 * 00112 * @post None. 00113 * 00114 * @see None 00115 * ============================================================================ 00116 */ 00117 NORMAL_API 00118 DSP_STATUS 00119 DM648_phyPciExit (IN Pvoid halObject) ; 00120 00121 00122 #if defined (__cplusplus) 00123 } 00124 #endif 00125 00126 00127 #endif /* !defined (DM648_PHY_PCI_H) */