diff options
| author | jakllsch <jakllsch@NetBSD.org> | 2012-07-12 15:59:32 +0000 |
|---|---|---|
| committer | jakllsch <jakllsch@NetBSD.org> | 2012-07-12 15:59:32 +0000 |
| commit | ca39e196a42e1b61ce76ebeb3bbd0d03d0482e4e (patch) | |
| tree | 379a619bab5c7cf5c337483fc8e8031ce90fcf33 /sys/dev | |
| parent | 641dd5ac2dda995948739254a9c272f8d94c95b5 (diff) | |
Replace integer constant SDMMC_MAXNSEGS with the formula said value was
calculated from.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/sdmmc/sdmmcvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmcvar.h b/sys/dev/sdmmc/sdmmcvar.h index bf84cc9f438..984f05b3af1 100644 --- a/sys/dev/sdmmc/sdmmcvar.h +++ b/sys/dev/sdmmc/sdmmcvar.h @@ -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 @@ struct sdmmc_softc { 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 */ |
