src/video/xbios/SDL_xbios_blowup.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 29 May 2006 04:04:35 +0000
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
permissions -rw-r--r--
more tweaking indent options
patmandin@1040
     1
/*
patmandin@1040
     2
    SDL - Simple DirectMedia Layer
patmandin@1040
     3
    Copyright (C) 1997-2004 Sam Lantinga
patmandin@1040
     4
patmandin@1040
     5
    This library is free software; you can redistribute it and/or
patmandin@1040
     6
    modify it under the terms of the GNU Library General Public
patmandin@1040
     7
    License as published by the Free Software Foundation; either
patmandin@1040
     8
    version 2 of the License, or (at your option) any later version.
patmandin@1040
     9
patmandin@1040
    10
    This library is distributed in the hope that it will be useful,
patmandin@1040
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
patmandin@1040
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
patmandin@1040
    13
    Library General Public License for more details.
patmandin@1040
    14
patmandin@1040
    15
    You should have received a copy of the GNU Library General Public
patmandin@1040
    16
    License along with this library; if not, write to the Free
patmandin@1040
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
patmandin@1040
    18
patmandin@1040
    19
    Sam Lantinga
patmandin@1040
    20
    slouken@libsdl.org
patmandin@1040
    21
*/
slouken@1402
    22
#include "SDL_config.h"
patmandin@1040
    23
patmandin@1040
    24
/*
patmandin@1040
    25
	Blowup extension definitions
patmandin@1040
    26
patmandin@1040
    27
	Patrice Mandin
patmandin@1040
    28
*/
patmandin@1040
    29
patmandin@1040
    30
#ifndef _SDL_xbios_blowup_h
patmandin@1040
    31
#define _SDL_xbios_blowup_h
patmandin@1040
    32
patmandin@1040
    33
#include "SDL_xbios.h"
patmandin@1040
    34
patmandin@1040
    35
/*--- Types ---*/
patmandin@1040
    36
slouken@1662
    37
typedef struct
slouken@1662
    38
{
slouken@1662
    39
    /* 64 bytes */
slouken@1662
    40
    unsigned short enabled;     /* Extended mode enabled ? 0=yes, <>0=no */
slouken@1662
    41
    unsigned short dummy10[6];
slouken@1662
    42
    unsigned short registers_0E;        /* value for register 0xffff820e */
slouken@1662
    43
    unsigned short registers_10;        /* value for register 0xffff8210 */
slouken@1662
    44
    unsigned short dummy11[23];
patmandin@1040
    45
slouken@1662
    46
    /* 64 bytes */
slouken@1662
    47
    unsigned short width;       /* width-1 */
slouken@1662
    48
    unsigned short height;      /* height-1 */
slouken@1662
    49
    unsigned short dummy20;
slouken@1662
    50
    unsigned long screensize;   /* screensize in bytes */
slouken@1662
    51
    unsigned short dummy21[8];
slouken@1662
    52
    unsigned short virtual;     /* Virtual screen ? */
slouken@1662
    53
    unsigned short virwidth;    /* Virtual screen width */
slouken@1662
    54
    unsigned short virheight;   /* Virtual screen height */
patmandin@1040
    55
slouken@1662
    56
    unsigned short dummy22;
slouken@1662
    57
    unsigned short monitor;     /* Monitor defined for this mode */
slouken@1662
    58
    unsigned short extension;   /* Extended mode defined ? 0=yes, 1=no */
slouken@1662
    59
    unsigned short dummy23[13];
patmandin@1040
    60
slouken@1662
    61
    /* 64 bytes */
slouken@1662
    62
    unsigned short dummy30;
slouken@1662
    63
    unsigned short registers_82[6];     /* values for registers 0xffff8282-8c */
slouken@1662
    64
    unsigned short dummy31[9];
patmandin@1040
    65
slouken@1662
    66
    unsigned short dummy32;
slouken@1662
    67
    unsigned short registers_A2[6];     /* values for registers 0xffff82a2-ac */
slouken@1662
    68
    unsigned short dummy33[9];
patmandin@1040
    69
slouken@1662
    70
    /* 64 bytes */
slouken@1662
    71
    unsigned short registers_C0;        /* value for register 0xffff82c0 */
slouken@1662
    72
    unsigned short registers_C2;        /* value for register 0xffff82c2 */
slouken@1662
    73
    unsigned short dummy40[30];
slouken@1662
    74
} __attribute__ ((packed)) blow_mode_t;
patmandin@1040
    75
slouken@1662
    76
typedef struct
slouken@1662
    77
{
slouken@1662
    78
    blow_mode_t blowup_modes[10];
slouken@1662
    79
    unsigned char num_mode[6];
slouken@1662
    80
    unsigned long dummy;
slouken@1662
    81
    unsigned short montype;
slouken@1662
    82
} __attribute__ ((packed)) blow_cookie_t;
patmandin@1040
    83
patmandin@1040
    84
/*--- Functions prototypes ---*/
patmandin@1040
    85
slouken@1668
    86
void SDL_XBIOS_BlowupInit(_THIS, blow_cookie_t * cookie_blow);
patmandin@1040
    87
patmandin@1040
    88
#endif /* _SDL_xbios_blowup_h */
slouken@1662
    89
/* vi: set ts=4 sw=4 expandtab: */