struct push_buffer { void *mapped; /* mapped pushbuffer memory */
dma_addr_t dma; /* device address of pushbuffer */
dma_addr_t phys; /* physical address of pushbuffer */
u32 fence; /* index we've written */
u32 pos; /* index to write to */
u32 size;
u32 alloc_size;
};
struct buffer_timeout { struct delayed_work wq; /* work queue */ bool initialized; /* timer one-time setup flag */ struct host1x_syncpt *syncpt; /* buffer completion syncpt */
u32 syncpt_val; /* syncpt value when completed */
ktime_t start_ktime; /* starting time */ /* context timeout information */ struct host1x_client *client;
};
enum cdma_event {
CDMA_EVENT_NONE, /* not waiting for any event */
CDMA_EVENT_SYNC_QUEUE_EMPTY, /* wait for empty sync queue */
CDMA_EVENT_PUSH_BUFFER_SPACE /* wait for space in push buffer */
};
struct host1x_cdma { struct mutex lock; /* controls access to shared state */ struct completion complete; /* signalled when event occurs */ enum cdma_event event; /* event that complete is waiting for */ unsignedint slots_used; /* pb slots used in current submit */ unsignedint slots_free; /* pb slots free in current submit */ unsignedint first_get; /* DMAGET value, where submit begins */ unsignedint last_pos; /* last value written to DMAPUT */ struct push_buffer push_buffer; /* channel's push buffer */ struct list_head sync_queue; /* job queue */ struct buffer_timeout timeout; /* channel's timeout state/wq */ bool running; bool torndown; struct work_struct update_work;
};
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.