Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _MSM_HW3D_H_ |
| 20 | #define _MSM_HW3D_H_ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 21 | #include <linux/fs.h> |
| 22 | #include <linux/ioctl.h> |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 24 | struct hw3d_region; |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 25 | #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 Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 29 | #define HW3D_GET_REGIONS _IOR(HW3D_IOCTL_MAGIC, 0x82, struct hw3d_region *) |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 30 | #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 Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 34 | enum { |
| 35 | HW3D_EBI = 0, |
| 36 | HW3D_SMI = 1, |
| 37 | HW3D_REGS = 2, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 39 | HW3D_NUM_REGIONS = HW3D_REGS + 1, |
| 40 | }; |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 41 | struct hw3d_region { |
| 42 | unsigned long phys; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 44 | unsigned long map_offset; |
| 45 | unsigned long len; |
| 46 | }; |
Dima Zavin | fcb1079 | 2009-08-19 18:48:57 -0700 | [diff] [blame] | 47 | #endif |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |