893ff85086160f9989a3ec0708283d43bcdb1f95
1 /**
2 * @file VAYUIpuPhyShmem.h
3 *
4 * @brief Physical Interface Abstraction Layer for VAYUIPU.
5 *
6 * This file contains the definitions for shared memory physical
7 * link being used with VAYUIPU.
8 * The implementation is specific to VAYUIPU.
9 *
10 *
11 */
12 /*
13 * ============================================================================
14 *
15 * Copyright (c) 2013, Texas Instruments Incorporated
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 *
21 * * Redistributions of source code must retain the above copyright
22 * notice, this list of conditions and the following disclaimer.
23 *
24 * * Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 *
28 * * Neither the name of Texas Instruments Incorporated nor the names of
29 * its contributors may be used to endorse or promote products derived
30 * from this software without specific prior written permission.
31 *
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
34 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
35 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
36 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
37 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
38 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
39 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
41 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
42 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 * Contact information for paper mail:
44 * Texas Instruments
45 * Post Office Box 655303
46 * Dallas, Texas 75265
47 * Contact information:
48 * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
49 * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
50 * ============================================================================
51 *
52 */
55 #ifndef VAYUIPUPHYSHMEM_H_0xbbed
56 #define VAYUIPUPHYSHMEM_H_0xbbed
59 /* Module level headers */
60 #include <_ProcDefs.h>
63 #if defined (__cplusplus)
64 extern "C" {
65 #endif
68 /* =============================================================================
69 * Macros and types
70 * See _ProcDefs.h
71 * =============================================================================
72 */
73 /*!
74 * @brief Base addresses of PRCM module.
75 */
76 #define PRCM_BASE_ADDR 0x4AE06700
77 /*!
78 * @brief Base addresses of different peripherals.
79 */
81 #define PRCM_SIZE 0x00002000
83 /*!
84 * @brief Base addresses of PRCM module.
85 */
86 #define CM_BASE_ADDR 0x4A008700
87 /*!
88 * @brief Base addresses of different peripherals.
89 */
91 #define CM_SIZE 0x00002000
93 #define MMU_BASE 0x55082000
94 /*!
95 * @brief size to be ioremapped.
96 */
97 #define MMU_SIZE 0x1000
99 /*!
100 * @def CTRL_MODULE_BASE
101 * @brief configuration address.
102 */
103 #define CTRL_MODULE_BASE 0x4A002000
105 /*!
106 * @def CTRL_MODULE_SIZE
107 * @brief size to be ioremapped.
108 */
109 #define CTRL_MODULE_SIZE 0x1000
111 /* =============================================================================
112 * APIs
113 * =============================================================================
114 */
115 /* Initializes Shared Driver/device. */
116 Int VAYUIPU_phyShmemInit (Ptr halObj);
118 /* Finalizes Shared Driver/device. */
119 Int VAYUIPU_phyShmemExit (Ptr halObj);
122 #if defined (__cplusplus)
123 }
124 #endif /* defined (__cplusplus) */
126 #endif /* vayuipu_phy_shmem_H_0xbbec */