18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2009 Advanced Micro Devices, Inc. 38c2ecf20Sopenharmony_ci * Copyright 2009 Red Hat Inc. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 68c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 78c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 88c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 98c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 108c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 138c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 168c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 178c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 188c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 198c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 208c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 218c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 228c2ecf20Sopenharmony_ci * 238c2ecf20Sopenharmony_ci * Authors: Dave Airlie 248c2ecf20Sopenharmony_ci * Alex Deucher 258c2ecf20Sopenharmony_ci * Jerome Glisse 268c2ecf20Sopenharmony_ci */ 278c2ecf20Sopenharmony_ci#ifndef AVIVOD_H 288c2ecf20Sopenharmony_ci#define AVIVOD_H 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define D1CRTC_CONTROL 0x6080 328c2ecf20Sopenharmony_ci#define CRTC_EN (1 << 0) 338c2ecf20Sopenharmony_ci#define D1CRTC_STATUS 0x609c 348c2ecf20Sopenharmony_ci#define D1CRTC_UPDATE_LOCK 0x60E8 358c2ecf20Sopenharmony_ci#define D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110 368c2ecf20Sopenharmony_ci#define D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#define D2CRTC_CONTROL 0x6880 398c2ecf20Sopenharmony_ci#define D2CRTC_STATUS 0x689c 408c2ecf20Sopenharmony_ci#define D2CRTC_UPDATE_LOCK 0x68E8 418c2ecf20Sopenharmony_ci#define D2GRPH_PRIMARY_SURFACE_ADDRESS 0x6910 428c2ecf20Sopenharmony_ci#define D2GRPH_SECONDARY_SURFACE_ADDRESS 0x6918 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define D1VGA_CONTROL 0x0330 458c2ecf20Sopenharmony_ci#define DVGA_CONTROL_MODE_ENABLE (1 << 0) 468c2ecf20Sopenharmony_ci#define DVGA_CONTROL_TIMING_SELECT (1 << 8) 478c2ecf20Sopenharmony_ci#define DVGA_CONTROL_SYNC_POLARITY_SELECT (1 << 9) 488c2ecf20Sopenharmony_ci#define DVGA_CONTROL_OVERSCAN_TIMING_SELECT (1 << 10) 498c2ecf20Sopenharmony_ci#define DVGA_CONTROL_OVERSCAN_COLOR_EN (1 << 16) 508c2ecf20Sopenharmony_ci#define DVGA_CONTROL_ROTATE (1 << 24) 518c2ecf20Sopenharmony_ci#define D2VGA_CONTROL 0x0338 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define VGA_HDP_CONTROL 0x328 548c2ecf20Sopenharmony_ci#define VGA_MEM_PAGE_SELECT_EN (1 << 0) 558c2ecf20Sopenharmony_ci#define VGA_MEMORY_DISABLE (1 << 4) 568c2ecf20Sopenharmony_ci#define VGA_RBBM_LOCK_DISABLE (1 << 8) 578c2ecf20Sopenharmony_ci#define VGA_SOFT_RESET (1 << 16) 588c2ecf20Sopenharmony_ci#define VGA_MEMORY_BASE_ADDRESS 0x0310 598c2ecf20Sopenharmony_ci#define VGA_RENDER_CONTROL 0x0300 608c2ecf20Sopenharmony_ci#define VGA_VSTATUS_CNTL_MASK 0x00030000 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#endif 63