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
Kirill Smelkov
linux
Commits
530fa7dc
Commit
530fa7dc
authored
Jun 26, 2004
by
James Bottomley
Committed by
James Bottomley
Jun 26, 2004
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
c4fb4b17
1dd040ff
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
drivers/scsi/fdomain.c
drivers/scsi/fdomain.c
+3
-2
drivers/scsi/fdomain.h
drivers/scsi/fdomain.h
+24
-0
drivers/scsi/pcmcia/fdomain_stub.c
drivers/scsi/pcmcia/fdomain_stub.c
+3
-9
No files found.
drivers/scsi/fdomain.c
View file @
530fa7dc
...
@@ -288,6 +288,7 @@
...
@@ -288,6 +288,7 @@
#include <scsi/scsi_device.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_ioctl.h>
#include "fdomain.h"
MODULE_AUTHOR
(
"Rickard E. Faith"
);
MODULE_AUTHOR
(
"Rickard E. Faith"
);
MODULE_DESCRIPTION
(
"Future domain SCSI driver"
);
MODULE_DESCRIPTION
(
"Future domain SCSI driver"
);
...
@@ -554,7 +555,7 @@ static void print_banner( struct Scsi_Host *shpnt )
...
@@ -554,7 +555,7 @@ static void print_banner( struct Scsi_Host *shpnt )
printk
(
"
\n
"
);
printk
(
"
\n
"
);
}
}
static
int
__ini
t
fdomain_setup
(
char
*
str
)
in
t
fdomain_setup
(
char
*
str
)
{
{
int
ints
[
4
];
int
ints
[
4
];
...
@@ -904,7 +905,7 @@ struct Scsi_Host *__fdomain_16x0_detect(struct scsi_host_template *tpnt )
...
@@ -904,7 +905,7 @@ struct Scsi_Host *__fdomain_16x0_detect(struct scsi_host_template *tpnt )
Write_FIFO_port
=
port_base
+
Write_FIFO
;
Write_FIFO_port
=
port_base
+
Write_FIFO
;
Write_SCSI_Data_port
=
port_base
+
Write_SCSI_Data
;
Write_SCSI_Data_port
=
port_base
+
Write_SCSI_Data
;
fdomain_16x0_bus_reset
(
NULL
);
fdomain_16x0_bus_reset
(
NULL
);
if
(
fdomain_test_loopback
())
{
if
(
fdomain_test_loopback
())
{
printk
(
KERN_ERR
"scsi: <fdomain> Detection failed (loopback test failed at port base 0x%x)
\n
"
,
port_base
);
printk
(
KERN_ERR
"scsi: <fdomain> Detection failed (loopback test failed at port base 0x%x)
\n
"
,
port_base
);
...
...
drivers/scsi/fdomain.h
0 → 100644
View file @
530fa7dc
/*
* fdomain.c -- Future Domain TMC-16x0 SCSI driver
* Author: Rickard E. Faith, faith@cs.unc.edu
* Copyright 1992-1996, 1998 Rickard E. Faith (faith@acm.org)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
extern
Scsi_Host_Template
fdomain_driver_template
;
extern
int
fdomain_setup
(
char
*
str
);
extern
struct
Scsi_Host
*
__fdomain_16x0_detect
(
Scsi_Host_Template
*
tpnt
);
extern
int
fdomain_16x0_bus_reset
(
Scsi_Cmnd
*
SCpnt
);
drivers/scsi/pcmcia/fdomain_stub.c
View file @
530fa7dc
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include "scsi.h"
#include "scsi.h"
#include <scsi/scsi_host.h>
#include <scsi/scsi_host.h>
#include "fdomain.h"
#include <pcmcia/version.h>
#include <pcmcia/version.h>
#include <pcmcia/cs_types.h>
#include <pcmcia/cs_types.h>
...
@@ -84,10 +85,6 @@ typedef struct scsi_info_t {
...
@@ -84,10 +85,6 @@ typedef struct scsi_info_t {
struct
Scsi_Host
*
host
;
struct
Scsi_Host
*
host
;
}
scsi_info_t
;
}
scsi_info_t
;
extern
Scsi_Host_Template
fdomain_driver_template
;
extern
void
fdomain_setup
(
char
*
str
,
int
*
ints
);
extern
struct
Scsi_Host
*
__fdomain_16x0_detect
(
Scsi_Host_Template
*
tpnt
);
extern
int
fdomain_16x0_bus_reset
(
Scsi_Cmnd
*
SCpnt
);
static
void
fdomain_release
(
dev_link_t
*
link
);
static
void
fdomain_release
(
dev_link_t
*
link
);
static
int
fdomain_event
(
event_t
event
,
int
priority
,
static
int
fdomain_event
(
event_t
event
,
int
priority
,
...
@@ -189,7 +186,7 @@ static void fdomain_config(dev_link_t *link)
...
@@ -189,7 +186,7 @@ static void fdomain_config(dev_link_t *link)
scsi_info_t
*
info
=
link
->
priv
;
scsi_info_t
*
info
=
link
->
priv
;
tuple_t
tuple
;
tuple_t
tuple
;
cisparse_t
parse
;
cisparse_t
parse
;
int
i
,
last_ret
,
last_fn
,
ints
[
3
]
;
int
i
,
last_ret
,
last_fn
;
u_char
tuple_data
[
64
];
u_char
tuple_data
[
64
];
char
str
[
16
];
char
str
[
16
];
struct
Scsi_Host
*
host
;
struct
Scsi_Host
*
host
;
...
@@ -229,11 +226,8 @@ static void fdomain_config(dev_link_t *link)
...
@@ -229,11 +226,8 @@ static void fdomain_config(dev_link_t *link)
release_region
(
link
->
io
.
BasePort1
,
link
->
io
.
NumPorts1
);
release_region
(
link
->
io
.
BasePort1
,
link
->
io
.
NumPorts1
);
/* Set configuration options for the fdomain driver */
/* Set configuration options for the fdomain driver */
ints
[
0
]
=
2
;
ints
[
1
]
=
link
->
io
.
BasePort1
;
ints
[
2
]
=
link
->
irq
.
AssignedIRQ
;
sprintf
(
str
,
"%d,%d"
,
link
->
io
.
BasePort1
,
link
->
irq
.
AssignedIRQ
);
sprintf
(
str
,
"%d,%d"
,
link
->
io
.
BasePort1
,
link
->
irq
.
AssignedIRQ
);
fdomain_setup
(
str
,
ints
);
fdomain_setup
(
str
);
host
=
__fdomain_16x0_detect
(
&
fdomain_driver_template
);
host
=
__fdomain_16x0_detect
(
&
fdomain_driver_template
);
if
(
!
host
)
{
if
(
!
host
)
{
...
...
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