xref: /linux/drivers/gpu/drm/msm/registers/display/mdp_common.xml (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1<?xml version="1.0" encoding="UTF-8"?>
2<database xmlns="http://nouveau.freedesktop.org/"
3xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
5<import file="freedreno_copyright.xml"/>
6
7
8<!-- random bits that seem same between mdp4 and mdp5 (ie. not much) -->
9
10<enum name="mdp_chroma_samp_type">
11    <value name="CHROMA_FULL"  value="0"/>
12    <value name="CHROMA_H2V1" value="1"/>
13    <value name="CHROMA_H1V2" value="2"/>
14    <value name="CHROMA_420"  value="3"/>
15</enum>
16
17<enum name="mdp_fetch_type">
18    <value name="MDP_PLANE_INTERLEAVED"   value="0"/>
19    <value name="MDP_PLANE_PLANAR"        value="1"/>
20    <value name="MDP_PLANE_PSEUDO_PLANAR" value="2"/>
21</enum>
22
23<enum name="mdp_mixer_stage_id">
24	<value name="STAGE_UNUSED" value="0"/>
25	<value name="STAGE_BASE" value="1"/>
26	<value name="STAGE0" value="2"/>   <!-- zorder 0 -->
27	<value name="STAGE1" value="3"/>   <!-- zorder 1 -->
28	<value name="STAGE2" value="4"/>   <!-- zorder 2 -->
29	<value name="STAGE3" value="5"/>   <!-- zorder 3 -->
30	<value name="STAGE4" value="6"/>   <!-- zorder 4 -->
31	<value name="STAGE5" value="7"/>   <!-- zorder 5 -->
32	<value name="STAGE6" value="8"/>   <!-- zorder 6 -->
33	<value name="STAGE_MAX" value="8"/> <!-- maximum zorder -->
34</enum>
35
36<enum name="mdp_alpha_type">
37	<value name="FG_CONST" value="0"/>
38	<value name="BG_CONST" value="1"/>
39	<value name="FG_PIXEL" value="2"/>
40	<value name="BG_PIXEL" value="3"/>
41</enum>
42
43<enum name="mdp_component_type">
44        <value name="COMP_0" value="0"/>	<!-- Y component -->
45        <value name="COMP_1_2" value="1"/>	<!-- Cb/Cr comp. -->
46        <value name="COMP_3" value="2"/>	<!-- Trans comp. -->
47        <value name="COMP_MAX" value="3"/>
48</enum>
49
50<enum name="mdp_bpc">
51	<brief>bits per component (non-alpha channel)</brief>
52	<value name="BPC4" value="0"/> <!-- 4 bits -->
53	<value name="BPC5" value="1"/> <!-- 5 bits -->
54	<value name="BPC6" value="2"/> <!-- 6 bits -->
55	<value name="BPC8" value="3"/> <!-- 8 bits -->
56</enum>
57
58<enum name="mdp_bpc_alpha">
59	<brief>bits per component (alpha channel)</brief>
60	<value name="BPC1A" value="0"/> <!-- 1 bit -->
61	<value name="BPC4A" value="1"/> <!-- 4 bits -->
62	<value name="BPC6A" value="2"/> <!-- 6 bits -->
63	<value name="BPC8A" value="3"/> <!-- 8 bits -->
64</enum>
65
66<enum name="mdp_fetch_mode">
67	<value name="MDP_FETCH_LINEAR" value="0"/>
68	<value name="MDP_FETCH_TILE" value="1"/>
69	<value name="MDP_FETCH_UBWC" value="2"/>
70</enum>
71
72<bitset name="reg_wh" inline="yes">
73    <bitfield name="HEIGHT" low="16" high="31" type="uint"/>
74    <bitfield name="WIDTH" low="0" high="15" type="uint"/>
75</bitset>
76
77<bitset name="reg_xy" inline="yes">
78    <bitfield name="Y" low="16" high="31" type="uint"/>
79    <bitfield name="X" low="0" high="15" type="uint"/>
80</bitset>
81
82<bitset name="mdp_unpack_pattern" inline="yes">
83	<bitfield name="ELEM0" low="0"  high="7"/>
84	<bitfield name="ELEM1" low="8"  high="15"/>
85	<bitfield name="ELEM2" low="16" high="23"/>
86	<bitfield name="ELEM3" low="24" high="31"/>
87</bitset>
88
89</database>
90
91