OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-m68knommu/] [machdep.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _M68K_MACHDEP_H
2
#define _M68K_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
/*
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 config_BSP(char *commandp, int size);
21
 
22
extern void (*mach_sched_init) (void (*handler)(int, void *, struct pt_regs *));
23
extern void (*mach_tick)(void);
24
/* machine dependent keyboard functions */
25
extern int (*mach_keyb_init) (void);
26
extern int (*mach_kbdrate) (struct kbd_repeat *);
27
extern void (*mach_kbd_leds) (unsigned int);
28
/* machine dependent irq functions */
29
extern void (*mach_init_IRQ) (void);
30
extern void (*(*mach_default_handler)[]) (int, void *, struct pt_regs *);
31
extern int (*mach_request_irq) (unsigned int irq, void (*handler)(int, void *,  struct pt_regs *),
32
                                unsigned long flags, const char *devname, void *dev_id);
33
extern int (*mach_free_irq) (unsigned int irq, void *dev_id);
34
extern void (*mach_enable_irq) (unsigned int irq);
35
extern void (*mach_disable_irq) (unsigned int irq);
36
extern int (*mach_get_irq_list) (char *buf);
37
extern int (*mach_process_int) (int irq, struct pt_regs *fp);
38
extern void (*mach_trap_init) (void);
39
/* machine dependent timer functions */
40
extern unsigned long (*mach_gettimeoffset)(void);
41
extern void (*mach_gettod)(int *year, int *mon, int *day, int *hour,
42
                          int *min, int *sec);
43
extern int (*mach_hwclk)(int, struct hwclk_time*);
44
extern int (*mach_set_clock_mmss)(unsigned long);
45
extern void (*mach_mksound)( unsigned int count, unsigned int ticks );
46
extern void (*mach_reset)( void );
47
extern int (*mach_floppy_init) (void);
48
extern unsigned long (*mach_hd_init) (unsigned long, unsigned long);
49
extern void (*mach_hd_setup)(char *, int *);
50
extern void (*waitbut)(void);
51
extern struct fb_info *(*mach_fb_init)(long *);
52
extern long mach_max_dma_address;
53
extern void (*mach_debug_init)(void);
54
extern void (*mach_video_setup)(char *, int *);
55
extern void (*mach_floppy_setup)(char *, int *);
56
extern void (*mach_floppy_eject)(void);
57
 
58
#endif /* _M68K_MACHDEP_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.