/*1* Copyright 2009 Advanced Micro Devices, Inc.2* Copyright 2009 Red Hat Inc.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* the rights to use, copy, modify, merge, publish, distribute, sublicense,8* and/or sell copies of the Software, and to permit persons to whom the9* Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice shall be included in12* all copies or substantial portions of the Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL17* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR18* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,19* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR20* OTHER DEALINGS IN THE SOFTWARE.21*22* Authors: Dave Airlie23* Alex Deucher24* Jerome Glisse25*/26#ifndef AVIVOD_H27#define AVIVOD_H282930#define D1CRTC_CONTROL 0x608031#define CRTC_EN (1 << 0)32#define D1CRTC_STATUS 0x609c33#define D1CRTC_UPDATE_LOCK 0x60E834#define D1GRPH_PRIMARY_SURFACE_ADDRESS 0x611035#define D1GRPH_SECONDARY_SURFACE_ADDRESS 0x61183637#define D2CRTC_CONTROL 0x688038#define D2CRTC_STATUS 0x689c39#define D2CRTC_UPDATE_LOCK 0x68E840#define D2GRPH_PRIMARY_SURFACE_ADDRESS 0x691041#define D2GRPH_SECONDARY_SURFACE_ADDRESS 0x69184243#define D1VGA_CONTROL 0x033044#define DVGA_CONTROL_MODE_ENABLE (1 << 0)45#define DVGA_CONTROL_TIMING_SELECT (1 << 8)46#define DVGA_CONTROL_SYNC_POLARITY_SELECT (1 << 9)47#define DVGA_CONTROL_OVERSCAN_TIMING_SELECT (1 << 10)48#define DVGA_CONTROL_OVERSCAN_COLOR_EN (1 << 16)49#define DVGA_CONTROL_ROTATE (1 << 24)50#define D2VGA_CONTROL 0x03385152#define VGA_HDP_CONTROL 0x32853#define VGA_MEM_PAGE_SELECT_EN (1 << 0)54#define VGA_MEMORY_DISABLE (1 << 4)55#define VGA_RBBM_LOCK_DISABLE (1 << 8)56#define VGA_SOFT_RESET (1 << 16)57#define VGA_MEMORY_BASE_ADDRESS 0x031058#define VGA_RENDER_CONTROL 0x030059#define VGA_VSTATUS_CNTL_MASK 0x000300006061#endif626364