From: M. R. B. <mr...@us...> - 2002-05-01 18:36:32
|
Update of /cvsroot/linuxdc/linux-sh-dc/arch/sh/kernel In directory usw-pr-cvs1:/tmp/cvs-serv12155/arch/sh/kernel Modified Files: pci-dc.c Added Files: io_dc.c Log Message: Initial IDE support --- NEW FILE: io_dc.c --- /* * $Id: io_dc.c,v 1.1 2002/05/01 18:36:23 mrbrown Exp $ * I/O routines for SEGA Dreamcast */ #include <asm/io.h> #include <asm/machvec.h> #define EXTERNAL_IDE_BASE 0xb4000020 #define EXTERNAL_IDE_ALTSTAT 0xb4000058 unsigned long dreamcast_isa_port2addr(unsigned long offset) { if ((offset >= 0x1f0) && (offset <= 0x1f7)) { return EXTERNAL_IDE_BASE + offset; } if (offset == 0x3f6) { return EXTERNAL_IDE_ALTSTAT; } return offset + 0xa0000000; } Index: pci-dc.c =================================================================== RCS file: /cvsroot/linuxdc/linux-sh-dc/arch/sh/kernel/pci-dc.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pci-dc.c 1 Oct 2001 07:51:10 -0000 1.1 +++ pci-dc.c 1 May 2002 18:36:23 -0000 1.2 @@ -21,7 +21,7 @@ #define GAPSPCI_DMA_SIZE 32768 #define GAPSPCI_BBA_CONFIG 0x01001600 -#define GAPSPCI_IRQ HW_EVENT_EXTERNAL +#define GAPSPCI_IRQ HW_EVENT_EXT1 static int gapspci_dma_used; |