radeon_hd: Add Northern Island registers
This commit is contained in:
committed by
Alexander von Gluck IV
parent
8317edb350
commit
7d9c1f30f1
@@ -303,6 +303,8 @@
|
||||
|
||||
#define AVIVO_DDIA_BIT_DEPTH_CONTROL 0x7214
|
||||
|
||||
#define AVIVO_DP_VID_STREAM_CNTL 0x770C
|
||||
|
||||
#define AVIVO_DACA_ENABLE 0x7800
|
||||
#define AVIVO_DAC_ENABLE (1 << 0)
|
||||
#define AVIVO_DACA_SOURCE_SELECT 0x7804
|
||||
@@ -558,4 +560,4 @@
|
||||
#define AVIVO_D2_VBLANK_INTERRUPT (1 << 5)
|
||||
|
||||
|
||||
#endif /* __AVIVO_REG_H__ */
|
||||
#endif /* __AVIVO_REG_H__ */
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2010 Advanced Micro Devices, Inc.
|
||||
*
|
||||
* 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
|
||||
*
|
||||
* Authors: Alex Deucher
|
||||
*/
|
||||
#ifndef __NI_REG_H__
|
||||
#define __NI_REG_H__
|
||||
|
||||
/* northern islands - DCE5 */
|
||||
|
||||
#define NI_INPUT_GAMMA_CONTROL 0x6840
|
||||
# define NI_GRPH_INPUT_GAMMA_MODE(x) (((x) & 0x3) << 0)
|
||||
# define NI_INPUT_GAMMA_USE_LUT 0
|
||||
# define NI_INPUT_GAMMA_BYPASS 1
|
||||
# define NI_INPUT_GAMMA_SRGB_24 2
|
||||
# define NI_INPUT_GAMMA_XVYCC_222 3
|
||||
# define NI_OVL_INPUT_GAMMA_MODE(x) (((x) & 0x3) << 4)
|
||||
|
||||
#define NI_PRESCALE_GRPH_CONTROL 0x68b4
|
||||
# define NI_GRPH_PRESCALE_BYPASS (1 << 4)
|
||||
|
||||
#define NI_PRESCALE_OVL_CONTROL 0x68c4
|
||||
# define NI_OVL_PRESCALE_BYPASS (1 << 4)
|
||||
|
||||
#define NI_INPUT_CSC_CONTROL 0x68d4
|
||||
# define NI_INPUT_CSC_GRPH_MODE(x) (((x) & 0x3) << 0)
|
||||
# define NI_INPUT_CSC_BYPASS 0
|
||||
# define NI_INPUT_CSC_PROG_COEFF 1
|
||||
# define NI_INPUT_CSC_PROG_SHARED_MATRIXA 2
|
||||
# define NI_INPUT_CSC_OVL_MODE(x) (((x) & 0x3) << 4)
|
||||
|
||||
#define NI_OUTPUT_CSC_CONTROL 0x68f0
|
||||
# define NI_OUTPUT_CSC_GRPH_MODE(x) (((x) & 0x7) << 0)
|
||||
# define NI_OUTPUT_CSC_BYPASS 0
|
||||
# define NI_OUTPUT_CSC_TV_RGB 1
|
||||
# define NI_OUTPUT_CSC_YCBCR_601 2
|
||||
# define NI_OUTPUT_CSC_YCBCR_709 3
|
||||
# define NI_OUTPUT_CSC_PROG_COEFF 4
|
||||
# define NI_OUTPUT_CSC_PROG_SHARED_MATRIXB 5
|
||||
# define NI_OUTPUT_CSC_OVL_MODE(x) (((x) & 0x7) << 4)
|
||||
|
||||
#define NI_DEGAMMA_CONTROL 0x6960
|
||||
# define NI_GRPH_DEGAMMA_MODE(x) (((x) & 0x3) << 0)
|
||||
# define NI_DEGAMMA_BYPASS 0
|
||||
# define NI_DEGAMMA_SRGB_24 1
|
||||
# define NI_DEGAMMA_XVYCC_222 2
|
||||
# define NI_OVL_DEGAMMA_MODE(x) (((x) & 0x3) << 4)
|
||||
# define NI_ICON_DEGAMMA_MODE(x) (((x) & 0x3) << 8)
|
||||
# define NI_CURSOR_DEGAMMA_MODE(x) (((x) & 0x3) << 12)
|
||||
|
||||
#define NI_GAMUT_REMAP_CONTROL 0x6964
|
||||
# define NI_GRPH_GAMUT_REMAP_MODE(x) (((x) & 0x3) << 0)
|
||||
# define NI_GAMUT_REMAP_BYPASS 0
|
||||
# define NI_GAMUT_REMAP_PROG_COEFF 1
|
||||
# define NI_GAMUT_REMAP_PROG_SHARED_MATRIXA 2
|
||||
# define NI_GAMUT_REMAP_PROG_SHARED_MATRIXB 3
|
||||
# define NI_OVL_GAMUT_REMAP_MODE(x) (((x) & 0x3) << 4)
|
||||
|
||||
#define NI_REGAMMA_CONTROL 0x6a80
|
||||
# define NI_GRPH_REGAMMA_MODE(x) (((x) & 0x7) << 0)
|
||||
# define NI_REGAMMA_BYPASS 0
|
||||
# define NI_REGAMMA_SRGB_24 1
|
||||
# define NI_REGAMMA_XVYCC_222 2
|
||||
# define NI_REGAMMA_PROG_A 3
|
||||
# define NI_REGAMMA_PROG_B 4
|
||||
# define NI_OVL_REGAMMA_MODE(x) (((x) & 0x7) << 4)
|
||||
|
||||
#endif
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "r700_reg.h"
|
||||
#include "evergreen_reg.h"
|
||||
#include "si_reg.h"
|
||||
#include "ni_reg.h"
|
||||
|
||||
#include <Accelerant.h>
|
||||
#include <Drivers.h>
|
||||
@@ -170,6 +171,8 @@ struct radeon_shared_info {
|
||||
uint32 chipsetFlags;
|
||||
uint8 dceMajor;
|
||||
uint8 dceMinor;
|
||||
|
||||
uint16 color_data[3 * 256]; // colour lookup table
|
||||
};
|
||||
|
||||
//----------------- ioctl() interface ----------------
|
||||
|
||||
Reference in New Issue
Block a user