.. | .. |
---|
40 | 40 | /* set following flag to write data, |
---|
41 | 41 | * reset it to read data */ |
---|
42 | 42 | bool write; |
---|
| 43 | + bool mot; |
---|
43 | 44 | uint32_t address; |
---|
44 | | - uint8_t length; |
---|
| 45 | + uint32_t length; |
---|
45 | 46 | uint8_t *data; |
---|
| 47 | + /* |
---|
| 48 | + * used to return the reply type of the transaction |
---|
| 49 | + * ignored if NULL |
---|
| 50 | + */ |
---|
| 51 | + uint8_t *reply; |
---|
| 52 | + /* expressed in milliseconds |
---|
| 53 | + * zero means "use default value" |
---|
| 54 | + */ |
---|
| 55 | + uint32_t defer_delay; |
---|
46 | 56 | }; |
---|
47 | 57 | |
---|
48 | 58 | struct aux_command { |
---|
.. | .. |
---|
65 | 75 | } bits; |
---|
66 | 76 | uint32_t raw; |
---|
67 | 77 | }; |
---|
68 | | - |
---|
69 | | -struct i2caux; |
---|
70 | | - |
---|
71 | | -struct i2caux *dal_i2caux_create( |
---|
72 | | - struct dc_context *ctx); |
---|
73 | | - |
---|
74 | | -bool dal_i2caux_submit_i2c_command( |
---|
75 | | - struct i2caux *i2caux, |
---|
76 | | - struct ddc *ddc, |
---|
77 | | - struct i2c_command *cmd); |
---|
78 | | - |
---|
79 | | -bool dal_i2caux_submit_aux_command( |
---|
80 | | - struct i2caux *i2caux, |
---|
81 | | - struct ddc *ddc, |
---|
82 | | - struct aux_command *cmd); |
---|
83 | | - |
---|
84 | | -void dal_i2caux_configure_aux( |
---|
85 | | - struct i2caux *i2caux, |
---|
86 | | - struct ddc *ddc, |
---|
87 | | - union aux_config cfg); |
---|
88 | | - |
---|
89 | | -void dal_i2caux_destroy( |
---|
90 | | - struct i2caux **ptr); |
---|
91 | 78 | |
---|
92 | 79 | #endif |
---|