mga_drm.h (112015) | mga_drm.h (130331) |
---|---|
1/* mga_drm.h -- Public header for the Matrox g200/g400 driver -*- linux-c -*- 2 * Created: Tue Jan 25 01:50:01 1999 by jhartmann@precisioninsight.com 3 * 4 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All rights reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 17 unchanged lines hidden (view full) --- 26 * 27 * Authors: 28 * Jeff Hartmann <jhartmann@valinux.com> 29 * Keith Whitwell <keith@tungstengraphics.com> 30 * 31 * Rewritten by: 32 * Gareth Hughes <gareth@valinux.com> 33 * | 1/* mga_drm.h -- Public header for the Matrox g200/g400 driver -*- linux-c -*- 2 * Created: Tue Jan 25 01:50:01 1999 by jhartmann@precisioninsight.com 3 * 4 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All rights reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 17 unchanged lines hidden (view full) --- 26 * 27 * Authors: 28 * Jeff Hartmann <jhartmann@valinux.com> 29 * Keith Whitwell <keith@tungstengraphics.com> 30 * 31 * Rewritten by: 32 * Gareth Hughes <gareth@valinux.com> 33 * |
34 * $FreeBSD: head/sys/dev/drm/mga_drm.h 112015 2003-03-09 02:08:30Z anholt $ | 34 * $FreeBSD: head/sys/dev/drm/mga_drm.h 130331 2004-06-11 03:26:59Z anholt $ |
35 */ 36 37#ifndef __MGA_DRM_H__ 38#define __MGA_DRM_H__ 39 40/* WARNING: If you change any of these defines, make sure to change the 41 * defines in the Xserver file (mga_sarea.h) 42 */ --- 71 unchanged lines hidden (view full) --- 114 */ 115 116#define MGA_CARD_HEAP 0 117#define MGA_AGP_HEAP 1 118#define MGA_NR_TEX_HEAPS 2 119#define MGA_NR_TEX_REGIONS 16 120#define MGA_LOG_MIN_TEX_REGION_SIZE 16 121 | 35 */ 36 37#ifndef __MGA_DRM_H__ 38#define __MGA_DRM_H__ 39 40/* WARNING: If you change any of these defines, make sure to change the 41 * defines in the Xserver file (mga_sarea.h) 42 */ --- 71 unchanged lines hidden (view full) --- 114 */ 115 116#define MGA_CARD_HEAP 0 117#define MGA_AGP_HEAP 1 118#define MGA_NR_TEX_HEAPS 2 119#define MGA_NR_TEX_REGIONS 16 120#define MGA_LOG_MIN_TEX_REGION_SIZE 16 121 |
122#define DRM_MGA_IDLE_RETRY 2048 123 |
|
122#endif /* __MGA_SAREA_DEFINES__ */ 123 124 125/* Setup registers for 3D context 126 */ 127typedef struct { 128 unsigned int dstorg; 129 unsigned int maccess; --- 97 unchanged lines hidden (view full) --- 227 228/* WARNING: If you change any of these defines, make sure to change the 229 * defines in the Xserver file (xf86drmMga.h) 230 */ 231 232/* MGA specific ioctls 233 * The device specific ioctl range is 0x40 to 0x79. 234 */ | 124#endif /* __MGA_SAREA_DEFINES__ */ 125 126 127/* Setup registers for 3D context 128 */ 129typedef struct { 130 unsigned int dstorg; 131 unsigned int maccess; --- 97 unchanged lines hidden (view full) --- 229 230/* WARNING: If you change any of these defines, make sure to change the 231 * defines in the Xserver file (xf86drmMga.h) 232 */ 233 234/* MGA specific ioctls 235 * The device specific ioctl range is 0x40 to 0x79. 236 */ |
235#define DRM_IOCTL_MGA_INIT DRM_IOW( 0x40, drm_mga_init_t) 236#define DRM_IOCTL_MGA_FLUSH DRM_IOW( 0x41, drm_lock_t) 237#define DRM_IOCTL_MGA_RESET DRM_IO( 0x42) 238#define DRM_IOCTL_MGA_SWAP DRM_IO( 0x43) 239#define DRM_IOCTL_MGA_CLEAR DRM_IOW( 0x44, drm_mga_clear_t) 240#define DRM_IOCTL_MGA_VERTEX DRM_IOW( 0x45, drm_mga_vertex_t) 241#define DRM_IOCTL_MGA_INDICES DRM_IOW( 0x46, drm_mga_indices_t) 242#define DRM_IOCTL_MGA_ILOAD DRM_IOW( 0x47, drm_mga_iload_t) 243#define DRM_IOCTL_MGA_BLIT DRM_IOW( 0x48, drm_mga_blit_t) 244#define DRM_IOCTL_MGA_GETPARAM DRM_IOWR(0x49, drm_mga_getparam_t) | 237#define DRM_MGA_INIT 0x00 238#define DRM_MGA_FLUSH 0x01 239#define DRM_MGA_RESET 0x02 240#define DRM_MGA_SWAP 0x03 241#define DRM_MGA_CLEAR 0x04 242#define DRM_MGA_VERTEX 0x05 243#define DRM_MGA_INDICES 0x06 244#define DRM_MGA_ILOAD 0x07 245#define DRM_MGA_BLIT 0x08 246#define DRM_MGA_GETPARAM 0x09 |
245 | 247 |
248#define DRM_IOCTL_MGA_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_INIT, drm_mga_init_t) 249#define DRM_IOCTL_MGA_FLUSH DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_FLUSH, drm_lock_t) 250#define DRM_IOCTL_MGA_RESET DRM_IO( DRM_COMMAND_BASE + DRM_MGA_RESET) 251#define DRM_IOCTL_MGA_SWAP DRM_IO( DRM_COMMAND_BASE + DRM_MGA_SWAP) 252#define DRM_IOCTL_MGA_CLEAR DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_CLEAR, drm_mga_clear_t) 253#define DRM_IOCTL_MGA_VERTEX DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_VERTEX, drm_mga_vertex_t) 254#define DRM_IOCTL_MGA_INDICES DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_INDICES, drm_mga_indices_t) 255#define DRM_IOCTL_MGA_ILOAD DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_ILOAD, drm_mga_iload_t) 256#define DRM_IOCTL_MGA_BLIT DRM_IOW( DRM_COMMAND_BASE + DRM_MGA_BLIT, drm_mga_blit_t) 257#define DRM_IOCTL_MGA_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_MGA_GETPARAM, drm_mga_getparam_t) 258 |
|
246typedef struct _drm_mga_warp_index { 247 int installed; 248 unsigned long phys_addr; 249 int size; 250} drm_mga_warp_index_t; 251 252typedef struct drm_mga_init { 253 enum { --- 73 unchanged lines hidden (view full) --- 327 328/* 3.1: An ioctl to get parameters that aren't available to the 3d 329 * client any other way. 330 */ 331#define MGA_PARAM_IRQ_NR 1 332 333typedef struct drm_mga_getparam { 334 int param; | 259typedef struct _drm_mga_warp_index { 260 int installed; 261 unsigned long phys_addr; 262 int size; 263} drm_mga_warp_index_t; 264 265typedef struct drm_mga_init { 266 enum { --- 73 unchanged lines hidden (view full) --- 340 341/* 3.1: An ioctl to get parameters that aren't available to the 3d 342 * client any other way. 343 */ 344#define MGA_PARAM_IRQ_NR 1 345 346typedef struct drm_mga_getparam { 347 int param; |
335 int *value; | 348 void *value; |
336} drm_mga_getparam_t; 337 338#endif | 349} drm_mga_getparam_t; 350 351#endif |