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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-or32/] [machdep.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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