Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sdmmc Replace integer constant SDMMC_MAXNSEGS with t...



details:   https://anonhg.NetBSD.org/src/rev/d91366820277
branches:  trunk
changeset: 780117:d91366820277
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Jul 12 15:59:32 2012 +0000

description:
Replace integer constant SDMMC_MAXNSEGS with the formula said value was
calculated from.

diffstat:

 sys/dev/sdmmc/sdmmcvar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a2de5532adcc -r d91366820277 sys/dev/sdmmc/sdmmcvar.h
--- a/sys/dev/sdmmc/sdmmcvar.h  Thu Jul 12 14:17:03 2012 +0000
+++ b/sys/dev/sdmmc/sdmmcvar.h  Thu Jul 12 15:59:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdmmcvar.h,v 1.13 2012/07/11 18:21:27 jakllsch Exp $   */
+/*     $NetBSD: sdmmcvar.h,v 1.14 2012/07/12 15:59:32 jakllsch Exp $   */
 /*     $OpenBSD: sdmmcvar.h,v 1.13 2009/01/09 10:55:22 jsg Exp $       */
 
 /*
@@ -201,7 +201,7 @@
        sdmmc_chipset_handle_t sc_sch;  /* host controller chipset handle */
        bus_dma_tag_t sc_dmat;
        bus_dmamap_t sc_dmap;
-#define        SDMMC_MAXNSEGS          17      /* (MAXPHYS / PAGE_SIZE) + 1 */
+#define        SDMMC_MAXNSEGS          ((MAXPHYS / PAGE_SIZE) + 1)
 
        struct kmutex sc_mtx;           /* lock around host controller */
        int sc_dying;                   /* bus driver is shutting down */



Home | Main Index | Thread Index | Old Index