blob: 586e212998a0c446def3cc7f7585eaf2c9394d84 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -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 _UAPI_AGP_H
20#define _UAPI_AGP_H
21#define AGPIOC_BASE 'A'
Tao Baod7db5942015-01-28 10:07:51 -080022#define AGPIOC_INFO _IOR(AGPIOC_BASE, 0, struct agp_info *)
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define AGPIOC_ACQUIRE _IO(AGPIOC_BASE, 1)
25#define AGPIOC_RELEASE _IO(AGPIOC_BASE, 2)
26#define AGPIOC_SETUP _IOW(AGPIOC_BASE, 3, struct agp_setup *)
27#define AGPIOC_RESERVE _IOW(AGPIOC_BASE, 4, struct agp_region *)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define AGPIOC_PROTECT _IOW(AGPIOC_BASE, 5, struct agp_region *)
30#define AGPIOC_ALLOCATE _IOWR(AGPIOC_BASE, 6, struct agp_allocate *)
31#define AGPIOC_DEALLOCATE _IOW(AGPIOC_BASE, 7, int)
32#define AGPIOC_BIND _IOW(AGPIOC_BASE, 8, struct agp_bind *)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define AGPIOC_UNBIND _IOW(AGPIOC_BASE, 9, struct agp_unbind *)
35#define AGPIOC_CHIPSET_FLUSH _IO(AGPIOC_BASE, 10)
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define AGP_DEVICE "/dev/agpgart"
37#ifndef TRUE
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define TRUE 1
40#endif
41#ifndef FALSE
42#define FALSE 0
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#endif
45#include <linux/types.h>
Christopher Ferris106b3a82016-08-24 12:15:38 -070046#include <stdlib.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070047struct agp_version {
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070049 __u16 major;
Tao Baod7db5942015-01-28 10:07:51 -080050 __u16 minor;
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52typedef struct _agp_info {
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070054 struct agp_version version;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u32 bridge_id;
56 __u32 agp_mode;
57 unsigned long aper_base;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070059 size_t aper_size;
Tao Baod7db5942015-01-28 10:07:51 -080060 size_t pg_total;
61 size_t pg_system;
62 size_t pg_used;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070064} agp_info;
Ben Cheng655a7c02013-10-16 16:09:24 -070065typedef struct _agp_setup {
Tao Baod7db5942015-01-28 10:07:51 -080066 __u32 agp_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070067} agp_setup;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070069typedef struct _agp_segment {
Tao Baod7db5942015-01-28 10:07:51 -080070 __kernel_off_t pg_start;
71 __kernel_size_t pg_count;
72 int prot;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070074} agp_segment;
Ben Cheng655a7c02013-10-16 16:09:24 -070075typedef struct _agp_region {
Tao Baod7db5942015-01-28 10:07:51 -080076 __kernel_pid_t pid;
77 __kernel_size_t seg_count;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070079 struct _agp_segment * seg_list;
Ben Cheng655a7c02013-10-16 16:09:24 -070080} agp_region;
81typedef struct _agp_allocate {
Tao Baod7db5942015-01-28 10:07:51 -080082 int key;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070084 __kernel_size_t pg_count;
Tao Baod7db5942015-01-28 10:07:51 -080085 __u32 type;
86 __u32 physical;
Ben Cheng655a7c02013-10-16 16:09:24 -070087} agp_allocate;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070089typedef struct _agp_bind {
Tao Baod7db5942015-01-28 10:07:51 -080090 int key;
91 __kernel_off_t pg_start;
Ben Cheng655a7c02013-10-16 16:09:24 -070092} agp_bind;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070094typedef struct _agp_unbind {
Tao Baod7db5942015-01-28 10:07:51 -080095 int key;
96 __u32 priority;
Ben Cheng655a7c02013-10-16 16:09:24 -070097} agp_unbind;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070099#endif