liberis
|
00001 /* 00002 liberis -- A set of libraries for controlling the NEC PC-FX 00003 00004 Copyright (C) 2011 Alex Marshall "trap15" <trap15@raidenii.net> 00005 00006 # This code is licensed to you under the terms of the MIT license; 00007 # see file LICENSE or http://www.opensource.org/licenses/mit-license.php 00008 */ 00009 00014 #ifndef _LIBERIS_LOW_7UP_H_ 00015 #define _LIBERIS_LOW_7UP_H_ 00016 00019 typedef enum { 00020 SUP_LOW_MAP_32X32 = 0, 00021 SUP_LOW_MAP_64X32 = 1, 00022 SUP_LOW_MAP_128X32 = 2, 00023 SUP_LOW_MAP_32X64 = 4, 00024 SUP_LOW_MAP_64X64 = 5, 00025 SUP_LOW_MAP_128X64 = 7 00026 } sup_low_mapsize; 00027 00032 void eris_low_sup_init(int chip); 00045 void eris_low_sup_set_video_mode(int chip, int hdispstrt, int hsyncwid, 00046 int hdispend, int hdispwid, int vdispstrt, 00047 int vsyncwid, int vdispwid, int vdispend); 00053 void eris_low_sup_set_vram_write(int chip, u16 addr); 00059 void eris_low_sup_vram_write(int chip, u16 data); 00065 void eris_low_sup_set_vram_read(int chip, u16 addr); 00071 u16 eris_low_sup_vram_read(int chip); 00080 void eris_low_sup_set_control(int chip, int increment, int bg_show, 00081 int spr_show); 00091 void eris_low_sup_set_interrupts(int chip, int vblank_irq, int raster_irq, 00092 int excess_spr, int spr_collision); 00098 void eris_low_sup_set_interrupt_raster(int chip, int raster); 00105 void eris_low_sup_set_scroll(int chip, u16 x, u16 y); 00113 void eris_low_sup_do_dma(int chip, u16 src, u16 dst, u16 len); 00125 void eris_low_sup_setup_dma(int chip, int satb_repeat, int src_dec, 00126 int dst_dec, int vram_irq, int satb_irq); 00133 void eris_low_sup_set_satb_address(int chip, u16 addr); 00143 void eris_low_sup_set_access_width(int chip, int cg_mode, 00144 sup_low_mapsize mapsize, int spr_px_w, 00145 int vram_px_w); 00146 00147 #endif 00148