Module Name: src
Committed By: phx
Date: Mon Apr 4 18:01:08 UTC 2011
Modified Files:
src/sys/arch/sandpoint/sandpoint: iic_eumb.c
Log Message:
Add more known I2C devices:
dlink: strtc
qnap: s390rtc
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sandpoint/sandpoint/iic_eumb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/sandpoint/iic_eumb.c
diff -u src/sys/arch/sandpoint/sandpoint/iic_eumb.c:1.11 src/sys/arch/sandpoint/sandpoint/iic_eumb.c:1.12
--- src/sys/arch/sandpoint/sandpoint/iic_eumb.c:1.11 Thu Mar 31 02:32:35 2011
+++ src/sys/arch/sandpoint/sandpoint/iic_eumb.c Mon Apr 4 18:01:08 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iic_eumb.c,v 1.11 2011/03/31 02:32:35 nisimura Exp $ */
+/* $NetBSD: iic_eumb.c,v 1.12 2011/04/04 18:01:08 phx Exp $ */
/*-
* Copyright (c) 2010,2011 Frank Wille.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iic_eumb.c,v 1.11 2011/03/31 02:32:35 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iic_eumb.c,v 1.12 2011/04/04 18:01:08 phx Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -59,11 +59,13 @@
};
static struct i2cdev rtcmodel[] = {
+ { "dlink", "strtc", 0x68 },
{ "kurobox", "rs5c372rtc", 0x32 },
+ { "qnap", "s390rtc", 0x30 },
{ "synology", "rs5c372rtc", 0x32 },
};
-void add_i2c_child_devices(device_t, const char *);
+static void add_i2c_child_devices(device_t, const char *);
static int
iic_eumb_match(device_t parent, cfdata_t cf, void *aux)
@@ -100,7 +102,7 @@
motoi2c_attach_common(self, &sc->sc_motoi2c, NULL);
}
-void
+static void
add_i2c_child_devices(device_t self, const char *family)
{
struct i2cdev *rtc;