diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-23 17:53:47 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-23 17:53:47 +0000 |
commit | e49e49d693b00414350ac23286319d5bfc40ac1e (patch) | |
tree | 5bbb3d3bb62f6739650c5716d00fb6b11300b1d2 /sys/dev | |
parent | 94f38ed381bb95e337c11b8bf8a6a58b81f5dd70 (diff) |
Don't use a magic constant
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/hifn7751.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/hifn7751reg.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c index e60d5f95654..8e3918cdb7f 100644 --- a/sys/dev/pci/hifn7751.c +++ b/sys/dev/pci/hifn7751.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751.c,v 1.127 2002/07/23 17:50:33 jason Exp $ */ +/* $OpenBSD: hifn7751.c,v 1.128 2002/07/23 17:53:46 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -200,7 +200,7 @@ hifn_attach(parent, self, aux) u_int32_t revid; revid = READ_REG_1(sc, HIFN_1_REVID); - if (revid == 0x2) + if (revid == HIFN_REVID_7811_PB3_2) sc->sc_flags |= HIFN_NO_BURSTWRITE; } diff --git a/sys/dev/pci/hifn7751reg.h b/sys/dev/pci/hifn7751reg.h index cc515372a73..922ff036229 100644 --- a/sys/dev/pci/hifn7751reg.h +++ b/sys/dev/pci/hifn7751reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hifn7751reg.h,v 1.36 2002/07/21 19:08:26 jason Exp $ */ +/* $OpenBSD: hifn7751reg.h,v 1.37 2002/07/23 17:53:46 jason Exp $ */ /* * Invertex AEON / Hifn 7751 driver @@ -308,6 +308,9 @@ typedef struct hifn_desc { #define HIFN_MIPSRST_MIPSRST 0x00000002 /* warm reset MIPS */ #define HIFN_MIPSRST_MIPSCOLD 0x00000001 /* cold reset MIPS */ +/* Revision ID */ +#define HIFN_REVID_7811_PB3_2 0x00000002 /* 7811PB3/2 */ + /* Public key reset register (HIFN_1_PUB_RESET) */ #define HIFN_PUBRST_RESET 0x00000001 /* reset public/rng unit */ |