1 /* 2 * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved. 3 * Copyright 2001-2003 S3 Graphics, Inc. All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sub license, 9 * and/or sell copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice (including the 13 * next paragraph) shall be included in all copies or substantial portions 14 * of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 19 * VIA, S3 GRAPHICS, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 * DEALINGS IN THE SOFTWARE. 23 */ 24 #include <linux/config.h> 25 #include "via.h" 26 #include "drmP.h" 27 #include "via_drm.h" 28 #include "via_drv.h" 29 30 #define DRIVER_AUTHOR "VIA" 31 32 #define DRIVER_NAME "via" 33 #define DRIVER_DESC "VIA CLE 266" 34 #define DRIVER_DATE "20020814" 35 36 #define DRIVER_MAJOR 1 37 #define DRIVER_MINOR 1 38 #define DRIVER_PATCHLEVEL 0 39 40 41 #define DRIVER_IOCTLS \ 42 [DRM_IOCTL_NR(DRM_IOCTL_VIA_ALLOCMEM)] = { via_mem_alloc, 1, 0 }, \ 43 [DRM_IOCTL_NR(DRM_IOCTL_VIA_FREEMEM)] = { via_mem_free, 1, 0 }, \ 44 [DRM_IOCTL_NR(DRM_IOCTL_VIA_AGP_INIT)] = { via_agp_init, 1, 0 }, \ 45 [DRM_IOCTL_NR(DRM_IOCTL_VIA_FB_INIT)] = { via_fb_init, 1, 0 }, \ 46 [DRM_IOCTL_NR(DRM_IOCTL_VIA_MAP_INIT)] = { via_map_init, 1, 0 } 47 48 49 #define __HAVE_COUNTERS 0 50 51 #include "drm_auth.h" 52 #include "drm_agpsupport.h" 53 #include "drm_bufs.h" 54 #include "drm_context.h" 55 #include "drm_dma.h" 56 #include "drm_drawable.h" 57 #include "drm_drv.h" 58 #include "drm_fops.h" 59 #include "drm_init.h" 60 #include "drm_ioctl.h" 61 #include "drm_lists.h" 62 #include "drm_lock.h" 63 #include "drm_memory.h" 64 #include "drm_proc.h" 65 #include "drm_vm.h" 66 #include "drm_stub.h" 67