Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev add dtv_math.h
details: https://anonhg.NetBSD.org/src/rev/9e040653e87a
branches: trunk
changeset: 768126:9e040653e87a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Aug 09 10:53:09 2011 +0000
description:
add dtv_math.h
diffstat:
sys/dev/dtv/dtv_math.h | 40 ++++++++++++++++++++++++++++++++++++++++
sys/dev/i2c/lg3303.c | 5 +++--
2 files changed, 43 insertions(+), 2 deletions(-)
diffs (70 lines):
diff -r 19683a1bcbc8 -r 9e040653e87a sys/dev/dtv/dtv_math.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/dev/dtv/dtv_math.h Tue Aug 09 10:53:09 2011 +0000
@@ -0,0 +1,40 @@
+/* $NetBSD: dtv_math.h,v 1.1 2011/08/09 10:53:10 jmcneill Exp $ */
+
+/*-
+ * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Jared D. McNeill.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _DEV_DTV_DTV_MATH_H
+#define _DEV_DTV_DTV_MATH_H
+
+uint32_t dtv_intlog10(uint32_t);
+
+#endif /* !_DEV_DTV_DTV_MATH_H */
diff -r 19683a1bcbc8 -r 9e040653e87a sys/dev/i2c/lg3303.c
--- a/sys/dev/i2c/lg3303.c Tue Aug 09 09:12:07 2011 +0000
+++ b/sys/dev/i2c/lg3303.c Tue Aug 09 10:53:09 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lg3303.c,v 1.5 2011/07/15 20:28:38 jmcneill Exp $ */
+/* $NetBSD: lg3303.c,v 1.6 2011/08/09 10:53:09 jmcneill Exp $ */
/*-
* Copyright 2007 Jason Harmening
@@ -28,7 +28,7 @@
*/
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: lg3303.c,v 1.5 2011/07/15 20:28:38 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lg3303.c,v 1.6 2011/08/09 10:53:09 jmcneill Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -38,6 +38,7 @@
#include <dev/i2c/i2cvar.h>
#include <dev/i2c/lg3303var.h>
#include <dev/dtv/dtvif.h>
+#include <dev/dtv/dtv_math.h>
#define REG_TOP_CONTROL 0x00
#define REG_IRQ_MASK 0x01
Home |
Main Index |
Thread Index |
Old Index