patch-2.4.4 linux/arch/sh/kernel/mach_dc.c

Next file: linux/arch/sh/kernel/mach_dmida.c
Previous file: linux/arch/sh/kernel/mach_cat68701.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/arch/sh/kernel/mach_dc.c linux/arch/sh/kernel/mach_dc.c
@@ -0,0 +1,66 @@
+/*
+ *	$Id: mach_dc.c,v 1.1 2001/04/01 15:02:00 yaegashi Exp $
+ *	SEGA Dreamcast machine vector
+ */
+
+#include <linux/init.h>
+
+#include <asm/machvec.h>
+#include <asm/machvec_init.h>
+
+#include <asm/io_generic.h>
+#include <asm/io_dc.h>
+#include <asm/irq.h>
+
+void __init setup_dreamcast(void);
+void __init dreamcast_pcibios_init(void);
+
+/*
+ * The Machine Vector
+ */
+
+struct sh_machine_vector mv_dreamcast __initmv = {
+	mv_name:		"dreamcast",
+
+	mv_nr_irqs:		48,
+
+	mv_inb:			generic_inb,
+	mv_inw:			generic_inw,
+	mv_inl:			generic_inl,
+	mv_outb:		generic_outb,
+	mv_outw:		generic_outw,
+	mv_outl:		generic_outl,
+
+	mv_inb_p:		generic_inb_p,
+	mv_inw_p:		generic_inw,
+	mv_inl_p:		generic_inl,
+	mv_outb_p:		generic_outb_p,
+	mv_outw_p:		generic_outw,
+	mv_outl_p:		generic_outl,
+
+	mv_insb:		generic_insb,
+	mv_insw:		generic_insw,
+	mv_insl:		generic_insl,
+	mv_outsb:		generic_outsb,
+	mv_outsw:		generic_outsw,
+	mv_outsl:		generic_outsl,
+
+	mv_readb:		generic_readb,
+	mv_readw:		generic_readw,
+	mv_readl:		generic_readl,
+	mv_writeb:		generic_writeb,
+	mv_writew:		generic_writew,
+	mv_writel:		generic_writel,
+
+	mv_ioremap:		generic_ioremap,
+	mv_iounmap:		generic_iounmap,
+
+	mv_init_arch:		setup_dreamcast,
+#ifdef CONFIG_PCI
+	mv_init_pci:		dreamcast_pcibios_init,
+#endif
+	mv_isa_port2addr:	dreamcast_isa_port2addr,
+
+	mv_hw_dreamcast:		1,
+};
+ALIAS_MV(dreamcast)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)