atari:xbios: merge CTPCI defines with Milan header file. SDL-1.2
authorPatrice Mandin
Tue, 29 Jul 2014 17:02:37 +0200
branchSDL-1.2
changeset 9024372ca9a5be7c
parent 9022 de368e497138
child 9026 5b91761249f9
atari:xbios: merge CTPCI defines with Milan header file.
src/video/xbios/SDL_xbios_milan.h
     1.1 --- a/src/video/xbios/SDL_xbios_milan.h	Mon Jul 28 21:15:42 2014 +0200
     1.2 +++ b/src/video/xbios/SDL_xbios_milan.h	Tue Jul 29 17:02:37 2014 +0200
     1.3 @@ -22,9 +22,10 @@
     1.4  #include "SDL_config.h"
     1.5  
     1.6  /*
     1.7 -	Milan Xbios video functions
     1.8 +	Milan/CTPCI Xbios video functions
     1.9  
    1.10  	Patrice Mandin
    1.11 +	Pawel Goralski
    1.12  */
    1.13  
    1.14  #ifndef _SDL_xbios_milan_h
    1.15 @@ -35,9 +36,11 @@
    1.16  /*--- Defines ---*/
    1.17  
    1.18  /* Vsetscreen() parameters */
    1.19 -#define MI_MAGIC	0x4D49 
    1.20 +#define MI_MAGIC	0x4D49	/* Milan */
    1.21 +#define VN_MAGIC	0x564E	/* CTPCI */
    1.22  
    1.23  enum {
    1.24 +	/* Milan/CTPCI */
    1.25  	CMD_GETMODE=0,
    1.26  	CMD_SETMODE,
    1.27  	CMD_GETINFO,
    1.28 @@ -47,7 +50,19 @@
    1.29  	CMD_ALLOCMEM,
    1.30  	CMD_FREEMEM,
    1.31  	CMD_SETADR,
    1.32 -	CMD_ENUMMODES
    1.33 +	CMD_ENUMMODES,
    1.34 +
    1.35 +	/* CTPCI only */
    1.36 +	CMD_TESTMODE,
    1.37 +	CMD_COPYPAGE,
    1.38 +	CMD_FILLMEM,
    1.39 +	CMD_COPYMEM,
    1.40 +	CMD_TEXTUREMEM,
    1.41 +	CMD_GETVERSION,
    1.42 +	CMD_LINEMEM,
    1.43 +	CMD_CLIPMEM,
    1.44 +	CMD_SYNCMEM,
    1.45 +	CMD_BLANK
    1.46  };
    1.47  
    1.48  enum {
    1.49 @@ -61,6 +76,26 @@
    1.50  	BLK_CLEARED
    1.51  };
    1.52  
    1.53 +/* CTPCI block operations */
    1.54 +enum {
    1.55 +	BLK_CLEAR,
    1.56 +	BLK_AND,
    1.57 +	BLK_ANDREVERSE,
    1.58 +	BLK_COPY,
    1.59 +	BLK_ANDINVERTED,
    1.60 +	BLK_NOOP,
    1.61 +	BLK_XOR,
    1.62 +	BLK_OR,
    1.63 +	BLK_XNOR,
    1.64 +	BLK_EQUIV,
    1.65 +	BLK_INVERT,
    1.66 +	BLK_ORREVERSE,
    1.67 +	BLK_COPYINVERTED,
    1.68 +	BLK_ORINVERTED,
    1.69 +	BLK_NAND,
    1.70 +	BLK_SET 
    1.71 +};
    1.72 +
    1.73  /* scrFlags */
    1.74  #define SCRINFO_OK 1
    1.75  
    1.76 @@ -113,7 +148,7 @@
    1.77  	unsigned long	greenBits;	/* Mask of Green Bits */ 
    1.78  	unsigned long	blueBits;	/* Mask of Blue Bits */ 
    1.79  	unsigned long	alphaBits;	/* Mask of Alpha Bits */ 
    1.80 -	unsigned long	genlockBits;/* Mask of Genlock Bits */ 
    1.81 +	unsigned long	genlockBits;	/* Mask of Genlock Bits */ 
    1.82  	unsigned long	unusedBits;	/* Mask of unused Bits */ 
    1.83  	unsigned long	bitFlags;	/* Bits organisation flags */ 
    1.84  	unsigned long	maxmem;		/* max. memory in this mode */ 
    1.85 @@ -122,6 +157,58 @@
    1.86  	unsigned long	max_y;		/* max. possible heigth */ 
    1.87  } SCREENINFO; 
    1.88  
    1.89 +typedef struct _scrfillblk {
    1.90 +	long size;	/* size of structure           */
    1.91 +	long blk_status;/* status bits of blk          */
    1.92 +	long blk_op;	/* mode operation              */
    1.93 +	long blk_color;	/* background fill color       */
    1.94 +	long blk_x;	/* x pos in total screen       */
    1.95 +	long blk_y;	/* y pos in total screen       */
    1.96 +	long blk_w;	/* width                       */
    1.97 +	long blk_h;	/* height                      */
    1.98 +	long blk_unused;
    1.99 +} SCRFILLMEMBLK;
   1.100 +             
   1.101 +typedef struct _scrcopyblk {
   1.102 +	long size;	/* size of structure            */
   1.103 +	long blk_status;/* status bits of blk           */
   1.104 +	long blk_src_x;	/* x pos source in total screen */
   1.105 +	long blk_src_y;	/* y pos source in total screen */
   1.106 +	long blk_dst_x;	/* x pos dest in total screen   */
   1.107 +	long blk_dst_y;	/* y pos dest in total screen   */
   1.108 +	long blk_w;	/* width                        */
   1.109 +	long blk_h;	/* height                       */
   1.110 +	long blk_op;	/* block operation */
   1.111 +} SCRCOPYMEMBLK;
   1.112 +
   1.113 +typedef struct _scrtextureblk {
   1.114 +	long size;		/* size of structure             */
   1.115 +	long blk_status;	/* status bits of blk            */
   1.116 +	long blk_src_x;		/* x pos source                  */
   1.117 +	long blk_src_y;		/* y pos source                  */
   1.118 +	long blk_dst_x;		/* x pos dest in total screen    */
   1.119 +	long blk_dst_y;		/* y pos dest in total screen    */
   1.120 +	long blk_w;		/* width                         */
   1.121 +	long blk_h;		/* height                        */
   1.122 +	long blk_op;		/* mode operation                */
   1.123 +	long blk_src_tex;	/* source texture address        */
   1.124 +	long blk_w_tex;		/* width texture                 */
   1.125 +	long blk_h_tex;		/* height texture                */
   1.126 +} SCRTEXTUREMEMBLK;
   1.127 +
   1.128 +typedef struct _scrlineblk {
   1.129 +	long size;		/* size of structure            */
   1.130 +	long blk_status;	/* status bits of blk           */
   1.131 +	long blk_fgcolor;	/* foreground fill color        */
   1.132 +	long blk_bgcolor;	/* background fill color        */
   1.133 +	long blk_x1;		/* x1 pos dest in total screen  */
   1.134 +	long blk_y1;		/* y1 pos dest in total screen  */
   1.135 +	long blk_x2;		/* x2 pos dest in total screen  */
   1.136 +	long blk_y2;		/* y2 pos dest in total screen  */
   1.137 +	long blk_op;		/* mode operation               */
   1.138 +	long blk_pattern;	/* pattern (-1: solid line)     */
   1.139 +} SCRLINEMEMBLK;
   1.140 +
   1.141  /*--- Functions prototypes ---*/
   1.142  
   1.143  void SDL_XBIOS_ListMilanModes(_THIS, int actually_add);