Go to the documentation of this file.
25 #ifndef __SMIAPP_PRIV_H_
26 #define __SMIAPP_PRIV_H_
41 #define SMIA_VERSION_1 10
42 #define SMIAPP_VERSION_0_8 8
43 #define SMIAPP_VERSION_0_9 9
44 #define SMIAPP_VERSION_1 10
46 #define SMIAPP_PROFILE_0 0
47 #define SMIAPP_PROFILE_1 1
48 #define SMIAPP_PROFILE_2 2
50 #define SMIAPP_NVM_PAGE_SIZE 64
52 #define SMIAPP_RESET_DELAY_CLOCKS 2400
53 #define SMIAPP_RESET_DELAY(clk) \
54 (1000 + (SMIAPP_RESET_DELAY_CLOCKS * 1000 \
55 + (clk) / 1000 - 1) / ((clk) / 1000))
61 #define SMIAPP_MODULE_IDENT_FLAG_REV_LE (1 << 0)
98 #define SMIAPP_IDENT_FQ(manufacturer, model, rev, fl, _name, _quirk) \
99 { .manufacturer_id = manufacturer, \
101 .revision_number_major = rev, \
106 #define SMIAPP_IDENT_LQ(manufacturer, model, rev, _name, _quirk) \
107 { .manufacturer_id = manufacturer, \
109 .revision_number_major = rev, \
110 .flags = SMIAPP_MODULE_IDENT_FLAG_REV_LE, \
114 #define SMIAPP_IDENT_L(manufacturer, model, rev, _name) \
115 { .manufacturer_id = manufacturer, \
117 .revision_number_major = rev, \
118 .flags = SMIAPP_MODULE_IDENT_FLAG_REV_LE, \
121 #define SMIAPP_IDENT_Q(manufacturer, model, rev, _name, _quirk) \
122 { .manufacturer_id = manufacturer, \
124 .revision_number_major = rev, \
129 #define SMIAPP_IDENT(manufacturer, model, rev, _name) \
130 { .manufacturer_id = manufacturer, \
132 .revision_number_major = rev, \
150 #define SMIAPP_SUBDEVS 3
152 #define SMIAPP_PA_PAD_SRC 0
153 #define SMIAPP_PAD_SINK 0
154 #define SMIAPP_PAD_SRC 1
155 #define SMIAPP_PADS 2
246 #define to_smiapp_subdev(_sd) \
247 container_of(_sd, struct smiapp_subdev, sd)
249 #define to_smiapp_sensor(_sd) \
250 (to_smiapp_subdev(_sd)->sensor)