rtoss - Blame information for rev 79

Subversion Repositories:
Rev:
Rev Author Line No. Line
74 roytam 1 #ifndef HW_PC98_H
2 #define HW_PC98_H
3  
79 roytam 4 //#define DEBUG_PC98_SYSTEM
5 #ifdef DEBUG_PC98_SYSTEM
6 #define pc98_system_log(...) fprintf(stderr, "pc98sys: " __VA_ARGS__)
7 #else
8 #define pc98_system_log(...)
9 #endif
10  
78 roytam 11 #define PC98_SYSCLOCK_5MHZ
12 //#define PC98_SYSCLOCK_8MHZ
74 roytam 13  
14 #ifdef PC98_SYSCLOCK_5MHZ
15     #define PC98_PIT_FREQ 2457600
16 #else
17     #define PC98_PIT_FREQ 1996800
18 #endif
19  
79 roytam 20 //#define PC98_VGA_FORCE_REDRAW
21 #define PC98_CIRRUS_VRAM_SIZE 0x100000
77 roytam 22  
79 roytam 23 /* pc98.c */
24 void pc98_cpu_shutdown(void);
78 roytam 25  
79 roytam 26 /* pc98bkd.c */
27 void pc98_kbd_init(void);
78 roytam 28  
79 roytam 29 /* pc98mouse.c */
30 void pc98_mouse_init(void);
78 roytam 31  
79 roytam 32 /* pc98sound.c */
33 int pc98_sound_init(qemu_irq *pic);
78 roytam 34  
79 roytam 35 /* pc98sys.c */
36 void *pc98_sys_init(void);
37 uint8_t pc98_sys_read_shut(void *opaque);
38  
39 /* pc98vga.c */
40 void pc98_vga_init(void);
41  
42 /* cirrus_vga.c */
43 void *pc98_cirrus_vga_init(DisplayState *ds);
44 void pc98_cirrus_vga_invalidate_display_size(void *opaque);
45 void pc98_cirrus_vga_update_display(void *opaque);
46 void pc98_cirrus_vga_invalidate_display(void *opaque);
47  
48 uint32_t pc98_cirrus_vram_readb(void *opaque, target_phys_addr_t addr);
49 uint32_t pc98_cirrus_vram_readw(void *opaque, target_phys_addr_t addr);
50 uint32_t pc98_cirrus_vram_readl(void *opaque, target_phys_addr_t addr);
51 void pc98_cirrus_vram_writeb(void *opaque,
52                              target_phys_addr_t addr, uint32_t value);
53 void pc98_cirrus_vram_writew(void *opaque,
54                              target_phys_addr_t addr, uint32_t value);
55 void pc98_cirrus_vram_writel(void *opaque,
56                              target_phys_addr_t addr, uint32_t value);
57  
74 roytam 58 /* i8254.c */
59 PITState *pc98_pit_init(qemu_irq irq);
60  
61 /* i8259.c */
62 qemu_irq *pc98_i8259_init(qemu_irq parent_irq);
63  
77 roytam 64 /* pcspk.c */
65 void pc98_pcspk_init(PITState *);
66 void pc98_pcspk_write(uint32_t val);
67  
74 roytam 68 /* piix_pci.c */
78 roytam 69 PCIBus *pc98_i440fx_init(PCII440FXState **pi440fx_state,
79 roytam 70                          int *piix3_devfn, qemu_irq *pic, ram_addr_t ram_size);
74 roytam 71  
77 roytam 72 /* ne2000.c */
73 void pc98_ne2000_init(int base, int irq, NICInfo *nd);
74  
74 roytam 75 #endif