Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Replace a magic number with proper macro.



details:   https://anonhg.NetBSD.org/src/rev/35a184a600fa
branches:  trunk
changeset: 584166:35a184a600fa
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 10 17:19:55 2005 +0000

description:
Replace a magic number with proper macro.

diffstat:

 sys/dev/ic/aic7xxx_osm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 79d2b635cc36 -r 35a184a600fa sys/dev/ic/aic7xxx_osm.c
--- a/sys/dev/ic/aic7xxx_osm.c  Sat Sep 10 15:48:10 2005 +0000
+++ b/sys/dev/ic/aic7xxx_osm.c  Sat Sep 10 17:19:55 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx_osm.c,v 1.17 2005/05/30 04:43:46 christos Exp $        */
+/*     $NetBSD: aic7xxx_osm.c,v 1.18 2005/09/10 17:19:55 tsutsui Exp $ */
 
 /*
  * Bus independent FreeBSD shim for the aic7xxx based adaptec SCSI controllers
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic7xxx_osm.c,v 1.17 2005/05/30 04:43:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic7xxx_osm.c,v 1.18 2005/09/10 17:19:55 tsutsui Exp $");
 
 #include <dev/ic/aic7xxx_osm.h>
 #include <dev/ic/aic7xxx_inline.h>
@@ -485,7 +485,7 @@
 
                        sg->addr = ahc_htole32(dm_segs->ds_addr);
                        len = dm_segs->ds_len
-                           | ((dm_segs->ds_addr >> 8) & 0x7F000000);
+                           | ((dm_segs->ds_addr >> 8) & AHC_SG_HIGH_ADDR_MASK);
                        sg->len = ahc_htole32(len);
                        sg++;
                        dm_segs++;



Home | Main Index | Thread Index | Old Index