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#ifndef __DAL_HW_FACTORY_H__
27#define __DAL_HW_FACTORY_H__
28
29struct hw_gpio_pin;
30struct hw_hpd;
31
32struct hw_factory {
33 uint32_t number_of_pins[GPIO_ID_COUNT];
34
35 const struct hw_factory_funcs {
36 struct hw_gpio_pin *(*create_ddc_data)(
37 struct dc_context *ctx,
38 enum gpio_id id,
39 uint32_t en);
40 struct hw_gpio_pin *(*create_ddc_clock)(
41 struct dc_context *ctx,
42 enum gpio_id id,
43 uint32_t en);
44 struct hw_gpio_pin *(*create_generic)(
45 struct dc_context *ctx,
46 enum gpio_id id,
47 uint32_t en);
48 struct hw_gpio_pin *(*create_hpd)(
49 struct dc_context *ctx,
50 enum gpio_id id,
51 uint32_t en);
52 struct hw_gpio_pin *(*create_sync)(
53 struct dc_context *ctx,
54 enum gpio_id id,
55 uint32_t en);
56 struct hw_gpio_pin *(*create_gsl)(
57 struct dc_context *ctx,
58 enum gpio_id id,
59 uint32_t en);
60 void (*define_hpd_registers)(
61 struct hw_gpio_pin *pin,
62 uint32_t en);
63 void (*define_ddc_registers)(
64 struct hw_gpio_pin *pin,
65 uint32_t en);
66 } *funcs;
67};
68
69bool dal_hw_factory_init(
70 struct hw_factory *factory,
71 enum dce_version dce_version,
72 enum dce_environment dce_environment);
73
74#endif
75