diff options
Diffstat (limited to 'src/mesa/drivers/dos/internal.h')
-rw-r--r-- | src/mesa/drivers/dos/internal.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/mesa/drivers/dos/internal.h b/src/mesa/drivers/dos/internal.h index fd47dbb7b8..85b94d3773 100644 --- a/src/mesa/drivers/dos/internal.h +++ b/src/mesa/drivers/dos/internal.h @@ -23,7 +23,7 @@ */ /* - * DOS/DJGPP device driver v1.5 for Mesa + * DOS/DJGPP device driver v1.6 for Mesa * * Copyright (C) 2002 - Borca Daniel * Email : dborca@users.sourceforge.net @@ -36,6 +36,7 @@ #include "../main/mtypes.h" + /* * general purpose defines, etc. */ @@ -54,39 +55,36 @@ typedef unsigned long word32; #define _32_ *(word32 *)& - /* * video mode structure */ typedef struct vl_mode { - int xres, yres; - int bpp; + int xres, yres; + int bpp; - int mode; - int scanlen; + int mode; + int scanlen; - int sel; - int gran; + int sel; + int gran; } vl_mode; - /* * video driver structure */ typedef struct { - vl_mode *(*init) (void); - int (*entermode) (vl_mode *p, int refresh); - void (*blit) (void); - void (*setCI_f) (int index, float red, float green, float blue); - void (*setCI_i) (int index, int red, int green, int blue); - int (*get) (int pname, int *params); - void (*restore) (void); - void (*fini) (void); + vl_mode *(*init) (void); + int (*entermode) (vl_mode *p, int refresh); + void (*blit) (void); + void (*setCI_f) (int index, float red, float green, float blue); + void (*setCI_i) (int index, int red, int green, int blue); + int (*get) (int pname, int *params); + void (*restore) (void); + void (*fini) (void); } vl_driver; - /* * memory mapping */ @@ -95,11 +93,13 @@ void _remove_linear_mapping (unsigned long *linear); int _create_selector (int *segment, unsigned long base, int size); void _remove_selector (int *segment); + /* * system routines */ int _can_mmx (void); + /* * asm routines to deal with virtual buffering */ @@ -127,4 +127,5 @@ extern void v_putpixel16 (unsigned int offset, int color); extern void v_putpixel24 (unsigned int offset, int color); extern void v_putpixel32 (unsigned int offset, int color); + #endif |