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
0bab3fa4
Commit
0bab3fa4
authored
Mar 10, 2003
by
Justin T. Gibbs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete Aic7xxx and Aic79xx driver merge with Linux 2.5.X mainline.
parent
14686d42
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
51 additions
and
40 deletions
+51
-40
drivers/scsi/aic7xxx/Kconfig.aic79xx
drivers/scsi/aic7xxx/Kconfig.aic79xx
+2
-1
drivers/scsi/aic7xxx/aic79xx.h
drivers/scsi/aic7xxx/aic79xx.h
+1
-1
drivers/scsi/aic7xxx/aic79xx_core.c
drivers/scsi/aic7xxx/aic79xx_core.c
+1
-1
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic79xx_osm.c
+21
-12
drivers/scsi/aic7xxx/aic79xx_osm.h
drivers/scsi/aic7xxx/aic79xx_osm.h
+1
-1
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
+1
-1
drivers/scsi/aic7xxx/aic7xxx.h
drivers/scsi/aic7xxx/aic7xxx.h
+1
-1
drivers/scsi/aic7xxx/aic7xxx_core.c
drivers/scsi/aic7xxx/aic7xxx_core.c
+1
-1
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c
+20
-18
drivers/scsi/aic7xxx/aic7xxx_osm.h
drivers/scsi/aic7xxx/aic7xxx_osm.h
+1
-1
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+1
-1
drivers/scsi/aic7xxx/aicasm/Makefile
drivers/scsi/aic7xxx/aicasm/Makefile
+0
-1
No files found.
drivers/scsi/aic7xxx/Kconfig.aic79xx
View file @
0bab3fa4
#
# AIC79XX 2.5.X Kernel configuration File.
# $Id: //depot/linux-aic79xx-2.5.0/drivers/scsi/aic7xxx/Kconfig.aic79xx#
3
$
# $Id: //depot/linux-aic79xx-2.5.0/drivers/scsi/aic7xxx/Kconfig.aic79xx#
4
$
#
config SCSI_AIC79XX
tristate "Adaptec AIC79xx U320 support"
...
...
@@ -59,6 +59,7 @@ config AIC79XX_BUILD_FIRMWARE
config AIC79XX_ENABLE_RD_STRM
bool "Enable Read Streaming for All Targets"
depends on SCSI_AIC79XX
default n
help
Read Streaming is a U320 protocol option that should enhance
performance. Early U320 drive firmware actually performs slower
...
...
drivers/scsi/aic7xxx/aic79xx.h
View file @
0bab3fa4
...
...
@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.h#8
5
$
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.h#8
6
$
*
* $FreeBSD$
*/
...
...
drivers/scsi/aic7xxx/aic79xx_core.c
View file @
0bab3fa4
...
...
@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#17
2
$
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#17
4
$
*
* $FreeBSD$
*/
...
...
drivers/scsi/aic7xxx/aic79xx_osm.c
View file @
0bab3fa4
/*
* Adaptec AIC79xx device driver for Linux.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#1
28
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#1
30
$
*
* --------------------------------------------------------------------------
* Copyright (c) 1994-2000 Justin T. Gibbs.
...
...
@@ -2391,7 +2391,7 @@ ahd_linux_register_host(struct ahd_softc *ahd, Scsi_Host_Template *template)
}
host
->
unique_id
=
ahd
->
unit
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,4) && \
LINUX_VERSION_CODE
<=
KERNEL_VERSION(2,5,0)
LINUX_VERSION_CODE
<
KERNEL_VERSION(2,5,0)
scsi_set_pci_device
(
host
,
ahd
->
dev_softc
);
#endif
ahd_linux_initialize_scsi_bus
(
ahd
);
...
...
@@ -2421,9 +2421,9 @@ ahd_linux_register_host(struct ahd_softc *ahd, Scsi_Host_Template *template)
* single bit selection (i.e. selecting ourselves).
* It is expected that either an external application
* or a modified kernel will be used to probe this
* ID if it is appropriate. To accom
odate these installations,
*
ahc_linux_alloc_target() will allocate for our ID if
* asked to do so.
* ID if it is appropriate. To accom
modate these
*
installations, ahc_linux_alloc_target() will allocate
*
for our ID if
asked to do so.
*/
if
(
target
==
ahd
->
our_id
)
continue
;
...
...
@@ -2434,7 +2434,7 @@ ahd_linux_register_host(struct ahd_softc *ahd, Scsi_Host_Template *template)
ahd_linux_start_dv
(
ahd
);
ahd_unlock
(
ahd
,
&
s
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
scsi_add_host
(
host
,
&
ahd
->
dev_softc
->
dev
);
#endif
return
(
0
);
...
...
@@ -2584,7 +2584,7 @@ ahd_platform_free(struct ahd_softc *ahd)
}
ahd_teardown_runq_tasklet
(
ahd
);
if
(
ahd
->
platform_data
->
host
!=
NULL
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
scsi_remove_host
(
ahd
->
platform_data
->
host
);
#endif
scsi_unregister
(
ahd
->
platform_data
->
host
);
...
...
@@ -2627,10 +2627,12 @@ ahd_platform_free(struct ahd_softc *ahd)
#endif
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) && \
LINUX_VERSION_CODE
<=
KERNEL_VERSION(2,5,0)
LINUX_VERSION_CODE
<
KERNEL_VERSION(2,5,0)
/*
* In 2.4 we detach from the scsi midlayer before the PCI
* layer invokes our remove callback.
* layer invokes our remove callback. No per-instance
* detach is provided, so we must reach inside the PCI
* subsystem's internals and detach our driver manually.
*/
if
(
ahd
->
dev_softc
!=
NULL
)
ahd
->
dev_softc
->
driver
=
NULL
;
...
...
@@ -5348,9 +5350,10 @@ ahd_platform_dump_card_state(struct ahd_softc *ahd)
}
}
static
int
__init
ahd_linux_init
(
void
)
static
int
__init
ahd_linux_init
(
void
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
return
(
ahd_linux_detect
(
&
aic79xx_driver_template
)
?
0
:
-
ENODEV
);
#else
scsi_register_module
(
MODULE_SCSI_HA
,
&
aic79xx_driver_template
);
...
...
@@ -5364,9 +5367,15 @@ static int __init ahd_linux_init(void)
#endif
}
static
void
__exit
ahd_linux_exit
(
void
)
static
void
__exit
ahd_linux_exit
(
void
)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
/*
* In 2.4 we have to unregister from the PCI core _after_
* unregistering from the scsi midlayer to avoid dangling
* references.
*/
scsi_unregister_module
(
MODULE_SCSI_HA
,
&
aic79xx_driver_template
);
#endif
ahd_linux_pci_exit
();
...
...
drivers/scsi/aic7xxx/aic79xx_osm.h
View file @
0bab3fa4
...
...
@@ -36,7 +36,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.h#11
7
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.h#11
8
$
*
*/
#ifndef _AIC79XX_LINUX_H_
...
...
drivers/scsi/aic7xxx/aic79xx_osm_pci.c
View file @
0bab3fa4
...
...
@@ -36,7 +36,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c#2
0
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c#2
1
$
*/
#include "aic79xx_osm.h"
...
...
drivers/scsi/aic7xxx/aic7xxx.h
View file @
0bab3fa4
...
...
@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/aic7xxx/aic7xxx.h#7
3
$
* $Id: //depot/aic7xxx/aic7xxx/aic7xxx.h#7
4
$
*
* $FreeBSD$
*/
...
...
drivers/scsi/aic7xxx/aic7xxx_core.c
View file @
0bab3fa4
...
...
@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#12
1
$
* $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#12
3
$
*
* $FreeBSD$
*/
...
...
drivers/scsi/aic7xxx/aic7xxx_osm.c
View file @
0bab3fa4
/*
* Adaptec AIC7xxx device driver for Linux.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#19
2
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#19
4
$
*
* Copyright (c) 1994 John Aycock
* The University of Calgary Department of Computer Science.
...
...
@@ -1864,7 +1864,7 @@ ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template)
}
host
->
unique_id
=
ahc
->
unit
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,4) && \
LINUX_VERSION_CODE
<=
KERNEL_VERSION(2,5,0)
LINUX_VERSION_CODE
<
KERNEL_VERSION(2,5,0)
scsi_set_pci_device
(
host
,
ahc
->
dev_softc
);
#endif
ahc_linux_initialize_scsi_bus
(
ahc
);
...
...
@@ -1900,9 +1900,9 @@ ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template)
* single bit selection (i.e. selecting ourselves).
* It is expected that either an external application
* or a modified kernel will be used to probe this
* ID if it is appropriate. To accom
odate these installations,
*
ahc_linux_alloc_target() will allocate for our ID if
* asked to do so.
* ID if it is appropriate. To accom
modate these
*
installations, ahc_linux_alloc_target() will allocate
*
for our ID if
asked to do so.
*/
if
((
channel
==
0
&&
target
==
ahc
->
our_id
)
||
(
channel
==
1
&&
target
==
ahc
->
our_id_b
))
...
...
@@ -1914,7 +1914,7 @@ ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template)
ahc_linux_start_dv
(
ahc
);
ahc_unlock
(
ahc
,
&
s
);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
scsi_add_host
(
host
,
(
ahc
->
dev_softc
?
&
ahc
->
dev_softc
->
dev
:
NULL
));
#endif
return
(
0
);
...
...
@@ -2096,7 +2096,7 @@ ahc_platform_free(struct ahc_softc *ahc)
tasklet_kill
(
&
ahc
->
platform_data
->
runq_tasklet
);
#endif
if
(
ahc
->
platform_data
->
host
!=
NULL
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
scsi_remove_host
(
ahc
->
platform_data
->
host
);
#endif
scsi_unregister
(
ahc
->
platform_data
->
host
);
...
...
@@ -2135,15 +2135,16 @@ ahc_platform_free(struct ahc_softc *ahc)
0x1000
);
#endif
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
#if LINUX_VERSION_CODE
< KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
&& \
LINUX_VERSION_CODE
< KERNEL_VERSION(2,5,0)
/*
* In 2.4 we detach from the scsi midlayer before the PCI
* layer invokes our remove callback.
* layer invokes our remove callback. No per-instance
* detach is provided, so we must reach inside the PCI
* subsystem's internals and detach our driver manually.
*/
if
(
ahc
->
dev_softc
!=
NULL
)
ahc
->
dev_softc
->
driver
=
NULL
;
#endif
#endif
free
(
ahc
->
platform_data
,
M_DEVBUF
);
}
...
...
@@ -5220,9 +5221,10 @@ ahc_platform_dump_card_state(struct ahc_softc *ahc)
}
}
static
int
__init
ahc_linux_init
(
void
)
static
int
__init
ahc_linux_init
(
void
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
return
(
ahc_linux_detect
(
&
aic7xxx_driver_template
)
?
0
:
-
ENODEV
);
#else
scsi_register_module
(
MODULE_SCSI_HA
,
&
aic7xxx_driver_template
);
...
...
@@ -5236,9 +5238,10 @@ static int __init ahc_linux_init(void)
#endif
}
static
void
__exit
ahc_linux_exit
(
void
)
static
void
__exit
ahc_linux_exit
(
void
)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,5,0)
struct
ahc_softc
*
ahc
;
ahc_linux_pci_exit
();
...
...
@@ -5255,9 +5258,8 @@ static void __exit ahc_linux_exit(void)
/*
* In 2.4 we have to unregister from the PCI core _after_
* unregistering from the scsi midlayer to avoid danling references.
*
* The 2.4 scsi midlayer is so f***ed..
* unregistering from the scsi midlayer to avoid dangling
* references.
*/
ahc_linux_pci_exit
();
#endif
...
...
drivers/scsi/aic7xxx/aic7xxx_osm.h
View file @
0bab3fa4
...
...
@@ -53,7 +53,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h#12
8
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h#12
9
$
*
*/
#ifndef _AIC7XXX_LINUX_H_
...
...
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
View file @
0bab3fa4
...
...
@@ -36,7 +36,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c#4
3
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c#4
4
$
*/
#include "aic7xxx_osm.h"
...
...
drivers/scsi/aic7xxx/aicasm/Makefile
View file @
0bab3fa4
...
...
@@ -46,7 +46,6 @@ aicdb.h:
echo
"*** Install db development libraries"
;
\
fi
clean-files
:=
$(CLEANFILES)
$(PROG)
clean
:
rm
-f
$
(
clean-files
)
...
...
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