Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d7d46878
Commit
d7d46878
authored
Oct 23, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata] PDC20621 hdma fixes
parent
97abf946
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/scsi/sata_promise.c
drivers/scsi/sata_promise.c
+5
-3
No files found.
drivers/scsi/sata_promise.c
View file @
d7d46878
...
@@ -319,7 +319,6 @@ static void pdc_sata_set_udmamode (struct ata_port *ap, struct ata_device *adev,
...
@@ -319,7 +319,6 @@ static void pdc_sata_set_udmamode (struct ata_port *ap, struct ata_device *adev,
enum
pdc_packet_bits
{
enum
pdc_packet_bits
{
PDC_PKT_READ
=
(
1
<<
2
),
PDC_PKT_READ
=
(
1
<<
2
),
PDC_PKT_NODATA
=
(
1
<<
3
),
PDC_PKT_NODATA
=
(
1
<<
3
),
PDC20621_PKT_READ
=
(
1
<<
4
),
PDC_PKT_SIZEMASK
=
(
1
<<
7
)
|
(
1
<<
6
)
|
(
1
<<
5
),
PDC_PKT_SIZEMASK
=
(
1
<<
7
)
|
(
1
<<
6
)
|
(
1
<<
5
),
PDC_PKT_CLEAR_BSY
=
(
1
<<
4
),
PDC_PKT_CLEAR_BSY
=
(
1
<<
4
),
...
@@ -557,7 +556,7 @@ static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf,
...
@@ -557,7 +556,7 @@ static inline void pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf,
* Set up Host DMA packet
* Set up Host DMA packet
*/
*/
if
(
tf
->
protocol
==
ATA_PROT_DMA_READ
)
if
(
tf
->
protocol
==
ATA_PROT_DMA_READ
)
tmp
=
PDC
20621
_PKT_READ
;
tmp
=
PDC_PKT_READ
;
else
else
tmp
=
0
;
tmp
=
0
;
tmp
|=
((
portno
+
1
+
4
)
<<
16
);
tmp
|=
((
portno
+
1
+
4
)
<<
16
);
...
@@ -617,7 +616,10 @@ static void pdc20621_fill_sg(struct ata_queued_cmd *qc)
...
@@ -617,7 +616,10 @@ static void pdc20621_fill_sg(struct ata_queued_cmd *qc)
/* copy three S/G tables and two packets to DIMM MMIO window */
/* copy three S/G tables and two packets to DIMM MMIO window */
memcpy_toio
(
dimm_mmio
+
(
portno
*
PDC_DIMM_WINDOW_STEP
),
memcpy_toio
(
dimm_mmio
+
(
portno
*
PDC_DIMM_WINDOW_STEP
),
&
pp
->
dimm_buf
,
PDC_DIMM_HEADER_SZ
+
sgt_len
);
&
pp
->
dimm_buf
,
PDC_DIMM_HEADER_SZ
);
memcpy_toio
(
dimm_mmio
+
(
portno
*
PDC_DIMM_WINDOW_STEP
)
+
PDC_DIMM_HOST_PRD
,
&
pp
->
dimm_buf
[
PDC_DIMM_HEADER_SZ
],
sgt_len
);
VPRINTK
(
"ata pkt buf ofs %u, prd size %u, mmio copied
\n
"
,
i
,
sgt_len
);
VPRINTK
(
"ata pkt buf ofs %u, prd size %u, mmio copied
\n
"
,
i
,
sgt_len
);
}
}
...
...
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