18c2ecf20Sopenharmony_ci/* radeon_drv.h -- Private header for radeon driver -*- linux-c -*- 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 48c2ecf20Sopenharmony_ci * Copyright 2000 VA Linux Systems, Inc., Fremont, California. 58c2ecf20Sopenharmony_ci * All rights reserved. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 88c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 98c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 108c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 118c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 128c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice (including the next 158c2ecf20Sopenharmony_ci * paragraph) shall be included in all copies or substantial portions of the 168c2ecf20Sopenharmony_ci * Software. 178c2ecf20Sopenharmony_ci * 188c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 198c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 208c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 218c2ecf20Sopenharmony_ci * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 228c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 238c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 248c2ecf20Sopenharmony_ci * DEALINGS IN THE SOFTWARE. 258c2ecf20Sopenharmony_ci * 268c2ecf20Sopenharmony_ci * Authors: 278c2ecf20Sopenharmony_ci * Kevin E. Martin <martin@valinux.com> 288c2ecf20Sopenharmony_ci * Gareth Hughes <gareth@valinux.com> 298c2ecf20Sopenharmony_ci */ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#ifndef __RADEON_DRV_H__ 328c2ecf20Sopenharmony_ci#define __RADEON_DRV_H__ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#include <linux/firmware.h> 358c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 368c2ecf20Sopenharmony_ci#include <drm/drm_legacy.h> 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#include "radeon_family.h" 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* General customization: 418c2ecf20Sopenharmony_ci */ 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#define DRIVER_AUTHOR "Gareth Hughes, Keith Whitwell, others." 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#define DRIVER_NAME "radeon" 468c2ecf20Sopenharmony_ci#define DRIVER_DESC "ATI Radeon" 478c2ecf20Sopenharmony_ci#define DRIVER_DATE "20080528" 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci/* Interface history: 508c2ecf20Sopenharmony_ci * 518c2ecf20Sopenharmony_ci * 1.1 - ?? 528c2ecf20Sopenharmony_ci * 1.2 - Add vertex2 ioctl (keith) 538c2ecf20Sopenharmony_ci * - Add stencil capability to clear ioctl (gareth, keith) 548c2ecf20Sopenharmony_ci * - Increase MAX_TEXTURE_LEVELS (brian) 558c2ecf20Sopenharmony_ci * 1.3 - Add cmdbuf ioctl (keith) 568c2ecf20Sopenharmony_ci * - Add support for new radeon packets (keith) 578c2ecf20Sopenharmony_ci * - Add getparam ioctl (keith) 588c2ecf20Sopenharmony_ci * - Add flip-buffers ioctl, deprecate fullscreen foo (keith). 598c2ecf20Sopenharmony_ci * 1.4 - Add scratch registers to get_param ioctl. 608c2ecf20Sopenharmony_ci * 1.5 - Add r200 packets to cmdbuf ioctl 618c2ecf20Sopenharmony_ci * - Add r200 function to init ioctl 628c2ecf20Sopenharmony_ci * - Add 'scalar2' instruction to cmdbuf 638c2ecf20Sopenharmony_ci * 1.6 - Add static GART memory manager 648c2ecf20Sopenharmony_ci * Add irq handler (won't be turned on unless X server knows to) 658c2ecf20Sopenharmony_ci * Add irq ioctls and irq_active getparam. 668c2ecf20Sopenharmony_ci * Add wait command for cmdbuf ioctl 678c2ecf20Sopenharmony_ci * Add GART offset query for getparam 688c2ecf20Sopenharmony_ci * 1.7 - Add support for cube map registers: R200_PP_CUBIC_FACES_[0..5] 698c2ecf20Sopenharmony_ci * and R200_PP_CUBIC_OFFSET_F1_[0..5]. 708c2ecf20Sopenharmony_ci * Added packets R200_EMIT_PP_CUBIC_FACES_[0..5] and 718c2ecf20Sopenharmony_ci * R200_EMIT_PP_CUBIC_OFFSETS_[0..5]. (brian) 728c2ecf20Sopenharmony_ci * 1.8 - Remove need to call cleanup ioctls on last client exit (keith) 738c2ecf20Sopenharmony_ci * Add 'GET' queries for starting additional clients on different VT's. 748c2ecf20Sopenharmony_ci * 1.9 - Add DRM_IOCTL_RADEON_CP_RESUME ioctl. 758c2ecf20Sopenharmony_ci * Add texture rectangle support for r100. 768c2ecf20Sopenharmony_ci * 1.10- Add SETPARAM ioctl; first parameter to set is FB_LOCATION, which 778c2ecf20Sopenharmony_ci * clients use to tell the DRM where they think the framebuffer is 788c2ecf20Sopenharmony_ci * located in the card's address space 798c2ecf20Sopenharmony_ci * 1.11- Add packet R200_EMIT_RB3D_BLENDCOLOR to support GL_EXT_blend_color 808c2ecf20Sopenharmony_ci * and GL_EXT_blend_[func|equation]_separate on r200 818c2ecf20Sopenharmony_ci * 1.12- Add R300 CP microcode support - this just loads the CP on r300 828c2ecf20Sopenharmony_ci * (No 3D support yet - just microcode loading). 838c2ecf20Sopenharmony_ci * 1.13- Add packet R200_EMIT_TCL_POINT_SPRITE_CNTL for ARB_point_parameters 848c2ecf20Sopenharmony_ci * - Add hyperz support, add hyperz flags to clear ioctl. 858c2ecf20Sopenharmony_ci * 1.14- Add support for color tiling 868c2ecf20Sopenharmony_ci * - Add R100/R200 surface allocation/free support 878c2ecf20Sopenharmony_ci * 1.15- Add support for texture micro tiling 888c2ecf20Sopenharmony_ci * - Add support for r100 cube maps 898c2ecf20Sopenharmony_ci * 1.16- Add R200_EMIT_PP_TRI_PERF_CNTL packet to support brilinear 908c2ecf20Sopenharmony_ci * texture filtering on r200 918c2ecf20Sopenharmony_ci * 1.17- Add initial support for R300 (3D). 928c2ecf20Sopenharmony_ci * 1.18- Add support for GL_ATI_fragment_shader, new packets 938c2ecf20Sopenharmony_ci * R200_EMIT_PP_AFS_0/1, R200_EMIT_PP_TXCTLALL_0-5 (replaces 948c2ecf20Sopenharmony_ci * R200_EMIT_PP_TXFILTER_0-5, 2 more regs) and R200_EMIT_ATF_TFACTOR 958c2ecf20Sopenharmony_ci * (replaces R200_EMIT_TFACTOR_0 (8 consts instead of 6) 968c2ecf20Sopenharmony_ci * 1.19- Add support for gart table in FB memory and PCIE r300 978c2ecf20Sopenharmony_ci * 1.20- Add support for r300 texrect 988c2ecf20Sopenharmony_ci * 1.21- Add support for card type getparam 998c2ecf20Sopenharmony_ci * 1.22- Add support for texture cache flushes (R300_TX_CNTL) 1008c2ecf20Sopenharmony_ci * 1.23- Add new radeon memory map work from benh 1018c2ecf20Sopenharmony_ci * 1.24- Add general-purpose packet for manipulating scratch registers (r300) 1028c2ecf20Sopenharmony_ci * 1.25- Add support for r200 vertex programs (R200_EMIT_VAP_PVS_CNTL, 1038c2ecf20Sopenharmony_ci * new packet type) 1048c2ecf20Sopenharmony_ci * 1.26- Add support for variable size PCI(E) gart aperture 1058c2ecf20Sopenharmony_ci * 1.27- Add support for IGP GART 1068c2ecf20Sopenharmony_ci * 1.28- Add support for VBL on CRTC2 1078c2ecf20Sopenharmony_ci * 1.29- R500 3D cmd buffer support 1088c2ecf20Sopenharmony_ci * 1.30- Add support for occlusion queries 1098c2ecf20Sopenharmony_ci * 1.31- Add support for num Z pipes from GET_PARAM 1108c2ecf20Sopenharmony_ci * 1.32- fixes for rv740 setup 1118c2ecf20Sopenharmony_ci * 1.33- Add r6xx/r7xx const buffer support 1128c2ecf20Sopenharmony_ci * 1.34- fix evergreen/cayman GS register 1138c2ecf20Sopenharmony_ci */ 1148c2ecf20Sopenharmony_ci#define DRIVER_MAJOR 1 1158c2ecf20Sopenharmony_ci#define DRIVER_MINOR 34 1168c2ecf20Sopenharmony_ci#define DRIVER_PATCHLEVEL 0 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_cilong radeon_drm_ioctl(struct file *filp, 1198c2ecf20Sopenharmony_ci unsigned int cmd, unsigned long arg); 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci#endif /* __RADEON_DRV_H__ */ 122