diff options
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 |