4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #pragma ident "%Z%%M% %I% %E% SMI"
28 #ifndef __RADEON_IO32_H__
29 #define __RADEON_IO32_H__
32 #ifdef _MULTI_DATAMODEL
34 * For radeon_cp_init()
36 typedef struct drm_radeon_init_32
{
38 unsigned int sarea_priv_offset
;
39 int is_pci
; /* for overriding only */
46 unsigned int front_offset
, front_pitch
;
47 unsigned int back_offset
, back_pitch
;
48 unsigned int depth_bpp
;
49 unsigned int depth_offset
, depth_pitch
;
51 unsigned int fb_offset DEPRECATED
;
52 unsigned int mmio_offset DEPRECATED
;
53 unsigned int ring_offset
;
54 unsigned int ring_rptr_offset
;
55 unsigned int buffers_offset
;
56 unsigned int gart_textures_offset
;
57 } drm_radeon_init_32_t
;
62 typedef struct drm_dma_32
{
65 uint32_t send_indices
;
67 drm_dma_flags_t flags
;
70 uint32_t request_indices
;
71 uint32_t request_sizes
;
78 typedef struct drm_radeon_clear_32
{
80 unsigned int clear_color
;
81 unsigned int clear_depth
;
82 unsigned int color_mask
;
83 unsigned int depth_mask
;
85 } drm_radeon_clear_32_t
;
88 * For radeon_cp_texture()
90 typedef struct drm_radeon_tex_image_32
{
92 unsigned int width
, height
;
94 } drm_radeon_tex_image_32_t
;
96 typedef struct drm_radeon_texture_32
{
103 } drm_radeon_texture_32_t
;
106 * for radeon_cp_stipple()
108 typedef struct drm_radeon_stipple_32
{
110 } drm_radeon_stipple_32_t
;
113 * radeon_cp_vertex2()
115 typedef struct drm_radeon_vertex2_32
{
122 } drm_radeon_vertex2_32_t
;
127 typedef struct drm_radeon_kcmd_buffer_32
{
132 } drm_radeon_kcmd_buffer_32_t
;
135 * radeon_cp_getparam()
137 typedef struct drm_radeon_getparam_32
{
140 } drm_radeon_getparam_32_t
;
146 typedef struct drm_radeon_mem_alloc_32
{
150 uint32_t region_offset
; /* offset from start of fb or GART */
151 } drm_radeon_mem_alloc_32_t
;
157 typedef struct drm_radeon_irq_emit_32
{
159 } drm_radeon_irq_emit_32_t
;
163 * radeon_cp_setparam()
166 typedef struct drm_radeon_setparam_32
{
169 } drm_radeon_setparam_32_t
;
172 #endif /* _MULTI_DATAMODEL */
173 #endif /* __RADEON_IO32_H__ */