2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2012 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "SDL_config.h"
25 Milan Xbios video functions
30 #ifndef _SDL_xbios_milan_h
31 #define _SDL_xbios_milan_h
33 #include "SDL_xbios.h"
37 /* Vsetscreen() parameters */
38 #define MI_MAGIC 0x4D49
73 #define INTERLEAVE_PLANES 0
74 #define STANDARD_PLANES 1
75 #define PACKEDPIX_PLANES 2
78 #define STANDARD_BITS 1
82 /*--- Structures ---*/
84 typedef struct _scrblk {
85 unsigned long size; /* size of strukture */
86 unsigned long blk_status; /* status bits of blk */
87 unsigned long blk_start; /* Start Adress */
88 unsigned long blk_len; /* length of memblk */
89 unsigned long blk_x; /* x pos in total screen*/
90 unsigned long blk_y; /* y pos in total screen */
91 unsigned long blk_w; /* width */
92 unsigned long blk_h; /* height */
93 unsigned long blk_wrap; /* width in bytes */
96 typedef struct screeninfo {
97 unsigned long size; /* Size of structure */
98 unsigned long devID; /* device id number */
99 unsigned char name[64]; /* Friendly name of Screen */
100 unsigned long scrFlags; /* some Flags */
101 unsigned long frameadr; /* Adress of framebuffer */
102 unsigned long scrHeight; /* visible X res */
103 unsigned long scrWidth; /* visible Y res */
104 unsigned long virtHeight; /* virtual X res */
105 unsigned long virtWidth; /* virtual Y res */
106 unsigned long scrPlanes; /* color Planes */
107 unsigned long scrColors; /* # of colors */
108 unsigned long lineWrap; /* # of Bytes to next line */
109 unsigned long planeWarp; /* # of Bytes to next plane */
110 unsigned long scrFormat; /* screen Format */
111 unsigned long scrClut; /* type of clut */
112 unsigned long redBits; /* Mask of Red Bits */
113 unsigned long greenBits; /* Mask of Green Bits */
114 unsigned long blueBits; /* Mask of Blue Bits */
115 unsigned long alphaBits; /* Mask of Alpha Bits */
116 unsigned long genlockBits;/* Mask of Genlock Bits */
117 unsigned long unusedBits; /* Mask of unused Bits */
118 unsigned long bitFlags; /* Bits organisation flags */
119 unsigned long maxmem; /* max. memory in this mode */
120 unsigned long pagemem; /* needed memory for one page */
121 unsigned long max_x; /* max. possible width */
122 unsigned long max_y; /* max. possible heigth */
125 /*--- Functions prototypes ---*/
127 void SDL_XBIOS_ListMilanModes(_THIS, int actually_add);
129 #endif /* _SDL_xbios_milan_h */