| Tim Wawrzynczak | 5473d29 | 2023-02-06 16:46:33 -0700 | [diff] [blame] | 1 | -- |
| 2 | -- Copyright (C) 2022 Google, LLC |
| 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 |
| 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| 8 | -- |
| 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 | |
| 15 | with HW.GFX.GMA.DP_Info; |
| 16 | |
| 17 | package HW.GFX.GMA.Connectors.TC is |
| 18 | |
| 19 | procedure Claim |
| 20 | (Port : in USBC_Port; |
| 21 | DP_Alt : in Boolean; |
| 22 | Success : out Boolean); |
| 23 | procedure Claimed (Port : USBC_Port; Is_Claimed : out Boolean); |
| 24 | procedure Connect |
| 25 | (Port : in USBC_Port; |
| 26 | DP_Alt : in Boolean; |
| 27 | Lanes : in DP_Lane_Count; |
| 28 | Success : out Boolean); |
| 29 | procedure Disconnect (Port : USBC_Port); |
| 30 | |
| 31 | procedure Program_DP_Mode (P : USBC_Port; Lane_Count : Natural); |
| 32 | procedure Enable_HDMI (Port : USBC_Port); |
| 33 | |
| 34 | procedure Set_Signal_Levels |
| 35 | (Port : USBC_Port; |
| 36 | Link : DP_Link; |
| 37 | Train_Set : DP_Info.Train_Set); |
| 38 | |
| 39 | type TC_Cold_Request_Type is (Block, Unblock); |
| 40 | procedure TC_Cold_Request |
| 41 | (Request : in TC_Cold_Request_Type; |
| 42 | Success : out Boolean); |
| 43 | |
| 44 | end HW.GFX.GMA.Connectors.TC; |