summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/aic79xx.c8
-rw-r--r--sys/dev/ic/aic7xxx.c17
2 files changed, 4 insertions, 21 deletions
diff --git a/sys/dev/ic/aic79xx.c b/sys/dev/ic/aic79xx.c
index c68a4b01bb8..a36164e7b76 100644
--- a/sys/dev/ic/aic79xx.c
+++ b/sys/dev/ic/aic79xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.c,v 1.40 2007/09/07 17:58:39 krw Exp $ */
+/* $OpenBSD: aic79xx.c,v 1.41 2007/10/20 22:44:00 fgsch Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -1617,7 +1617,6 @@ ahd_handle_scsiint(struct ahd_softc *ahd, u_int intstat)
if ((ahd->bugs & AHD_CLRLQO_AUTOCLR_BUG) != 0)
ahd_outb(ahd, CLRLQOINT1, 0);
} else if ((status & SELTO) != 0) {
- u_int scbid;
/* Stop the selection */
ahd_outb(ahd, SCSISEQ0, 0);
@@ -1727,10 +1726,6 @@ ahd_handle_scsiint(struct ahd_softc *ahd, u_int intstat)
switch (busfreetime) {
case BUSFREE_DFF0:
case BUSFREE_DFF1:
- {
- u_int scbid;
- struct scb *scb;
-
mode = busfreetime == BUSFREE_DFF0
? AHD_MODE_DFF0 : AHD_MODE_DFF1;
ahd_set_modes(ahd, mode, mode);
@@ -1745,7 +1740,6 @@ ahd_handle_scsiint(struct ahd_softc *ahd, u_int intstat)
packetized = (scb->flags & SCB_PACKETIZED) != 0;
clear_fifo = 1;
break;
- }
case BUSFREE_LQO:
clear_fifo = 0;
packetized = 1;
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c
index 3d47791d3c4..a6390248bd5 100644
--- a/sys/dev/ic/aic7xxx.c
+++ b/sys/dev/ic/aic7xxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxx.c,v 1.77 2007/09/07 17:58:39 krw Exp $ */
+/* $OpenBSD: aic7xxx.c,v 1.78 2007/10/20 22:44:00 fgsch Exp $ */
/* $NetBSD: aic7xxx.c,v 1.108 2003/11/02 11:07:44 wiz Exp $ */
/*
@@ -40,7 +40,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aic7xxx.c,v 1.77 2007/09/07 17:58:39 krw Exp $
+ * $Id: aic7xxx.c,v 1.78 2007/10/20 22:44:00 fgsch Exp $
*/
/*
* Ported from FreeBSD by Pascal Renauld, Network Storage Solutions, Inc. - April 2003
@@ -463,6 +463,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
{
struct scb *scb;
struct ahc_devinfo devinfo;
+ u_int scb_index;
ahc_fetch_devinfo(ahc, &devinfo);
@@ -476,7 +477,6 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
switch (intstat & SEQINT_MASK) {
case BAD_STATUS:
{
- u_int scb_index;
struct hardware_scb *hscb;
/*
@@ -744,8 +744,6 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
* loop.
*/
if (ahc->msg_type == MSG_TYPE_NONE) {
- struct scb *scb;
- u_int scb_index;
u_int bus_phase;
bus_phase = ahc_inb(ahc, SCSISIGI) & PHASE_MASK;
@@ -848,9 +846,6 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
ahc_outb(ahc, SXFRCTL1,
ahc_inb(ahc, SXFRCTL1) & ~BITBUCKET);
if (wait == 0) {
- struct scb *scb;
- u_int scb_index;
-
ahc_print_devinfo(ahc, &devinfo);
printf("Unable to clear parity error. "
"Resetting bus.\n");
@@ -4070,8 +4065,6 @@ ahc_reset(struct ahc_softc *ahc, int reinit)
ahc_pause(ahc);
sxfrctl1_b = 0;
if ((ahc->chip & AHC_CHIPID_MASK) == AHC_AIC7770) {
- u_int sblkctl;
-
/*
* Save channel B's settings in case this chip
* is setup for TWIN channel operation.
@@ -4133,8 +4126,6 @@ ahc_reset(struct ahc_softc *ahc, int reinit)
* by turning it on.
*/
if ((ahc->features & AHC_TWIN) != 0) {
- u_int sblkctl;
-
sblkctl = ahc_inb(ahc, SBLKCTL);
ahc_outb(ahc, SBLKCTL, sblkctl | SELBUSB);
ahc_outb(ahc, SXFRCTL1, sxfrctl1_b);
@@ -5936,8 +5927,6 @@ ahc_reset_channel(struct ahc_softc *ahc, char channel, int initiate_reset)
if (ahc->enabled_targets[target] == NULL)
continue;
for (initiator = 0; initiator <= max_scsiid; initiator++) {
- struct ahc_devinfo devinfo;
-
ahc_compile_devinfo(&devinfo, target, initiator,
CAM_LUN_WILDCARD,
channel, ROLE_UNKNOWN);