1/*
2 * Copyright 2016-2017, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *      Alexander von Gluck, kallisti5@unixzen.com
7 */
8#ifndef _ATOMBIOS_OBSOLETE_H
9#define _ATOMBIOS_OBSOLETE_H
10
11
12// atombios.h in radeon linux has some older obsolete things.
13// atombios.h in amdgpu has these obsolete things removed.
14// This file contains things removed from amdgpu that we still need.
15
16
17#define ATOM_S2_CV_DPMS_STATE			0x01000000L
18#define ATOM_S2_DFP2_DPMS_STATE			0x00800000L
19#define ATOM_S2_DFP3_DPMS_STATE			0x02000000L
20#define ATOM_S2_DFP4_DPMS_STATE			0x04000000L
21#define ATOM_S2_DFP5_DPMS_STATE			0x08000000L
22
23
24// ucAction
25#define ATOM_DP_ACTION_TRAINING_START           0x02
26#define ATOM_DP_ACTION_TRAINING_COMPLETE        0x03
27#define ATOM_DP_ACTION_TRAINING_PATTERN_SEL     0x04
28#define ATOM_DP_ACTION_SET_VSWING_PREEMP        0x05
29#define ATOM_DP_ACTION_GET_VSWING_PREEMP        0x06
30#define ATOM_DP_ACTION_BLANKING                 0x07
31
32// ucConfig
33#define ATOM_DP_CONFIG_ENCODER_SEL_MASK         0x03
34#define ATOM_DP_CONFIG_DIG1_ENCODER             0x00
35#define ATOM_DP_CONFIG_DIG2_ENCODER             0x01
36#define ATOM_DP_CONFIG_EXTERNAL_ENCODER         0x02
37#define ATOM_DP_CONFIG_LINK_SEL_MASK            0x04
38#define ATOM_DP_CONFIG_LINK_A                   0x00
39#define ATOM_DP_CONFIG_LINK_B                   0x04
40
41
42#endif /* _ATOMBIOS_OBSOLETE_H */
43