blob: 8bf94738ec9d0f6acbf0468a6665e55571d4191c [file] [log] [blame]
Wolfgang Denk97caf672006-03-12 02:12:27 +01001/*
2 * U-boot - machdep.h
3 *
Aubrey Li314d22f2007-04-05 18:31:18 +08004 * Copyright (c) 2005-2007 Analog Devices Inc.
Wolfgang Denk97caf672006-03-12 02:12:27 +01005 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
Aubrey Li314d22f2007-04-05 18:31:18 +080021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
Wolfgang Denk97caf672006-03-12 02:12:27 +010023 */
24
25#ifndef _BLACKFIN_MACHDEP_H
26#define _BLACKFIN_MACHDEP_H
27
28/* Machine dependent initial routines:
29 *
30 * Based on include/asm-m68knommu/machdep.h
31 * For blackfin, just now we only have bfin, so they'd point to the default bfin
32 *
33 */
34
35struct pt_regs;
36struct kbd_repeat;
37struct mktime;
38struct hwclk_time;
39struct gendisk;
40struct buffer_head;
41
Aubrey.Li9da597f2007-03-09 13:38:44 +080042extern
43 void (*mach_sched_init) (void (*handler) (int, void *, struct pt_regs *));
Wolfgang Denk97caf672006-03-12 02:12:27 +010044
45/* machine dependent keyboard functions */
46extern int (*mach_keyb_init) (void);
47extern int (*mach_kbdrate) (struct kbd_repeat *);
48extern void (*mach_kbd_leds) (unsigned int);
49
50/* machine dependent irq functions */
51extern void (*mach_init_IRQ) (void);
52extern void (*(*mach_default_handler)[]) (int, void *, struct pt_regs *);
53extern int (*mach_request_irq) (unsigned int irq,
54 void (*handler) (int, void *,
55 struct pt_regs *),
56 unsigned long flags, const char *devname,
57 void *dev_id);
58extern void (*mach_free_irq) (unsigned int irq, void *dev_id);
59extern void (*mach_get_model) (char *model);
60extern int (*mach_get_hardware_list) (char *buffer);
61extern int (*mach_get_irq_list) (char *buf);
62extern void (*mach_process_int) (int irq, struct pt_regs * fp);
63
64/* machine dependent timer functions */
65extern unsigned long (*mach_gettimeoffset) (void);
66extern void (*mach_gettod) (int *year, int *mon, int *day, int *hour,
67 int *min, int *sec);
68extern int (*mach_hwclk) (int, struct hwclk_time *);
69extern int (*mach_set_clock_mmss) (unsigned long);
70extern void (*mach_reset) (void);
71extern void (*mach_halt) (void);
72extern void (*mach_power_off) (void);
73extern unsigned long (*mach_hd_init) (unsigned long, unsigned long);
74extern void (*mach_hd_setup) (char *, int *);
75extern long mach_max_dma_address;
76extern void (*mach_floppy_setup) (char *, int *);
77extern void (*mach_floppy_eject) (void);
78extern void (*mach_heartbeat) (int);
79extern void (*mach_l2_flush) (int);
80extern int mach_sysrq_key;
81extern int mach_sysrq_shift_state;
82extern int mach_sysrq_shift_mask;
83extern char *mach_sysrq_xlate;
84
85#ifdef CONFIG_UCLINUX
86extern void config_BSP(char *command, int len);
87extern void (*mach_tick) (void);
88#endif
89
90#endif