Commit 73711b35 authored by Ralf Baechle's avatar Ralf Baechle Committed by James Bottomley

[SCSI] dec_esp: Use physical addresses

Use physical addresses at the interface level, letting drivers remap
them as appropriate.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent b04fc679
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
* 20001005 - Initialization fixes for 2.4.0-test9 * 20001005 - Initialization fixes for 2.4.0-test9
* Florian Lohoff <flo@rfc822.org> * Florian Lohoff <flo@rfc822.org>
* *
* Copyright (C) 2002, 2003 Maciej W. Rozycki * Copyright (C) 2002, 2003, 2005 Maciej W. Rozycki
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <asm/dec/ioasic_addrs.h> #include <asm/dec/ioasic_addrs.h>
#include <asm/dec/ioasic_ints.h> #include <asm/dec/ioasic_ints.h>
#include <asm/dec/machtype.h> #include <asm/dec/machtype.h>
#include <asm/dec/system.h>
#include <asm/dec/tc.h> #include <asm/dec/tc.h>
#define DEC_SCSI_SREG 0 #define DEC_SCSI_SREG 0
...@@ -183,7 +184,8 @@ static int dec_esp_detect(Scsi_Host_Template * tpnt) ...@@ -183,7 +184,8 @@ static int dec_esp_detect(Scsi_Host_Template * tpnt)
esp->dregs = 0; esp->dregs = 0;
/* ESP register base */ /* ESP register base */
esp->eregs = (struct ESP_regs *) (system_base + IOASIC_SCSI); esp->eregs = (void *)CKSEG1ADDR(dec_kn_slot_base +
IOASIC_SCSI);
/* Set the command buffer */ /* Set the command buffer */
esp->esp_command = (volatile unsigned char *) cmd_buffer; esp->esp_command = (volatile unsigned char *) cmd_buffer;
...@@ -228,10 +230,11 @@ static int dec_esp_detect(Scsi_Host_Template * tpnt) ...@@ -228,10 +230,11 @@ static int dec_esp_detect(Scsi_Host_Template * tpnt)
mem_start = get_tc_base_addr(slot); mem_start = get_tc_base_addr(slot);
/* Store base addr into esp struct */ /* Store base addr into esp struct */
esp->slot = CPHYSADDR(mem_start); esp->slot = mem_start;
esp->dregs = 0; esp->dregs = 0;
esp->eregs = (struct ESP_regs *) (mem_start + DEC_SCSI_SREG); esp->eregs = (void *)CKSEG1ADDR(mem_start +
DEC_SCSI_SREG);
esp->do_pio_cmds = 1; esp->do_pio_cmds = 1;
/* Set the command buffer */ /* Set the command buffer */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment