| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2007-2010 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: nexus_graphics2d_init.h $ |
|---|
| 39 | * $brcm_Revision: 4 $ |
|---|
| 40 | * $brcm_Date: 7/14/10 10:33a $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /nexus/modules/graphics2d/7400/include/nexus_graphics2d_init.h $ |
|---|
| 47 | * |
|---|
| 48 | * 4 7/14/10 10:33a erickson |
|---|
| 49 | * SW7405-4621: replace nexus_base.h with nexus_types.h |
|---|
| 50 | * |
|---|
| 51 | * 3 12/3/08 3:07p erickson |
|---|
| 52 | * PR48963: deprecate NEXUS_Graphics2DModuleSettings.stripeWidth. no |
|---|
| 53 | * longer used. |
|---|
| 54 | * |
|---|
| 55 | * 2 4/11/08 12:36p erickson |
|---|
| 56 | * PR41695: added Graphics2D stripeWidth setting |
|---|
| 57 | * |
|---|
| 58 | * 1 1/18/08 2:21p jgarrett |
|---|
| 59 | * PR 38808: Merging to main branch |
|---|
| 60 | * |
|---|
| 61 | * Nexus_Devel/3 11/30/07 11:12a erickson |
|---|
| 62 | * PR35457: api update |
|---|
| 63 | * |
|---|
| 64 | * Nexus_Devel/2 11/28/07 2:11p erickson |
|---|
| 65 | * PR35457: doc update |
|---|
| 66 | * |
|---|
| 67 | * Nexus_Devel/1 10/19/07 9:38a erickson |
|---|
| 68 | * PR36275: initial |
|---|
| 69 | * |
|---|
| 70 | **************************************************************************/ |
|---|
| 71 | #ifndef NEXUS_GRAPHICS2D_INIT_H__ |
|---|
| 72 | #define NEXUS_GRAPHICS2D_INIT_H__ |
|---|
| 73 | |
|---|
| 74 | /*========================================= |
|---|
| 75 | The Graphics2D Module managers the graphics compositor hardware (GRC). |
|---|
| 76 | The GRC is able to perform blits and fills to and from memory. |
|---|
| 77 | |
|---|
| 78 | Graphics2D provides a single Interface. See NEXUS_Graphics2D_Open. |
|---|
| 79 | ===========================================*/ |
|---|
| 80 | |
|---|
| 81 | #include "nexus_types.h" |
|---|
| 82 | |
|---|
| 83 | #ifdef __cplusplus |
|---|
| 84 | extern "C" { |
|---|
| 85 | #endif |
|---|
| 86 | |
|---|
| 87 | /** |
|---|
| 88 | Summary: |
|---|
| 89 | Settings used to configure the Graphics2D module. |
|---|
| 90 | |
|---|
| 91 | Description: |
|---|
| 92 | |
|---|
| 93 | See Also: |
|---|
| 94 | NEXUS_Graphics2DModule_GetDefaultSettings |
|---|
| 95 | NEXUS_Graphics2DModule_Init |
|---|
| 96 | **/ |
|---|
| 97 | typedef struct NEXUS_Graphics2DModuleSettings |
|---|
| 98 | { |
|---|
| 99 | NEXUS_ModuleHandle surface; /* See NEXUS_SurfaceModule_Init */ |
|---|
| 100 | unsigned stripeWidth; /* Deprecated. This parameter is no longer used. */ |
|---|
| 101 | } NEXUS_Graphics2DModuleSettings; |
|---|
| 102 | |
|---|
| 103 | /** |
|---|
| 104 | Summary: |
|---|
| 105 | Get default settings for the structure. |
|---|
| 106 | |
|---|
| 107 | Description: |
|---|
| 108 | This is required in order to make application code resilient to the addition of new strucutre members in the future. |
|---|
| 109 | |
|---|
| 110 | See Also: |
|---|
| 111 | NEXUS_Graphics2DModule_Init |
|---|
| 112 | **/ |
|---|
| 113 | void NEXUS_Graphics2DModule_GetDefaultSettings( |
|---|
| 114 | NEXUS_Graphics2DModuleSettings *pSettings /* [out] */ |
|---|
| 115 | ); |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | Summary: |
|---|
| 119 | Initialize the Graphics2D module. |
|---|
| 120 | |
|---|
| 121 | Description: |
|---|
| 122 | This is called by the NEXUS Platform when the system is initialized. |
|---|
| 123 | |
|---|
| 124 | See Also: |
|---|
| 125 | NEXUS_Graphics2DModule_Uninit |
|---|
| 126 | NEXUS_Graphics2D_Create - create a new Graphics2D |
|---|
| 127 | **/ |
|---|
| 128 | NEXUS_ModuleHandle NEXUS_Graphics2DModule_Init( |
|---|
| 129 | const NEXUS_Graphics2DModuleSettings *pSettings |
|---|
| 130 | ); |
|---|
| 131 | |
|---|
| 132 | /** |
|---|
| 133 | Summary: |
|---|
| 134 | Uninitialize the Graphics2D module. |
|---|
| 135 | |
|---|
| 136 | Description: |
|---|
| 137 | This is called by the NEXUS Platform when the system is uninitialized. |
|---|
| 138 | |
|---|
| 139 | See Also: |
|---|
| 140 | NEXUS_Graphics2DModule_Init |
|---|
| 141 | **/ |
|---|
| 142 | void NEXUS_Graphics2DModule_Uninit(void); |
|---|
| 143 | |
|---|
| 144 | #ifdef __cplusplus |
|---|
| 145 | } |
|---|
| 146 | #endif |
|---|
| 147 | |
|---|
| 148 | #endif |
|---|