1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef HDMI_TEST_H
10 #define HDMI_TEST_H
11 
12 #include "hdf_device_desc.h"
13 #include "platform_if.h"
14 
15 enum HdmiTestCmd {
16     HDMI_START_AND_STOP_01 = 0,
17     HDMI_SET_AUDIO_ATTR_01 = 1,
18     HDMI_SET_VIDEO_ATTR_01 = 2,
19     HDMI_SET_HDR_ATTR_01 = 3,
20     HDMI_SET_AVMUTE_01 = 4,
21     HDMI_EDID_RAW_DATA_GET_01 = 5,
22     HDMI_DEEP_COLOR_SET_AND_GET_01 = 6,
23     HDMI_HPD_REGISTER_AND_UNREGISTER_01 = 7,
24 };
25 
26 struct HdmiTester {
27     struct IDeviceIoService service;
28     struct HdfDeviceObject *device;
29     int32_t (*TestEntry)(struct HdmiTester *tester, int32_t cmd);
30     uint32_t busNum;
31     DevHandle handle;
32 };
33 
GetHdmiTester(void)34 static inline struct HdmiTester *GetHdmiTester(void)
35 {
36     return (struct HdmiTester *)DevSvcManagerClntGetService("HDMI_TEST");
37 }
38 
39 #endif /* HDMI_TEST_H */
40