| 1 |
|
| 2 | |
| 3 | * \file drm_sarea.h
|
| 4 | * \brief SAREA definitions
|
| 5 | *
|
| 6 | * \author Michel Dänzer <[email protected]>
|
| 7 |
|
| 8 |
|
| 9 | |
| 10 | * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
|
| 11 | * All Rights Reserved.
|
| 12 |
|
| 13 |
|
| 14 | #ifndef _DRM_SAREA_H_
|
| 15 | #define _DRM_SAREA_H_
|
| 16 |
|
| 17 | #include "drm.h"
|
| 18 |
|
| 19 | #if defined(__cplusplus)
|
| 20 | extern "C" {
|
| 21 | #endif
|
| 22 |
|
| 23 |
|
| 24 | #if defined(__alpha__)
|
| 25 | #define SAREA_MAX 0x2000U
|
| 26 | #elif defined(__mips__)
|
| 27 | #define SAREA_MAX 0x4000U
|
| 28 | #elif defined(__ia64__)
|
| 29 | #define SAREA_MAX 0x10000U
|
| 30 | #else
|
| 31 |
|
| 32 | #define SAREA_MAX 0x2000U
|
| 33 | #endif
|
| 34 |
|
| 35 |
|
| 36 | #define SAREA_MAX_DRAWABLES 256
|
| 37 |
|
| 38 | #define SAREA_DRAWABLE_CLAIMED_ENTRY 0x80000000
|
| 39 |
|
| 40 |
|
| 41 | struct drm_sarea_drawable {
|
| 42 | unsigned int stamp;
|
| 43 | unsigned int flags;
|
| 44 | };
|
| 45 |
|
| 46 |
|
| 47 | struct drm_sarea_frame {
|
| 48 | unsigned int x;
|
| 49 | unsigned int y;
|
| 50 | unsigned int width;
|
| 51 | unsigned int height;
|
| 52 | unsigned int fullscreen;
|
| 53 | };
|
| 54 |
|
| 55 |
|
| 56 | struct drm_sarea {
|
| 57 |
|
| 58 | struct drm_hw_lock lock;
|
| 59 |
|
| 60 | struct drm_hw_lock drawable_lock;
|
| 61 | struct drm_sarea_drawable drawableTable[SAREA_MAX_DRAWABLES];
|
| 62 | struct drm_sarea_frame frame;
|
| 63 | drm_context_t dummy_context;
|
| 64 | };
|
| 65 |
|
| 66 | #ifndef __KERNEL__
|
| 67 | typedef struct drm_sarea_drawable drm_sarea_drawable_t;
|
| 68 | typedef struct drm_sarea_frame drm_sarea_frame_t;
|
| 69 | typedef struct drm_sarea drm_sarea_t;
|
| 70 | #endif
|
| 71 |
|
| 72 | #if defined(__cplusplus)
|
| 73 | }
|
| 74 | #endif
|
| 75 |
|
| 76 | #endif
|