Module Name: src
Committed By: jmcneill
Date: Sat Mar 7 14:16:51 UTC 2015
Modified Files:
src/distrib/sets/lists/modules: md.amd64 md.evbppc.powerpc md.i386 mi
src/sys/dev/i2c: au8522.c cx24227.c dbcool.c hytp14.c i2c_exec.c
lg3303.c mt2131.c nxt2k.c sdtemp.c spdmem_i2c.c tvpll.c xc3028.c
xc5k.c zl10353.c
src/sys/modules: Makefile
Added Files:
src/sys/modules/i2cexec: Makefile
Log Message:
i2c devices don't actually have a dependency on "iic" (the bus driver)
but on "i2cexec". Create an i2cexec module (i2c_exec.c) to mirror the
dependencies in files.i2c and switch device drivers to depend on "i2cexec"
module instead.
A kernel with a USB stack and no I2C controller / bus attachment would spit
out a bunch of "WARNING: module error: can't find builtin dependency `iic'"
messages at boot. This change solves that problem.
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/distrib/sets/lists/modules/md.amd64
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/modules/md.evbppc.powerpc
cvs rdiff -u -r1.54 -r1.55 src/distrib/sets/lists/modules/md.i386
cvs rdiff -u -r1.70 -r1.71 src/distrib/sets/lists/modules/mi
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/au8522.c src/sys/dev/i2c/cx24227.c \
src/sys/dev/i2c/xc3028.c
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/i2c_exec.c \
src/sys/dev/i2c/spdmem_i2c.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/lg3303.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/mt2131.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/nxt2k.c src/sys/dev/i2c/zl10353.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/sdtemp.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/tvpll.c src/sys/dev/i2c/xc5k.c
cvs rdiff -u -r1.142 -r1.143 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/i2cexec/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/modules/md.amd64
diff -u src/distrib/sets/lists/modules/md.amd64:1.50 src/distrib/sets/lists/modules/md.amd64:1.51
--- src/distrib/sets/lists/modules/md.amd64:1.50 Thu Dec 11 22:14:13 2014
+++ src/distrib/sets/lists/modules/md.amd64 Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.50 2014/12/11 22:14:13 riastradh Exp $
+# $NetBSD: md.amd64,v 1.51 2015/03/07 14:16:51 jmcneill Exp $
#
# NOTE that there are two sets of files here:
# @MODULEDIR@ and amd64-xen
@@ -340,6 +340,8 @@
./stand/amd64-xen/@OSRELEASE@/modules/i915drm/i915drm.kmod base-kernel-modules kmod,compatmodules
./stand/amd64-xen/@OSRELEASE@/modules/i915drmkms base-kernel-modules kmod,compatmodules
./stand/amd64-xen/@OSRELEASE@/modules/i915drmkms/i915drmkms.kmod base-kernel-modules kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/i2cexec base-kernel-modules kmod,compatmodules
+./stand/amd64-xen/@OSRELEASE@/modules/i2cexec/i2cexec.kmod base-kernel-modules kmod,compatmodules
./stand/amd64-xen/@OSRELEASE@/modules/if_axe base-kernel-modules kmod,compatmodules
./stand/amd64-xen/@OSRELEASE@/modules/if_axe/if_axe.kmod base-kernel-modules kmod,compatmodules
./stand/amd64-xen/@OSRELEASE@/modules/if_axen base-kernel-modules kmod,compatmodules
Index: src/distrib/sets/lists/modules/md.evbppc.powerpc
diff -u src/distrib/sets/lists/modules/md.evbppc.powerpc:1.4 src/distrib/sets/lists/modules/md.evbppc.powerpc:1.5
--- src/distrib/sets/lists/modules/md.evbppc.powerpc:1.4 Thu Sep 18 19:45:24 2014
+++ src/distrib/sets/lists/modules/md.evbppc.powerpc Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: md.evbppc.powerpc,v 1.4 2014/09/18 19:45:24 wiz Exp $
+# $NetBSD: md.evbppc.powerpc,v 1.5 2015/03/07 14:16:51 jmcneill Exp $
./stand/powerpc-4xx base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@ base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules base-kernel-modules kmod,compatmodules
@@ -96,6 +96,8 @@
./stand/powerpc-4xx/@OSRELEASE@/modules/hfs/hfs.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules/hythygtemp base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules/hythygtemp/hythygtemp.kmod base-kernel-modules kmod,compatmodules
+./stand/powerpc-4xx/@OSRELEASE@/modules/i2cexec base-kernel-modules kmod,compatmodules
+./stand/powerpc-4xx/@OSRELEASE@/modules/i2cexec/i2cexec.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules/if_axe base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules/if_axe/if_axe.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-4xx/@OSRELEASE@/modules/if_axen base-kernel-modules kmod,compatmodules
@@ -335,6 +337,8 @@
./stand/powerpc-booke/@OSRELEASE@/modules/hfs/hfs.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-booke/@OSRELEASE@/modules/hythygtemp base-kernel-modules kmod,compatmodules
./stand/powerpc-booke/@OSRELEASE@/modules/hythygtemp/hythygtemp.kmod base-kernel-modules kmod,compatmodules
+./stand/powerpc-booke/@OSRELEASE@/modules/i2cexec base-kernel-modules kmod,compatmodules
+./stand/powerpc-booke/@OSRELEASE@/modules/i2cexec/i2cexec.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-booke/@OSRELEASE@/modules/if_axe base-kernel-modules kmod,compatmodules
./stand/powerpc-booke/@OSRELEASE@/modules/if_axe/if_axe.kmod base-kernel-modules kmod,compatmodules
./stand/powerpc-booke/@OSRELEASE@/modules/if_axen base-kernel-modules kmod,compatmodules
Index: src/distrib/sets/lists/modules/md.i386
diff -u src/distrib/sets/lists/modules/md.i386:1.54 src/distrib/sets/lists/modules/md.i386:1.55
--- src/distrib/sets/lists/modules/md.i386:1.54 Sat Feb 21 07:47:41 2015
+++ src/distrib/sets/lists/modules/md.i386 Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.54 2015/02/21 07:47:41 ozaki-r Exp $
+# $NetBSD: md.i386,v 1.55 2015/03/07 14:16:51 jmcneill Exp $
#
# NOTE that there are three sets of files here:
# @MODULEDIR@, i386-xen, and i386pae-xen
@@ -364,6 +364,8 @@
./stand/i386-xen/@OSRELEASE@/modules/hpqlb/hpqlb.kmod base-kernel-modules kmod,compatmodules
./stand/i386-xen/@OSRELEASE@/modules/hythygtemp base-kernel-modules kmod,compatmodules
./stand/i386-xen/@OSRELEASE@/modules/hythygtemp/hythygtemp.kmod base-kernel-modules kmod,compatmodules
+./stand/i386-xen/@OSRELEASE@/modules/i2cexec base-kernel-modules kmod,compatmodules
+./stand/i386-xen/@OSRELEASE@/modules/i2cexec/i2cexec.kmod base-kernel-modules kmod,compatmodules
./stand/i386-xen/@OSRELEASE@/modules/i915drm base-kernel-modules kmod,compatmodules
./stand/i386-xen/@OSRELEASE@/modules/i915drm/i915drm.kmod base-kernel-modules kmod,compatmodules
./stand/i386-xen/@OSRELEASE@/modules/i915drmkms base-kernel-modules kmod,compatmodules
@@ -763,6 +765,8 @@
./stand/i386pae-xen/@OSRELEASE@/modules/hpqlb/hpqlb.kmod base-kernel-modules kmod,compatmodules
./stand/i386pae-xen/@OSRELEASE@/modules/hythygtemp base-kernel-modules kmod,compatmodules
./stand/i386pae-xen/@OSRELEASE@/modules/hythygtemp/hythygtemp.kmod base-kernel-modules kmod,compatmodules
+./stand/i386pae-xen/@OSRELEASE@/modules/i2cexec base-kernel-modules kmod,compatmodules
+./stand/i386pae-xen/@OSRELEASE@/modules/i2cexec/i2cexec.kmod base-kernel-modules kmod,compatmodules
./stand/i386pae-xen/@OSRELEASE@/modules/i915drm base-kernel-modules kmod,compatmodules
./stand/i386pae-xen/@OSRELEASE@/modules/i915drm/i915drm.kmod base-kernel-modules kmod,compatmodules
./stand/i386pae-xen/@OSRELEASE@/modules/i915drmkms base-kernel-modules kmod,compatmodules
Index: src/distrib/sets/lists/modules/mi
diff -u src/distrib/sets/lists/modules/mi:1.70 src/distrib/sets/lists/modules/mi:1.71
--- src/distrib/sets/lists/modules/mi:1.70 Thu Sep 18 19:45:24 2014
+++ src/distrib/sets/lists/modules/mi Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.70 2014/09/18 19:45:24 wiz Exp $
+# $NetBSD: mi,v 1.71 2015/03/07 14:16:51 jmcneill Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -100,6 +100,8 @@
./@MODULEDIR@/hfs/hfs.kmod base-kernel-modules kmod
./@MODULEDIR@/hythygtemp base-kernel-modules kmod
./@MODULEDIR@/hythygtemp/hythygtemp.kmod base-kernel-modules kmod
+./@MODULEDIR@/i2cexec base-kernel-modules kmod
+./@MODULEDIR@/i2cexec/i2cexec.kmod base-kernel-modules kmod
./@MODULEDIR@/if_axe base-kernel-modules kmod
./@MODULEDIR@/if_axe/if_axe.kmod base-kernel-modules kmod
./@MODULEDIR@/if_axen base-kernel-modules kmod
Index: src/sys/dev/i2c/au8522.c
diff -u src/sys/dev/i2c/au8522.c:1.6 src/sys/dev/i2c/au8522.c:1.7
--- src/sys/dev/i2c/au8522.c:1.6 Sun Oct 2 19:03:56 2011
+++ src/sys/dev/i2c/au8522.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: au8522.c,v 1.6 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: au8522.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <[email protected]>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: au8522.c,v 1.6 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: au8522.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -419,7 +419,7 @@ au8522_get_snr(struct au8522 *au)
return 0;
}
-MODULE(MODULE_CLASS_DRIVER, au8522, "iic");
+MODULE(MODULE_CLASS_DRIVER, au8522, "i2cexec");
static int
au8522_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/dev/i2c/cx24227.c
diff -u src/sys/dev/i2c/cx24227.c:1.6 src/sys/dev/i2c/cx24227.c:1.7
--- src/sys/dev/i2c/cx24227.c:1.6 Thu Mar 15 16:20:36 2012
+++ src/sys/dev/i2c/cx24227.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: cx24227.c,v 1.6 2012/03/15 16:20:36 bouyer Exp $ */
+/* $NetBSD: cx24227.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cx24227.c,v 1.6 2012/03/15 16:20:36 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cx24227.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -328,7 +328,7 @@ cx24227_init(struct cx24227 *sc)
return 0;
}
-MODULE(MODULE_CLASS_DRIVER, cx24227, "iic");
+MODULE(MODULE_CLASS_DRIVER, cx24227, "i2cexec");
static int
cx24227_modcmd(modcmd_t cmd, void *priv)
Index: src/sys/dev/i2c/xc3028.c
diff -u src/sys/dev/i2c/xc3028.c:1.6 src/sys/dev/i2c/xc3028.c:1.7
--- src/sys/dev/i2c/xc3028.c:1.6 Wed Jan 7 07:05:48 2015
+++ src/sys/dev/i2c/xc3028.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: xc3028.c,v 1.6 2015/01/07 07:05:48 ozaki-r Exp $ */
+/* $NetBSD: xc3028.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xc3028.c,v 1.6 2015/01/07 07:05:48 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xc3028.c,v 1.7 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -564,7 +564,7 @@ xc3028_tune_dtv(struct xc3028 *xc, const
return 0;
}
-MODULE(MODULE_CLASS_DRIVER, xc3028, "iic");
+MODULE(MODULE_CLASS_DRIVER, xc3028, "i2cexec");
static int
xc3028_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/dev/i2c/dbcool.c
diff -u src/sys/dev/i2c/dbcool.c:1.41 src/sys/dev/i2c/dbcool.c:1.42
--- src/sys/dev/i2c/dbcool.c:1.41 Sun Aug 10 16:44:35 2014
+++ src/sys/dev/i2c/dbcool.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: dbcool.c,v 1.41 2014/08/10 16:44:35 tls Exp $ */
+/* $NetBSD: dbcool.c,v 1.42 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.41 2014/08/10 16:44:35 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.42 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2161,7 +2161,7 @@ dbcool_set_fan_limits(struct dbcool_soft
}
}
-MODULE(MODULE_CLASS_DRIVER, dbcool, "iic");
+MODULE(MODULE_CLASS_DRIVER, dbcool, "i2cexec");
#ifdef _MODULE
#include "ioconf.c"
Index: src/sys/dev/i2c/hytp14.c
diff -u src/sys/dev/i2c/hytp14.c:1.2 src/sys/dev/i2c/hytp14.c:1.3
--- src/sys/dev/i2c/hytp14.c:1.2 Sun Jun 29 09:52:43 2014
+++ src/sys/dev/i2c/hytp14.c Sat Mar 7 14:16:51 2015
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hytp14.c,v 1.2 2014/06/29 09:52:43 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hytp14.c,v 1.3 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -283,7 +283,7 @@ hytp14_refresh(struct sysmon_envsys *sme
}
-MODULE(MODULE_CLASS_DRIVER, hythygtemp, "iic");
+MODULE(MODULE_CLASS_DRIVER, hythygtemp, "i2cexec");
#ifdef _MODULE
#include "ioconf.c"
Index: src/sys/dev/i2c/i2c_exec.c
diff -u src/sys/dev/i2c/i2c_exec.c:1.9 src/sys/dev/i2c/i2c_exec.c:1.10
--- src/sys/dev/i2c/i2c_exec.c:1.9 Thu Sep 12 20:30:58 2013
+++ src/sys/dev/i2c/i2c_exec.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c_exec.c,v 1.9 2013/09/12 20:30:58 martin Exp $ */
+/* $NetBSD: i2c_exec.c,v 1.10 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,11 +36,12 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v 1.9 2013/09/12 20:30:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v 1.10 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
+#include <sys/module.h>
#include <sys/event.h>
#include <sys/conf.h>
@@ -50,6 +51,8 @@ __KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v
static uint8_t iic_smbus_crc8(uint16_t);
static uint8_t iic_smbus_pec(int, uint8_t *, uint8_t *);
+static int i2cexec_modcmd(modcmd_t, void *);
+
/*
* iic_exec:
*
@@ -342,3 +345,18 @@ iic_smbus_pec(int count, uint8_t *s, uin
return crc;
}
+
+MODULE(MODULE_CLASS_MISC, i2cexec, NULL);
+
+static int
+i2cexec_modcmd(modcmd_t cmd, void *opaque)
+{
+ switch (cmd) {
+ case MODULE_CMD_INIT:
+ case MODULE_CMD_FINI:
+ return 0;
+ break;
+ default:
+ return ENOTTY;
+ }
+}
Index: src/sys/dev/i2c/spdmem_i2c.c
diff -u src/sys/dev/i2c/spdmem_i2c.c:1.9 src/sys/dev/i2c/spdmem_i2c.c:1.10
--- src/sys/dev/i2c/spdmem_i2c.c:1.9 Mon Apr 14 14:30:24 2014
+++ src/sys/dev/i2c/spdmem_i2c.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.9 2014/04/14 14:30:24 pooka Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.10 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.9 2014/04/14 14:30:24 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.10 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -133,7 +133,7 @@ spdmem_i2c_read(struct spdmem_softc *sof
return val;
}
-MODULE(MODULE_CLASS_DRIVER, spdmem, "iic");
+MODULE(MODULE_CLASS_DRIVER, spdmem, "i2cexec");
#ifdef _MODULE
#include "ioconf.c"
Index: src/sys/dev/i2c/lg3303.c
diff -u src/sys/dev/i2c/lg3303.c:1.8 src/sys/dev/i2c/lg3303.c:1.9
--- src/sys/dev/i2c/lg3303.c:1.8 Sun Oct 2 19:03:56 2011
+++ src/sys/dev/i2c/lg3303.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: lg3303.c,v 1.8 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: lg3303.c,v 1.9 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright 2007 Jason Harmening
@@ -28,7 +28,7 @@
*/
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: lg3303.c,v 1.8 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lg3303.c,v 1.9 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -351,7 +351,7 @@ lg3303_get_ucblocks(struct lg3303 *lg)
return (buffer[0] << 8) | buffer[1];
}
-MODULE(MODULE_CLASS_DRIVER, lg3303, "iic,dtv_math");
+MODULE(MODULE_CLASS_DRIVER, lg3303, "i2cexec,dtv_math");
static int
lg3303_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/dev/i2c/mt2131.c
diff -u src/sys/dev/i2c/mt2131.c:1.4 src/sys/dev/i2c/mt2131.c:1.5
--- src/sys/dev/i2c/mt2131.c:1.4 Sun Oct 2 19:03:56 2011
+++ src/sys/dev/i2c/mt2131.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: mt2131.c,v 1.4 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: mt2131.c,v 1.5 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt2131.c,v 1.4 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt2131.c,v 1.5 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -255,7 +255,7 @@ mt2131_write(struct mt2131_softc *sc, ui
return ret;
}
-MODULE(MODULE_CLASS_DRIVER, mt2131, "iic");
+MODULE(MODULE_CLASS_DRIVER, mt2131, "i2cexec");
static int
mt2131_modcmd(modcmd_t cmd, void *priv)
Index: src/sys/dev/i2c/nxt2k.c
diff -u src/sys/dev/i2c/nxt2k.c:1.3 src/sys/dev/i2c/nxt2k.c:1.4
--- src/sys/dev/i2c/nxt2k.c:1.3 Sun Oct 2 19:03:56 2011
+++ src/sys/dev/i2c/nxt2k.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: nxt2k.c,v 1.3 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: nxt2k.c,v 1.4 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nxt2k.c,v 1.3 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nxt2k.c,v 1.4 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -830,7 +830,7 @@ nxt2k_set_modulation(struct nxt2k *nxt,
return nxt2k_fe_set_frontend(nxt, modulation);
}
-MODULE(MODULE_CLASS_DRIVER, nxt2k, "iic");
+MODULE(MODULE_CLASS_DRIVER, nxt2k, "i2cexec");
static int
nxt2k_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/dev/i2c/zl10353.c
diff -u src/sys/dev/i2c/zl10353.c:1.3 src/sys/dev/i2c/zl10353.c:1.4
--- src/sys/dev/i2c/zl10353.c:1.3 Sun Oct 2 19:03:56 2011
+++ src/sys/dev/i2c/zl10353.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: zl10353.c,v 1.3 2011/10/02 19:03:56 jmcneill Exp $ */
+/* $NetBSD: zl10353.c,v 1.4 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zl10353.c,v 1.3 2011/10/02 19:03:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zl10353.c,v 1.4 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -650,7 +650,7 @@ zl10353_get_snr(struct zl10353 *zl)
return (val << 8) | val;
}
-MODULE(MODULE_CLASS_DRIVER, zl10353, "iic");
+MODULE(MODULE_CLASS_DRIVER, zl10353, "i2cexec");
static int
zl10353_modcmd(modcmd_t cmd, void *aux)
Index: src/sys/dev/i2c/sdtemp.c
diff -u src/sys/dev/i2c/sdtemp.c:1.23 src/sys/dev/i2c/sdtemp.c:1.24
--- src/sys/dev/i2c/sdtemp.c:1.23 Thu Jan 9 16:51:05 2014
+++ src/sys/dev/i2c/sdtemp.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp.c,v 1.23 2014/01/09 16:51:05 mlelstv Exp $ */
+/* $NetBSD: sdtemp.c,v 1.24 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.23 2014/01/09 16:51:05 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.24 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -553,7 +553,7 @@ sdtemp_pmf_resume(device_t dev, const pm
return (error == 0);
}
-MODULE(MODULE_CLASS_DRIVER, sdtemp, "iic");
+MODULE(MODULE_CLASS_DRIVER, sdtemp, "i2cexec");
#ifdef _MODULE
#include "ioconf.c"
Index: src/sys/dev/i2c/tvpll.c
diff -u src/sys/dev/i2c/tvpll.c:1.5 src/sys/dev/i2c/tvpll.c:1.6
--- src/sys/dev/i2c/tvpll.c:1.5 Thu Oct 17 21:18:43 2013
+++ src/sys/dev/i2c/tvpll.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: tvpll.c,v 1.5 2013/10/17 21:18:43 christos Exp $ */
+/* $NetBSD: tvpll.c,v 1.6 2015/03/07 14:16:51 jmcneill Exp $ */
/*
* Copyright (c) 2008, 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tvpll.c,v 1.5 2013/10/17 21:18:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tvpll.c,v 1.6 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -153,7 +153,7 @@ tvpll_tune_dtv(struct tvpll *tvpll,
return rv;
}
-MODULE(MODULE_CLASS_DRIVER, tvpll, "iic");
+MODULE(MODULE_CLASS_DRIVER, tvpll, "i2cexec");
static int
tvpll_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/dev/i2c/xc5k.c
diff -u src/sys/dev/i2c/xc5k.c:1.5 src/sys/dev/i2c/xc5k.c:1.6
--- src/sys/dev/i2c/xc5k.c:1.5 Wed Jan 7 07:05:48 2015
+++ src/sys/dev/i2c/xc5k.c Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: xc5k.c,v 1.5 2015/01/07 07:05:48 ozaki-r Exp $ */
+/* $NetBSD: xc5k.c,v 1.6 2015/03/07 14:16:51 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <[email protected]>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xc5k.c,v 1.5 2015/01/07 07:05:48 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xc5k.c,v 1.6 2015/03/07 14:16:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -434,7 +434,7 @@ xc5k_get_status(struct xc5k *xc)
return festatus;
}
-MODULE(MODULE_CLASS_DRIVER, xc5k, "iic");
+MODULE(MODULE_CLASS_DRIVER, xc5k, "i2cexec");
static int
xc5k_modcmd(modcmd_t cmd, void *opaque)
Index: src/sys/modules/Makefile
diff -u src/sys/modules/Makefile:1.142 src/sys/modules/Makefile:1.143
--- src/sys/modules/Makefile:1.142 Mon Nov 10 21:15:19 2014
+++ src/sys/modules/Makefile Sat Mar 7 14:16:51 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.142 2014/11/10 21:15:19 christos Exp $
+# $NetBSD: Makefile,v 1.143 2015/03/07 14:16:51 jmcneill Exp $
.include <bsd.own.mk>
@@ -40,6 +40,7 @@ SUBDIR+= gpioow
SUBDIR+= gpiosim
SUBDIR+= hfs
SUBDIR+= hythygtemp
+SUBDIR+= i2cexec
SUBDIR+= if_axe
SUBDIR+= if_axen
SUBDIR+= if_npflog
Added files:
Index: src/sys/modules/i2cexec/Makefile
diff -u /dev/null src/sys/modules/i2cexec/Makefile:1.1
--- /dev/null Sat Mar 7 14:16:51 2015
+++ src/sys/modules/i2cexec/Makefile Sat Mar 7 14:16:51 2015
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1 2015/03/07 14:16:51 jmcneill Exp $
+
+.include "../Makefile.inc"
+
+.PATH: ${S}/dev/i2c
+
+KMOD= i2cexec
+SRCS= i2c_exec.c
+
+.include <bsd.kmodule.mk>