File:  [RetroPC.NET] / np2 / vram / vram.h
Revision 1.3: download - view: text, annotated - select for diffs
Thu Feb 19 06:58:41 2004 JST (21 years, 8 months ago) by yui
Branches: MAIN
CVS tags: HEAD
fix fdd motor (T.Yui)


#ifndef VRAMCALL
#define	VRAMCALL
#endif


typedef struct {
	UINT	operate;
#if !defined(CPUSTRUC_MEMWAIT)
	UINT	tramwait;
	UINT	vramwait;
	UINT	grcgwait;
#endif
} VRAM_T;

// operate:		bit0	access page
//				bit1	egc enable
//				bit2	grcg bit6
//				bit3	grcg bit7
//				bit4	analog enable

enum {
	VOP_ACCESSBIT	= 0x01,
	VOP_EGCBIT		= 0x02,
	VOP_GRCGBIT		= 0x0c,
	VOP_ANALOGBIT	= 0x10,

	VOP_ACCESSMASK	= ~(0x01),
	VOP_EGCMASK		= ~(0x02),
	VOP_GRCGMASK	= ~(0x0c),
	VOP_ANALOGMASK	= ~(0x10)
};


#ifdef __cplusplus
extern "C" {
#endif

extern const UINT32 vramplaneseg[4];

extern	VRAM_T	vramop;
extern	BYTE	tramupdate[0x1000];
extern	BYTE	vramupdate[0x8000];

void vram_initialize(void);

#if !defined(CPUSTRUC_MEMWAIT)
#define	MEMWAIT_TRAM	vramop.tramwait
#define	MEMWAIT_VRAM	vramop.vramwait
#define	MEMWAIT_GRCG	vramop.grcgwait
#endif

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>