forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from rzk/odroid-3.0.y
mali-400 r3p2 from rz2k ;) We now have r3p2 and r2p4 drivers on Kernel. r3p2 is for Linux and r2p4 is for Android. We should probably upgrade Android blobs as well.
- Loading branch information
Showing
165 changed files
with
32,353 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (C) 2010, 2012 ARM Limited. All rights reserved. | ||
* | ||
* This program is free software and is provided to you under the terms of the GNU General Public License version 2 | ||
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. | ||
* | ||
* A copy of the licence is included with the program, and can also be obtained from Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#ifndef __MALI_DRM_H__ | ||
#define __MALI_DRM_H__ | ||
|
||
#include <linux/vermagic.h> | ||
#include <linux/version.h> | ||
#include <linux/printk.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/list.h> | ||
#include <linux/init.h> | ||
#include <drm/drmP.h> | ||
|
||
/* Mali specific ioctls */ | ||
#define NOT_USED_0_3 | ||
#define DRM_MALI_FB_ALLOC 0x04 | ||
#define DRM_MALI_FB_FREE 0x05 | ||
#define NOT_USED_6_12 | ||
#define DRM_MALI_MEM_INIT 0x13 | ||
#define DRM_MALI_MEM_ALLOC 0x14 | ||
#define DRM_MALI_MEM_FREE 0x15 | ||
#define DRM_MALI_FB_INIT 0x16 | ||
|
||
#define DRM_IOCTL_MALI_FB_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_MALI_FB_ALLOC, drm_mali_mem_t) | ||
#define DRM_IOCTL_MALI_FB_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_MALI_FB_FREE, drm_mali_mem_t) | ||
#define DRM_IOCTL_MALI_MEM_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_MALI_MEM_INIT, drm_mali_mem_t) | ||
#define DRM_IOCTL_MALI_MEM_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_MALI_MEM_ALLOC, drm_mali_mem_t) | ||
#define DRM_IOCTL_MALI_MEM_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_MALI_MEM_FREE, drm_mali_mem_t) | ||
#define DRM_IOCTL_MALI_FB_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_MALI_FB_INIT, drm_mali_fb_t) | ||
|
||
typedef struct | ||
{ | ||
int context; | ||
unsigned int offset; | ||
unsigned int size; | ||
unsigned long free; | ||
} drm_mali_mem_t; | ||
|
||
typedef struct { | ||
unsigned int offset, size; | ||
} drm_mali_fb_t; | ||
|
||
#endif /* __MALI_DRM_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.