m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/private_data.h
blob: 38148bd24a70163246ad7577f15402f156da6b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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