config.c (95d465fd750897ab32462a6702fbfe1b122cbbc0) | config.c (200a3d352cd5e0ae8fb96bfcf8103f7b7c60645b) |
---|---|
1/* 2 * arch/m68k/bvme6000/config.c 3 * 4 * Copyright (C) 1997 Richard Hirst [richard@sleepie.demon.co.uk] 5 * 6 * Based on: 7 * 8 * linux/amiga/config.c --- 22 unchanged lines hidden (view full) --- 31#include <asm/pgtable.h> 32#include <asm/setup.h> 33#include <asm/irq.h> 34#include <asm/traps.h> 35#include <asm/rtc.h> 36#include <asm/machdep.h> 37#include <asm/bvme6000hw.h> 38 | 1/* 2 * arch/m68k/bvme6000/config.c 3 * 4 * Copyright (C) 1997 Richard Hirst [richard@sleepie.demon.co.uk] 5 * 6 * Based on: 7 * 8 * linux/amiga/config.c --- 22 unchanged lines hidden (view full) --- 31#include <asm/pgtable.h> 32#include <asm/setup.h> 33#include <asm/irq.h> 34#include <asm/traps.h> 35#include <asm/rtc.h> 36#include <asm/machdep.h> 37#include <asm/bvme6000hw.h> 38 |
39extern irqreturn_t bvme6000_process_int (int level, struct pt_regs *regs); 40extern void bvme6000_init_IRQ (void); 41extern void bvme6000_free_irq (unsigned int, void *); 42extern int show_bvme6000_interrupts(struct seq_file *, void *); 43extern void bvme6000_enable_irq (unsigned int); 44extern void bvme6000_disable_irq (unsigned int); | |
45static void bvme6000_get_model(char *model); 46static int bvme6000_get_hardware_list(char *buffer); | 39static void bvme6000_get_model(char *model); 40static int bvme6000_get_hardware_list(char *buffer); |
47extern int bvme6000_request_irq(unsigned int irq, irqreturn_t (*handler)(int, void *, struct pt_regs *), unsigned long flags, const char *devname, void *dev_id); | |
48extern void bvme6000_sched_init(irqreturn_t (*handler)(int, void *, struct pt_regs *)); 49extern unsigned long bvme6000_gettimeoffset (void); 50extern int bvme6000_hwclk (int, struct rtc_time *); 51extern int bvme6000_set_clock_mmss (unsigned long); 52extern void bvme6000_reset (void); 53extern void bvme6000_waitbut(void); 54void bvme6000_set_vectors (void); 55 --- 39 unchanged lines hidden (view full) --- 95/* No hardware options on BVME6000? */ 96 97static int bvme6000_get_hardware_list(char *buffer) 98{ 99 *buffer = '\0'; 100 return 0; 101} 102 | 41extern void bvme6000_sched_init(irqreturn_t (*handler)(int, void *, struct pt_regs *)); 42extern unsigned long bvme6000_gettimeoffset (void); 43extern int bvme6000_hwclk (int, struct rtc_time *); 44extern int bvme6000_set_clock_mmss (unsigned long); 45extern void bvme6000_reset (void); 46extern void bvme6000_waitbut(void); 47void bvme6000_set_vectors (void); 48 --- 39 unchanged lines hidden (view full) --- 88/* No hardware options on BVME6000? */ 89 90static int bvme6000_get_hardware_list(char *buffer) 91{ 92 *buffer = '\0'; 93 return 0; 94} 95 |
96/* 97 * This function is called during kernel startup to initialize 98 * the bvme6000 IRQ handling routines. 99 */ 100static void bvme6000_init_IRQ(void) 101{ 102 m68k_setup_user_interrupt(VEC_USER, 192, NULL); 103} |
|
103 104void __init config_bvme6000(void) 105{ 106 volatile PitRegsPtr pit = (PitRegsPtr)BVME_PIT_BASE; 107 108 /* Board type is only set by newer versions of vmelilo/tftplilo */ 109 if (!vme_brdtype) { 110 if (m68k_cputype == CPU_68060) --- 11 unchanged lines hidden (view full) --- 122 123 mach_max_dma_address = 0xffffffff; 124 mach_sched_init = bvme6000_sched_init; 125 mach_init_IRQ = bvme6000_init_IRQ; 126 mach_gettimeoffset = bvme6000_gettimeoffset; 127 mach_hwclk = bvme6000_hwclk; 128 mach_set_clock_mmss = bvme6000_set_clock_mmss; 129 mach_reset = bvme6000_reset; | 104 105void __init config_bvme6000(void) 106{ 107 volatile PitRegsPtr pit = (PitRegsPtr)BVME_PIT_BASE; 108 109 /* Board type is only set by newer versions of vmelilo/tftplilo */ 110 if (!vme_brdtype) { 111 if (m68k_cputype == CPU_68060) --- 11 unchanged lines hidden (view full) --- 123 124 mach_max_dma_address = 0xffffffff; 125 mach_sched_init = bvme6000_sched_init; 126 mach_init_IRQ = bvme6000_init_IRQ; 127 mach_gettimeoffset = bvme6000_gettimeoffset; 128 mach_hwclk = bvme6000_hwclk; 129 mach_set_clock_mmss = bvme6000_set_clock_mmss; 130 mach_reset = bvme6000_reset; |
130 mach_free_irq = bvme6000_free_irq; 131 mach_process_int = bvme6000_process_int; 132 mach_get_irq_list = show_bvme6000_interrupts; 133 mach_request_irq = bvme6000_request_irq; 134 enable_irq = bvme6000_enable_irq; 135 disable_irq = bvme6000_disable_irq; | |
136 mach_get_model = bvme6000_get_model; 137 mach_get_hardware_list = bvme6000_get_hardware_list; 138 139 printk ("Board is %sconfigured as a System Controller\n", 140 *config_reg_ptr & BVME_CONFIG_SW1 ? "" : "not "); 141 142 /* Now do the PIT configuration */ 143 --- 237 unchanged lines hidden --- | 131 mach_get_model = bvme6000_get_model; 132 mach_get_hardware_list = bvme6000_get_hardware_list; 133 134 printk ("Board is %sconfigured as a System Controller\n", 135 *config_reg_ptr & BVME_CONFIG_SW1 ? "" : "not "); 136 137 /* Now do the PIT configuration */ 138 --- 237 unchanged lines hidden --- |