Cxbx-Reloaded/import/OpenXDK/include/xvga/xvga_internal.h

53 lines
1.5 KiB
C

// ******************************************************************
// *
// * proj : OpenXDK
// *
// * desc : Open Source XBox Development Kit
// *
// * file : xvga_internal.h
// *
// * note : XBox VGA
// *
// ******************************************************************
#ifndef XVGA_INTERNAL_H
#define XVGA_INTERNAL_H
#include "openxdk.h"
#if defined(__cplusplus)
extern "C"
{
#endif
// ******************************************************************
// * vga registers
// ******************************************************************
static volatile char * const ATTR_REG_INDEX = (char * const)0xFD6013c0;
static volatile char * const ATTR_REG_DATA = (char * const)0xFD6013c1;
static volatile char * const CRTC_REG_INDEX = (char * const)0xFD6013d4;
static volatile char * const CRTC_REG_DATA = (char * const)0xFD6013d5;
static volatile char * const GRA_REG_INDEX = (char * const)0xFD0c03ce;
static volatile char * const GRA_REG_DATA = (char * const)0xFD0c03cf;
static volatile char * const SEQ_REG_INDEX = (char * const)0xFD0c03c4;
static volatile char * const SEQ_REG_DATA = (char * const)0xFD0c03c5;
static volatile char * const MISC_REG = (char * const)0xFD0c03c2;
#define XVGA_VBL 0xfd6013da
// ******************************************************************
// * vga_reg
// ******************************************************************
typedef struct _vga_reg
{
unsigned short port;
unsigned char index;
unsigned char value;
}
vga_reg;
#if defined(__cplusplus)
}
#endif
#endif