blob: 684896ef3673537d284546a6e44c45b170047191 [file] [log] [blame]
Dima Zavinfcb10792009-08-19 18:48:57 -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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
Dima Zavinfcb10792009-08-19 18:48:57 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _MSM_HW3D_H_
20#define _MSM_HW3D_H_
Dima Zavinfcb10792009-08-19 18:48:57 -070021#include <linux/fs.h>
22#include <linux/ioctl.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Dima Zavinfcb10792009-08-19 18:48:57 -070024struct hw3d_region;
Dima Zavinfcb10792009-08-19 18:48:57 -070025#define HW3D_IOCTL_MAGIC 'h'
26#define HW3D_WAIT_FOR_REVOKE _IO(HW3D_IOCTL_MAGIC, 0x80)
27#define HW3D_WAIT_FOR_INTERRUPT _IO(HW3D_IOCTL_MAGIC, 0x81)
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Dima Zavinfcb10792009-08-19 18:48:57 -070029#define HW3D_GET_REGIONS _IOR(HW3D_IOCTL_MAGIC, 0x82, struct hw3d_region *)
Dima Zavinfcb10792009-08-19 18:48:57 -070030#define HW3D_REGION_OFFSET(id) ((((uint32_t)(id)) & 0xf) << 28)
31#define HW3D_REGION_ID(addr) (((uint32_t)(addr) >> 28) & 0xf)
32#define HW3D_OFFSET_IN_REGION(addr) ((uint32_t)(addr) & ~(0xfUL << 28))
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Dima Zavinfcb10792009-08-19 18:48:57 -070034enum {
35 HW3D_EBI = 0,
36 HW3D_SMI = 1,
37 HW3D_REGS = 2,
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Dima Zavinfcb10792009-08-19 18:48:57 -070039 HW3D_NUM_REGIONS = HW3D_REGS + 1,
40};
Dima Zavinfcb10792009-08-19 18:48:57 -070041struct hw3d_region {
42 unsigned long phys;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Dima Zavinfcb10792009-08-19 18:48:57 -070044 unsigned long map_offset;
45 unsigned long len;
46};
Dima Zavinfcb10792009-08-19 18:48:57 -070047#endif
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */