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
7ee75762
Commit
7ee75762
authored
Dec 23, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] update lasi700 for new parisc device model
parent
81513c82
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
drivers/scsi/lasi700.c
drivers/scsi/lasi700.c
+9
-2
drivers/scsi/lasi700.h
drivers/scsi/lasi700.h
+0
-6
No files found.
drivers/scsi/lasi700.c
View file @
7ee75762
...
...
@@ -114,7 +114,11 @@ static struct parisc_device_id lasi700_scsi_tbl[] = {
MODULE_DEVICE_TABLE
(
parisc
,
lasi700_scsi_tbl
);
static
struct
parisc_driver
lasi700_driver
=
LASI700_DRIVER
;
static
struct
parisc_driver
lasi700_driver
=
{
.
name
=
"Lasi SCSI"
,
.
id_table
=
lasi700_scsi_tbl
,
.
probe
=
lasi700_driver_callback
,
};
static
int
__init
lasi700_detect
(
Scsi_Host_Template
*
tpnt
)
...
...
@@ -145,6 +149,7 @@ lasi700_driver_callback(struct parisc_device *dev)
}
else
{
driver_name
=
"lasi710"
;
}
snprintf
(
dev
->
dev
.
name
,
sizeof
(
dev
->
dev
.
name
),
"%s"
,
driver_name
);
if
(
hostdata
==
NULL
)
{
printk
(
KERN_ERR
"%s: Failed to allocate host data
\n
"
,
driver_name
);
...
...
@@ -168,12 +173,14 @@ lasi700_driver_callback(struct parisc_device *dev)
hostdata
->
chip710
=
1
;
hostdata
->
dmode_extra
=
DMODE_FC2
;
}
hostdata
->
pci_dev
=
ccio_get_fake
(
dev
);
hostdata
->
dev
=
&
dev
->
dev
;
dma_set_mask
(
&
dev
->
dev
,
0xffffffffUL
);
if
((
host
=
NCR_700_detect
(
host_tpnt
,
hostdata
))
==
NULL
)
{
kfree
(
hostdata
);
release_mem_region
(
host
->
base
,
64
);
return
1
;
}
scsi_set_device
(
host
,
&
dev
->
dev
);
host
->
irq
=
dev
->
irq
;
if
(
request_irq
(
dev
->
irq
,
NCR_700_intr
,
SA_SHIRQ
,
driver_name
,
host
))
{
printk
(
KERN_ERR
"%s: irq problem, detaching
\n
"
,
...
...
drivers/scsi/lasi700.h
View file @
7ee75762
...
...
@@ -55,12 +55,6 @@ static int lasi700_release(struct Scsi_Host *host);
.hversion_rev = HVERSION_REV_ANY_ID, \
}
#define LASI700_DRIVER { \
.name = "Lasi SCSI", \
.id_table = lasi700_scsi_tbl, \
.probe = lasi700_driver_callback,\
}
#define LASI700_CLOCK 25
#define LASI710_CLOCK 40
#define LASI_SCSI_CORE_OFFSET 0x100
...
...
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