1/* 2 * Copyright (C) 2010, 2012-2013, 2015 ARM Limited. All rights reserved. 3 * 4 * This program is free software and is provided to you under the terms of the GNU General Public License version 2 5 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. 6 * 7 * A copy of the licence is included with the program, and can also be obtained from Free Software 8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9 */ 10 11#ifndef _MALI_DRV_H_ 12#define _MALI_DRV_H_ 13 14#define DRIVER_AUTHOR "ARM" 15#define DRIVER_NAME "mali_drm" 16#define DRIVER_DESC "DRM module for Mali-200, Mali-400" 17#define DRIVER_DATE "20100520" 18#define DRIVER_MAJOR 0 19#define DRIVER_MINOR 1 20#define DRIVER_PATCHLEVEL 0 21 22#include "drm_sman.h" 23 24typedef struct drm_mali_private 25{ 26 drm_local_map_t *mmio; 27 unsigned int idle_fault; 28 struct drm_sman sman; 29 int vram_initialized; 30 unsigned long vram_offset; 31} drm_mali_private_t; 32 33extern int mali_idle(struct drm_device *dev); 34extern void mali_reclaim_buffers_locked(struct drm_device *dev, struct drm_file *file_priv); 35extern void mali_lastclose(struct drm_device *dev); 36extern struct drm_ioctl_desc mali_ioctls[]; 37extern int mali_max_ioctl; 38 39#endif /* _MALI_DRV_H_ */ 40