diff options
author | steve <steve@FreeBSD.org> | 1998-06-13 19:36:22 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-06-13 19:36:22 +0000 |
commit | 84ee66217aaf229f2db221388ca5b4bb44a24eb2 (patch) | |
tree | 1b79608a19b185718dc573983c493920d9f645c3 /sys/dev/si | |
parent | c5ae8ade3e00a9510b830e56a8656f13922b8eb5 (diff) | |
download | FreeBSD-src-84ee66217aaf229f2db221388ca5b4bb44a24eb2.zip FreeBSD-src-84ee66217aaf229f2db221388ca5b4bb44a24eb2.tar.gz |
Add a macro tweak.
PR: 6932
Submitted by: Nick Sayer <nsayer@quack.kfu.com>
Diffstat (limited to 'sys/dev/si')
-rw-r--r-- | sys/dev/si/si.c | 6 | ||||
-rw-r--r-- | sys/dev/si/si.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index 2d5d6a3..96c555b 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.c,v 1.71 1998/06/07 17:10:56 dfr Exp $ + * $Id: si.c,v 1.72 1998/06/10 12:49:54 phk Exp $ */ #ifndef lint @@ -793,7 +793,7 @@ siattach(id) /* OK, now lets download the download code */ - if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) { + if (SI_ISJET(sc->sc_type)) { DPRINT((0, DBG_DOWNLOAD, "si%d: jet_download: nbytes %d\n", id->id_unit, si3_t225_dsize)); si_bcopy(si3_t225_download, maddr + si3_t225_downloadaddr, @@ -889,7 +889,7 @@ siattach(id) sc->sc_type = SIEMPTY; return 0; case 1: - if ((sc->sc_type == SIJETISA) || (sc->sc_type == SIJETPCI)) { + if (SI_ISJET(sc->sc_type)) { /* set throttle to 100 times per second */ regp->int_count = JET_INT_COUNT; /* rx_intr_count is a NOP in Jet */ diff --git a/sys/dev/si/si.h b/sys/dev/si/si.h index cf0aeb7..416486c 100644 --- a/sys/dev/si/si.h +++ b/sys/dev/si/si.h @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $Id: si.h,v 1.11 1998/03/21 06:17:14 peter Exp $ + * $Id: si.h,v 1.12 1998/03/23 16:27:43 peter Exp $ */ #include <sys/callout.h> @@ -95,6 +95,7 @@ #define SIJETPCI 6 #define SIJETISA 7 +#define SI_ISJET(x) (((x) == SIJETPCI) || ((x) == SIJETISA)) /* Buffer parameters */ #define SI_BUFFERSIZE 256 |