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
01087a66
Commit
01087a66
authored
Nov 04, 2002
by
Alan Cox
Committed by
Dave Jones
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] tidy the 53c406, kill off old header
parent
8b8ee7f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
77 deletions
+40
-77
drivers/scsi/NCR53c406a.c
drivers/scsi/NCR53c406a.c
+40
-19
drivers/scsi/NCR53c406a.h
drivers/scsi/NCR53c406a.h
+0
-58
No files found.
drivers/scsi/NCR53c406a.c
View file @
01087a66
...
@@ -677,22 +677,6 @@ static void wait_intr(void)
...
@@ -677,22 +677,6 @@ static void wait_intr(void)
NCR53c406a_intr
(
0
,
NULL
,
NULL
);
NCR53c406a_intr
(
0
,
NULL
,
NULL
);
}
}
static
int
NCR53c406a_command
(
Scsi_Cmnd
*
SCpnt
)
{
DEB
(
printk
(
"NCR53c406a_command called
\n
"
));
NCR53c406a_queue
(
SCpnt
,
internal_done
);
if
(
irq_level
)
while
(
!
internal_done_flag
)
cpu_relax
();
else
/* interrupts not supported */
while
(
!
internal_done_flag
)
wait_intr
();
internal_done_flag
=
0
;
return
internal_done_errcode
;
}
static
int
NCR53c406a_queue
(
Scsi_Cmnd
*
SCpnt
,
void
(
*
done
)
(
Scsi_Cmnd
*
))
static
int
NCR53c406a_queue
(
Scsi_Cmnd
*
SCpnt
,
void
(
*
done
)
(
Scsi_Cmnd
*
))
{
{
int
i
;
int
i
;
...
@@ -726,6 +710,21 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
...
@@ -726,6 +710,21 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
return
0
;
return
0
;
}
}
static
int
NCR53c406a_command
(
Scsi_Cmnd
*
SCpnt
)
{
DEB
(
printk
(
"NCR53c406a_command called
\n
"
));
NCR53c406a_queue
(
SCpnt
,
internal_done
);
if
(
irq_level
)
while
(
!
internal_done_flag
)
cpu_relax
();
else
/* interrupts not supported */
while
(
!
internal_done_flag
)
wait_intr
();
internal_done_flag
=
0
;
return
internal_done_errcode
;
}
static
int
NCR53c406a_abort
(
Scsi_Cmnd
*
SCpnt
)
static
int
NCR53c406a_abort
(
Scsi_Cmnd
*
SCpnt
)
{
{
DEB
(
printk
(
"NCR53c406a_abort called
\n
"
));
DEB
(
printk
(
"NCR53c406a_abort called
\n
"
));
...
@@ -755,7 +754,7 @@ static int NCR53c406a_bus_reset(Scsi_Cmnd * SCpnt)
...
@@ -755,7 +754,7 @@ static int NCR53c406a_bus_reset(Scsi_Cmnd * SCpnt)
return
FAILED
;
return
FAILED
;
}
}
static
int
NCR53c406a_biosparm
(
struct
scsi_d
isk
*
disk
,
static
int
NCR53c406a_biosparm
(
struct
scsi_d
evice
*
disk
,
struct
block_device
*
dev
,
struct
block_device
*
dev
,
sector_t
capacity
,
int
*
info_array
)
sector_t
capacity
,
int
*
info_array
)
{
{
...
@@ -1065,8 +1064,30 @@ static void __init calc_port_addr(void)
...
@@ -1065,8 +1064,30 @@ static void __init calc_port_addr(void)
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
/* Eventually this will go into an include file, but this will be later */
/* NOTE: scatter-gather support only works in PIO mode.
static
Scsi_Host_Template
driver_template
=
NCR53c406a
;
* Use SG_NONE if DMA mode is enabled!
*/
static
Scsi_Host_Template
driver_template
=
{
proc_name:
"NCR53c406a"
/* proc_name */
,
name:
"NCR53c406a"
/* name */
,
detect:
NCR53c406a_detect
/* detect */
,
info:
NCR53c406a_info
/* info */
,
command:
NCR53c406a_command
/* command */
,
queuecommand:
NCR53c406a_queue
/* queuecommand */
,
eh_abort_handler:
NCR53c406a_abort
/* abort */
,
eh_bus_reset_handler:
NCR53c406a_bus_reset
/* reset */
,
eh_device_reset_handler:
NCR53c406a_device_reset
/* reset */
,
eh_host_reset_handler:
NCR53c406a_host_reset
/* reset */
,
bios_param:
NCR53c406a_biosparm
/* biosparm */
,
can_queue:
1
/* can_queue */
,
this_id:
7
/* SCSI ID of the chip */
,
sg_tablesize:
32
/*SG_ALL*/
/*SG_NONE*/
,
cmd_per_lun:
1
/* commands per lun */
,
unchecked_isa_dma:
1
/* unchecked_isa_dma */
,
use_clustering:
ENABLE_CLUSTERING
};
#include "scsi_module.c"
#include "scsi_module.c"
...
...
drivers/scsi/NCR53c406a.h
deleted
100644 → 0
View file @
8b8ee7f9
#ifndef _NCR53C406A_H
#define _NCR53C406A_H
/*
* NCR53c406a.h
*
* Copyright (C) 1994 Normunds Saumanis (normunds@rx.tech.swh.lv)
*
* 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.
*
*/
#ifndef NULL
#define NULL 0
#endif
/* NOTE: scatter-gather support only works in PIO mode.
* Use SG_NONE if DMA mode is enabled!
*/
#define NCR53c406a { \
proc_name: "NCR53c406a"
/* proc_name */
, \
name: "NCR53c406a"
/* name */
, \
detect: NCR53c406a_detect
/* detect */
, \
info: NCR53c406a_info
/* info */
, \
command: NCR53c406a_command
/* command */
, \
queuecommand: NCR53c406a_queue
/* queuecommand */
, \
eh_abort_handler: NCR53c406a_abort
/* abort */
, \
eh_bus_reset_handler: NCR53c406a_bus_reset
/* reset */
, \
eh_device_reset_handler: NCR53c406a_device_reset
/* reset */
, \
eh_host_reset_handler: NCR53c406a_host_reset
/* reset */
, \
bios_param: NCR53c406a_biosparm
/* biosparm */
, \
can_queue: 1
/* can_queue */
, \
this_id: 7
/* SCSI ID of the chip */
, \
sg_tablesize: 32
/*SG_ALL*/
/*SG_NONE*/
, \
cmd_per_lun: 1
/* commands per lun */
, \
unchecked_isa_dma: 1
/* unchecked_isa_dma */
, \
use_clustering: ENABLE_CLUSTERING \
}
static
int
NCR53c406a_detect
(
Scsi_Host_Template
*
);
static
const
char
*
NCR53c406a_info
(
struct
Scsi_Host
*
);
static
int
NCR53c406a_command
(
Scsi_Cmnd
*
);
static
int
NCR53c406a_queue
(
Scsi_Cmnd
*
,
void
(
*
done
)
(
Scsi_Cmnd
*
));
static
int
NCR53c406a_abort
(
Scsi_Cmnd
*
);
static
int
NCR53c406a_bus_reset
(
Scsi_Cmnd
*
);
static
int
NCR53c406a_device_reset
(
Scsi_Cmnd
*
);
static
int
NCR53c406a_host_reset
(
Scsi_Cmnd
*
);
static
int
NCR53c406a_biosparm
(
Disk
*
,
struct
block_device
*
,
sector_t
,
int
[]);
#endif
/* _NCR53C406A_H */
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