| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | #ifndef _XF86DGACONST_H_ |
| 6 | #define _XF86DGACONST_H_ |
| 7 | |
| 8 | #include <X11/extensions/xf86dga1const.h> |
| 9 | |
| 10 | #define X_XDGAQueryVersion 0 |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | #define X_XDGAQueryModes 12 |
| 17 | #define X_XDGASetMode 13 |
| 18 | #define X_XDGASetViewport 14 |
| 19 | #define X_XDGAInstallColormap 15 |
| 20 | #define X_XDGASelectInput 16 |
| 21 | #define X_XDGAFillRectangle 17 |
| 22 | #define X_XDGACopyArea 18 |
| 23 | #define X_XDGACopyTransparentArea 19 |
| 24 | #define X_XDGAGetViewportStatus 20 |
| 25 | #define X_XDGASync 21 |
| 26 | #define X_XDGAOpenFramebuffer 22 |
| 27 | #define X_XDGACloseFramebuffer 23 |
| 28 | #define X_XDGASetClientVersion 24 |
| 29 | #define X_XDGAChangePixmapMode 25 |
| 30 | #define X_XDGACreateColormap 26 |
| 31 | |
| 32 | |
| 33 | #define XDGAConcurrentAccess 0x00000001 |
| 34 | #define XDGASolidFillRect 0x00000002 |
| 35 | #define XDGABlitRect 0x00000004 |
| 36 | #define XDGABlitTransRect 0x00000008 |
| 37 | #define XDGAPixmap 0x00000010 |
| 38 | |
| 39 | #define XDGAInterlaced 0x00010000 |
| 40 | #define XDGADoublescan 0x00020000 |
| 41 | |
| 42 | #define XDGAFlipImmediate 0x00000001 |
| 43 | #define XDGAFlipRetrace 0x00000002 |
| 44 | |
| 45 | #define XDGANeedRoot 0x00000001 |
| 46 | |
| 47 | #define XF86DGANumberEvents 7 |
| 48 | |
| 49 | #define XDGAPixmapModeLarge 0 |
| 50 | #define XDGAPixmapModeSmall 1 |
| 51 | |
| 52 | #define XF86DGAClientNotLocal 0 |
| 53 | #define XF86DGANoDirectVideoMode 1 |
| 54 | #define XF86DGAScreenNotActive 2 |
| 55 | #define XF86DGADirectNotActivated 3 |
| 56 | #define XF86DGAOperationNotSupported 4 |
| 57 | #define XF86DGANumberErrors (XF86DGAOperationNotSupported + 1) |
| 58 | |
| 59 | |
| 60 | typedef struct { |
| 61 | int num; |
| 62 | char *name; |
| 63 | float verticalRefresh; |
| 64 | int flags; |
| 65 | int imageWidth; |
| 66 | int imageHeight; |
| 67 | int pixmapWidth; |
| 68 | int pixmapHeight; |
| 69 | int bytesPerScanline; |
| 70 | int byteOrder; |
| 71 | int depth; |
| 72 | int bitsPerPixel; |
| 73 | unsigned long redMask; |
| 74 | unsigned long greenMask; |
| 75 | unsigned long blueMask; |
| 76 | short visualClass; |
| 77 | int viewportWidth; |
| 78 | int viewportHeight; |
| 79 | int xViewportStep; |
| 80 | int yViewportStep; |
| 81 | int maxViewportX; |
| 82 | int maxViewportY; |
| 83 | int viewportFlags; |
| 84 | int reserved1; |
| 85 | int reserved2; |
| 86 | } XDGAMode; |
| 87 | |
| 88 | |
| 89 | typedef struct { |
| 90 | XDGAMode mode; |
| 91 | unsigned char *data; |
| 92 | Pixmap pixmap; |
| 93 | } XDGADevice; |
| 94 | |
| 95 | |
| 96 | #endif |