/** * struct framer_ops - set of function pointers for performing framer operations * @init: operation to be performed for initializing the framer * @exit: operation to be performed while exiting * @power_on: powering on the framer * @power_off: powering off the framer * @flags: OR-ed flags (FRAMER_FLAG_*) to ask for core functionality * - @FRAMER_FLAG_POLL_STATUS: * Ask the core to perform a polling to get the framer status and * notify consumers on change. * The framer should call @framer_notify_status_change() when it * detects a status change. This is usually done using interrupts. * If the framer cannot detect this change, it can ask the core for * a status polling. The core will call @get_status() periodically * and, on change detected, it will notify the consumer. * the @get_status() * @owner: the module owner containing the ops
*/ struct framer_ops { int (*init)(struct framer *framer); void (*exit)(struct framer *framer); int (*power_on)(struct framer *framer); int (*power_off)(struct framer *framer);
/** * @get_status: * * Optional. * * Used to get the framer status. framer_init() must have * been called on the framer. * * Returns: 0 if successful, an negative error code otherwise
*/ int (*get_status)(struct framer *framer, struct framer_status *status);
/** * @set_config: * * Optional. * * Used to set the framer configuration. framer_init() must have * been called on the framer. * * Returns: 0 if successful, an negative error code otherwise
*/ int (*set_config)(struct framer *framer, conststruct framer_config *config);
/** * @get_config: * * Optional. * * Used to get the framer configuration. framer_init() must have * been called on the framer. * * Returns: 0 if successful, an negative error code otherwise
*/ int (*get_config)(struct framer *framer, struct framer_config *config);
u32 flags; struct module *owner;
};
/** * struct framer_provider - represents the framer provider * @dev: framer provider device * @owner: the module owner having of_xlate * @list: to maintain a linked list of framer providers * @of_xlate: function pointer to obtain framer instance from framer pointer
*/ struct framer_provider { struct device *dev; struct module *owner; struct list_head list; struct framer * (*of_xlate)(struct device *dev, conststruct of_phandle_args *args);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.