Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ti Remove duplicate DEVMAP_* macros
details: https://anonhg.NetBSD.org/src/rev/5eafb101e7aa
branches: trunk
changeset: 358265:5eafb101e7aa
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Dec 19 09:15:23 2017 +0000
description:
Remove duplicate DEVMAP_* macros
diffstat:
sys/arch/arm/ti/ti_platform.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (34 lines):
diff -r ebe7dab23a4d -r 5eafb101e7aa sys/arch/arm/ti/ti_platform.c
--- a/sys/arch/arm/ti/ti_platform.c Tue Dec 19 09:09:28 2017 +0000
+++ b/sys/arch/arm/ti/ti_platform.c Tue Dec 19 09:15:23 2017 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: ti_platform.c,v 1.1 2017/10/26 01:16:32 jakllsch Exp $ */
+/* $NetBSD: ti_platform.c,v 1.2 2017/12/19 09:15:23 skrll Exp $ */
#include "opt_fdt_arm.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ti_platform.c,v 1.1 2017/10/26 01:16:32 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_platform.c,v 1.2 2017/12/19 09:15:23 skrll Exp $");
#include <sys/param.h>
@@ -14,18 +14,6 @@
#include <dev/ic/comreg.h>
-#define DEVMAP_ALIGN(a) ((a) & ~L1_S_OFFSET)
-#define DEVMAP_SIZE(s) roundup2((s), L1_S_SIZE)
-#define DEVMAP_ENTRY(va, pa, sz) \
- { \
- .pd_va = DEVMAP_ALIGN(va), \
- .pd_pa = DEVMAP_ALIGN(pa), \
- .pd_size = DEVMAP_SIZE(sz), \
- .pd_prot = VM_PROT_READ|VM_PROT_WRITE, \
- .pd_cache = PTE_NOCACHE \
- }
-#define DEVMAP_ENTRY_END { 0 }
-
extern struct bus_space armv7_generic_bs_tag;
extern struct bus_space armv7_generic_a4x_bs_tag;
extern struct arm32_bus_dma_tag armv7_generic_dma_tag;
Home |
Main Index |
Thread Index |
Old Index