-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathedid.h
executable file
·45 lines (36 loc) · 1.13 KB
/
edid.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
///*****************************************
// Copyright (C) 2009-2014
// ITE Tech. Inc. All Rights Reserved
// Proprietary and Confidential
///*****************************************
// @file <edid.h>
// @author [email protected]
// @date 2011/01/13
// @fileversion: HDMIRX_SAMPLE_2.09
//******************************************/
#ifndef _EDID_h_
#define _EDID_h_
#include "mcu.h"
#include "debug.h"
//#define _COPY_EDID_
#ifdef _COPY_EDID_
#define Ext_EDID_Read_Fail 1
#define Ext_EDID_CheckSum_Fail 2
#define Int_EDID_Write_Fail 3
#define Int_EDID_Read_Fail 4
#define Int_EDID_CheckSum_Fail 5
#define EDID_Read_Success 6
#define EDID_Copy_Success 7
#define EDID_Write_Finish 8
// #define _Block_0_Only_
// #message --Ext_Chip_EDID
//======================================================
#define rol16(x,y) (((x)<<(y%16))|((x)>>(16-(y%16))))
#define ror16(x,y) (((x)>>(y%16))|((x)<<(16-(y%16))))
#define rol8(x,y) (((x)<<(y%8))|((x)>>(8-(y%8))))
#define ror8(x,y) (((x)>>(y%8))|((x)<<(8-(y%8))))
#define EDIDADR 0xA0
#define EXT_EDIDADR 0xA0
void CopyDefaultEDID() ;
#endif
#endif