config.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | config.c (200a3d352cd5e0ae8fb96bfcf8103f7b7c60645b) |
---|---|
1/* 2 * arch/m68k/mvme147/config.c 3 * 4 * Copyright (C) 1996 Dave Frascone [chaos@mindspring.com] 5 * Cloned from Richard Hirst [richard@sleepie.demon.co.uk] 6 * 7 * Based on: 8 * --- 22 unchanged lines hidden (view full) --- 31#include <asm/setup.h> 32#include <asm/irq.h> 33#include <asm/traps.h> 34#include <asm/rtc.h> 35#include <asm/machdep.h> 36#include <asm/mvme147hw.h> 37 38 | 1/* 2 * arch/m68k/mvme147/config.c 3 * 4 * Copyright (C) 1996 Dave Frascone [chaos@mindspring.com] 5 * Cloned from Richard Hirst [richard@sleepie.demon.co.uk] 6 * 7 * Based on: 8 * --- 22 unchanged lines hidden (view full) --- 31#include <asm/setup.h> 32#include <asm/irq.h> 33#include <asm/traps.h> 34#include <asm/rtc.h> 35#include <asm/machdep.h> 36#include <asm/mvme147hw.h> 37 38 |
39extern irqreturn_t mvme147_process_int (int level, struct pt_regs *regs); 40extern void mvme147_init_IRQ (void); 41extern void mvme147_free_irq (unsigned int, void *); 42extern int show_mvme147_interrupts (struct seq_file *, void *); 43extern void mvme147_enable_irq (unsigned int); 44extern void mvme147_disable_irq (unsigned int); | |
45static void mvme147_get_model(char *model); 46static int mvme147_get_hardware_list(char *buffer); | 39static void mvme147_get_model(char *model); 40static int mvme147_get_hardware_list(char *buffer); |
47extern int mvme147_request_irq (unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long flags, const char *devname, void *dev_id); | |
48extern void mvme147_sched_init(irqreturn_t (*handler)(int, void *, struct pt_regs *)); 49extern unsigned long mvme147_gettimeoffset (void); 50extern int mvme147_hwclk (int, struct rtc_time *); 51extern int mvme147_set_clock_mmss (unsigned long); 52extern void mvme147_reset (void); 53extern void mvme147_waitbut(void); 54 55 --- 30 unchanged lines hidden (view full) --- 86 87static int mvme147_get_hardware_list(char *buffer) 88{ 89 *buffer = '\0'; 90 91 return 0; 92} 93 | 41extern void mvme147_sched_init(irqreturn_t (*handler)(int, void *, struct pt_regs *)); 42extern unsigned long mvme147_gettimeoffset (void); 43extern int mvme147_hwclk (int, struct rtc_time *); 44extern int mvme147_set_clock_mmss (unsigned long); 45extern void mvme147_reset (void); 46extern void mvme147_waitbut(void); 47 48 --- 30 unchanged lines hidden (view full) --- 79 80static int mvme147_get_hardware_list(char *buffer) 81{ 82 *buffer = '\0'; 83 84 return 0; 85} 86 |
87/* 88 * This function is called during kernel startup to initialize 89 * the mvme147 IRQ handling routines. 90 */ |
|
94 | 91 |
92void mvme147_init_IRQ(void) 93{ 94 m68k_setup_user_interrupt(VEC_USER, 192, NULL); 95} 96 |
|
95void __init config_mvme147(void) 96{ 97 mach_max_dma_address = 0x01000000; 98 mach_sched_init = mvme147_sched_init; 99 mach_init_IRQ = mvme147_init_IRQ; 100 mach_gettimeoffset = mvme147_gettimeoffset; 101 mach_hwclk = mvme147_hwclk; 102 mach_set_clock_mmss = mvme147_set_clock_mmss; 103 mach_reset = mvme147_reset; | 97void __init config_mvme147(void) 98{ 99 mach_max_dma_address = 0x01000000; 100 mach_sched_init = mvme147_sched_init; 101 mach_init_IRQ = mvme147_init_IRQ; 102 mach_gettimeoffset = mvme147_gettimeoffset; 103 mach_hwclk = mvme147_hwclk; 104 mach_set_clock_mmss = mvme147_set_clock_mmss; 105 mach_reset = mvme147_reset; |
104 mach_free_irq = mvme147_free_irq; 105 mach_process_int = mvme147_process_int; 106 mach_get_irq_list = show_mvme147_interrupts; 107 mach_request_irq = mvme147_request_irq; 108 enable_irq = mvme147_enable_irq; 109 disable_irq = mvme147_disable_irq; | |
110 mach_get_model = mvme147_get_model; 111 mach_get_hardware_list = mvme147_get_hardware_list; 112 113 /* Board type is only set by newer versions of vmelilo/tftplilo */ 114 if (!vme_brdtype) 115 vme_brdtype = VME_TYPE_MVME147; 116} 117 --- 112 unchanged lines hidden --- | 106 mach_get_model = mvme147_get_model; 107 mach_get_hardware_list = mvme147_get_hardware_list; 108 109 /* Board type is only set by newer versions of vmelilo/tftplilo */ 110 if (!vme_brdtype) 111 vme_brdtype = VME_TYPE_MVME147; 112} 113 --- 112 unchanged lines hidden --- |