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
59b52f22
Commit
59b52f22
authored
Apr 24, 2003
by
Justin T. Gibbs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aic7xxx_osm.h, aic7xxx_osm.c, aic79xx_osm.h, aic79xx_osm.c:
Remove pre-2.2.X kernel support.
parent
955cf944
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
150 deletions
+4
-150
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic79xx_osm.c
+1
-3
drivers/scsi/aic7xxx/aic79xx_osm.h
drivers/scsi/aic7xxx/aic79xx_osm.h
+1
-71
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c
+1
-3
drivers/scsi/aic7xxx/aic7xxx_osm.h
drivers/scsi/aic7xxx/aic7xxx_osm.h
+1
-73
No files found.
drivers/scsi/aic7xxx/aic79xx_osm.c
View file @
59b52f22
/*
* Adaptec AIC79xx device driver for Linux.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#15
5
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#15
6
$
*
* --------------------------------------------------------------------------
* Copyright (c) 1994-2000 Justin T. Gibbs.
...
...
@@ -67,12 +67,10 @@
#include <linux/unistd.h>
static
int
errno
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
/*
* Lock protecting manipulation of the ahd softc list.
*/
spinlock_t
ahd_list_spinlock
;
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
struct
proc_dir_entry
proc_scsi_aic79xx
=
{
...
...
drivers/scsi/aic7xxx/aic79xx_osm.h
View file @
59b52f22
...
...
@@ -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#12
6
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.h#12
8
$
*
*/
#ifndef _AIC79XX_LINUX_H_
...
...
@@ -543,9 +543,7 @@ struct ahd_platform_data {
TAILQ_HEAD
(,
ahd_linux_device
)
device_runq
;
struct
ahd_completeq
completeq
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,93)
spinlock_t
spin_lock
;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
struct
tasklet_struct
runq_tasklet
;
#endif
...
...
@@ -741,7 +739,6 @@ static __inline void ahd_list_lockinit(void);
static
__inline
void
ahd_list_lock
(
unsigned
long
*
flags
);
static
__inline
void
ahd_list_unlock
(
unsigned
long
*
flags
);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,93)
static
__inline
void
ahd_lockinit
(
struct
ahd_softc
*
ahd
)
{
...
...
@@ -829,63 +826,6 @@ ahd_list_unlock(unsigned long *flags)
spin_unlock_irqrestore
(
&
ahd_list_spinlock
,
*
flags
);
}
#else
/* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) */
ahd_lockinit
(
struct
ahd_softc
*
ahd
)
{
}
static
__inline
void
ahd_lock
(
struct
ahd_softc
*
ahd
,
unsigned
long
*
flags
)
{
save_flags
(
*
flags
);
cli
();
}
static
__inline
void
ahd_unlock
(
struct
ahd_softc
*
ahd
,
unsigned
long
*
flags
)
{
restore_flags
(
*
flags
);
}
ahd_done_lockinit
(
struct
ahd_softc
*
ahd
)
{
}
static
__inline
void
ahd_done_lock
(
struct
ahd_softc
*
ahd
,
unsigned
long
*
flags
)
{
/*
* The done lock is always held while
* the ahd lock is held so blocking
* interrupts again would have no effect.
*/
}
static
__inline
void
ahd_done_unlock
(
struct
ahd_softc
*
ahd
,
unsigned
long
*
flags
)
{
}
static
__inline
void
ahd_list_lockinit
()
{
}
static
__inline
void
ahd_list_lock
(
unsigned
long
*
flags
)
{
save_flags
(
*
flags
);
cli
();
}
static
__inline
void
ahd_list_unlock
(
unsigned
long
*
flags
)
{
restore_flags
(
*
flags
);
}
#endif
/* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) */
/******************************* PCI Definitions ******************************/
/*
* PCIM_xxx: mask to locate subfield in register
...
...
@@ -956,16 +896,6 @@ void ahd_power_state_change(struct ahd_softc *ahd,
ahd_power_state
new_state
);
/******************************* PCI Routines *********************************/
/*
* We need to use the bios32.h routines if we are kernel version 2.1.92 or less.
*/
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,1,92)
#if defined(__sparc_v9__) || defined(__powerpc__)
#error "PPC and Sparc platforms are only supported under 2.1.92 and above"
#endif
#include <linux/bios32.h>
#endif
int
ahd_linux_pci_init
(
void
);
void
ahd_linux_pci_exit
(
void
);
int
ahd_pci_map_registers
(
struct
ahd_softc
*
ahd
);
...
...
drivers/scsi/aic7xxx/aic7xxx_osm.c
View file @
59b52f22
/*
* Adaptec AIC7xxx device driver for Linux.
*
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#21
6
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#21
7
$
*
* Copyright (c) 1994 John Aycock
* The University of Calgary Department of Computer Science.
...
...
@@ -146,12 +146,10 @@
#include <linux/unistd.h>
static
int
errno
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
/*
* Lock protecting manipulation of the ahc softc list.
*/
spinlock_t
ahc_list_spinlock
;
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
/* For dynamic sglist size calculation. */
...
...
drivers/scsi/aic7xxx/aic7xxx_osm.h
View file @
59b52f22
...
...
@@ -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#13
5
$
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h#13
8
$
*
*/
#ifndef _AIC7XXX_LINUX_H_
...
...
@@ -549,9 +549,7 @@ struct ahc_platform_data {
TAILQ_HEAD
(,
ahc_linux_device
)
device_runq
;
struct
ahc_completeq
completeq
;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,93)
spinlock_t
spin_lock
;
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
struct
tasklet_struct
runq_tasklet
;
#endif
...
...
@@ -710,7 +708,6 @@ static __inline void ahc_list_lockinit(void);
static
__inline
void
ahc_list_lock
(
unsigned
long
*
flags
);
static
__inline
void
ahc_list_unlock
(
unsigned
long
*
flags
);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,93)
static
__inline
void
ahc_lockinit
(
struct
ahc_softc
*
ahc
)
{
...
...
@@ -796,65 +793,6 @@ ahc_list_unlock(unsigned long *flags)
spin_unlock_irqrestore
(
&
ahc_list_spinlock
,
*
flags
);
}
#else
/* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,93) */
static
__inline
void
ahc_lockinit
(
struct
ahc_softc
*
ahc
)
{
}
static
__inline
void
ahc_lock
(
struct
ahc_softc
*
ahc
,
unsigned
long
*
flags
)
{
save_flags
(
*
flags
);
cli
();
}
static
__inline
void
ahc_unlock
(
struct
ahc_softc
*
ahc
,
unsigned
long
*
flags
)
{
restore_flags
(
*
flags
);
}
static
__inline
void
ahc_done_lockinit
(
struct
ahc_softc
*
ahc
)
{
}
static
__inline
void
ahc_done_lock
(
struct
ahc_softc
*
ahc
,
unsigned
long
*
flags
)
{
/*
* The done lock is always held while
* the ahc lock is held so blocking
* interrupts again would have no effect.
*/
}
static
__inline
void
ahc_done_unlock
(
struct
ahc_softc
*
ahc
,
unsigned
long
*
flags
)
{
}
static
__inline
void
ahc_list_lockinit
()
{
}
static
__inline
void
ahc_list_lock
(
unsigned
long
*
flags
)
{
save_flags
(
*
flags
);
cli
();
}
static
__inline
void
ahc_list_unlock
(
unsigned
long
*
flags
)
{
restore_flags
(
*
flags
);
}
#endif
/* LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) */
/******************************* PCI Definitions ******************************/
/*
* PCIM_xxx: mask to locate subfield in register
...
...
@@ -913,16 +851,6 @@ int aic7770_map_registers(struct ahc_softc *ahc,
int
aic7770_map_int
(
struct
ahc_softc
*
ahc
,
u_int
irq
);
/******************************* PCI Routines *********************************/
/*
* We need to use the bios32.h routines if we are kernel version 2.1.92 or less.
*/
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,1,92)
#if defined(__sparc_v9__) || defined(__powerpc__)
#error "PPC and Sparc platforms are only supported under 2.1.92 and above"
#endif
#include <linux/bios32.h>
#endif
int
ahc_linux_pci_init
(
void
);
void
ahc_linux_pci_exit
(
void
);
int
ahc_pci_map_registers
(
struct
ahc_softc
*
ahc
);
...
...
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