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
65e45205
Commit
65e45205
authored
Aug 18, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the PCMCIA driver for the NinjaSCSI-3 by YOKOTA Hiroshi
parent
e8f064c2
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1019 additions
and
542 deletions
+1019
-542
drivers/scsi/pcmcia/Kconfig
drivers/scsi/pcmcia/Kconfig
+23
-0
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/nsp_cs.c
+724
-396
drivers/scsi/pcmcia/nsp_cs.h
drivers/scsi/pcmcia/nsp_cs.h
+250
-126
drivers/scsi/pcmcia/nsp_debug.c
drivers/scsi/pcmcia/nsp_debug.c
+3
-3
drivers/scsi/pcmcia/nsp_io.h
drivers/scsi/pcmcia/nsp_io.h
+10
-10
drivers/scsi/pcmcia/nsp_message.c
drivers/scsi/pcmcia/nsp_message.c
+9
-7
No files found.
drivers/scsi/pcmcia/Kconfig
View file @
65e45205
...
...
@@ -37,6 +37,29 @@ config PCMCIA_NINJA_SCSI
your computer, say Y here and read
<file:Documentation/scsi/NinjaSCSI.txt>.
Supported cards:
NinjaSCSI-3: (version string: "WBT","NinjaSCSI-3","R1.0")
IO-DATA PCSC-FP
ALPHA DATA AD-PCS201
CyQ've SFC-201
LOGITECH LPM-SCSI2E
Pioneer PCR-PR24's card
I-O DATA CDPS-PX24's card (PCSC-F)
Panasonic KXL-RW10AN CD-RW's card
etc.
NinjaSCSI-32Bit (in 16bit mode):
[Workbit (version string: "WORKBIT","UltraNinja-16","1")]
Jazz SCP050
[I-O DATA (OEM) (version string: "IO DATA","CBSC16 ","1")]
I-O DATA CBSC-II
[Kyusyu Matsushita Kotobuki (OEM)
(version string: "KME ","SCSI-CARD-001","1")]
KME KXL-820AN's card
HP M820e CDRW's card
etc.
This driver is also available as a module called nsp_cs ( =
code which can be inserted in and removed from the running kernel
whenever you want). If you want to compile it as a module, say M
...
...
drivers/scsi/pcmcia/nsp_cs.c
View file @
65e45205
This diff is collapsed.
Click to expand it.
drivers/scsi/pcmcia/nsp_cs.h
View file @
65e45205
This diff is collapsed.
Click to expand it.
drivers/scsi/pcmcia/nsp_debug.c
View file @
65e45205
...
...
@@ -6,7 +6,7 @@
the GNU General Public License.
=========================================================================*/
/* $Id: nsp_debug.c,v 1.
2 2002/09/20 04:06:58 gotom
Exp $ */
/* $Id: nsp_debug.c,v 1.
3 2003/07/26 14:21:09 elca
Exp $ */
/*
* Show the command data of a command
...
...
@@ -138,9 +138,9 @@ static void print_commandk (unsigned char *command)
printk
(
"
\n
"
);
}
static
void
show_command
(
Scsi_Cmnd
*
ptr
)
static
void
show_command
(
Scsi_Cmnd
*
SCpnt
)
{
print_commandk
(
ptr
->
cmnd
);
print_commandk
(
SCpnt
->
cmnd
);
}
static
void
show_phase
(
Scsi_Cmnd
*
SCpnt
)
...
...
drivers/scsi/pcmcia/nsp_io.h
View file @
65e45205
...
...
@@ -7,7 +7,7 @@
*/
/* $Id: nsp_io.h,v 1.
2 2002/09/20 04:06:58 gotom
Exp $ */
/* $Id: nsp_io.h,v 1.
3 2003/08/04 21:15:26 elca
Exp $ */
#ifndef __NSP_IO_H__
#define __NSP_IO_H__
...
...
@@ -76,7 +76,7 @@ static inline void nsp_fifo8_read(unsigned int base,
void
*
buf
,
unsigned
long
count
)
{
/*
DEBUG(0, __FUNCTION__ "() buf=0x%p, count=0x%lx\n
", buf, count);*/
/*
nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx
", buf, count);*/
nsp_multi_read_1
(
base
,
FIFODATA
,
buf
,
count
);
}
...
...
@@ -95,7 +95,7 @@ static inline void nsp_fifo16_read(unsigned int base,
void
*
buf
,
unsigned
long
count
)
{
//
DEBUG(0, __FUNCTION__ "() buf=0x%p, count=0x%lx*2\n
", buf, count);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*2
", buf, count);
nsp_multi_read_2
(
base
,
FIFODATA
,
buf
,
count
);
}
...
...
@@ -114,7 +114,7 @@ static inline void nsp_fifo32_read(unsigned int base,
void
*
buf
,
unsigned
long
count
)
{
//
DEBUG(0, __FUNCTION__ "() buf=0x%p, count=0x%lx*4\n
", buf, count);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4
", buf, count);
nsp_multi_read_4
(
base
,
FIFODATA
,
buf
,
count
);
}
...
...
@@ -225,11 +225,11 @@ static inline void nsp_mmio_multi_read_4(unsigned long base,
unsigned
long
*
tmp
=
(
unsigned
long
*
)
buf
;
int
i
;
//
printk("base 0x%0lx ptr 0x%p\n
",base,ptr);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "base 0x%0lx ptr 0x%p
",base,ptr);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
*
tmp
=
readl
(
ptr
);
//
printk(
"<%d,%p,%p,%lx>", i, ptr, tmp, *tmp);
//
nsp_dbg(NSP_DEBUG_DATA_IO,
"<%d,%p,%p,%lx>", i, ptr, tmp, *tmp);
tmp
++
;
}
}
...
...
@@ -238,7 +238,7 @@ static inline void nsp_mmio_fifo32_read(unsigned int base,
void
*
buf
,
unsigned
long
count
)
{
//
DEBUG(0, __FUNCTION__ "() buf=0x%p, count=0x%lx*4\n
", buf, count);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4
", buf, count);
nsp_mmio_multi_read_4
(
base
,
FIFODATA
,
buf
,
count
);
}
...
...
@@ -251,11 +251,11 @@ static inline void nsp_mmio_multi_write_4(unsigned long base,
unsigned
long
*
tmp
=
(
unsigned
long
*
)
buf
;
int
i
;
//
printk("base 0x%0lx ptr 0x%p\n
",base,ptr);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "base 0x%0lx ptr 0x%p
",base,ptr);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
writel
(
*
tmp
,
ptr
);
//
printk(
"<%d,%p,%p,%lx>", i, ptr, tmp, *tmp);
//
nsp_dbg(NSP_DEBUG_DATA_IO,
"<%d,%p,%p,%lx>", i, ptr, tmp, *tmp);
tmp
++
;
}
}
...
...
@@ -264,7 +264,7 @@ static inline void nsp_mmio_fifo32_write(unsigned int base,
void
*
buf
,
unsigned
long
count
)
{
//
DEBUG(0, __FUNCTION__ "() buf=0x%p, count=0x%lx*4\n
", buf, count);
//
nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*4
", buf, count);
nsp_mmio_multi_write_4
(
base
,
FIFODATA
,
buf
,
count
);
}
...
...
drivers/scsi/pcmcia/nsp_message.c
View file @
65e45205
...
...
@@ -6,11 +6,12 @@
the GNU General Public License.
*/
/* $Id: nsp_message.c,v 1.
2 2002/09/20 04:06:58 gotom
Exp $ */
/* $Id: nsp_message.c,v 1.
6 2003/07/26 14:21:09 elca
Exp $ */
static
void
nsp_message_in
(
Scsi_Cmnd
*
SCpnt
,
nsp_hw_data
*
data
)
static
void
nsp_message_in
(
Scsi_Cmnd
*
SCpnt
)
{
unsigned
int
base
=
SCpnt
->
device
->
host
->
io_port
;
nsp_hw_data
*
data
=
(
nsp_hw_data
*
)
SCpnt
->
device
->
host
->
hostdata
;
unsigned
char
data_reg
,
control_reg
;
int
ret
,
len
;
...
...
@@ -23,7 +24,7 @@ static void nsp_message_in(Scsi_Cmnd *SCpnt, nsp_hw_data *data)
ret
=
16
;
len
=
0
;
DEBUG
(
0
,
" msgin loop
\n
"
);
nsp_dbg
(
NSP_DEBUG_MSGINOCCUR
,
"msgin loop
"
);
do
{
/* read data */
data_reg
=
nsp_index_read
(
base
,
SCSIDATAIN
);
...
...
@@ -49,8 +50,9 @@ static void nsp_message_in(Scsi_Cmnd *SCpnt, nsp_hw_data *data)
}
static
void
nsp_message_out
(
Scsi_Cmnd
*
SCpnt
,
nsp_hw_data
*
data
)
static
void
nsp_message_out
(
Scsi_Cmnd
*
SCpnt
)
{
nsp_hw_data
*
data
=
(
nsp_hw_data
*
)
SCpnt
->
device
->
host
->
hostdata
;
int
ret
=
1
;
int
len
=
data
->
MsgLen
;
...
...
@@ -61,10 +63,10 @@ static void nsp_message_out(Scsi_Cmnd *SCpnt, nsp_hw_data *data)
* the next "msg out" if exists (no scsi phase changes).
*/
DEBUG
(
0
,
" msgout loop
\n
"
);
nsp_dbg
(
NSP_DEBUG_MSGOUTOCCUR
,
"msgout loop
"
);
do
{
if
(
nsp_xfer
(
SCpnt
,
data
,
BUSPHASE_MESSAGE_OUT
))
{
printk
(
KERN_DEBUG
" %s: msgout: xfer short
\n
"
,
__FUNCTION__
);
if
(
nsp_xfer
(
SCpnt
,
BUSPHASE_MESSAGE_OUT
))
{
nsp_msg
(
KERN_DEBUG
,
"msgout: xfer short"
);
}
/* catch a next signal */
...
...
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