blob: 96ac7f4d9c06072b602d7aa593ef74a434c63146 (
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
33
34
35
36
37
38
39
40
41
42
|
/*
* Private extensions to galcore to support Other(tm) ways of doing things.
*/
#ifndef GAL_EXTENSION_H
#define GAL_EXTENSION_H
#include <sys/ioctl.h>
#include <gc_hal.h>
/* Map a DMABUF fd into galcore */
struct dmabuf_map_old {
unsigned zero;
unsigned status;
int fd;
gctPOINTER Info;
gctUINT32 Address;
};
#define IOC_GDMABUF_MAP_OLD _IOWR('_', 0, struct dmabuf_map_old)
union gcabi_header {
uint32_t padding[16];
struct {
uint32_t zero;
uint32_t status;
} v2;
struct {
uint32_t zero;
uint32_t hwtype;
uint32_t status;
} v4;
};
struct dmabuf_map {
union gcabi_header hdr;
uint64_t info;
uint64_t address;
int32_t fd;
uint32_t prot;
};
#define IOC_GDMABUF_MAP _IOWR('_', 0, struct dmabuf_map)
#endif
|