blob: 0acc852dc930c7e35da1e65c8ceca1bca16cc224 [file] [log] [blame]
Nico Huber83693c82016-10-08 22:17:55 +02001--
2-- Copyright (C) 2015-2016 secunet Security Networks AG
3--
4-- This program is free software; you can redistribute it and/or modify
5-- it under the terms of the GNU General Public License as published by
Nico Huber125a29e2016-10-18 00:23:54 +02006-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
Nico Huber83693c82016-10-08 22:17:55 +02008--
9-- This program is distributed in the hope that it will be useful,
10-- but WITHOUT ANY WARRANTY; without even the implied warranty of
11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-- GNU General Public License for more details.
13--
14
15with HW.GFX.GMA.Config;
16
17private package HW.GFX.GMA.PCH is
18
19 type FDI_Port_Type is (FDI_A, FDI_B, FDI_C);
20
21 ----------------------------------------------------------------------------
22
23 -- common to all PCH outputs
24
25 PCH_TRANSCODER_SELECT_SHIFT : constant :=
Nico Huberef3b0932018-06-09 18:26:38 +020026 (if Config.Has_New_FDI_Sink then 29 else 30);
Nico Huber83693c82016-10-08 22:17:55 +020027
28 PCH_TRANSCODER_SELECT_MASK : constant :=
Nico Huberef3b0932018-06-09 18:26:38 +020029 (if Config.Has_New_FDI_Sink then 3 * 2 ** 29 else 1 * 2 ** 30);
Nico Huber83693c82016-10-08 22:17:55 +020030
31 type PCH_TRANSCODER_SELECT_Array is array (FDI_Port_Type) of Word32;
32 PCH_TRANSCODER_SELECT : constant PCH_TRANSCODER_SELECT_Array :=
33 (FDI_A => 0 * 2 ** PCH_TRANSCODER_SELECT_SHIFT,
34 FDI_B => 1 * 2 ** PCH_TRANSCODER_SELECT_SHIFT,
35 FDI_C => 2 * 2 ** PCH_TRANSCODER_SELECT_SHIFT);
36
37end HW.GFX.GMA.PCH;