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
fe2bd67c
Commit
fe2bd67c
authored
Apr 04, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Apr 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force some semblance of workingness onto qla1280 driver
parent
b145b98c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
drivers/scsi/qla1280.c
drivers/scsi/qla1280.c
+12
-12
No files found.
drivers/scsi/qla1280.c
View file @
fe2bd67c
...
...
@@ -182,11 +182,7 @@ END OF TERMS AND CONDITIONS
- Initial Beta Release.
*****************************************************************************/
#error Please convert me to Documentation/DMA-mapping.txt
#ifdef MODULE
#include <linux/module.h>
#endif
#define QLA1280_VERSION " 3.00-Beta"
...
...
@@ -3983,10 +3979,11 @@ qla1280_64bit_start_scsi(scsi_qla_host_t *ha, srb_t *sp)
/* Load command entry data segments. */
for
(
cnt
=
0
;
cnt
<
2
&&
seg_cnt
;
cnt
++
,
seg_cnt
--
)
{
DEBUG
(
sprintf
(
debug_buff
,
"SG Segment ap=0x%p, len=0x%x
\n\r
"
,
sg
->
address
,
sg
->
length
));
unsigned
long
long
address
=
page_to_phys
(
sg
->
page
)
+
sg
->
offset
;
DEBUG
(
sprintf
(
debug_buff
,
"SG Segment ap=0x%ull, len=0x%x
\n\r
"
,
address
,
sg
->
length
));
DEBUG
(
qla1280_print
(
debug_buff
));
*
dword_ptr
++
=
cpu_to_le32
(
VIRT_TO_BUS_LOW
(
sg
->
address
)
);
*
dword_ptr
++
=
cpu_to_le32
(
VIRT_TO_BUS_HIGH
(
sg
->
address
)
);
*
dword_ptr
++
=
cpu_to_le32
(
address
);
*
dword_ptr
++
=
cpu_to_le32
(
address
>>
32
);
*
dword_ptr
++
=
sg
->
length
;
sg
++
;
}
...
...
@@ -4038,8 +4035,9 @@ qla1280_64bit_start_scsi(scsi_qla_host_t *ha, srb_t *sp)
/* Load continuation entry data segments. */
for
(
cnt
=
0
;
cnt
<
5
&&
seg_cnt
;
cnt
++
,
seg_cnt
--
)
{
*
dword_ptr
++
=
cpu_to_le32
(
VIRT_TO_BUS_LOW
(
sg
->
address
));
*
dword_ptr
++
=
cpu_to_le32
(
VIRT_TO_BUS_HIGH
(
sg
->
address
));
unsigned
long
long
address
=
page_to_phys
(
sg
->
page
)
+
sg
->
offset
;
*
dword_ptr
++
=
cpu_to_le32
(
address
);
*
dword_ptr
++
=
cpu_to_le32
(
address
>>
32
);
*
dword_ptr
++
=
sg
->
length
;
sg
++
;
}
...
...
@@ -4325,9 +4323,10 @@ qla1280_32bit_start_scsi(scsi_qla_host_t *ha, srb_t *sp)
/* Load command entry data segments. */
for
(
cnt
=
0
;
cnt
<
4
&&
seg_cnt
;
cnt
++
,
seg_cnt
--
)
{
*
dword_ptr
++
=
(
uint32_t
)
cpu_to_le32
(
VIRT_TO_BUS
(
sg
->
address
));
unsigned
long
long
address
=
page_to_phys
(
sg
->
page
)
+
sg
->
offset
;
*
dword_ptr
++
=
(
uint32_t
)
cpu_to_le32
(
address
);
*
dword_ptr
++
=
sg
->
length
;
DEBUG
(
sprintf
(
debug_buff
,
"SG Segment ap=0x%
p, len=0x%x
\n\r
"
,
sg
->
address
,
sg
->
length
));
DEBUG
(
sprintf
(
debug_buff
,
"SG Segment ap=0x%
ull, len=0x%x
\n\r
"
,
address
,
sg
->
length
));
DEBUG
(
qla1280_print
(
debug_buff
));
sg
++
;
}
...
...
@@ -4368,7 +4367,8 @@ qla1280_32bit_start_scsi(scsi_qla_host_t *ha, srb_t *sp)
/* Load continuation entry data segments. */
for
(
cnt
=
0
;
cnt
<
7
&&
seg_cnt
;
cnt
++
,
seg_cnt
--
)
{
*
dword_ptr
++
=
(
u_int
)
cpu_to_le32
(
VIRT_TO_BUS
(
sg
->
address
));
unsigned
long
long
address
=
page_to_phys
(
sg
->
page
)
+
sg
->
offset
;
*
dword_ptr
++
=
(
u_int
)
cpu_to_le32
(
address
);
*
dword_ptr
++
=
sg
->
length
;
sg
++
;
}
...
...
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