28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: devices.h,v 1.212 2006/06/16 18:31:26 debug Exp $ |
* $Id: devices.h,v 1.218 2006/10/02 09:26:53 debug Exp $ |
32 |
* |
* |
33 |
* Memory mapped devices. |
* Memory mapped devices. |
34 |
* |
* |
43 |
struct machine; |
struct machine; |
44 |
struct memory; |
struct memory; |
45 |
struct pci_data; |
struct pci_data; |
46 |
|
struct timer; |
47 |
|
|
48 |
/* #ifdef WITH_X11 |
/* #ifdef WITH_X11 |
49 |
#include <X11/Xlib.h> |
#include <X11/Xlib.h> |
216 |
/* Extra flags: */ |
/* Extra flags: */ |
217 |
#define VFB_REVERSE_START 0x10000 |
#define VFB_REVERSE_START 0x10000 |
218 |
struct vfb_data { |
struct vfb_data { |
219 |
|
struct memory *memory; |
220 |
int vfb_type; |
int vfb_type; |
221 |
|
|
222 |
int vfb_scaledown; |
int vfb_scaledown; |
242 |
/* RGB palette for <= 8 bit modes: (r,g,b bytes for each) */ |
/* RGB palette for <= 8 bit modes: (r,g,b bytes for each) */ |
243 |
unsigned char rgb_palette[256 * 3]; |
unsigned char rgb_palette[256 * 3]; |
244 |
|
|
245 |
|
char *name; |
246 |
|
char title[100]; |
247 |
|
|
248 |
void (*redraw_func)(struct vfb_data *, int, int); |
void (*redraw_func)(struct vfb_data *, int, int); |
249 |
|
|
250 |
/* These should always be in sync: */ |
/* These should always be in sync: */ |
280 |
uint32_t timer_load[N_FOOTBRIDGE_TIMERS]; |
uint32_t timer_load[N_FOOTBRIDGE_TIMERS]; |
281 |
uint32_t timer_value[N_FOOTBRIDGE_TIMERS]; |
uint32_t timer_value[N_FOOTBRIDGE_TIMERS]; |
282 |
uint32_t timer_control[N_FOOTBRIDGE_TIMERS]; |
uint32_t timer_control[N_FOOTBRIDGE_TIMERS]; |
283 |
int timer_being_read; |
|
284 |
int timer_poll_mode; |
struct timer *timer[N_FOOTBRIDGE_TIMERS]; |
285 |
|
int pending_timer_interrupts[N_FOOTBRIDGE_TIMERS]; |
286 |
|
|
287 |
uint32_t irq_status; |
uint32_t irq_status; |
288 |
uint32_t irq_enable; |
uint32_t irq_enable; |
689 |
int dont_clear_next; |
int dont_clear_next; |
690 |
int escape_state; |
int escape_state; |
691 |
|
|
692 |
|
int pending_timer_interrupts; |
693 |
|
struct timer *timer; |
694 |
|
|
695 |
/* See icureg.h in NetBSD for more info. */ |
/* See icureg.h in NetBSD for more info. */ |
696 |
uint16_t sysint1; |
uint16_t sysint1; |
697 |
uint16_t msysint1; |
uint16_t msysint1; |
727 |
int mouse_mode; |
int mouse_mode; |
728 |
int mouse_revision; /* 0..15 */ |
int mouse_revision; /* 0..15 */ |
729 |
int mouse_x, mouse_y, mouse_buttons; |
int mouse_x, mouse_y, mouse_buttons; |
|
|
|
|
int old_host_mouse_x; |
|
|
int old_host_mouse_y; |
|
|
int old_host_mouse_stays_put; |
|
|
int mouse_check_interval; |
|
|
int mouse_check_interval_reset; |
|
730 |
}; |
}; |
731 |
void lk201_tick(struct lk201_data *); |
void lk201_tick(struct machine *, struct lk201_data *); |
732 |
void lk201_tx_data(struct lk201_data *, int port, int idata); |
void lk201_tx_data(struct lk201_data *, int port, int idata); |
733 |
void lk201_init(struct lk201_data *d, int use_fb, |
void lk201_init(struct lk201_data *d, int use_fb, |
734 |
void (*add_to_rx_queue)(void *,int,int), int console_handle, void *); |
void (*add_to_rx_queue)(void *,int,int), int console_handle, void *); |