From: Andy P. <at...@us...> - 2002-04-10 18:31:28
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac In directory usw-pr-cvs1:/tmp/cvs-serv13561/m68k/mac Modified Files: config.c debug.c iop.c macints.c misc.c psc.c via.c Log Message: synch 2.4.15 commit 37 Index: config.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/config.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- config.c 14 Jan 2001 19:41:40 -0000 1.1.1.1 +++ config.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -13,7 +13,6 @@ #include <linux/config.h> #include <linux/types.h> #include <linux/mm.h> -#include <linux/kd.h> #include <linux/tty.h> #include <linux/console.h> #include <linux/interrupt.h> @@ -31,6 +30,7 @@ #include <asm/io.h> #include <asm/irq.h> #include <asm/pgtable.h> +#include <asm/rtc.h> #include <asm/machdep.h> #include <asm/macintosh.h> @@ -78,8 +78,6 @@ extern void (*kd_mksound)(unsigned int, unsigned int); extern void mac_mksound(unsigned int, unsigned int); -extern int mac_floppy_init(void); -extern void mac_floppy_setup(char *,int *); extern void nubus_sweep_video(void); @@ -122,8 +120,6 @@ } #endif -extern struct fb_info *mac_fb_init(long *); - extern void mac_default_handler(int, void *, struct pt_regs *); void (*mac_handlers[8])(int, void *, struct pt_regs *)= @@ -387,8 +383,7 @@ { MAC_MODEL_P460, "Performa 460", MAC_ADB_IISI, MAC_VIA_IIci, MAC_SCSI_OLD, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, { MAC_MODEL_P475, "Performa 475", MAC_ADB_CUDA, MAC_VIA_QUADRA, MAC_SCSI_QUADRA, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, { MAC_MODEL_P475F, "Performa 475", MAC_ADB_CUDA, MAC_VIA_QUADRA, MAC_SCSI_QUADRA, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, - { MAC_MODEL_P520, "Performa 520", MAC_ADB_CUDA, MAC_VIA_QUADRA, MAC_SCSI_QUADRA, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, - + { MAC_MODEL_P520, "Performa 520", MAC_ADB_CUDA, MAC_VIA_IIci, MAC_SCSI_OLD, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, { MAC_MODEL_P550, "Performa 550", MAC_ADB_CUDA, MAC_VIA_IIci, MAC_SCSI_OLD, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, { MAC_MODEL_P575, "Performa 575", MAC_ADB_CUDA, MAC_VIA_QUADRA, MAC_SCSI_QUADRA, MAC_IDE_NONE, MAC_SCC_II, MAC_ETHER_NONE, MAC_NUBUS}, /* These have the comm slot, and therefore the possibility of SONIC ethernet */ Index: debug.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/debug.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- debug.c 14 Jan 2001 19:41:46 -0000 1.1.1.1 +++ debug.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -187,7 +187,7 @@ -/* Mac: loops_per_sec min. 1900000 ^= .5 us; MFPDELAY was 0.6 us*/ +/* Mac: loops_per_jiffy min. 19000 ^= .5 us; MFPDELAY was 0.6 us*/ #define uSEC 1 @@ -286,9 +286,9 @@ barrier(); \ } while(0) -/* loops_per_sec isn't initialized yet, so we can't use udelay(). This does a +/* loops_per_jiffy isn't initialized yet, so we can't use udelay(). This does a * delay of ~ 60us. */ -/* Mac: loops_per_sec min. 1900000 ^= .5 us; MFPDELAY was 0.6 us*/ +/* Mac: loops_per_jiffy min. 19000 ^= .5 us; MFPDELAY was 0.6 us*/ #define LONG_DELAY() \ do { \ int i; \ Index: iop.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/iop.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- iop.c 14 Jan 2001 19:41:50 -0000 1.1.1.1 +++ iop.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -51,9 +51,6 @@ * IOP hasn't died. * o Some of the IOP manager routines need better error checking and * return codes. Nothing major, just prettying up. - * - * + share the stuff you were smoking when you wrote the iop_get_proc_info() - * for case when CONFIG_PROC_FS is undefined. */ /* @@ -129,9 +126,6 @@ #ifdef CONFIG_PROC_FS static int iop_get_proc_info(char *, char **, off_t, int); -#else -/* What the bloody hell is THAT ??? */ -static int iop_get_proc_info(char *, char **, off_t, int) {} #endif /* CONFIG_PROC_FS */ /* structure for tracking channel listeners */ @@ -307,7 +301,11 @@ iop_listeners[IOP_NUM_ISM][i].handler = NULL; } - create_proc_info_entry("mac_iop",0,0,iop_get_proc_info); +#if 0 /* Crashing in 2.4 now, not yet sure why. --jmt */ +#ifdef CONFIG_PROC_FS + create_proc_info_entry("mac_iop", 0, &proc_root, iop_get_proc_info); +#endif +#endif } /* Index: macints.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/macints.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- macints.c 14 Jan 2001 19:41:45 -0000 1.1.1.1 +++ macints.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -129,9 +129,13 @@ #include <asm/macintosh.h> #include <asm/mac_via.h> #include <asm/mac_psc.h> +#include <asm/hwtest.h> #include <asm/macints.h> +#define DEBUG_SPURIOUS +#define SHUTUP_SONIC + /* * The mac_irq_list array is an array of linked lists of irq_node_t nodes. * Each node contains one handler to be called whenever the interrupt @@ -233,6 +237,17 @@ scc_mask = 0; + /* Make sure the SONIC interrupt is cleared or things get ugly */ +#ifdef SHUTUP_SONIC + printk("Killing onboard sonic... "); + /* This address should hopefully be mapped already */ + if (hwreg_present((void*)(0x50f0a000))) { + *(long *)(0x50f0a014) = 0x7fffL; + *(long *)(0x50f0a010) = 0L; + } + printk("Done.\n"); +#endif /* SHUTUP_SONIC */ + /* * Now register the handlers for the the master IRQ handlers * at levels 1-7. Most of the work is done elsewhere. @@ -627,9 +642,7 @@ void mac_default_handler(int irq, void *dev_id, struct pt_regs *regs) { #ifdef DEBUG_SPURIOUS - if (console_loglevel > 6) { - printk("Unexpected IRQ %d on device %p\n", irq, dev_id); - } + printk("Unexpected IRQ %d on device %p\n", irq, dev_id); #endif } Index: misc.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/misc.c,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- misc.c 25 Feb 2001 23:15:20 -0000 1.1.1.2 +++ misc.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -2,7 +2,6 @@ * Miscellaneous Mac68K-specific stuff */ -#include <stdarg.h> #include <linux/config.h> #include <linux/types.h> #include <linux/errno.h> @@ -12,7 +11,7 @@ #include <linux/sched.h> #include <linux/slab.h> #include <linux/time.h> -#include <linux/kd.h> + #include <linux/mm.h> #include <linux/adb.h> @@ -21,6 +20,7 @@ #include <asm/uaccess.h> #include <asm/io.h> +#include <asm/rtc.h> #include <asm/system.h> #include <asm/segment.h> #include <asm/setup.h> Index: psc.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/psc.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- psc.c 14 Jan 2001 19:41:53 -0000 1.1.1.1 +++ psc.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -139,7 +139,6 @@ int irq_bit,i; unsigned char events; - irq -= VEC_SPUR; base_irq = irq << 3; #ifdef DEBUG_IRQS Index: via.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/m68k/mac/via.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- via.c 14 Jan 2001 19:41:55 -0000 1.1.1.1 +++ via.c 10 Apr 2002 14:34:36 -0000 1.2 @@ -410,8 +410,6 @@ int irq_bit, i; unsigned char events, mask; - irq -= VEC_SPUR; - mask = via1[vIER] & 0x7F; if (!(events = via1[vIFR] & mask)) return; @@ -423,6 +421,7 @@ via1[vIER] = irq_bit | 0x80; } +#if 0 /* freakin' pmu is doing weird stuff */ if (!oss_present) { /* This (still) seems to be necessary to get IDE working. However, if you enable VBL interrupts, @@ -435,14 +434,13 @@ mac_do_irq_list(IRQ_MAC_NUBUS, regs); via_irq_enable(IRQ_MAC_NUBUS); } +#endif } void via2_irq(int irq, void *dev_id, struct pt_regs *regs) { int irq_bit, i; unsigned char events, mask; - - irq -= VEC_SPUR; mask = via2[gIER] & 0x7F; if (!(events = via2[gIFR] & mask)) return; |