/**************************************************************************** * * Copyright 2012 - 2017 Vivante Corporation, Santa Clara, California. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * 'Software'), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject * to the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial * portions of the Software. * * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. * IN NO EVENT SHALL VIVANTE AND/OR ITS SUPPLIERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *****************************************************************************/ /* * Copyright (C) 2011,2013 Freescale Semiconductor, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef __IMX_DISPLAY_H__ #define __IMX_DISPLAY_H__ #include "xf86.h" /* -------------------------------------------------------------------- */ typedef enum { ImxFbTypeUnknown = -1, ImxFbTypeDISP3_BG = 0, ImxFbTypeDISP3_FG = 1, ImxFbTypeDISP3_BG_D1 = 2, ImxFbTypeEPDC = 3 } ImxFbType; /* -------------------------------------------------------------------- */ extern Bool imxDisplayPreInit(ScrnInfoPtr pScrn); extern Bool imxDisplayFinishScreenInit(int scrnIndex, ScreenPtr pScreen); extern ModeStatus imxDisplayValidMode(VALID_MODE_DECL); extern Bool imxDisplaySwitchMode(SWITCH_MODE_ARGS_DECL); extern void imxDisplayAdjustFrame(ADJUST_FRAME_ARGS_DECL); extern Bool imxDisplayEnterVT(VT_FUNC_ARGS_DECL); extern void imxDisplayLeaveVT(VT_FUNC_ARGS_DECL); extern Bool imxPMEvent(PM_EVENT_DECL); extern Bool imxSetShadowBuffer(ScreenPtr pScreen); // Support non-standard display extern void imxInitSyncFlagsStorage(ScrnInfoPtr pScrn); extern void imxFreeSyncFlagsStorage(ScrnInfoPtr pScrn); extern Bool imxStoreSyncFlags(ScrnInfoPtr pScrn, const char *modeName, unsigned int value); extern Bool imxLoadSyncFlags(ScrnInfoPtr pScrn, const char *modeName, unsigned int *pSyncFlags); extern Bool imxGetDevicePreferredMode(ScrnInfoPtr pScrn); extern int imxRefreshModes(ScrnInfoPtr pScrn, int fbIndex, char *suggestMode); #endif