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
f64a181d
Commit
f64a181d
authored
Oct 31, 2005
by
Christoph Hellwig
Committed by
James Bottomley
Nov 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] remove Scsi_Device typedef
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
0a04137e
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
64 additions
and
66 deletions
+64
-66
Documentation/scsi/scsi_mid_low_api.txt
Documentation/scsi/scsi_mid_low_api.txt
+1
-1
drivers/block/acsi.c
drivers/block/acsi.c
+0
-1
drivers/scsi/NCR53C9x.c
drivers/scsi/NCR53C9x.c
+4
-4
drivers/scsi/NCR53C9x.h
drivers/scsi/NCR53C9x.h
+2
-2
drivers/scsi/aacraid/commsup.c
drivers/scsi/aacraid/commsup.c
+2
-2
drivers/scsi/aic7xxx_old.c
drivers/scsi/aic7xxx_old.c
+5
-5
drivers/scsi/arm/acornscsi.c
drivers/scsi/arm/acornscsi.c
+1
-1
drivers/scsi/arm/fas216.c
drivers/scsi/arm/fas216.c
+2
-2
drivers/scsi/fcal.c
drivers/scsi/fcal.c
+2
-2
drivers/scsi/fcal.h
drivers/scsi/fcal.h
+1
-1
drivers/scsi/g_NCR5380.c
drivers/scsi/g_NCR5380.c
+1
-1
drivers/scsi/gdth.c
drivers/scsi/gdth.c
+3
-3
drivers/scsi/gdth.h
drivers/scsi/gdth.h
+2
-2
drivers/scsi/gdth_proc.c
drivers/scsi/gdth_proc.c
+5
-5
drivers/scsi/ide-scsi.c
drivers/scsi/ide-scsi.c
+1
-1
drivers/scsi/ips.c
drivers/scsi/ips.c
+3
-3
drivers/scsi/ips.h
drivers/scsi/ips.h
+2
-2
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/nsp_cs.c
+1
-1
drivers/scsi/pluto.c
drivers/scsi/pluto.c
+2
-2
drivers/scsi/pluto.h
drivers/scsi/pluto.h
+1
-1
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+23
-23
drivers/scsi/scsi_typedefs.h
drivers/scsi/scsi_typedefs.h
+0
-1
No files found.
Documentation/scsi/scsi_mid_low_api.txt
View file @
f64a181d
...
...
@@ -718,7 +718,7 @@ void scsi_report_bus_reset(struct Scsi_Host * shost, int channel)
*
* Defined in: drivers/scsi/scsi.c .
**/
int scsi_track_queue_full(
Scsi_D
evice *sdev, int depth)
int scsi_track_queue_full(
struct scsi_d
evice *sdev, int depth)
/**
...
...
drivers/block/acsi.c
View file @
f64a181d
...
...
@@ -58,7 +58,6 @@
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <scsi/scsi.h>
/* for SCSI_IOCTL_GET_IDLUN */
typedef
void
Scsi_Device
;
/* hack to avoid including scsi.h */
#include <scsi/scsi_ioctl.h>
#include <linux/hdreg.h>
/* for HDIO_GETGEO */
#include <linux/blkpg.h>
...
...
drivers/scsi/NCR53C9x.c
View file @
f64a181d
...
...
@@ -1006,7 +1006,7 @@ static void esp_exec_cmd(struct NCR_ESP *esp)
struct
ESP_regs
*
eregs
=
esp
->
eregs
;
struct
esp_device
*
esp_dev
;
Scsi_Cmnd
*
SCptr
;
Scsi_D
evice
*
SDptr
;
struct
scsi_d
evice
*
SDptr
;
volatile
unchar
*
cmdp
=
esp
->
esp_command
;
unsigned
char
the_esp_command
;
int
lun
,
target
;
...
...
@@ -1687,7 +1687,7 @@ static inline int reconnect_lun(struct NCR_ESP *esp, struct ESP_regs *eregs)
static
inline
void
esp_connect
(
struct
NCR_ESP
*
esp
,
struct
ESP_regs
*
eregs
,
Scsi_Cmnd
*
sp
)
{
Scsi_D
evice
*
dp
=
sp
->
device
;
struct
scsi_d
evice
*
dp
=
sp
->
device
;
struct
esp_device
*
esp_dev
=
dp
->
hostdata
;
if
(
esp
->
prev_soff
!=
esp_dev
->
sync_max_offset
||
...
...
@@ -3605,7 +3605,7 @@ irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs)
}
#endif
int
esp_slave_alloc
(
Scsi_D
evice
*
SDptr
)
int
esp_slave_alloc
(
struct
scsi_d
evice
*
SDptr
)
{
struct
esp_device
*
esp_dev
=
kmalloc
(
sizeof
(
struct
esp_device
),
GFP_ATOMIC
);
...
...
@@ -3617,7 +3617,7 @@ int esp_slave_alloc(Scsi_Device *SDptr)
return
0
;
}
void
esp_slave_destroy
(
Scsi_D
evice
*
SDptr
)
void
esp_slave_destroy
(
struct
scsi_d
evice
*
SDptr
)
{
struct
NCR_ESP
*
esp
=
(
struct
NCR_ESP
*
)
SDptr
->
host
->
hostdata
;
...
...
drivers/scsi/NCR53C9x.h
View file @
f64a181d
...
...
@@ -664,6 +664,6 @@ extern int esp_abort(Scsi_Cmnd *);
extern
int
esp_reset
(
Scsi_Cmnd
*
);
extern
int
esp_proc_info
(
struct
Scsi_Host
*
shost
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
);
extern
int
esp_slave_alloc
(
Scsi_D
evice
*
);
extern
void
esp_slave_destroy
(
Scsi_D
evice
*
);
extern
int
esp_slave_alloc
(
struct
scsi_d
evice
*
);
extern
void
esp_slave_destroy
(
struct
scsi_d
evice
*
);
#endif
/* !(NCR53C9X_H) */
drivers/scsi/aacraid/commsup.c
View file @
f64a181d
...
...
@@ -820,7 +820,7 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
break
;
/*
* Find the
Scsi_D
evice associated with the SCSI
* Find the
scsi_d
evice associated with the SCSI
* address. Make sure we have the right array, and if
* so set the flag to initiate a new re-config once we
* see an AifEnConfigChange AIF come through.
...
...
@@ -987,7 +987,7 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
/*
* Find the
Scsi_D
evice associated with the SCSI address,
* Find the
scsi_d
evice associated with the SCSI address,
* and mark it as changed, invalidating the cache. This deals
* with changes to existing device IDs.
*/
...
...
drivers/scsi/aic7xxx_old.c
View file @
f64a181d
...
...
@@ -6514,7 +6514,7 @@ do_aic7xxx_isr(int irq, void *dev_id, struct pt_regs *regs)
static
void
aic7xxx_init_transinfo
(
struct
aic7xxx_host
*
p
,
struct
aic_dev_data
*
aic_dev
)
{
Scsi_D
evice
*
sdpnt
=
aic_dev
->
SDptr
;
struct
scsi_d
evice
*
sdpnt
=
aic_dev
->
SDptr
;
unsigned
char
tindex
;
tindex
=
sdpnt
->
id
|
(
sdpnt
->
channel
<<
3
);
...
...
@@ -6581,7 +6581,7 @@ aic7xxx_init_transinfo(struct aic7xxx_host *p, struct aic_dev_data *aic_dev)
* Set up the initial aic_dev struct pointers
*-F*************************************************************************/
static
int
aic7xxx_slave_alloc
(
Scsi_D
evice
*
SDptr
)
aic7xxx_slave_alloc
(
struct
scsi_d
evice
*
SDptr
)
{
struct
aic7xxx_host
*
p
=
(
struct
aic7xxx_host
*
)
SDptr
->
host
->
hostdata
;
struct
aic_dev_data
*
aic_dev
;
...
...
@@ -6644,7 +6644,7 @@ aic7xxx_slave_alloc(Scsi_Device *SDptr)
* queueing to be [en|dis]abled for a specific adapter.
*-F*************************************************************************/
static
void
aic7xxx_device_queue_depth
(
struct
aic7xxx_host
*
p
,
Scsi_D
evice
*
device
)
aic7xxx_device_queue_depth
(
struct
aic7xxx_host
*
p
,
struct
scsi_d
evice
*
device
)
{
int
tag_enabled
=
FALSE
;
struct
aic_dev_data
*
aic_dev
=
device
->
hostdata
;
...
...
@@ -6734,7 +6734,7 @@ aic7xxx_device_queue_depth(struct aic7xxx_host *p, Scsi_Device *device)
* prepare for this device to go away
*-F*************************************************************************/
static
void
aic7xxx_slave_destroy
(
Scsi_D
evice
*
SDptr
)
aic7xxx_slave_destroy
(
struct
scsi_d
evice
*
SDptr
)
{
struct
aic_dev_data
*
aic_dev
=
SDptr
->
hostdata
;
...
...
@@ -6754,7 +6754,7 @@ aic7xxx_slave_destroy(Scsi_Device *SDptr)
* depths, allocate command structs, etc.
*-F*************************************************************************/
static
int
aic7xxx_slave_configure
(
Scsi_D
evice
*
SDptr
)
aic7xxx_slave_configure
(
struct
scsi_d
evice
*
SDptr
)
{
struct
aic7xxx_host
*
p
=
(
struct
aic7xxx_host
*
)
SDptr
->
host
->
hostdata
;
struct
aic_dev_data
*
aic_dev
;
...
...
drivers/scsi/arm/acornscsi.c
View file @
f64a181d
...
...
@@ -2862,7 +2862,7 @@ int acornscsi_proc_info(struct Scsi_Host *instance, char *buffer, char **start,
int
length
,
int
inout
)
{
int
pos
,
begin
=
0
,
devidx
;
Scsi_D
evice
*
scd
;
struct
scsi_d
evice
*
scd
;
AS_Host
*
host
;
char
*
p
=
buffer
;
...
...
drivers/scsi/arm/fas216.c
View file @
f64a181d
...
...
@@ -2559,7 +2559,7 @@ int fas216_eh_bus_reset(Scsi_Cmnd *SCpnt)
{
FAS216_Info
*
info
=
(
FAS216_Info
*
)
SCpnt
->
device
->
host
->
hostdata
;
unsigned
long
flags
;
Scsi_D
evice
*
SDpnt
;
struct
scsi_d
evice
*
SDpnt
;
fas216_checkmagic
(
info
);
fas216_log
(
info
,
LOG_ERROR
,
"resetting bus"
);
...
...
@@ -3000,7 +3000,7 @@ int fas216_print_stats(FAS216_Info *info, char *buffer)
int
fas216_print_devices
(
FAS216_Info
*
info
,
char
*
buffer
)
{
struct
fas216_device
*
dev
;
Scsi_D
evice
*
scd
;
struct
scsi_d
evice
*
scd
;
char
*
p
=
buffer
;
p
+=
sprintf
(
p
,
"Device/Lun TaggedQ Parity Sync
\n
"
);
...
...
drivers/scsi/fcal.c
View file @
f64a181d
...
...
@@ -70,7 +70,7 @@ static unsigned char target2alpa[] = {
static
int
fcal_encode_addr
(
Scsi_Cmnd
*
SCpnt
,
u16
*
addr
,
fc_channel
*
fc
,
fcp_cmnd
*
fcmd
);
int
fcal_slave_configure
(
Scsi_D
evice
*
device
)
int
fcal_slave_configure
(
struct
scsi_d
evice
*
device
)
{
int
depth_to_use
;
...
...
@@ -244,7 +244,7 @@ int fcal_proc_info (struct Scsi_Host *host, char *buffer, char **start, off_t of
SPRINTF
(
" [AL-PA: %02x, Port WWN: %08x%08x, Node WWN: %08x%08x] Not responded to PRLI
\n
"
,
alpa
,
u1
[
0
],
u1
[
1
],
u2
[
0
],
u2
[
1
]);
}
else
{
Scsi_D
evice
*
scd
;
struct
scsi_d
evice
*
scd
;
shost_for_each_device
(
scd
,
host
)
if
(
scd
->
id
==
target
)
{
SPRINTF
(
" [AL-PA: %02x, Id: %02d, Port WWN: %08x%08x, Node WWN: %08x%08x] "
,
...
...
drivers/scsi/fcal.h
View file @
f64a181d
...
...
@@ -22,6 +22,6 @@ struct fcal {
int
fcal_detect
(
struct
scsi_host_template
*
);
int
fcal_release
(
struct
Scsi_Host
*
);
int
fcal_slave_configure
(
Scsi_D
evice
*
);
int
fcal_slave_configure
(
struct
scsi_d
evice
*
);
#endif
/* !(_FCAL_H) */
drivers/scsi/g_NCR5380.c
View file @
f64a181d
...
...
@@ -798,7 +798,7 @@ static int generic_NCR5380_proc_info(struct Scsi_Host *scsi_ptr, char *buffer, c
Scsi_Cmnd
*
ptr
;
struct
NCR5380_hostdata
*
hostdata
;
#ifdef NCR5380_STATS
Scsi_D
evice
*
dev
;
struct
scsi_d
evice
*
dev
;
extern
const
char
*
const
scsi_device_types
[
MAX_SCSI_DEVICE_CODE
];
#endif
...
...
drivers/scsi/gdth.c
View file @
f64a181d
...
...
@@ -5562,7 +5562,7 @@ static void gdth_flush(int hanum)
#else
Scsi_Cmnd
*
scp
;
#endif
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
char
cmnd
[
MAX_COMMAND_SIZE
];
memset
(
cmnd
,
0xff
,
MAX_COMMAND_SIZE
);
...
...
@@ -5624,10 +5624,10 @@ static int gdth_halt(struct notifier_block *nb, ulong event, void *buf)
gdth_cmd_str
gdtcmd
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
Scsi_Request
*
srp
;
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#else
Scsi_Cmnd
*
scp
;
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#endif
char
cmnd
[
MAX_COMMAND_SIZE
];
#endif
...
...
drivers/scsi/gdth.h
View file @
f64a181d
...
...
@@ -944,9 +944,9 @@ typedef struct {
ulong
dma32_cnt
,
dma64_cnt
;
/* statistics: DMA buffer */
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#else
Scsi_D
evice
sdev
;
struct
scsi_d
evice
sdev
;
#endif
}
gdth_ha_str
;
...
...
drivers/scsi/gdth_proc.c
View file @
f64a181d
...
...
@@ -54,10 +54,10 @@ static int gdth_set_info(char *buffer,int length,struct Scsi_Host *host,
int
ret_val
=
-
EINVAL
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
Scsi_Request
*
scp
;
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#else
Scsi_Cmnd
*
scp
;
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#endif
TRACE2
((
"gdth_set_info() ha %d bus %d
\n
"
,
hanum
,
busnum
));
...
...
@@ -232,10 +232,10 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length,
gdth_evt_str
*
estr
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
Scsi_Request
*
scp
;
Scsi_Device
*
sdev
;
struct
scsi_device
*
sdev
;
#else
Scsi_Cmnd
*
scp
;
Scsi_D
evice
*
sdev
;
struct
scsi_d
evice
*
sdev
;
#endif
char
hrec
[
161
];
struct
timeval
tv
;
...
...
@@ -275,7 +275,7 @@ static int gdth_get_info(char *buffer,char **start,off_t offset,int length,
scp
->
cmd_len
=
12
;
scp
->
use_sg
=
0
;
#else
memset
(
&
sdev
,
0
,
sizeof
(
Scsi_D
evice
));
memset
(
&
sdev
,
0
,
sizeof
(
struct
scsi_d
evice
));
memset
(
&
scp
,
0
,
sizeof
(
Scsi_Cmnd
));
sdev
.
host
=
scp
.
host
=
host
;
sdev
.
id
=
scp
.
target
=
sdev
.
host
->
this_id
;
...
...
drivers/scsi/ide-scsi.c
View file @
f64a181d
...
...
@@ -882,7 +882,7 @@ static inline int should_transform(ide_drive_t *drive, struct scsi_cmnd *cmd)
struct gendisk *disk = cmd->request->rq_disk;
if (disk) {
struct
Scsi_D
evice_Template **p = disk->private_data;
struct
struct scsi_d
evice_Template **p = disk->private_data;
if (strcmp((*p)->scsi_driverfs_driver.name, "sg") == 0)
return test_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
}
...
...
drivers/scsi/ips.c
View file @
f64a181d
...
...
@@ -1262,9 +1262,9 @@ ips_proc24_info(char *buffer, char **start, off_t offset, int length,
/* */
/****************************************************************************/
static
void
ips_select_queue_depth
(
struct
Scsi_Host
*
host
,
Scsi_D
evice
*
scsi_devs
)
ips_select_queue_depth
(
struct
Scsi_Host
*
host
,
struct
scsi_d
evice
*
scsi_devs
)
{
Scsi_D
evice
*
device
;
struct
scsi_d
evice
*
device
;
ips_ha_t
*
ha
;
int
count
=
0
;
int
min
;
...
...
@@ -1307,7 +1307,7 @@ ips_select_queue_depth(struct Scsi_Host *host, Scsi_Device * scsi_devs)
/* */
/****************************************************************************/
static
int
ips_slave_configure
(
Scsi_D
evice
*
SDptr
)
ips_slave_configure
(
struct
scsi_d
evice
*
SDptr
)
{
ips_ha_t
*
ha
;
int
min
;
...
...
drivers/scsi/ips.h
View file @
f64a181d
...
...
@@ -449,13 +449,13 @@
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
static
int
ips_proc24_info
(
char
*
,
char
**
,
off_t
,
int
,
int
,
int
);
static
void
ips_select_queue_depth
(
struct
Scsi_Host
*
,
Scsi_D
evice
*
);
static
void
ips_select_queue_depth
(
struct
Scsi_Host
*
,
struct
scsi_d
evice
*
);
static
int
ips_biosparam
(
Disk
*
disk
,
kdev_t
dev
,
int
geom
[]);
#else
static
int
ips_proc_info
(
struct
Scsi_Host
*
,
char
*
,
char
**
,
off_t
,
int
,
int
);
static
int
ips_biosparam
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
geom
[]);
static
int
ips_slave_configure
(
Scsi_D
evice
*
SDptr
);
static
int
ips_slave_configure
(
struct
scsi_d
evice
*
SDptr
);
#endif
/*
...
...
drivers/scsi/pcmcia/nsp_cs.c
View file @
f64a181d
...
...
@@ -1717,7 +1717,7 @@ static void nsp_cs_config(dev_link_t *link)
struct
Scsi_Host
*
host
;
nsp_hw_data
*
data
=
&
nsp_data_base
;
#if !(LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,74))
Scsi_D
evice
*
dev
;
struct
scsi_d
evice
*
dev
;
dev_node_t
**
tail
,
*
node
;
#endif
...
...
drivers/scsi/pluto.c
View file @
f64a181d
...
...
@@ -71,7 +71,7 @@ static void __init pluto_detect_scsi_done(Scsi_Cmnd *SCpnt)
up
(
&
fc_sem
);
}
int
pluto_slave_configure
(
Scsi_D
evice
*
device
)
int
pluto_slave_configure
(
struct
scsi_d
evice
*
device
)
{
int
depth_to_use
;
...
...
@@ -94,7 +94,7 @@ int __init pluto_detect(struct scsi_host_template *tpnt)
{
int
i
,
retry
,
nplutos
;
fc_channel
*
fc
;
Scsi_D
evice
dev
;
struct
scsi_d
evice
dev
;
DEFINE_TIMER
(
fc_timer
,
pluto_detect_timeout
,
0
,
0
);
tpnt
->
proc_name
=
"pluto"
;
...
...
drivers/scsi/pluto.h
View file @
f64a181d
...
...
@@ -41,7 +41,7 @@ struct pluto_inquiry {
int
pluto_detect
(
struct
scsi_host_template
*
);
int
pluto_release
(
struct
Scsi_Host
*
);
const
char
*
pluto_info
(
struct
Scsi_Host
*
);
int
pluto_slave_configure
(
Scsi_D
evice
*
);
int
pluto_slave_configure
(
struct
scsi_d
evice
*
);
#endif
/* !(_PLUTO_H) */
drivers/scsi/scsi_scan.c
View file @
f64a181d
...
...
@@ -9,7 +9,7 @@
* global variable (boot or module load time) settings.
*
* A specific LUN is scanned via an INQUIRY command; if the LUN has a
* device attached, a
Scsi_D
evice is allocated and setup for it.
* device attached, a
scsi_d
evice is allocated and setup for it.
*
* For every id of every channel on the given host:
*
...
...
@@ -17,7 +17,7 @@
* device or storage attached to LUN 0):
*
* If LUN 0 has a device attached, allocate and setup a
*
Scsi_D
evice for it.
*
scsi_d
evice for it.
*
* If target is SCSI-3 or up, issue a REPORT LUN, and scan
* all of the LUNs returned by the REPORT LUN; else,
...
...
@@ -441,7 +441,7 @@ void scsi_target_reap(struct scsi_target *starget)
*
* If the INQUIRY is successful, zero is returned and the
* INQUIRY data is in @inq_result; the scsi_level and INQUIRY length
* are copied to the
Scsi_D
evice any flags value is stored in *@bflags.
* are copied to the
scsi_d
evice any flags value is stored in *@bflags.
**/
static
int
scsi_probe_lun
(
struct
scsi_device
*
sdev
,
char
*
inq_result
,
int
result_len
,
int
*
bflags
)
...
...
@@ -509,8 +509,8 @@ static int scsi_probe_lun(struct scsi_device *sdev, char *inq_result,
/*
* Get any flags for this device.
*
* XXX add a bflags to
Scsi_D
evice, and replace the
* corresponding bit fields in
Scsi_D
evice, so bflags
* XXX add a bflags to
scsi_d
evice, and replace the
* corresponding bit fields in
scsi_d
evice, so bflags
* need not be passed as an argument.
*/
*
bflags
=
scsi_get_device_flags
(
sdev
,
&
inq_result
[
8
],
...
...
@@ -592,21 +592,21 @@ static int scsi_probe_lun(struct scsi_device *sdev, char *inq_result,
}
/**
* scsi_add_lun - allocate and fully initialze a
Scsi_D
evice
* @sdevscan: holds information to be stored in the new
Scsi_D
evice
* @sdevnew: store the address of the newly allocated
Scsi_D
evice
* scsi_add_lun - allocate and fully initialze a
scsi_d
evice
* @sdevscan: holds information to be stored in the new
scsi_d
evice
* @sdevnew: store the address of the newly allocated
scsi_d
evice
* @inq_result: holds the result of a previous INQUIRY to the LUN
* @bflags: black/white list flag
*
* Description:
* Allocate and initialize a
Scsi_D
evice matching sdevscan. Optionally
* Allocate and initialize a
scsi_d
evice matching sdevscan. Optionally
* set fields based on values in *@bflags. If @sdevnew is not
* NULL, store the address of the new
Scsi_D
evice in *@sdevnew (needed
* NULL, store the address of the new
scsi_d
evice in *@sdevnew (needed
* when scanning a particular LUN).
*
* Return:
* SCSI_SCAN_NO_RESPONSE: could not allocate or setup a
Scsi_D
evice
* SCSI_SCAN_LUN_PRESENT: a new
Scsi_D
evice was allocated and initialized
* SCSI_SCAN_NO_RESPONSE: could not allocate or setup a
scsi_d
evice
* SCSI_SCAN_LUN_PRESENT: a new
scsi_d
evice was allocated and initialized
**/
static
int
scsi_add_lun
(
struct
scsi_device
*
sdev
,
char
*
inq_result
,
int
*
bflags
)
{
...
...
@@ -674,7 +674,7 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
*
* The above is vague, as it implies that we could treat 001 and
* 011 the same. Stay compatible with previous code, and create a
*
Scsi_D
evice for a PQ of 1
*
scsi_d
evice for a PQ of 1
*
* Don't set the device offline here; rather let the upper
* level drivers eval the PQ to decide whether they should
...
...
@@ -784,8 +784,8 @@ static inline void scsi_destroy_sdev(struct scsi_device *sdev)
* scsi_probe_and_add_lun - probe a LUN, if a LUN is found add it
* @starget: pointer to target device structure
* @lun: LUN of target device
* @sdevscan: probe the LUN corresponding to this
Scsi_D
evice
* @sdevnew: store the value of any new
Scsi_D
evice allocated
* @sdevscan: probe the LUN corresponding to this
scsi_d
evice
* @sdevnew: store the value of any new
scsi_d
evice allocated
* @bflagsp: store bflags here if not NULL
*
* Description:
...
...
@@ -793,10 +793,10 @@ static inline void scsi_destroy_sdev(struct scsi_device *sdev)
* allocate and set it up by calling scsi_add_lun.
*
* Return:
* SCSI_SCAN_NO_RESPONSE: could not allocate or setup a
Scsi_D
evice
* SCSI_SCAN_NO_RESPONSE: could not allocate or setup a
scsi_d
evice
* SCSI_SCAN_TARGET_PRESENT: target responded, but no device is
* attached at the LUN
* SCSI_SCAN_LUN_PRESENT: a new
Scsi_D
evice was allocated and initialized
* SCSI_SCAN_LUN_PRESENT: a new
scsi_d
evice was allocated and initialized
**/
static
int
scsi_probe_and_add_lun
(
struct
scsi_target
*
starget
,
uint
lun
,
int
*
bflagsp
,
...
...
@@ -1046,7 +1046,7 @@ EXPORT_SYMBOL(int_to_scsilun);
/**
* scsi_report_lun_scan - Scan using SCSI REPORT LUN results
* @sdevscan: scan the host, channel, and id of this
Scsi_D
evice
* @sdevscan: scan the host, channel, and id of this
scsi_d
evice
*
* Description:
* If @sdevscan is for a SCSI-3 or up device, send a REPORT LUN
...
...
@@ -1474,16 +1474,16 @@ void scsi_forget_host(struct Scsi_Host *shost)
/*
* Function: scsi_get_host_dev()
*
* Purpose: Create a
Scsi_D
evice that points to the host adapter itself.
* Purpose: Create a
scsi_d
evice that points to the host adapter itself.
*
* Arguments: SHpnt - Host that needs a
Scsi_D
evice
* Arguments: SHpnt - Host that needs a
scsi_d
evice
*
* Lock status: None assumed.
*
* Returns: The
Scsi_D
evice or NULL
* Returns: The
scsi_d
evice or NULL
*
* Notes:
* Attach a single
Scsi_D
evice to the Scsi_Host - this should
* Attach a single
scsi_d
evice to the Scsi_Host - this should
* be made to look like a "pseudo-device" that points to the
* HA itself.
*
...
...
@@ -1520,7 +1520,7 @@ EXPORT_SYMBOL(scsi_get_host_dev);
*
* Purpose: Free a scsi_device that points to the host adapter itself.
*
* Arguments: SHpnt - Host that needs a
Scsi_D
evice
* Arguments: SHpnt - Host that needs a
scsi_d
evice
*
* Lock status: None assumed.
*
...
...
drivers/scsi/scsi_typedefs.h
View file @
f64a181d
typedef
struct
scsi_device
Scsi_Device
;
typedef
struct
scsi_cmnd
Scsi_Cmnd
;
typedef
struct
scsi_request
Scsi_Request
;
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