/** * struct logic_iomem_ops - emulated IO memory ops * @read: read an 8, 16, 32 or 64 bit quantity from the given offset, * size is given in bytes (1, 2, 4 or 8) * (64-bit only necessary if CONFIG_64BIT is set) * @write: write an 8, 16 32 or 64 bit quantity to the given offset, * size is given in bytes (1, 2, 4 or 8) * (64-bit only necessary if CONFIG_64BIT is set) * @set: optional, for memset_io() * @copy_from: optional, for memcpy_fromio() * @copy_to: optional, for memcpy_toio() * @unmap: optional, this region is getting unmapped
*/ struct logic_iomem_ops { unsignedlong (*read)(void *priv, unsignedint offset, int size); void (*write)(void *priv, unsignedint offset, int size, unsignedlong val);
void (*set)(void *priv, unsignedint offset, u8 value, int size); void (*copy_from)(void *priv, void *buffer, unsignedint offset, int size); void (*copy_to)(void *priv, unsignedint offset, constvoid *buffer, int size);
void (*unmap)(void *priv);
};
/** * struct logic_iomem_region_ops - ops for an IO memory handler * @map: map a range in the registered IO memory region, must * fill *ops with the ops and may fill *priv to be passed * to the ops. The offset is given as the offset into the * registered resource region. * The return value is negative for errors, or >= 0 for * success. On success, the return value is added to the * offset for later ops, to allow for partial mappings.
*/ struct logic_iomem_region_ops { long (*map)(unsignedlong offset, size_t size, conststruct logic_iomem_ops **ops, void **priv);
};
/** * logic_iomem_add_region - register an IO memory region * @resource: the resource description for this region * @ops: the IO memory mapping ops for this resource
*/ int logic_iomem_add_region(struct resource *resource, conststruct logic_iomem_region_ops *ops);
#endif/* __LOGIC_IOMEM_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.21 Sekunden
(vorverarbeitet)
¤
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.