Commit 14046b59 authored by Justin T. Gibbs's avatar Justin T. Gibbs

Aic7xxx and Aic79xx Driver Updates

 o Fix style nits.
parent c556b56b
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
* *
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#193 $ * $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#194 $
* *
* $FreeBSD$ * $FreeBSD$
*/ */
...@@ -8500,7 +8500,7 @@ ahd_probe_stack_size(struct ahd_softc *ahd) ...@@ -8500,7 +8500,7 @@ ahd_probe_stack_size(struct ahd_softc *ahd)
} }
void void
ahd_dump_all_cards_state() ahd_dump_all_cards_state(void)
{ {
struct ahd_softc *list_ahd; struct ahd_softc *list_ahd;
......
/* /*
* Adaptec AIC79xx device driver for Linux. * Adaptec AIC79xx device driver for Linux.
* *
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#168 $ * $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#169 $
* *
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* Copyright (c) 1994-2000 Justin T. Gibbs. * Copyright (c) 1994-2000 Justin T. Gibbs.
...@@ -2179,7 +2179,7 @@ ahd_linux_register_host(struct ahd_softc *ahd, Scsi_Host_Template *template) ...@@ -2179,7 +2179,7 @@ ahd_linux_register_host(struct ahd_softc *ahd, Scsi_Host_Template *template)
} }
uint64_t uint64_t
ahd_linux_get_memsize() ahd_linux_get_memsize(void)
{ {
struct sysinfo si; struct sysinfo si;
...@@ -2194,7 +2194,7 @@ ahd_linux_get_memsize() ...@@ -2194,7 +2194,7 @@ ahd_linux_get_memsize()
* scenario. * scenario.
*/ */
static int static int
ahd_linux_next_unit() ahd_linux_next_unit(void)
{ {
struct ahd_softc *ahd; struct ahd_softc *ahd;
int unit; int unit;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
* *
* $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#130 $ * $Id: //depot/aic7xxx/aic7xxx/aic7xxx.c#131 $
* *
* $FreeBSD$ * $FreeBSD$
*/ */
...@@ -202,7 +202,7 @@ static void ahc_handle_devreset(struct ahc_softc *ahc, ...@@ -202,7 +202,7 @@ static void ahc_handle_devreset(struct ahc_softc *ahc,
struct ahc_devinfo *devinfo, struct ahc_devinfo *devinfo,
cam_status status, char *message, cam_status status, char *message,
int verbose_level); int verbose_level);
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
static void ahc_setup_target_msgin(struct ahc_softc *ahc, static void ahc_setup_target_msgin(struct ahc_softc *ahc,
struct ahc_devinfo *devinfo, struct ahc_devinfo *devinfo,
struct scb *scb); struct scb *scb);
...@@ -705,7 +705,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) ...@@ -705,7 +705,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
ahc->msgin_index = 0; ahc->msgin_index = 0;
} }
} }
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
else { else {
if (bus_phase == P_MESGOUT) { if (bus_phase == P_MESGOUT) {
ahc->msg_type = ahc->msg_type =
...@@ -3992,7 +3992,7 @@ ahc_free(struct ahc_softc *ahc) ...@@ -3992,7 +3992,7 @@ ahc_free(struct ahc_softc *ahc)
tstate = ahc->enabled_targets[i]; tstate = ahc->enabled_targets[i];
if (tstate != NULL) { if (tstate != NULL) {
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
int j; int j;
for (j = 0; j < AHC_NUM_LUNS; j++) { for (j = 0; j < AHC_NUM_LUNS; j++) {
...@@ -4008,7 +4008,7 @@ ahc_free(struct ahc_softc *ahc) ...@@ -4008,7 +4008,7 @@ ahc_free(struct ahc_softc *ahc)
free(tstate, M_DEVBUF); free(tstate, M_DEVBUF);
} }
} }
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
if (ahc->black_hole != NULL) { if (ahc->black_hole != NULL) {
xpt_free_path(ahc->black_hole->path); xpt_free_path(ahc->black_hole->path);
free(ahc->black_hole, M_DEVBUF); free(ahc->black_hole, M_DEVBUF);
...@@ -5126,7 +5126,7 @@ ahc_suspend(struct ahc_softc *ahc) ...@@ -5126,7 +5126,7 @@ ahc_suspend(struct ahc_softc *ahc)
return (EBUSY); return (EBUSY);
} }
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
/* /*
* XXX What about ATIOs that have not yet been serviced? * XXX What about ATIOs that have not yet been serviced?
* Perhaps we should just refuse to be suspended if we * Perhaps we should just refuse to be suspended if we
...@@ -5227,7 +5227,7 @@ ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, ...@@ -5227,7 +5227,7 @@ ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target,
if (match != 0) if (match != 0)
match = ((lun == slun) || (lun == CAM_LUN_WILDCARD)); match = ((lun == slun) || (lun == CAM_LUN_WILDCARD));
if (match != 0) { if (match != 0) {
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
int group; int group;
group = XPT_FC_GROUP(scb->io_ctx->ccb_h.func_code); group = XPT_FC_GROUP(scb->io_ctx->ccb_h.func_code);
...@@ -5970,7 +5970,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) ...@@ -5970,7 +5970,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset)
* before the reset occurred. * before the reset occurred.
*/ */
ahc_run_qoutfifo(ahc); ahc_run_qoutfifo(ahc);
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
/* /*
* XXX - In Twin mode, the tqinfifo may have commands * XXX - In Twin mode, the tqinfifo may have commands
* for an unaffected channel in it. However, if * for an unaffected channel in it. However, if
...@@ -6002,7 +6002,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) ...@@ -6002,7 +6002,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset)
*/ */
ahc_outb(ahc, SBLKCTL, sblkctl ^ SELBUSB); ahc_outb(ahc, SBLKCTL, sblkctl ^ SELBUSB);
simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST);
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
/* /*
* Bus resets clear ENSELI, so we cannot * Bus resets clear ENSELI, so we cannot
* defer re-enabling bus reset interrupts * defer re-enabling bus reset interrupts
...@@ -6021,7 +6021,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset) ...@@ -6021,7 +6021,7 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset)
} else { } else {
/* Case 2: A command from this bus is active or we're idle */ /* Case 2: A command from this bus is active or we're idle */
simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST); simode1 = ahc_inb(ahc, SIMODE1) & ~(ENBUSFREE|ENSCSIRST);
#if AHC_TARGET_MODE #ifdef AHC_TARGET_MODE
/* /*
* Bus resets clear ENSELI, so we cannot * Bus resets clear ENSELI, so we cannot
* defer re-enabling bus reset interrupts * defer re-enabling bus reset interrupts
......
/* /*
* Adaptec AIC7xxx device driver for Linux. * Adaptec AIC7xxx device driver for Linux.
* *
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#231 $ * $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#232 $
* *
* Copyright (c) 1994 John Aycock * Copyright (c) 1994 John Aycock
* The University of Calgary Department of Computer Science. * The University of Calgary Department of Computer Science.
...@@ -1817,7 +1817,7 @@ ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template) ...@@ -1817,7 +1817,7 @@ ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template)
} }
uint64_t uint64_t
ahc_linux_get_memsize() ahc_linux_get_memsize(void)
{ {
struct sysinfo si; struct sysinfo si;
...@@ -1832,7 +1832,7 @@ ahc_linux_get_memsize() ...@@ -1832,7 +1832,7 @@ ahc_linux_get_memsize()
* scenario. * scenario.
*/ */
static int static int
ahc_linux_next_unit() ahc_linux_next_unit(void)
{ {
struct ahc_softc *ahc; struct ahc_softc *ahc;
int unit; int unit;
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
* *
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h#146 $ * $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h#147 $
* *
*/ */
#ifndef _AIC7XXX_LINUX_H_ #ifndef _AIC7XXX_LINUX_H_
...@@ -778,7 +778,7 @@ ahc_done_unlock(struct ahc_softc *ahc, unsigned long *flags) ...@@ -778,7 +778,7 @@ ahc_done_unlock(struct ahc_softc *ahc, unsigned long *flags)
} }
static __inline void static __inline void
ahc_list_lockinit() ahc_list_lockinit(void)
{ {
spin_lock_init(&ahc_list_spinlock); spin_lock_init(&ahc_list_spinlock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment