Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
af13cbeb
Commit
af13cbeb
authored
Oct 15, 2005
by
Ralf Baechle
Committed by
James Bottomley
Oct 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] dec_esp: Use the right address space macro
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
73711b35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/scsi/dec_esp.c
drivers/scsi/dec_esp.c
+7
-5
No files found.
drivers/scsi/dec_esp.c
View file @
af13cbeb
...
...
@@ -516,14 +516,15 @@ static void dma_advance_sg(struct scsi_cmnd * sp)
static
void
pmaz_dma_drain
(
struct
NCR_ESP
*
esp
)
{
memcpy
(
phys_to_virt
(
esp_virt_buffer
),
(
void
*
)
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_SRAM
+
ESP_TGT_DMA_SIZE
),
scsi_current_length
);
(
void
*
)
CKSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_SRAM
+
ESP_TGT_DMA_SIZE
),
scsi_current_length
);
}
static
void
pmaz_dma_init_read
(
struct
NCR_ESP
*
esp
,
u32
vaddress
,
int
length
)
{
volatile
u32
*
dmareg
=
(
volatile
u32
*
)
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_DMAREG
);
(
volatile
u32
*
)
C
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_DMAREG
);
if
(
length
>
ESP_TGT_DMA_SIZE
)
length
=
ESP_TGT_DMA_SIZE
;
...
...
@@ -539,9 +540,10 @@ static void pmaz_dma_init_read(struct NCR_ESP *esp, u32 vaddress, int length)
static
void
pmaz_dma_init_write
(
struct
NCR_ESP
*
esp
,
u32
vaddress
,
int
length
)
{
volatile
u32
*
dmareg
=
(
volatile
u32
*
)
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_DMAREG
);
(
volatile
u32
*
)
C
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_DMAREG
);
memcpy
((
void
*
)
KSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_SRAM
+
ESP_TGT_DMA_SIZE
),
memcpy
((
void
*
)
CKSEG1ADDR
(
esp
->
slot
+
DEC_SCSI_SRAM
+
ESP_TGT_DMA_SIZE
),
phys_to_virt
(
vaddress
),
length
);
wmb
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment