1450N/A * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 1450N/A * Copyright 2000 Precision Insight, Inc., Cedar Park, Texas. 1450N/A * Copyright 2000 VA Linux Systems, Inc., Fremont, California. 1450N/A * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas. 1450N/A * Permission is hereby granted, free of charge, to any person obtaining a 1450N/A * copy of this software and associated documentation files (the "Software"), 1450N/A * to deal in the Software without restriction, including without limitation 1450N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1450N/A * and/or sell copies of the Software, and to permit persons to whom the 1450N/A * Software is furnished to do so, subject to the following conditions: 1450N/A * The above copyright notice and this permission notice (including the next 1450N/A * paragraph) shall be included in all copies or substantial portions of the 1450N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1450N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1450N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1450N/A * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 1450N/A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1450N/A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1450N/A * DEALINGS IN THE SOFTWARE. 1450N/A * Kevin E. Martin <martin@valinux.com> 1450N/A * Gareth Hughes <gareth@valinux.com> 1450N/A * Keith Whitwell <keith@tungstengraphics.com> 1450N/A * WARNING: If you change any of these defines, make sure to change the 1450N/A * Old style state flags, required for sarea interface (1.1 and 1.2 1450N/A * clears) and 1.2 drm_vertex2 ioctl. 1450N/A /* version 1.2 and newer */ 1450N/A * New style per-packet identifiers for use in cmd_buffer ioctl with 1450N/A * the RADEON_EMIT_PACKET command. Comments relate new packets to old 1450N/A * state bits and the packet size: 1450N/A * Commands understood by cmd_buffer ioctl. More can be added but 1450N/A * obviously these can't be removed or changed: 1450N/A /* emit one of the register packets above */ 1450N/A /* emit hw packet wrapped in cliprects */ 1450N/A * emit hw wait commands -- note: 1450N/A * doesn't make the cpu wait, just 1450N/A/* Allowed parameters for R300_CMD_PACKET3 */ 1450N/A * Commands understood by cmd_buffer ioctl for R300. 1450N/A * The interface has not been stabilized, so some of these may be removed 1450N/A * and eventually reordered before stabilization. 1450N/A/* emit sequence ending 3d rendering */ 1450N/A unsigned short count;
/* amount of packet2 to emit */ 1450N/A/* Byte offsets for indirect buffer data */ 1450N/A * minimum of 64k, and there are at most 64 of them per heap. 1450N/A * Blits have strict offset rules. All blit offset must be aligned on 1450N/A#
endif /* __RADEON_SAREA_DEFINES__ */ 1450N/A/* Setup registers for each texture unit */ 1450N/A unsigned int numverts:
16;
/* overloaded as offset/64 for elt prims */ 1450N/A * The channel for communication of state information to the 1450N/A * kernel on firing a vertex buffer with either of the 1450N/A /* The current cliprects, or a subset thereof. */ 1450N/A /* Counters for client-side throttling of rendering clients. */ 1450N/A * WARNING: If you change any of these defines, make sure to change the 1450N/A * KW: actually it's illegal to change any of this (backwards compatibility). 1450N/A * The device specific ioctl range is 0x40 to 0x79. 1450N/A * v1.2 - obsoletes drm_radeon_vertex and drm_radeon_indices 1450N/A * - allows multiple primitives and state changes in a single ioctl 1450N/A * - supports driver change to emit native primitives 1450N/A * v1.3 - obsoletes drm_radeon_vertex2 1450N/A * - allows arbitarily large cliprect list 1450N/A * - allows updating of tcl packet, vector and scalar state 1450N/A * - allows memory-efficient description of state updates 1450N/A * - allows state to be emitted without a primitive 1450N/A * (for clears, ctx switches) 1450N/A * - allows more than one dma buffer to be referenced per ioctl 1450N/A * - may be extended in future versions with new cmd types, packets 1450N/A unsigned int x, y;
/* Blit coordinates */ 1450N/A/* enum for card type parameters */ 1450N/A * 1.3: An ioctl to get parameters that aren't available to the 3d 1450N/A/* card offset of 1st GART buffer */ 1450N/A/* Added with DRM version 1.6. */ 1450N/A/* Added with DRM version 1.8. */ 1450N/A/* 1.6: Set up a memory manager for regions of shared memory: */ 1450N/A/* 1.6: Userspace can request & wait on irq's: */ 1450N/A * 1.10: Clients tell the DRM where they think the framebuffer is located in 1450N/A * the card's address space, via a new generic ioctl to set parameters 1450N/A/* determined framebuffer location */ 1450N/A#
endif /* __RADEON_DRM_H__ */