1 | /* |
2 | Copyright (c) 2012, Broadcom Europe Ltd |
3 | All rights reserved. |
4 | |
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the following conditions are met: |
7 | * Redistributions of source code must retain the above copyright |
8 | notice, this list of conditions and the following disclaimer. |
9 | * Redistributions in binary form must reproduce the above copyright |
10 | notice, this list of conditions and the following disclaimer in the |
11 | documentation and/or other materials provided with the distribution. |
12 | * Neither the name of the copyright holder nor the |
13 | names of its contributors may be used to endorse or promote products |
14 | derived from this software without specific prior written permission. |
15 | |
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY |
20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ |
27 | #ifndef VC_VCHI_DISPMANX_COMMON_H |
28 | #define VC_VCHI_DISPMANX_COMMON_H |
29 | |
30 | typedef enum { |
31 | // IMPORTANT - DO NOT ALTER THE ORDER OF COMMANDS IN THIS ENUMERATION |
32 | // NEW FUNCTIONS SHOULD BE ADDED TO THE END, AND MUST ALSO BE ADDED TO |
33 | // THE HOST SIDE FUNCTION TABLE IN display_server.c. |
34 | |
35 | // No function configured - do not use |
36 | EDispmanNoFunction = 0, |
37 | |
38 | // Dispman pre-configure functions |
39 | EDispmanGetDevices, |
40 | EDispmanGetModes, |
41 | |
42 | // Dispman resource-related functions |
43 | EDispmanResourceCreate, |
44 | EDispmanResourceCreateFromImage, |
45 | EDispmanResourceDelete, |
46 | EDispmanResourceGetData, |
47 | EDispmanResourceGetImage, |
48 | |
49 | // Dispman display-related functions |
50 | EDispmanDisplayOpen, |
51 | EDispmanDisplayOpenMode, |
52 | EDispmanDisplayOpenOffscreen, |
53 | EDispmanDisplayReconfigure, |
54 | EDispmanDisplaySetDestination, |
55 | EDispmanDisplaySetBackground, |
56 | EDispmanDisplayGetInfo, |
57 | EDispmanDisplayClose, |
58 | |
59 | // Dispman update-related functions |
60 | EDispmanUpdateStart, |
61 | EDispmanUpdateSubmit, |
62 | EDispmanUpdateSubmitSync, |
63 | |
64 | // Dispman element-related functions |
65 | EDispmanElementAdd, |
66 | EDispmanElementModified, |
67 | EDispmanElementRemove, |
68 | EDispmanElementChangeSource, |
69 | EDispmanElementChangeLayer, |
70 | EDispmanElementChangeAttributes, |
71 | |
72 | //More commands go here... |
73 | EDispmanResourceFill, //Comes from uideck |
74 | EDispmanQueryImageFormats, |
75 | EDispmanBulkWrite, |
76 | EDispmanBulkRead, |
77 | EDispmanDisplayOrientation, |
78 | EDispmanSnapshot, |
79 | EDispmanSetPalette, |
80 | EDispmanVsyncCallback, |
81 | |
82 | EDispmanMaxFunction |
83 | } DISPMANX_COMMAND_T; |
84 | |
85 | #endif |
86 | |