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
f7598d2e
Commit
f7598d2e
authored
Nov 28, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scsi-dma-mask modify for andmike's changes
parent
cc3347ed
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/scsi/hosts.h
drivers/scsi/hosts.h
+5
-0
drivers/scsi/scsi_ioctl.c
drivers/scsi/scsi_ioctl.c
+1
-1
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+1
-1
drivers/scsi/st.c
drivers/scsi/st.c
+1
-1
No files found.
drivers/scsi/hosts.h
View file @
f7598d2e
...
...
@@ -522,6 +522,11 @@ static inline void scsi_set_device(struct Scsi_Host *shost,
shost
->
host_gendev
=
dev
;
}
static
inline
struct
device
*
scsi_get_device
(
struct
Scsi_Host
*
shost
)
{
return
shost
->
host_gendev
;
}
static
inline
void
scsi_set_pci_device
(
struct
Scsi_Host
*
shost
,
struct
pci_dev
*
pdev
)
{
...
...
drivers/scsi/scsi_ioctl.c
View file @
f7598d2e
...
...
@@ -395,7 +395,7 @@ int scsi_ioctl_send_command(Scsi_Device * dev, Scsi_Ioctl_Command * sic)
static
int
scsi_ioctl_get_pci
(
Scsi_Device
*
sdev
,
void
*
arg
)
{
struct
device
*
dev
=
s
dev
->
host
->
host_driverfs_dev
.
parent
;
struct
device
*
dev
=
s
csi_get_device
(
sdev
->
host
)
;
if
(
!
dev
)
return
-
ENXIO
;
return
copy_to_user
(
arg
,
dev
->
bus_id
,
...
...
drivers/scsi/scsi_scan.c
View file @
f7598d2e
...
...
@@ -373,7 +373,7 @@ static void scsi_initialize_merge_fn(struct scsi_device *sd)
{
request_queue_t
*
q
=
&
sd
->
request_queue
;
struct
Scsi_Host
*
sh
=
sd
->
host
;
struct
device
*
dev
=
s
h
->
host_driverfs_dev
.
parent
;
struct
device
*
dev
=
s
csi_get_device
(
sh
)
;
u64
bounce_limit
;
if
(
sh
->
highmem_io
)
{
...
...
drivers/scsi/st.c
View file @
f7598d2e
...
...
@@ -3770,7 +3770,7 @@ static int st_attach(Scsi_Device * SDp)
tpnt
->
try_dio
=
try_direct_io
&&
!
SDp
->
host
->
unchecked_isa_dma
;
bounce_limit
=
BLK_BOUNCE_HIGH
;
/* Borrowed from scsi_merge.c */
if
(
SDp
->
host
->
highmem_io
)
{
struct
device
*
dev
=
SDp
->
host
->
host_driverfs_dev
.
parent
;
struct
device
*
dev
=
scsi_get_device
(
SDp
->
host
)
;
if
(
!
PCI_DMA_BUS_IS_PHYS
)
/* Platforms with virtual-DMA translation
* hardware have no practical limit.
...
...
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