| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | -- |
| 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 Huber | 125a29e | 2016-10-18 00:23:54 +0200 | [diff] [blame] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 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.I2C; |
| 16 | with HW.GFX.DP_Defs; |
| 17 | |
| 18 | private generic |
| 19 | |
| 20 | type T (<>) is limited private; |
| 21 | |
| 22 | with procedure Aux_Request |
| 23 | (Port : in T; |
| 24 | Request : in DP_Defs.Aux_Request; |
| 25 | Request_Length : in DP_Defs.Aux_Request_Length; |
| 26 | Response : out DP_Defs.Aux_Response; |
| 27 | Response_Length : out DP_Defs.Aux_Response_Length; |
| 28 | Success : out Boolean); |
| 29 | |
| 30 | package HW.GFX.DP_Aux_Ch is |
| 31 | |
| 32 | procedure Aux_Read |
| 33 | (Port : in T; |
| 34 | Address : in DP_Defs.Aux_Message_Address; |
| 35 | Length : in out DP_Defs.Aux_Payload_Length; |
| 36 | Data : out DP_Defs.Aux_Payload; |
| 37 | Success : out Boolean); |
| 38 | |
| 39 | procedure Aux_Write |
| 40 | (Port : in T; |
| 41 | Address : in DP_Defs.Aux_Message_Address; |
| 42 | Length : in DP_Defs.Aux_Payload_Length; |
| 43 | Data : in DP_Defs.Aux_Payload; |
| 44 | Success : out Boolean); |
| 45 | |
| 46 | ---------------------------------------------------------------------------- |
| 47 | |
| 48 | procedure I2C_Read |
| 49 | (Port : in T; |
| 50 | Address : in I2C.Transfer_Address; |
| 51 | Length : in out I2C.Transfer_Length; |
| 52 | Data : out I2C.Transfer_Data; |
| 53 | Success : out Boolean); |
| 54 | |
| 55 | end HW.GFX.DP_Aux_Ch; |