diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-23 00:16:05 +0200 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-23 00:19:16 +0200 |
commit | 42dc62e5db80994c51e0e62d6c264ce71c655c58 (patch) | |
tree | e7537409ef8842fd89ae568c7c23de396d086b42 /private_data.h | |
parent | 340435b03e9d73597833e922a736fd7ed61d58ff (diff) |
Add synchronization and irq
Diffstat (limited to 'private_data.h')
-rw-r--r-- | private_data.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/private_data.h b/private_data.h index 38148bd..39ceba8 100644 --- a/private_data.h +++ b/private_data.h @@ -9,13 +9,19 @@ struct doom_data { struct device *device; struct device *pci_device; void __iomem *iomem; + struct mutex mutex; + struct semaphore ping_sem; + struct semaphore pong_sem; }; struct surface_data { struct doom_data *doom_data; int surface_size; + int width; + int height; int pages; + int total_bytes; uint8_t *surface_cpu; uint32_t *page_table_cpu; |