comparison src/video/xbios/SDL_xbios_blowup.h @ 1040:c6ed27c7d47d

Preliminary support for Blowup and Screen Blaster 3 extensions on Atari Falcon 030
author Patrice Mandin <patmandin@gmail.com>
date Tue, 22 Feb 2005 17:57:40 +0000
parents
children d910939febfa
comparison
equal deleted inserted replaced
1039:68f2b997758e 1040:c6ed27c7d47d
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2004 Sam Lantinga
4
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.
9
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.
14
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
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22
23 /*
24 Blowup extension definitions
25
26 Patrice Mandin
27 */
28
29 #ifndef _SDL_xbios_blowup_h
30 #define _SDL_xbios_blowup_h
31
32 #include "SDL_xbios.h"
33
34 /*--- Types ---*/
35
36 typedef struct {
37 /* 64 bytes */
38 unsigned short enabled; /* Extended mode enabled ? 0=yes, <>0=no */
39 unsigned short dummy10[6];
40 unsigned short registers_0E; /* value for register 0xffff820e */
41 unsigned short registers_10; /* value for register 0xffff8210 */
42 unsigned short dummy11[23];
43
44 /* 64 bytes */
45 unsigned short width; /* width-1 */
46 unsigned short height; /* height-1 */
47 unsigned short dummy20;
48 unsigned long screensize; /* screensize in bytes */
49 unsigned short dummy21[8];
50 unsigned short virtual; /* Virtual screen ? */
51 unsigned short virwidth; /* Virtual screen width */
52 unsigned short virheight; /* Virtual screen height */
53
54 unsigned short dummy22;
55 unsigned short monitor; /* Monitor defined for this mode */
56 unsigned short extension; /* Extended mode defined ? 0=yes, 1=no */
57 unsigned short dummy23[13];
58
59 /* 64 bytes */
60 unsigned short dummy30;
61 unsigned short registers_82[6]; /* values for registers 0xffff8282-8c */
62 unsigned short dummy31[9];
63
64 unsigned short dummy32;
65 unsigned short registers_A2[6]; /* values for registers 0xffff82a2-ac */
66 unsigned short dummy33[9];
67
68 /* 64 bytes */
69 unsigned short registers_C0; /* value for register 0xffff82c0 */
70 unsigned short registers_C2; /* value for register 0xffff82c2 */
71 unsigned short dummy40[30];
72 } __attribute__((packed)) blow_mode_t;
73
74 typedef struct {
75 blow_mode_t blowup_modes[10];
76 unsigned char num_mode[6];
77 unsigned long dummy;
78 unsigned short montype;
79 } __attribute__((packed)) blow_cookie_t;
80
81 /*--- Functions prototypes ---*/
82
83 void SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t *cookie_blow);
84
85 #endif /* _SDL_xbios_blowup_h */