m68k
Subsystems (7)
Geert Uytterhoeven
maintainerHi Linus,
Please pull from
git://git.kernel.org:/pub/scm/linux/kernel/git/geert/linux-m68k.git for-linus
to receive the following m68k-related updates for 2.6.29:
Finn Thain (7):
m68k: Reinstate mac rtc
m68k: Mac via cleanup and commentry
m68k: machw.h cleanup
m68k: mac baboon interrupt enable/disable macfb annotations and compiler warning fix
m68k: fix trigraph ignored warning in setox.S
fbcon: remove broken mac vbl handler
Geert Uytterhoeven (1):
fbcon: Protect free_irq() by MACH_IS_ATARI check
Harvey Harrison (1):
m68k: use the new byteorder headers
Thanks and a Happy New Year!
arch/m68k/fpsp040/setox.S | 4 +- arch/m68k/mac/baboon.c | 42 +++++++++++++++------ arch/m68k/mac/config.c | 3 - arch/m68k/mac/debug.c | 1 arch/m68k/mac/macints.c | 9 ++-- arch/m68k/mac/misc.c | 16 +++++--- arch/m68k/mac/oss.c | 1 arch/m68k/mac/via.c | 80 ++++++++++++++++------------------------ drivers/ide/macide.c | 1 drivers/macintosh/via-cuda.c | 1 drivers/macintosh/via-macii.c | 1 drivers/macintosh/via-maciisi.c | 1 drivers/macintosh/via-pmu68k.c | 1 drivers/scsi/mac_scsi.c | 1 drivers/video/console/fbcon.c | 78 ++------------------------------------- drivers/video/macfb.c | 33 ++++++++-------- include/asm-m68k/byteorder.h | 16 ++------ include/asm-m68k/machw.h | 22 ----------- 18 files changed, 105 insertions(+), 206 deletions(-)
arch/m68k/fpsp040/setox.S +2 -2
@@ -36,9 +36,9 @@ | depending on their values, the program may run faster or slower -- | but no worse than 10% slower even in the extreme cases. | -| The program setoxm1 takes approximately ???/??? cycles for input +| The program setoxm1 takes approximately ??? / ??? cycles for input | argument X, 0.25 <= |X| < 70log2. For |X| < 0.25, it takes -| approximately ???/??? cycles. For the less common arguments, +| approximately ??? / ??? cycles. For the less common arguments, | depending on their values, the program may run faster or slower -- | but no worse than 10% slower even in the extreme cases. |
arch/m68k/mac/baboon.c +31 -11
76 lines not on this page · raw message
arch/m68k/mac/config.c +0 -3
@@ -162,10 +162,7 @@ void __init config_mac(void) mach_init_IRQ = mac_init_IRQ; mach_get_model = mac_get_model; mach_gettimeoffset = mac_gettimeoffset; -#warning move to adb/via init -#if 0 mach_hwclk = mac_hwclk; -#endif mach_set_clock_mmss = mac_set_clock_mmss; mach_reset = mac_reset; mach_halt = mac_poweroff;
arch/m68k/mac/debug.c +0 -1
@@ -24,7 +24,6 @@#define BOOTINFO_COMPAT_1_0 #include <asm/setup.h> #include <asm/bootinfo.h> -#include <asm/machw.h> #include <asm/macints.h> extern unsigned long mac_videobase;
arch/m68k/mac/macints.c +4 -5
@@ -127,7 +127,6 @@#include <asm/irq.h> #include <asm/traps.h> #include <asm/bootinfo.h> -#include <asm/machw.h> #include <asm/macintosh.h> #include <asm/mac_via.h> #include <asm/mac_psc.h>
@@ -215,8 +214,8 @@ irqreturn_t mac_debug_handler(int, void *);/* #define DEBUG_MACINTS */ -static void mac_enable_irq (unsigned int irq); -static void mac_disable_irq (unsigned int irq); +void mac_enable_irq (unsigned int irq); +void mac_disable_irq (unsigned int irq);static struct irq_controller mac_irq_controller = { .name ="mac" ,
@@ -275,7 +274,7 @@ void __init mac_init_IRQ(void)* These routines are just dispatchers to the VIA/OSS/PSC routines. */ -static void mac_enable_irq (unsigned int irq) +void mac_enable_irq (unsigned int irq) {int irq_src =IRQ_SRC (irq);
@@ -308,7 +307,7 @@ static void mac_enable_irq(unsigned int irq) } } -static void mac_disable_irq (unsigned int irq) +void mac_disable_irq (unsigned int irq) {int irq_src =IRQ_SRC (irq);
arch/m68k/mac/misc.c +10 -6
@@ -93,7 +93,7 @@ static void cuda_write_pram(int offset, __u8 data)#define cuda_write_pram NULL#endif -#ifdef CONFIG_ADB_PMU68K +#if 0 /* def CONFIG_ADB_PMU68K */ static long pmu_read_time (void ) {struct adb_request req;
@@ -148,7 +148,7 @@ static void pmu_write_pram(int offset, __u8 data)#define pmu_write_pram NULL#endif -#ifdef CONFIG_ADB_MACIISI +#if 0 /* def CONFIG_ADB_MACIISI */ extern int maciisi_request (struct adb_request *req,void (*done)(struct adb_request *),int nbytes, ...);
@@ -717,13 +717,18 @@ int mac_hwclk(int op, struct rtc_time *t)unmktime (now,0 , &t->tm_year, &t->tm_mon, &t->tm_mday, &t->tm_hour, &t->tm_min, &t->tm_sec); +#if 0 printk ("mac_hwclk: read %04d-%02d-%-2d %02d:%02d:%02d\n" , - t->tm_year +1900 , t->tm_mon +1 , t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); + t->tm_year +1900 , t->tm_mon +1 , t->tm_mday, + t->tm_hour, t->tm_min, t->tm_sec); +#endif }else {/* write */ +#if 0 printk ("mac_hwclk: tried to write %04d-%02d-%-2d %02d:%02d:%02d\n" , - t->tm_year +1900 , t->tm_mon +1 , t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); + t->tm_year +1900 , t->tm_mon +1 , t->tm_mday, + t->tm_hour, t->tm_min, t->tm_sec); +#endif -#if 0 /* it trashes my rtc */ now =mktime (t->tm_year +1900 , t->tm_mon +1 , t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec);
@@ -742,7 +747,6 @@ int mac_hwclk(int op, struct rtc_time *t)case MAC_ADB_IISI :maciisi_write_time (now); } -#endif }return 0 ; }
arch/m68k/mac/oss.c +0 -1
@@ -21,7 +21,6 @@#include <linux/init.h> #include <asm/bootinfo.h> -#include <asm/machw.h> #include <asm/macintosh.h> #include <asm/macints.h> #include <asm/mac_via.h>
arch/m68k/mac/via.c +32 -48
136 lines not on this page · raw message
drivers/ide/macide.c +0 -1
@@ -18,7 +18,6 @@#include <linux/delay.h> #include <linux/ide.h> -#include <asm/machw.h> #include <asm/macintosh.h> #include <asm/macints.h> #include <asm/mac_baboon.h>
drivers/macintosh/via-cuda.c +0 -1
@@ -23,7 +23,6 @@#else #include <asm/macintosh.h> #include <asm/macints.h> -#include <asm/machw.h> #include <asm/mac_via.h> #endif #include <asm/io.h>
drivers/macintosh/via-macii.c +0 -1
@@ -33,7 +33,6 @@#include <linux/init.h> #include <asm/macintosh.h> #include <asm/macints.h> -#include <asm/machw.h> #include <asm/mac_via.h> #include <asm/system.h>
drivers/macintosh/via-maciisi.c +0 -1
@@ -24,7 +24,6 @@#include <linux/interrupt.h> #include <asm/macintosh.h> #include <asm/macints.h> -#include <asm/machw.h> #include <asm/mac_via.h> static volatile unsigned char *via;
drivers/macintosh/via-pmu68k.c +0 -1
@@ -35,7 +35,6 @@#include <asm/macintosh.h> #include <asm/macints.h> -#include <asm/machw.h> #include <asm/mac_via.h> #include <asm/pgtable.h>
drivers/scsi/mac_scsi.c +0 -1
@@ -47,7 +47,6 @@#include <asm/macintosh.h> #include <asm/macints.h> -#include <asm/machw.h> #include <asm/mac_via.h> #include "scsi.h"
drivers/video/console/fbcon.c +5 -73
124 lines not on this page · raw message
drivers/video/macfb.c +16 -17
@@ -36,7 +36,6 @@#include <asm/irq.h> #include <asm/macintosh.h> #include <asm/io.h> -#include <asm/machw.h> /* Common DAC base address for the LC, RBV, Valkyrie, and IIvx */ #define DAC_BASE 0x50f24000
@@ -78,34 +77,34 @@ static int csc_setpalette (unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *fb_info); -static volatile struct { +static struct {unsigned char addr;/* Note: word-aligned */ char pad[3 ];unsigned char lut; -} *valkyrie_cmap_regs; +}__iomem *valkyrie_cmap_regs; -static volatile struct { +static struct {unsigned char addr;unsigned char lut; -} *v8_brazil_cmap_regs; +}__iomem *v8_brazil_cmap_regs; -static volatile struct { +static struct {unsigned char addr;char pad1[3 ];/* word aligned */ unsigned char lut;char pad2[3 ];/* word aligned */ unsigned char cntl;/* a guess as to purpose */ -} *rbv_cmap_regs; +}__iomem *rbv_cmap_regs; -static volatile struct { +static struct {unsigned long reset;unsigned long pad1[3 ];unsigned char pad2[3 ];unsigned char lut; -} *dafb_cmap_regs; +}__iomem *dafb_cmap_regs; -static volatile struct { +static struct { unsigned char addr; /* OFFSET: 0x00 */ unsigned char pad1[15]; unsigned char lut; /* OFFSET: 0x10 */
@@ -114,16 +113,16 @@ static volatile struct {unsigned char pad3[7 ];unsigned long vbl_addr;/* OFFSET: 0x28 */ unsigned int status2;/* OFFSET: 0x2C */ -} *civic_cmap_regs; +}__iomem *civic_cmap_regs; -static volatile struct { +static struct {char pad1[0x40 ];unsigned char clut_waddr;/* 0x40 */ char pad2;unsigned char clut_data;/* 0x42 */ char pad3[0x3 ];unsigned char clut_raddr;/* 0x46 */ -} *csc_cmap_regs; +}__iomem *csc_cmap_regs;/* We will leave these the way they are for the time being */ struct mdc_cmap_regs {
@@ -507,10 +506,10 @@ static int csc_setpalette (unsigned int regno, unsigned int red, struct fb_info *info) {mdelay (1 ); - csc_cmap_regs->clut_waddr = regno; - csc_cmap_regs->clut_data = red; - csc_cmap_regs->clut_data = green; - csc_cmap_regs->clut_data = blue; +nubus_writeb (regno, &csc_cmap_regs->clut_waddr); +nubus_writeb (red, &csc_cmap_regs->clut_data); +nubus_writeb (green, &csc_cmap_regs->clut_data); +nubus_writeb (blue, &csc_cmap_regs->clut_data);return 0 ; }
include/asm-m68k/byteorder.h +5 -11
@@ -4,22 +4,16 @@#include <asm/types.h> #include <linux/compiler.h> -#ifdef __GNUC__ +#define __BIG_ENDIAN +#define __SWAB_64_THRU_32__ -static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 val) +static inline __attribute_const__ __u32 __arch_swab32(__u32 val) { __asm__("rolw #8,%0; swap %0; rolw #8,%0" :"=d" (val) :"0" (val));return val; } -#define __arch__swab32 (x) ___arch__swab32(x) +#define __arch_swab32 __arch_swab32 -#endif - -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) -# define __BYTEORDER_HAS_U64__ -# define __SWAB_64_THRU_32__ -#endif - -#include <linux/byteorder/big_endian.h> +#include <linux/byteorder.h> #endif /* _M68K_BYTEORDER_H */
include/asm-m68k/machw.h +0 -22
@@ -26,28 +26,6 @@#include <linux/types.h> #if 0 -/* Mac SCSI Controller 5380 */ - -#define MAC_5380_BAS (0x50F10000)/* This is definitely wrong!! */ -struct MAC_5380 { -u_char scsi_data; -u_char char_dummy1; -u_char scsi_icr; -u_char char_dummy2; -u_char scsi_mode; -u_char char_dummy3; -u_char scsi_tcr; -u_char char_dummy4; -u_char scsi_idstat; -u_char char_dummy5; -u_char scsi_dmastat; -u_char char_dummy6; -u_char scsi_targrcv; -u_char char_dummy7; -u_char scsi_inircv; -}; -#define mac_scsi ((*(volatile struct MAC_5380 *)MAC_5380_BAS)) -/* ** SCC Z8530 */
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds