src/video/ps2gs/SDL_gsvideo.h
changeset 70 f590dd383b5d
child 136 717f739d6ec1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsvideo.h	Sat Jun 16 03:17:45 2001 +0000
     1.3 @@ -0,0 +1,92 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997, 1998, 1999, 2000  Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@devolution.com
    1.24 +*/
    1.25 +
    1.26 +#ifdef SAVE_RCSID
    1.27 +static char rcsid =
    1.28 + "@(#) $Id$";
    1.29 +#endif
    1.30 +
    1.31 +#ifndef _SDL_gsvideo_h
    1.32 +#define _SDL_gsvideo_h
    1.33 +
    1.34 +#include <sys/types.h>
    1.35 +#include <termios.h>
    1.36 +#include <linux/ps2/dev.h>
    1.37 +#include <linux/ps2/gs.h>
    1.38 +
    1.39 +#include "SDL_mouse.h"
    1.40 +#include "SDL_mutex.h"
    1.41 +#include "SDL_sysvideo.h"
    1.42 +
    1.43 +/* Hidden "this" pointer for the video functions */
    1.44 +#define _THIS	SDL_VideoDevice *this
    1.45 +
    1.46 +
    1.47 +/* Private display data */
    1.48 +struct SDL_PrivateVideoData {
    1.49 +	/* Gotta love that simple PS2 graphics interface. :) */
    1.50 +	int console_fd;
    1.51 +	int memory_fd;
    1.52 +	struct ps2_screeninfo saved_vinfo;
    1.53 +
    1.54 +	/* Ye olde linux keyboard code */
    1.55 +	int current_vt;
    1.56 +	int saved_vt;
    1.57 +	int keyboard_fd;
    1.58 +	int saved_kbd_mode;
    1.59 +	struct termios saved_kbd_termios;
    1.60 +
    1.61 +	/* Ye olde linux mouse code */
    1.62 +	int mouse_fd;
    1.63 +	int cursor_drawn;
    1.64 +
    1.65 +	/* The memory mapped DMA area and associated variables */
    1.66 +	caddr_t mapped_mem;
    1.67 +	int pixels_len;
    1.68 +	int mapped_len;
    1.69 +	struct ps2_image screen_image;
    1.70 +	int screen_image_size;
    1.71 +	unsigned long long *head_tags_mem;
    1.72 +	unsigned long long *image_tags_mem;
    1.73 +	int dma_pending;
    1.74 +};
    1.75 +/* Old variable names */
    1.76 +#define console_fd		(this->hidden->console_fd)
    1.77 +#define memory_fd		(this->hidden->memory_fd)
    1.78 +#define saved_vinfo		(this->hidden->saved_vinfo)
    1.79 +#define current_vt		(this->hidden->current_vt)
    1.80 +#define saved_vt		(this->hidden->saved_vt)
    1.81 +#define keyboard_fd		(this->hidden->keyboard_fd)
    1.82 +#define saved_kbd_mode		(this->hidden->saved_kbd_mode)
    1.83 +#define saved_kbd_termios	(this->hidden->saved_kbd_termios)
    1.84 +#define mouse_fd		(this->hidden->mouse_fd)
    1.85 +#define cursor_drawn		(this->hidden->cursor_drawn)
    1.86 +#define mapped_mem		(this->hidden->mapped_mem)
    1.87 +#define pixels_len		(this->hidden->pixels_len)
    1.88 +#define mapped_len		(this->hidden->mapped_len)
    1.89 +#define screen_image		(this->hidden->screen_image)
    1.90 +#define screen_image_size	(this->hidden->screen_image_size)
    1.91 +#define head_tags_mem		(this->hidden->head_tags_mem)
    1.92 +#define image_tags_mem		(this->hidden->image_tags_mem)
    1.93 +#define dma_pending		(this->hidden->dma_pending)
    1.94 +
    1.95 +#endif /* _SDL_gsvideo_h */