Plan 9 from Bell Labs’s /sys/src/pub/doc/beagle/igepv2/powervr/module_drm.c

Copyright © 2021 Plan 9 Foundation
Distributed under the MIT License.
Download the Plan 9 distribution.


/* -*- Mode: C; tab-width: 4; indent-tabs-mode: 't; c-basic-offset: 4 -*-
 *
 * Name         : $RCSfile: module_drm.c $
 *
 * Copyright    : 2001,2002 by Imagination Technologies Limited. 
 *                  All rights reserved.
 *                  No part of this software, either material or conceptual 
 *                  may be copied or distributed, transmitted, transcribed,
 *                  stored in a retrieval system or translated into any 
 *                  human or computer language in any form by any means,
 *                  electronic, mechanical, manual or other-wise, or 
 *                  disclosed to third parties without the express written
 *                  permission of:
 *                             Imagination Technologies Limited, 
 *                             HomePark Industrial Estate, 
 *                             Kings Langley, 
 *                             Hertfordshire,
 *                             WD4 8LZ, 
 *                             UK
 *
 * Description  : xfree86 drm module + pvrcore glue
 *
 * Version	 	: $Revision: 1.5 $
 *
 ****************************************************************************/

#include <linux/config.h>
#include <linux/fs.h>

#include "powervr.h"
#include "linuxsrv.h"
#include "module_pvr.h"
#include "pvrglue.h"
#include "mmap.h"

#include "drmP.h"

#define DRIVER_AUTHOR	 "Imagination Technologies Limited"
#define DRIVER_NAME	 "powervr"
#define DRIVER_DESC	 "PowerVR"
#define DRIVER_DATE	 "20011022"
#define DRIVER_MAJOR	 1
#define DRIVER_MINOR	 0
#define DRIVER_PATCHLEVEL  0

#define DRIVER_IOCTLS \
        [DRM_IOCTL_NR(DRM_IOCTL_PVR_MMAP)] = { pvr_switch_to_pvr, 0, 0}, \
        [DRM_IOCTL_NR(DRM_IOCTL_PVR_DRM)]  = { pvr_switch_to_drm, 0, 0}, \
        [DRM_IOCTL_NR(DRM_IOCTL_PVR)]      = { pmxcore_ioctl, 0, 0}

#define DRIVER_PREOPEN pmxcore_open
#define DRIVER_PRERELEASE pmxcore_release
#define DRIVER_PRECLEANUP pmxcore_takedown

#include "drm_auth.h"
#include "drm_agpsupport.h"
#include "drm_bufs.h"
#include "drm_context.h"
#include "drm_dma.h"
#include "drm_drawable.h"
#include "pvr_drm_drv.h"
#include "pvr_drm_fops.h"
#include "drm_init.h"
#include "pvr_drm_ioctl.h"
#include "drm_lists.h"
#include "drm_lock.h"
#include "drm_memory.h"
#include "drm_proc.h"
#include "pvr_drm_vm.h"
#include "pvr_drm_stub.h"

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.