diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-18 14:23:53 +0200 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-18 14:23:53 +0200 |
commit | d7ac0204c65b576978354f3767e8a8f29211424d (patch) | |
tree | c75c2042f5bee6f51924c6908919bd2df9180723 /private_data.h | |
parent | 1a8a5e5f7ec151c38eec7b4d0ca4835fc717e010 (diff) |
Define private surface data
Diffstat (limited to 'private_data.h')
-rw-r--r-- | private_data.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/private_data.h b/private_data.h new file mode 100644 index 0000000..38148bd --- /dev/null +++ b/private_data.h @@ -0,0 +1,26 @@ +#ifndef PRIVATE_DATA_H +#define PRIVATE_DATA_H + +#include <linux/device.h> +#include <linux/cdev.h> + +struct doom_data { + struct cdev cdev; + struct device *device; + struct device *pci_device; + void __iomem *iomem; +}; + +struct surface_data { + struct doom_data *doom_data; + + int surface_size; + int pages; + + uint8_t *surface_cpu; + uint32_t *page_table_cpu; + dma_addr_t surface_dev; + dma_addr_t page_table_dev; +}; + +#endif |