28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: devices.h,v 1.162 2005/04/11 20:44:40 debug Exp $ |
* $Id: devices.h,v 1.167 2005/05/22 20:05:40 debug Exp $ |
32 |
* |
* |
33 |
* Memory mapped devices. |
* Memory mapped devices. |
34 |
* |
* |
48 |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
49 |
#endif */ |
#endif */ |
50 |
|
|
51 |
|
/* dev_8259.c: */ |
52 |
|
struct pic8259_data { |
53 |
|
int irq_nr; /* if connected to another 8259 */ |
54 |
|
|
55 |
|
int irq_base; |
56 |
|
int current_command; |
57 |
|
|
58 |
|
int init_state; |
59 |
|
|
60 |
|
int priority_reg; |
61 |
|
uint8_t irr; /* interrupt request register */ |
62 |
|
uint8_t isr; /* interrupt in-service register */ |
63 |
|
uint8_t ier; /* interrupt enable register */ |
64 |
|
}; |
65 |
|
|
66 |
/* dev_dec_ioasic.c: */ |
/* dev_dec_ioasic.c: */ |
67 |
#define DEV_DEC_IOASIC_LENGTH 0x80100 |
#define DEV_DEC_IOASIC_LENGTH 0x80100 |
220 |
#define VFB_MFB_VRAM 0x200000 |
#define VFB_MFB_VRAM 0x200000 |
221 |
#define VFB_CFB_BT459 0x200000 |
#define VFB_CFB_BT459 0x200000 |
222 |
void set_grayscale_palette(struct vfb_data *d, int ncolors); |
void set_grayscale_palette(struct vfb_data *d, int ncolors); |
223 |
|
void dev_fb_resize(struct vfb_data *d, int new_xsize, int new_ysize); |
224 |
void dev_fb_setcursor(struct vfb_data *d, int cursor_x, int cursor_y, int on, |
void dev_fb_setcursor(struct vfb_data *d, int cursor_x, int cursor_y, int on, |
225 |
int cursor_xsize, int cursor_ysize); |
int cursor_xsize, int cursor_ysize); |
226 |
void framebuffer_blockcopyfill(struct vfb_data *d, int fillflag, int fill_r, |
void framebuffer_blockcopyfill(struct vfb_data *d, int fillflag, int fill_r, |
359 |
int writeflag, void *); |
int writeflag, void *); |
360 |
int dev_pckbc_init(struct machine *machine, struct memory *mem, |
int dev_pckbc_init(struct machine *machine, struct memory *mem, |
361 |
uint64_t baseaddr, int type, int keyboard_irqnr, int mouse_irqnr, |
uint64_t baseaddr, int type, int keyboard_irqnr, int mouse_irqnr, |
362 |
int in_use); |
int in_use, int pc_style_flag); |
363 |
|
|
364 |
/* dev_pmppc.c: */ |
/* dev_pmppc.c: */ |
365 |
int dev_pmppc_board_access(struct cpu *cpu, struct memory *mem, |
int dev_pmppc_board_access(struct cpu *cpu, struct memory *mem, |
539 |
|
|
540 |
/* dev_turbochannel.c: */ |
/* dev_turbochannel.c: */ |
541 |
#define DEV_TURBOCHANNEL_LEN 0x0470 |
#define DEV_TURBOCHANNEL_LEN 0x0470 |
542 |
int dev_turbochannel_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *); |
int dev_turbochannel_access(struct cpu *cpu, struct memory *mem, |
543 |
void dev_turbochannel_init(struct machine *machine, struct memory *mem, int slot_nr, uint64_t baseaddr, uint64_t endaddr, char *device_name, int irq); |
uint64_t relative_addr, unsigned char *data, size_t len, |
544 |
|
int writeflag, void *); |
545 |
|
void dev_turbochannel_init(struct machine *machine, struct memory *mem, |
546 |
|
int slot_nr, uint64_t baseaddr, uint64_t endaddr, char *device_name, |
547 |
|
int irq); |
548 |
|
|
549 |
/* dev_vga.c: */ |
/* dev_vga.c: */ |
550 |
int dev_vga_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, |
int dev_vga_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, |
551 |
unsigned char *data, size_t len, int writeflag, void *); |
unsigned char *data, size_t len, int writeflag, void *); |
552 |
void dev_vga_init(struct machine *machine, struct memory *mem, |
void dev_vga_init(struct machine *machine, struct memory *mem, |
553 |
uint64_t videomem_base, uint64_t control_base, int max_x, int max_y, |
uint64_t videomem_base, uint64_t control_base, char *name); |
|
char *name); |
|
554 |
|
|
555 |
/* dev_vr41xx.c: */ |
/* dev_vr41xx.c: */ |
556 |
#define DEV_VR41XX_LENGTH 0x800 /* TODO? */ |
#define DEV_VR41XX_LENGTH 0x800 /* TODO? */ |