Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

omap2530_phy_shmem.h

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

Generated on Fri Jul 16 14:34:02 2010 for DSP/BIOSLink by  doxygen 1.4.4