/** * struct ps3_dma_region - A per device dma state variables structure * @did: The HV device id. * @page_size: The ioc pagesize. * @region_type: The HV region type. * @bus_addr: The 'translated' bus address of the region. * @len: The length in bytes of the region. * @offset: The offset from the start of memory of the region. * @dma_mask: Device dma_mask. * @ioid: The IOID of the device who owns this region * @chunk_list: Opaque variable used by the ioc page manager. * @region_ops: struct ps3_dma_region_ops - dma region operations
*/
struct ps3_mmio_region_ops; /** * struct ps3_mmio_region - a per device mmio state variables structure * * Current systems can be supported with a single region per device.
*/
int ps3_irq_plug_setup(enum ps3_cpu_binding cpu, unsignedlong outlet, unsignedint *virq); int ps3_irq_plug_destroy(unsignedint virq); int ps3_event_receive_port_setup(enum ps3_cpu_binding cpu, unsignedint *virq); int ps3_event_receive_port_destroy(unsignedint virq); int ps3_send_event_locally(unsignedint virq);
int ps3_io_irq_setup(enum ps3_cpu_binding cpu, unsignedint interrupt_id, unsignedint *virq); int ps3_io_irq_destroy(unsignedint virq); int ps3_vuart_irq_setup(enum ps3_cpu_binding cpu, void* virt_addr_bmp, unsignedint *virq); int ps3_vuart_irq_destroy(unsignedint virq); int ps3_spe_irq_setup(enum ps3_cpu_binding cpu, unsignedlong spe_id, unsignedintclass, unsignedint *virq); int ps3_spe_irq_destroy(unsignedint virq);
int ps3_sb_event_receive_port_setup(struct ps3_system_bus_device *dev, enum ps3_cpu_binding cpu, unsignedint *virq); int ps3_sb_event_receive_port_destroy(struct ps3_system_bus_device *dev, unsignedint virq);
staticinlineconstchar* ps3_result(int result)
{ #ifdefined(DEBUG) || defined(PS3_VERBOSE_RESULT) || defined(CONFIG_PS3_VERBOSE_RESULT) switch (result) { case LV1_SUCCESS: return"LV1_SUCCESS (0)"; case -1: return"** unknown result ** (-1)"; case LV1_RESOURCE_SHORTAGE: return"LV1_RESOURCE_SHORTAGE (-2)"; case LV1_NO_PRIVILEGE: return"LV1_NO_PRIVILEGE (-3)"; case LV1_DENIED_BY_POLICY: return"LV1_DENIED_BY_POLICY (-4)"; case LV1_ACCESS_VIOLATION: return"LV1_ACCESS_VIOLATION (-5)"; case LV1_NO_ENTRY: return"LV1_NO_ENTRY (-6)"; case LV1_DUPLICATE_ENTRY: return"LV1_DUPLICATE_ENTRY (-7)"; case LV1_TYPE_MISMATCH: return"LV1_TYPE_MISMATCH (-8)"; case LV1_BUSY: return"LV1_BUSY (-9)"; case LV1_EMPTY: return"LV1_EMPTY (-10)"; case LV1_WRONG_STATE: return"LV1_WRONG_STATE (-11)"; case -12: return"** unknown result ** (-12)"; case LV1_NO_MATCH: return"LV1_NO_MATCH (-13)"; case LV1_ALREADY_CONNECTED: return"LV1_ALREADY_CONNECTED (-14)"; case LV1_UNSUPPORTED_PARAMETER_VALUE: return"LV1_UNSUPPORTED_PARAMETER_VALUE (-15)"; case LV1_CONDITION_NOT_SATISFIED: return"LV1_CONDITION_NOT_SATISFIED (-16)"; case LV1_ILLEGAL_PARAMETER_VALUE: return"LV1_ILLEGAL_PARAMETER_VALUE (-17)"; case LV1_BAD_OPTION: return"LV1_BAD_OPTION (-18)"; case LV1_IMPLEMENTATION_LIMITATION: return"LV1_IMPLEMENTATION_LIMITATION (-19)"; case LV1_NOT_IMPLEMENTED: return"LV1_NOT_IMPLEMENTED (-20)"; case LV1_INVALID_CLASS_ID: return"LV1_INVALID_CLASS_ID (-21)"; case LV1_CONSTRAINT_NOT_SATISFIED: return"LV1_CONSTRAINT_NOT_SATISFIED (-22)"; case LV1_ALIGNMENT_ERROR: return"LV1_ALIGNMENT_ERROR (-23)"; case LV1_HARDWARE_ERROR: return"LV1_HARDWARE_ERROR (-24)"; case LV1_INVALID_DATA_FORMAT: return"LV1_INVALID_DATA_FORMAT (-25)"; case LV1_INVALID_OPERATION: return"LV1_INVALID_OPERATION (-26)"; case LV1_INTERNAL_ERROR: return"LV1_INTERNAL_ERROR (-32768)"; default:
BUG(); return"** unknown result **";
}; #else return""; #endif
}
/** * enum ps3_lpm_rights - Rigths granted by the system policy module. * * @PS3_LPM_RIGHTS_USE_LPM: The right to use the lpm. * @PS3_LPM_RIGHTS_USE_TB: The right to use the internal trace buffer.
*/
/** * enum ps3_lpm_tb_type - Type of trace buffer lv1 should use. * * @PS3_LPM_TB_TYPE_NONE: Do not use a trace buffer. * @PS3_LPM_RIGHTS_USE_TB: Use the lv1 internal trace buffer. Must have * rights @PS3_LPM_RIGHTS_USE_TB.
*/
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.