drm_io32.h revision d0538f66491267879b7418b21ad78e3dcc2dcc83
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef _DRM_IO32_H_
#define _DRM_IO32_H_
#ifdef _MULTI_DATAMODEL
typedef struct drm_version_32 {
int version_major; /* Major version */
int version_minor; /* Minor version */
int version_patchlevel; /* Patch level */
typedef struct drm_unique_32 {
typedef struct drm_ctx_priv_map_32 {
unsigned int ctx_id; /* Context requesting private mapping */
typedef struct drm_map_32 {
unsigned long long offset;
unsigned long long handle;
int mtrr;
} drm_map_32_t;
typedef struct drm_client_32 {
int idx; /* Which client desired? */
int auth; /* Is client authenticated? */
typedef struct drm_stats_32 {
struct {
} data[15];
typedef struct drm_buf_desc_32 {
int count; /* Number of buffers of this size */
int size; /* Size in bytes */
int low_mark; /* Low water mark */
int high_mark; /* High water mark */
/*
* Start address of where the AGP buffers are
* in the AGP aperture
*/
typedef struct drm_buf_free_32 {
int count;
/*
* Used by DRM_IOCTL_MAP_BUFS_32
*/
typedef struct drm_buf_pub_32 {
int idx; /* Index into the master buffer list */
int total; /* Buffer size */
int used; /* Amount of buffer in use (for DMA) */
typedef struct drm_buf_map_32 {
int count; /* Length of the buffer list */
#if defined(__cplusplus)
#else
#endif
int fd;
typedef struct drm_agp_mode_32 {
typedef struct drm_agp_buffer32 {
typedef struct drm_agp_binding_32 {
typedef struct drm_agp_info_32 {
int agp_version_major;
int agp_version_minor;
unsigned short id_vendor;
unsigned short id_device;
typedef struct drm_scatter_gather_32 {
typedef struct drm_ctx_res_32 {
int count;
struct drm_wait_vblank_request_32 {
unsigned int sequence;
unsigned long signal;
};
struct drm_wait_vblank_reply_32 {
unsigned int sequence;
long tval_sec;
long tval_usec;
};
/*
* DRM_IOCTL_WAIT_VBLANK ioctl argument type.
*
* \sa drmWaitVBlank().
*/
typedef union drm_wait_vblank_32 {
struct drm_wait_vblank_request_32 request;
struct drm_wait_vblank_reply_32 reply;
#endif /* _MULTI_DATAMODEL */
#endif /* _DRM_IO32_H_ */