00001 /** ============================================================================ 00002 * @file dm6437_phy_pci.h 00003 * 00004 * @path $(DSPLINK)/gpp/inc/sys/arch/DM6437/Linux/ 00005 * 00006 * @brief Hardware Abstraction Layer for DM6437. 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 (DM6437_PHY_PCI_H) 00046 #define DM6437_PHY_PCI_H 00047 00048 00049 /* ----------------------------------- DSP/BIOS Link */ 00050 #include <dsplink.h> 00051 00052 /* ----------------------------------- Hardware Abstraction Layer */ 00053 #include <hal.h> 00054 #include <dm6437_hal.h> 00055 #include <dm6437_phy_pci.h> 00056 00057 00058 #if defined (__cplusplus) 00059 extern "C" { 00060 #endif 00061 00062 00063 /** ============================================================================ 00064 * @name DM6437_pciInterface 00065 * 00066 * @brief Interface functions exported by the PCI subcomponent. 00067 * ============================================================================ 00068 */ 00069 extern HAL_Interface DM6437_pciInterface ; 00070 00071 00072 /* ============================================================================ 00073 * @func DM6437_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_ENOTFOUND 00083 * Specified PCI card was not found at the particular BUS and slot. 00084 * DSP_EFAIL 00085 * A general failure occurred. 00086 * 00087 * @pre None. 00088 * 00089 * @post None. 00090 * 00091 * @see None 00092 * ============================================================================ 00093 */ 00094 NORMAL_API 00095 DSP_STATUS 00096 DM6437_phyPciInit (IN Pvoid halObject) ; 00097 00098 00099 /* ============================================================================ 00100 * @func DM6437_phyPciExit 00101 * 00102 * @brief Finalizes PCI device. 00103 * 00104 * @param halObject. 00105 * HAL object. 00106 * 00107 * @return DSP_SOK 00108 * Operation successfully completed. 00109 * DSP_EFAIL 00110 * All other error conditions. 00111 * 00112 * @pre None. 00113 * 00114 * @post None. 00115 * 00116 * @see None 00117 * ============================================================================ 00118 */ 00119 NORMAL_API 00120 DSP_STATUS 00121 DM6437_phyPciExit (IN Pvoid halObject) ; 00122 00123 00124 #if defined (__cplusplus) 00125 } 00126 #endif 00127 00128 00129 #endif /* !defined (DM6437_PHY_PCI_H) */