Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
0a04137e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0a04137e
编写于
10月 31, 2005
作者:
C
Christoph Hellwig
提交者:
James Bottomley
11月 09, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SCSI] remove Scsi_Pointer typedef
Signed-off-by:
N
James Bottomley
<
James.Bottomley@SteelEye.com
>
上级
d0be4a7d
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
25 addition
and
26 deletion
+25
-26
drivers/scsi/arm/acornscsi.c
drivers/scsi/arm/acornscsi.c
+1
-1
drivers/scsi/arm/acornscsi.h
drivers/scsi/arm/acornscsi.h
+1
-1
drivers/scsi/arm/arxescsi.c
drivers/scsi/arm/arxescsi.c
+3
-3
drivers/scsi/arm/cumana_2.c
drivers/scsi/arm/cumana_2.c
+3
-3
drivers/scsi/arm/eesox.c
drivers/scsi/arm/eesox.c
+3
-3
drivers/scsi/arm/fas216.c
drivers/scsi/arm/fas216.c
+3
-3
drivers/scsi/arm/fas216.h
drivers/scsi/arm/fas216.h
+4
-4
drivers/scsi/arm/powertec.c
drivers/scsi/arm/powertec.c
+2
-2
drivers/scsi/arm/scsi.h
drivers/scsi/arm/scsi.h
+4
-4
drivers/scsi/megaraid.c
drivers/scsi/megaraid.c
+1
-1
drivers/scsi/scsi_typedefs.h
drivers/scsi/scsi_typedefs.h
+0
-1
未找到文件。
drivers/scsi/arm/acornscsi.c
浏览文件 @
0a04137e
...
...
@@ -896,7 +896,7 @@ void acornscsi_done(AS_Host *host, Scsi_Cmnd **SCpntp, unsigned int result)
* Notes : this will only be one SG entry or less
*/
static
void
acornscsi_data_updateptr
(
AS_Host
*
host
,
Scsi_P
ointer
*
SCp
,
unsigned
int
length
)
void
acornscsi_data_updateptr
(
AS_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
unsigned
int
length
)
{
SCp
->
ptr
+=
length
;
SCp
->
this_residual
-=
length
;
...
...
drivers/scsi/arm/acornscsi.h
浏览文件 @
0a04137e
...
...
@@ -292,7 +292,7 @@ typedef struct acornscsi_hostdata {
unsigned
char
tag
;
/* reconnected tag */
}
reconnected
;
Scsi_P
ointer
SCp
;
/* current commands data pointer */
struct
scsi_p
ointer
SCp
;
/* current commands data pointer */
MsgQueue_t
msgs
;
...
...
drivers/scsi/arm/arxescsi.c
浏览文件 @
0a04137e
...
...
@@ -65,7 +65,7 @@ struct arxescsi_info {
* Returns : 0 if we should not set CMD_WITHDMA for transfer info command
*/
static
fasdmatype_t
arxescsi_dma_setup
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
arxescsi_dma_setup
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_type
)
{
/*
...
...
@@ -111,7 +111,7 @@ static void arxescsi_pseudo_dma_write(unsigned char *addr, void __iomem *base)
* transfer - minimum number of bytes we expect to transfer
*/
static
void
arxescsi_dma_pseudo
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
arxescsi_dma_pseudo
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
int
transfer
)
{
struct
arxescsi_info
*
info
=
(
struct
arxescsi_info
*
)
host
->
hostdata
;
...
...
@@ -197,7 +197,7 @@ arxescsi_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp,
* Params : host - host
* SCpnt - command
*/
static
void
arxescsi_dma_stop
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
)
static
void
arxescsi_dma_stop
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
)
{
/*
* no DMA to stop
...
...
drivers/scsi/arm/cumana_2.c
浏览文件 @
0a04137e
...
...
@@ -157,7 +157,7 @@ cumanascsi_2_intr(int irq, void *dev_id, struct pt_regs *regs)
* Returns : type of transfer to be performed
*/
static
fasdmatype_t
cumanascsi_2_dma_setup
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
cumanascsi_2_dma_setup
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_type
)
{
struct
cumanascsi2_info
*
info
=
(
struct
cumanascsi2_info
*
)
host
->
hostdata
;
...
...
@@ -209,7 +209,7 @@ cumanascsi_2_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp,
* transfer - minimum number of bytes we expect to transfer
*/
static
void
cumanascsi_2_dma_pseudo
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
cumanascsi_2_dma_pseudo
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
int
transfer
)
{
struct
cumanascsi2_info
*
info
=
(
struct
cumanascsi2_info
*
)
host
->
hostdata
;
...
...
@@ -283,7 +283,7 @@ cumanascsi_2_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp,
* SCpnt - command
*/
static
void
cumanascsi_2_dma_stop
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
)
cumanascsi_2_dma_stop
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
)
{
struct
cumanascsi2_info
*
info
=
(
struct
cumanascsi2_info
*
)
host
->
hostdata
;
if
(
info
->
info
.
scsi
.
dma
!=
NO_DMA
)
{
...
...
drivers/scsi/arm/eesox.c
浏览文件 @
0a04137e
...
...
@@ -158,7 +158,7 @@ eesoxscsi_intr(int irq, void *dev_id, struct pt_regs *regs)
* Returns : type of transfer to be performed
*/
static
fasdmatype_t
eesoxscsi_dma_setup
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
eesoxscsi_dma_setup
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_type
)
{
struct
eesoxscsi_info
*
info
=
(
struct
eesoxscsi_info
*
)
host
->
hostdata
;
...
...
@@ -353,7 +353,7 @@ static void eesoxscsi_buffer_out(void *buf, int length, void __iomem *base)
}
static
void
eesoxscsi_dma_pseudo
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
eesoxscsi_dma_pseudo
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
dir
,
int
transfer_size
)
{
struct
eesoxscsi_info
*
info
=
(
struct
eesoxscsi_info
*
)
host
->
hostdata
;
...
...
@@ -370,7 +370,7 @@ eesoxscsi_dma_pseudo(struct Scsi_Host *host, Scsi_Pointer *SCp,
* SCpnt - command
*/
static
void
eesoxscsi_dma_stop
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
)
eesoxscsi_dma_stop
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
)
{
struct
eesoxscsi_info
*
info
=
(
struct
eesoxscsi_info
*
)
host
->
hostdata
;
if
(
info
->
info
.
scsi
.
dma
!=
NO_DMA
)
...
...
drivers/scsi/arm/fas216.c
浏览文件 @
0a04137e
...
...
@@ -173,7 +173,7 @@ static void fas216_dumpstate(FAS216_Info *info)
fas216_readb
(
info
,
REG_CTCH
));
}
static
void
print_SCp
(
Scsi_P
ointer
*
SCp
,
const
char
*
prefix
,
const
char
*
suffix
)
static
void
print_SCp
(
struct
scsi_p
ointer
*
SCp
,
const
char
*
prefix
,
const
char
*
suffix
)
{
printk
(
"%sptr %p this_residual 0x%x buffer %p buffers_residual 0x%x%s"
,
prefix
,
SCp
->
ptr
,
SCp
->
this_residual
,
SCp
->
buffer
,
...
...
@@ -628,7 +628,7 @@ static void fas216_handlesync(FAS216_Info *info, char *msg)
*/
static
void
fas216_updateptrs
(
FAS216_Info
*
info
,
int
bytes_transferred
)
{
Scsi_P
ointer
*
SCp
=
&
info
->
scsi
.
SCp
;
struct
scsi_p
ointer
*
SCp
=
&
info
->
scsi
.
SCp
;
fas216_checkmagic
(
info
);
...
...
@@ -668,7 +668,7 @@ static void fas216_updateptrs(FAS216_Info *info, int bytes_transferred)
*/
static
void
fas216_pio
(
FAS216_Info
*
info
,
fasdmadir_t
direction
)
{
Scsi_P
ointer
*
SCp
=
&
info
->
scsi
.
SCp
;
struct
scsi_p
ointer
*
SCp
=
&
info
->
scsi
.
SCp
;
fas216_checkmagic
(
info
);
...
...
drivers/scsi/arm/fas216.h
浏览文件 @
0a04137e
...
...
@@ -243,7 +243,7 @@ typedef struct {
unsigned
int
irq
;
/* interrupt */
int
dma
;
/* dma channel */
Scsi_P
ointer
SCp
;
/* current commands data pointer */
struct
scsi_p
ointer
SCp
;
/* current commands data pointer */
MsgQueue_t
msgs
;
/* message queue for connected device */
...
...
@@ -304,9 +304,9 @@ typedef struct {
/* dma */
struct
{
fasdmatype_t
transfer_type
;
/* current type of DMA transfer */
fasdmatype_t
(
*
setup
)
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_dma
);
void
(
*
pseudo
)(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
fasdmadir_t
direction
,
int
transfer
);
void
(
*
stop
)
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
);
fasdmatype_t
(
*
setup
)
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_dma
);
void
(
*
pseudo
)(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
int
transfer
);
void
(
*
stop
)
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
);
}
dma
;
/* miscellaneous */
...
...
drivers/scsi/arm/powertec.c
浏览文件 @
0a04137e
...
...
@@ -132,7 +132,7 @@ powertecscsi_intr(int irq, void *dev_id, struct pt_regs *regs)
* Returns : type of transfer to be performed
*/
static
fasdmatype_t
powertecscsi_dma_setup
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
,
powertecscsi_dma_setup
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
,
fasdmadir_t
direction
,
fasdmatype_t
min_type
)
{
struct
powertec_info
*
info
=
(
struct
powertec_info
*
)
host
->
hostdata
;
...
...
@@ -174,7 +174,7 @@ powertecscsi_dma_setup(struct Scsi_Host *host, Scsi_Pointer *SCp,
* SCpnt - command
*/
static
void
powertecscsi_dma_stop
(
struct
Scsi_Host
*
host
,
Scsi_P
ointer
*
SCp
)
powertecscsi_dma_stop
(
struct
Scsi_Host
*
host
,
struct
scsi_p
ointer
*
SCp
)
{
struct
powertec_info
*
info
=
(
struct
powertec_info
*
)
host
->
hostdata
;
if
(
info
->
info
.
scsi
.
dma
!=
NO_DMA
)
...
...
drivers/scsi/arm/scsi.h
浏览文件 @
0a04137e
...
...
@@ -18,7 +18,7 @@
* The scatter-gather list handling. This contains all
* the yucky stuff that needs to be fixed properly.
*/
static
inline
int
copy_SCp_to_sg
(
struct
scatterlist
*
sg
,
Scsi_P
ointer
*
SCp
,
int
max
)
static
inline
int
copy_SCp_to_sg
(
struct
scatterlist
*
sg
,
struct
scsi_p
ointer
*
SCp
,
int
max
)
{
int
bufs
=
SCp
->
buffers_residual
;
...
...
@@ -32,7 +32,7 @@ static inline int copy_SCp_to_sg(struct scatterlist *sg, Scsi_Pointer *SCp, int
return
bufs
+
1
;
}
static
inline
int
next_SCp
(
Scsi_P
ointer
*
SCp
)
static
inline
int
next_SCp
(
struct
scsi_p
ointer
*
SCp
)
{
int
ret
=
SCp
->
buffers_residual
;
if
(
ret
)
{
...
...
@@ -49,7 +49,7 @@ static inline int next_SCp(Scsi_Pointer *SCp)
return
ret
;
}
static
inline
unsigned
char
get_next_SCp_byte
(
Scsi_P
ointer
*
SCp
)
static
inline
unsigned
char
get_next_SCp_byte
(
struct
scsi_p
ointer
*
SCp
)
{
char
c
=
*
SCp
->
ptr
;
...
...
@@ -59,7 +59,7 @@ static inline unsigned char get_next_SCp_byte(Scsi_Pointer *SCp)
return
c
;
}
static
inline
void
put_next_SCp_byte
(
Scsi_P
ointer
*
SCp
,
unsigned
char
c
)
static
inline
void
put_next_SCp_byte
(
struct
scsi_p
ointer
*
SCp
,
unsigned
char
c
)
{
*
SCp
->
ptr
=
c
;
SCp
->
ptr
+=
1
;
...
...
drivers/scsi/megaraid.c
浏览文件 @
0a04137e
...
...
@@ -1686,7 +1686,7 @@ mega_rundoneq (adapter_t *adapter)
list_for_each
(
pos
,
&
adapter
->
completed_list
)
{
Scsi_Pointer
*
spos
=
(
Scsi_P
ointer
*
)
pos
;
struct
scsi_pointer
*
spos
=
(
struct
scsi_p
ointer
*
)
pos
;
cmd
=
list_entry
(
spos
,
Scsi_Cmnd
,
SCp
);
cmd
->
scsi_done
(
cmd
);
...
...
drivers/scsi/scsi_typedefs.h
浏览文件 @
0a04137e
...
...
@@ -2,4 +2,3 @@
typedef
struct
scsi_device
Scsi_Device
;
typedef
struct
scsi_cmnd
Scsi_Cmnd
;
typedef
struct
scsi_request
Scsi_Request
;
typedef
struct
scsi_pointer
Scsi_Pointer
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录