kern/81912: Add support kernel modulable to ichsmb(4).
Norikatsu Shigemura
nork at FreeBSD.org
Sun Jun 5 09:20:02 GMT 2005
>Number: 81912
>Category: kern
>Synopsis: Add support kernel modulable to ichsmb(4).
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 05 09:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Norikatsu Shigemura
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
Ensure Technorogy LTD,.
>Environment:
System: FreeBSD nadesico.ninth-nine.com 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Sat Jun 4 10:38:29 JST 2005 nork at nadesico.ninth-nine.com:/usr/obj/usr/src/sys/NADESICO i386
>Description:
ichsmb(4) didn't support kldload.
>How-To-Repeat:
'kldload ichsmb.ko' is not work.
>Fix:
Apply following patch.
MFp4: @78015 (http://perforce.freebsd.org/chv.cgi?CH=78015)
change files: src/sys/dev/ichsmb/ichsmb_pci.c
src/sys/modules/i2c/controllers/Makefile
new files: src/sys/modules/i2c/controllers/ichsmb/Makefile
remove files: none
--- nork_MOBILE.diff_to_current begins here ---
=============================================
(cd /usr/src && patch -p6) < nork_MOBILE.diff_to_current
=============================================
--- //depot/vendor/freebsd/src/sys/dev/ichsmb/ichsmb_pci.c 2005/03/05 18:20:40
+++ //depot/user/nork/nork_MOBILE/sys/dev/ichsmb/ichsmb_pci.c 2005/06/05 08:33:20
@@ -115,6 +115,10 @@
DRIVER_MODULE(ichsmb, pci, ichsmb_pci_driver, ichsmb_pci_devclass, 0, 0);
+MODULE_DEPEND(ichsmb, pci, 1, 1, 1);
+MODULE_DEPEND(ichsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
+MODULE_VERSION(ichsmb, 1);
+
static int
ichsmb_pci_probe(device_t dev)
{
--- //depot/vendor/freebsd/src/sys/modules/i2c/controllers/Makefile 2003/06/15 04:25:22
+++ //depot/user/nork/nork_MOBILE/sys/modules/i2c/controllers/Makefile 2005/06/05 08:33:20
@@ -3,7 +3,7 @@
.if ${MACHINE} == "pc98"
SUBDIR = lpbb
.else
-SUBDIR = alpm amdpm intpm viapm lpbb pcf
+SUBDIR = alpm amdpm ichsmb intpm viapm lpbb pcf
.endif
.include <bsd.subdir.mk>
--- //depot/vendor/freebsd/src/sys/modules/i2c/controllers/ichsmb/Makefile 1970/01/01 09:00:00
+++ //depot/user/nork/nork_MOBILE/sys/modules/i2c/controllers/ichsmb/Makefile 2005/06/05 08:33:20
@@ -0,0 +8
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../dev/ichsmb
+KMOD = ichsmb
+SRCS = device_if.h bus_if.h iicbb_if.h pci_if.h smbus_if.h \
+ ichsmb.c ichsmb_pci.c ichsmb_reg.h ichsmb_var.h
+
+.include <bsd.kmod.mk>
--- nork_MOBILE.diff_to_current ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list