Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/samsung exynos mct -- snapshot
details: https://anonhg.NetBSD.org/src/rev/453c66bd1893
branches: trunk
changeset: 342733:453c66bd1893
user: marty <marty%NetBSD.org@localhost>
date: Thu Jan 07 04:45:10 2016 +0000
description:
exynos mct -- snapshot
This code is still a mess, but at least it uses an interrupt-map so I can
use it to test whether interrupt-map handling in fdt_intr_ is working
properly.
Need to get some real documentation and redo this so it works. :(
diffstat:
sys/arch/arm/samsung/mct.c | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diffs (68 lines):
diff -r 35b8b751e1c8 -r 453c66bd1893 sys/arch/arm/samsung/mct.c
--- a/sys/arch/arm/samsung/mct.c Thu Jan 07 04:41:46 2016 +0000
+++ b/sys/arch/arm/samsung/mct.c Thu Jan 07 04:45:10 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mct.c,v 1.9 2016/01/05 21:53:48 marty Exp $ */
+/* $NetBSD: mct.c,v 1.10 2016/01/07 04:45:10 marty Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: mct.c,v 1.9 2016/01/05 21:53:48 marty Exp $");
+__KERNEL_RCSID(1, "$NetBSD: mct.c,v 1.10 2016/01/07 04:45:10 marty Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -54,9 +54,8 @@
static int mct_match(device_t, cfdata_t, void *);
static void mct_attach(device_t, device_t, void *);
-static int mct_intr(void *arg);
-//static int clockhandler(void *);
+static int clockhandler(void *);
CFATTACH_DECL_NEW(exyo_mct, 0, mct_match, mct_attach, NULL, NULL);
@@ -74,7 +73,6 @@
};
#endif
-
static inline uint32_t
mct_read_global(struct mct_softc *sc, bus_size_t o)
{
@@ -174,12 +172,8 @@
device_xname(self), "missing interrupts");
for (int i = 0; i < 12; i++)
- fdtbus_intr_establish(faa->faa_phandle, i, 0, 0, mct_intr, 0);
-}
-
-static int mct_intr(void *arg)
-{
- return 0;
+ fdtbus_intr_establish(faa->faa_phandle, i, 0, 0,
+ clockhandler, 0);
}
static inline uint64_t
@@ -194,7 +188,6 @@
}
-#if 0
/* interrupt handler */
static int
clockhandler(void *arg)
@@ -221,7 +214,6 @@
/* handled */
return 1;
}
-#endif
void
mct_init_cpu_clock(struct cpu_info *ci)
Home |
Main Index |
Thread Index |
Old Index