· 8 years ago · Jul 02, 2018, 01:12 PM
1/* g3d/s3c_g3d.h
2 *
3 * Copyright (c) 2010 Tomasz Figa <tomasz.figa at gmail.com>
4 *
5 * Samsung S3C G3D driver
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22#ifndef _S3C_G3D_H_
23#define _S3C_G3D_H_
24
25#include <linux/ioctl.h>
26
27#define G3D_IOCTL_MAGIC 'S'
28
29/*
30 * S3C_G3D_LOCK
31 * Claim the hardware for exclusive access.
32 * Returns: 0 - if state was preserved
33 * 1 - if state was lost,
34 * 2 - like 1 but caches have to be flushed and invalidated,
35 * negative on error
36 */
37#define S3C_G3D_LOCK _IO(G3D_IOCTL_MAGIC, 0)
38/*
39 * S3C_G3D_UNLOCK
40 * Release the hardware.
41 */
42#define S3C_G3D_UNLOCK _IO(G3D_IOCTL_MAGIC, 1)
43/*
44 * S3C_G3D_FLUSH
45 * Flush hardware pipeline to the requested state.
46 * Argument: Requested pipeline value. (as in FGGB_PIPESTATE)
47 * Returns: 0, on success,
48 * < 0, on error
49 */
50#define S3C_G3D_FLUSH _IO(G3D_IOCTL_MAGIC, 2)
51
52#endif