Home | History | Annotate | Line # | Download | only in radeon
      1  1.2  riastrad /*	$NetBSD: avivod.h,v 1.3 2021/12/18 23:45:42 riastradh Exp $	*/
      2  1.2  riastrad 
      3  1.1  riastrad /*
      4  1.1  riastrad  * Copyright 2009 Advanced Micro Devices, Inc.
      5  1.1  riastrad  * Copyright 2009 Red Hat Inc.
      6  1.1  riastrad  *
      7  1.1  riastrad  * Permission is hereby granted, free of charge, to any person obtaining a
      8  1.1  riastrad  * copy of this software and associated documentation files (the "Software"),
      9  1.1  riastrad  * to deal in the Software without restriction, including without limitation
     10  1.1  riastrad  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     11  1.1  riastrad  * and/or sell copies of the Software, and to permit persons to whom the
     12  1.1  riastrad  * Software is furnished to do so, subject to the following conditions:
     13  1.1  riastrad  *
     14  1.1  riastrad  * The above copyright notice and this permission notice shall be included in
     15  1.1  riastrad  * all copies or substantial portions of the Software.
     16  1.1  riastrad  *
     17  1.1  riastrad  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     18  1.1  riastrad  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     19  1.1  riastrad  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     20  1.1  riastrad  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
     21  1.1  riastrad  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     22  1.1  riastrad  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     23  1.1  riastrad  * OTHER DEALINGS IN THE SOFTWARE.
     24  1.1  riastrad  *
     25  1.1  riastrad  * Authors: Dave Airlie
     26  1.1  riastrad  *          Alex Deucher
     27  1.1  riastrad  *          Jerome Glisse
     28  1.1  riastrad  */
     29  1.1  riastrad #ifndef AVIVOD_H
     30  1.1  riastrad #define AVIVOD_H
     31  1.1  riastrad 
     32  1.1  riastrad 
     33  1.1  riastrad #define	D1CRTC_CONTROL					0x6080
     34  1.1  riastrad #define		CRTC_EN						(1 << 0)
     35  1.1  riastrad #define	D1CRTC_STATUS					0x609c
     36  1.1  riastrad #define	D1CRTC_UPDATE_LOCK				0x60E8
     37  1.1  riastrad #define	D1GRPH_PRIMARY_SURFACE_ADDRESS			0x6110
     38  1.1  riastrad #define	D1GRPH_SECONDARY_SURFACE_ADDRESS		0x6118
     39  1.1  riastrad 
     40  1.1  riastrad #define	D2CRTC_CONTROL					0x6880
     41  1.1  riastrad #define	D2CRTC_STATUS					0x689c
     42  1.1  riastrad #define	D2CRTC_UPDATE_LOCK				0x68E8
     43  1.1  riastrad #define	D2GRPH_PRIMARY_SURFACE_ADDRESS			0x6910
     44  1.1  riastrad #define	D2GRPH_SECONDARY_SURFACE_ADDRESS		0x6918
     45  1.1  riastrad 
     46  1.1  riastrad #define	D1VGA_CONTROL					0x0330
     47  1.1  riastrad #define		DVGA_CONTROL_MODE_ENABLE			(1 << 0)
     48  1.1  riastrad #define		DVGA_CONTROL_TIMING_SELECT			(1 << 8)
     49  1.1  riastrad #define		DVGA_CONTROL_SYNC_POLARITY_SELECT		(1 << 9)
     50  1.1  riastrad #define		DVGA_CONTROL_OVERSCAN_TIMING_SELECT		(1 << 10)
     51  1.1  riastrad #define		DVGA_CONTROL_OVERSCAN_COLOR_EN			(1 << 16)
     52  1.1  riastrad #define		DVGA_CONTROL_ROTATE				(1 << 24)
     53  1.1  riastrad #define D2VGA_CONTROL					0x0338
     54  1.1  riastrad 
     55  1.1  riastrad #define	VGA_HDP_CONTROL					0x328
     56  1.1  riastrad #define		VGA_MEM_PAGE_SELECT_EN				(1 << 0)
     57  1.1  riastrad #define		VGA_MEMORY_DISABLE				(1 << 4)
     58  1.1  riastrad #define		VGA_RBBM_LOCK_DISABLE				(1 << 8)
     59  1.1  riastrad #define		VGA_SOFT_RESET					(1 << 16)
     60  1.1  riastrad #define	VGA_MEMORY_BASE_ADDRESS				0x0310
     61  1.1  riastrad #define	VGA_RENDER_CONTROL				0x0300
     62  1.1  riastrad #define		VGA_VSTATUS_CNTL_MASK				0x00030000
     63  1.1  riastrad 
     64  1.1  riastrad #endif
     65