config.c
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:24k
- /*
- * linux/arch/m68k/atari/config.c
- *
- * Copyright (C) 1994 Bjoern Brauel
- *
- * 5/2/94 Roman Hodek:
- * Added setting of time_adj to get a better clock.
- *
- * 5/14/94 Roman Hodek:
- * gettod() for TT
- *
- * 5/15/94 Roman Hodek:
- * hard_reset_now() for Atari (and others?)
- *
- * 94/12/30 Andreas Schwab:
- * atari_sched_init fixed to get precise clock.
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file COPYING in the main directory of this archive
- * for more details.
- */
- /*
- * Miscellaneous atari stuff
- */
- #include <linux/config.h>
- #include <linux/types.h>
- #include <linux/mm.h>
- #include <linux/console.h>
- #include <linux/init.h>
- #include <linux/delay.h>
- #include <linux/ioport.h>
- #include <linux/vt_kern.h>
- #include <asm/bootinfo.h>
- #include <asm/setup.h>
- #include <asm/atarihw.h>
- #include <asm/atariints.h>
- #include <asm/atari_stram.h>
- #include <asm/system.h>
- #include <asm/keyboard.h>
- #include <asm/machdep.h>
- #include <asm/hwtest.h>
- #include <asm/io.h>
- u_long atari_mch_cookie;
- u_long atari_mch_type = 0;
- struct atari_hw_present atari_hw_present;
- u_long atari_switches = 0;
- int atari_dont_touch_floppy_select = 0;
- int atari_rtc_year_offset;
- /* local function prototypes */
- static void atari_reset( void );
- #ifdef CONFIG_ATARI_FLOPPY
- extern void atari_floppy_setup(char *, int *);
- #endif
- static void atari_get_model(char *model);
- static int atari_get_hardware_list(char *buffer);
- /* atari specific keyboard functions */
- extern int atari_keyb_init(void);
- extern int atari_kbdrate (struct kbd_repeat *);
- extern int atari_kbd_translate(unsigned char keycode, unsigned char *keycodep,
- char raw_mode);
- extern void atari_kbd_leds (unsigned int);
- /* atari specific irq functions */
- extern void atari_init_IRQ (void);
- extern int atari_request_irq (unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
- unsigned long flags, const char *devname, void *dev_id);
- extern void atari_free_irq (unsigned int irq, void *dev_id);
- extern void atari_enable_irq (unsigned int);
- extern void atari_disable_irq (unsigned int);
- extern int atari_get_irq_list (char *buf);
- extern void atari_mksound( unsigned int count, unsigned int ticks );
- #ifdef CONFIG_HEARTBEAT
- static void atari_heartbeat( int on );
- #endif
- /* atari specific timer functions (in time.c) */
- extern void atari_sched_init(void (*)(int, void *, struct pt_regs *));
- extern unsigned long atari_gettimeoffset (void);
- extern void atari_mste_gettod (int *, int *, int *, int *, int *, int *);
- extern void atari_tt_gettod (int *, int *, int *, int *, int *, int *);
- extern int atari_mste_hwclk (int, struct rtc_time *);
- extern int atari_tt_hwclk (int, struct rtc_time *);
- extern int atari_mste_set_clock_mmss (unsigned long);
- extern int atari_tt_set_clock_mmss (unsigned long);
- /* atari specific debug functions (in debug.c) */
- extern void atari_debug_init(void);
- #ifdef CONFIG_MAGIC_SYSRQ
- static char atari_sysrq_xlate[128] =
- "