1f29dbc25Smrg/* Copyright (c) 2005 Advanced Micro Devices, Inc. 2f29dbc25Smrg * 3f29dbc25Smrg * Permission is hereby granted, free of charge, to any person obtaining a copy 4f29dbc25Smrg * of this software and associated documentation files (the "Software"), to 5f29dbc25Smrg * deal in the Software without restriction, including without limitation the 6f29dbc25Smrg * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7f29dbc25Smrg * sell copies of the Software, and to permit persons to whom the Software is 8f29dbc25Smrg * furnished to do so, subject to the following conditions: 9f29dbc25Smrg * 10f29dbc25Smrg * The above copyright notice and this permission notice shall be included in 11f29dbc25Smrg * all copies or substantial portions of the Software. 12f29dbc25Smrg * 13f29dbc25Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14f29dbc25Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15f29dbc25Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16f29dbc25Smrg * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17f29dbc25Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18f29dbc25Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19f29dbc25Smrg * IN THE SOFTWARE. 20f29dbc25Smrg * 21f29dbc25Smrg * Neither the name of the Advanced Micro Devices, Inc. nor the names of its 22f29dbc25Smrg * contributors may be used to endorse or promote products derived from this 23f29dbc25Smrg * software without specific prior written permission. 24f29dbc25Smrg * */ 25f29dbc25Smrg 26f29dbc25Smrg/* 27f29dbc25Smrg * File Contents: This file contains the Geode frame buffer panel functions 28f29dbc25Smrg * prototypes and it includes panel definitions header file. 29f29dbc25Smrg * 30f29dbc25Smrg * SubModule: Geode FlatPanel library 31f29dbc25Smrg * */ 32f29dbc25Smrg 33f29dbc25Smrg/* COMPILER OPTION FOR C++ PROGRAMS */ 34f29dbc25Smrg 35f29dbc25Smrg#ifndef _panel_h 36f29dbc25Smrg#define _panel_h 37f29dbc25Smrg 38f29dbc25Smrg#include "pnl_defs.h" 39f29dbc25Smrg 40f29dbc25Smrg#ifdef __cplusplus 4104007ebaSmrgextern "C" { 42f29dbc25Smrg#endif 43f29dbc25Smrg 44f29dbc25Smrg/* CLOSE BRACKET FOR C++ COMPLILATION */ 45f29dbc25Smrg 46f29dbc25Smrg void Pnl_SetPlatform(int platform); 47f29dbc25Smrg int Pnl_GetPlatform(void); 48f29dbc25Smrg int Pnl_IsPanelPresent(void); 49f29dbc25Smrg void Pnl_SetPanelPresent(int present); 50f29dbc25Smrg void Pnl_SetPanelChip(int panelChip); 51f29dbc25Smrg int Pnl_GetPanelChip(void); 52f29dbc25Smrg void Pnl_SetPanelParam(Pnl_PanelParams * pParam); 53f29dbc25Smrg void Pnl_GetPanelParam(Pnl_PanelParams * pParam); 54f29dbc25Smrg int Pnl_InitPanel(Pnl_PanelParams * pParam); 55f29dbc25Smrg int Detect_Platform(void); 56f29dbc25Smrg void Pnl_SavePanelState(void); 57f29dbc25Smrg void Pnl_RestorePanelState(void); 58f29dbc25Smrg void Pnl_PowerUp(void); 59f29dbc25Smrg void Pnl_PowerDown(void); 60f29dbc25Smrg 61f29dbc25Smrg int Pnl_IsPanelEnabledInBIOS(void); 62f29dbc25Smrg void Pnl_GetPanelInfoFromBIOS(int *xres, int *yres, int *bpp, int *hz); 63f29dbc25Smrg/* from durango */ 64f29dbc25Smrg 6504007ebaSmrg#if defined(_WIN32) /* windows */ 66f29dbc25Smrg extern void gfx_delay_milliseconds(unsigned long milliseconds); 67f29dbc25Smrg extern unsigned long gfx_ind(unsigned short port); 68f29dbc25Smrg extern void gfx_outd(unsigned short port, unsigned long data); 69f29dbc25Smrg extern unsigned char gfx_inb(unsigned short port); 70f29dbc25Smrg extern void gfx_outb(unsigned short port, unsigned char data); 71f29dbc25Smrg#endif 72f29dbc25Smrg 73f29dbc25Smrg#ifdef __cplusplus 74f29dbc25Smrg} 75f29dbc25Smrg#endif 7604007ebaSmrg#endif /* !_panel_h */ 77f29dbc25Smrg/* END OF FILE */ 78