1 |
199 |
simons |
#ifndef _I960_MACHDEP_H
|
2 |
|
|
#define _I960_MACHDEP_H
|
3 |
|
|
|
4 |
|
|
#define VULP(x) (*(volatile unsigned long*)(x))
|
5 |
|
|
#define VUSP(x) (*(volatile unsigned short*)(x))
|
6 |
|
|
#define VUCP(x) (*(volatile unsigned char*)(x))
|
7 |
|
|
|
8 |
|
|
/* FIXME unknown if these correspond to anything on the i960
|
9 |
|
|
#define M68K_REGBASE_328 (0xFFFF0000)
|
10 |
|
|
#define M68K_REG_IMR VULP(M68K_REGBASE_328 + 0xF304)
|
11 |
|
|
*/
|
12 |
|
|
|
13 |
|
|
struct pt_regs;
|
14 |
|
|
struct kbd_repeat;
|
15 |
|
|
struct mktime;
|
16 |
|
|
struct hwclk_time;
|
17 |
|
|
struct gendisk;
|
18 |
|
|
struct buffer_head;
|
19 |
|
|
|
20 |
|
|
extern void (*mach_sched_init) (void (*handler)(int, void *, struct pt_regs *));
|
21 |
|
|
/* machine dependent keyboard functions */
|
22 |
|
|
extern int (*mach_keyb_init) (void);
|
23 |
|
|
extern int (*mach_kbdrate) (struct kbd_repeat *);
|
24 |
|
|
extern void (*mach_kbd_leds) (unsigned int);
|
25 |
|
|
/* machine dependent irq functions */
|
26 |
|
|
extern void (*mach_init_IRQ) (void);
|
27 |
|
|
extern void (*(*mach_default_handler)[]) (int, void *, struct pt_regs *);
|
28 |
|
|
extern int (*mach_request_irq) (unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
|
29 |
|
|
unsigned long flags, const char *devname, void *dev_id);
|
30 |
|
|
extern int (*mach_free_irq) (unsigned int irq, void *dev_id);
|
31 |
|
|
extern void (*mach_enable_irq) (unsigned int irq);
|
32 |
|
|
extern void (*mach_disable_irq) (unsigned int irq);
|
33 |
|
|
extern int (*mach_get_irq_list) (char *buf);
|
34 |
|
|
extern void (*mach_process_int) (int irq, struct pt_regs *fp);
|
35 |
|
|
/* machine dependent timer functions */
|
36 |
|
|
extern unsigned long (*mach_gettimeoffset)(void);
|
37 |
|
|
extern void (*mach_gettod)(int *year, int *mon, int *day, int *hour,
|
38 |
|
|
int *min, int *sec);
|
39 |
|
|
extern int (*mach_hwclk)(int, struct hwclk_time*);
|
40 |
|
|
extern int (*mach_set_clock_mmss)(unsigned long);
|
41 |
|
|
extern void (*mach_mksound)( unsigned int count, unsigned int ticks );
|
42 |
|
|
extern void (*mach_reset)( void );
|
43 |
|
|
extern int (*mach_floppy_init) (void);
|
44 |
|
|
extern unsigned long (*mach_hd_init) (unsigned long, unsigned long);
|
45 |
|
|
extern void (*mach_hd_setup)(char *, int *);
|
46 |
|
|
extern void (*waitbut)(void);
|
47 |
|
|
extern struct fb_info *(*mach_fb_init)(long *);
|
48 |
|
|
extern long mach_max_dma_address;
|
49 |
|
|
extern void (*mach_debug_init)(void);
|
50 |
|
|
extern void (*mach_video_setup)(char *, int *);
|
51 |
|
|
extern void (*mach_floppy_setup)(char *, int *);
|
52 |
|
|
extern void (*mach_floppy_eject)(void);
|
53 |
|
|
|
54 |
|
|
#endif /* _I960_MACHDEP_H */
|