Source
144
144
struct module *owner;
145
145
struct list_head node;
146
146
int (*get_id)(struct platform_device *pdev);
147
147
int (*enable_set)(struct platform_device *pdev, bool enable);
148
148
};
149
149
150
150
void dfl_fpga_port_ops_add(struct dfl_fpga_port_ops *ops);
151
151
void dfl_fpga_port_ops_del(struct dfl_fpga_port_ops *ops);
152
152
struct dfl_fpga_port_ops *dfl_fpga_port_ops_get(struct platform_device *pdev);
153
153
void dfl_fpga_port_ops_put(struct dfl_fpga_port_ops *ops);
154
+
int dfl_fpga_check_port_id(struct platform_device *pdev, void *pport_id);
154
155
155
156
/**
156
157
* struct dfl_feature_driver - sub feature's driver
157
158
*
158
159
* @id: sub feature id.
159
160
* @ops: ops of this sub feature.
160
161
*/
161
162
struct dfl_feature_driver {
162
163
u64 id;
163
164
const struct dfl_feature_ops *ops;