blob: 17f093ba42e5cd465a6642adbb322667324229c7 [file] [log] [blame]
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _PANFROST_DRM_H_
20#define _PANFROST_DRM_H_
21#include "drm.h"
22#ifdef __cplusplus
23extern "C" {
24#endif
25#define DRM_PANFROST_SUBMIT 0x00
26#define DRM_PANFROST_WAIT_BO 0x01
27#define DRM_PANFROST_CREATE_BO 0x02
28#define DRM_PANFROST_MMAP_BO 0x03
29#define DRM_PANFROST_GET_PARAM 0x04
30#define DRM_PANFROST_GET_BO_OFFSET 0x05
31#define DRM_IOCTL_PANFROST_SUBMIT DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_SUBMIT, struct drm_panfrost_submit)
32#define DRM_IOCTL_PANFROST_WAIT_BO DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_WAIT_BO, struct drm_panfrost_wait_bo)
33#define DRM_IOCTL_PANFROST_CREATE_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_CREATE_BO, struct drm_panfrost_create_bo)
34#define DRM_IOCTL_PANFROST_MMAP_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_MMAP_BO, struct drm_panfrost_mmap_bo)
35#define DRM_IOCTL_PANFROST_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_PARAM, struct drm_panfrost_get_param)
36#define DRM_IOCTL_PANFROST_GET_BO_OFFSET DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_BO_OFFSET, struct drm_panfrost_get_bo_offset)
37#define PANFROST_JD_REQ_FS (1 << 0)
38struct drm_panfrost_submit {
39 __u64 jc;
40 __u64 in_syncs;
41 __u32 in_sync_count;
42 __u32 out_sync;
43 __u64 bo_handles;
44 __u32 bo_handle_count;
45 __u32 requirements;
46};
47struct drm_panfrost_wait_bo {
48 __u32 handle;
49 __u32 pad;
50 __s64 timeout_ns;
51};
52struct drm_panfrost_create_bo {
53 __u32 size;
54 __u32 flags;
55 __u32 handle;
56 __u32 pad;
57 __u64 offset;
58};
59struct drm_panfrost_mmap_bo {
60 __u32 handle;
61 __u32 flags;
62 __u64 offset;
63};
64enum drm_panfrost_param {
65 DRM_PANFROST_PARAM_GPU_PROD_ID,
66};
67struct drm_panfrost_get_param {
68 __u32 param;
69 __u32 pad;
70 __u64 value;
71};
72struct drm_panfrost_get_bo_offset {
73 __u32 handle;
74 __u32 pad;
75 __u64 offset;
76};
77#ifdef __cplusplus
78}
79#endif
80#endif