blob: 0325b93b421a2764d4836c4a48513e68da7c8a08 (
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
27
28
29
30
31
32
|
#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 mutex cmd_mutex;
struct mutex ping_mutex;
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;
dma_addr_t surface_dev;
dma_addr_t page_table_dev;
};
#endif
|