From nork@FreeBSD.org  Sun Jun  5 09:12:38 2005
Return-Path: <nork@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E1BBC16A41C;
	Sun,  5 Jun 2005 09:12:38 +0000 (GMT)
	(envelope-from nork@FreeBSD.org)
Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5129843D48;
	Sun,  5 Jun 2005 09:12:38 +0000 (GMT)
	(envelope-from nork@FreeBSD.org)
Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.1/NinthNine) with SMTP id j559CaiJ063955; Sun, 5 Jun 2005 18:12:36 +0900 (JST) (envelope-from nork@FreeBSD.org)
Message-Id: <200506050912.j559CaiJ063955@sakura.ninth-nine.com>
Date: Sun, 5 Jun 2005 18:12:36 +0900 (JST)
From: Norikatsu Shigemura <nork@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: takawata@FreeBSD.org
Subject: Add support kernel modulable to ichsmb(4).

>Number:         81912
>Category:       kern
>Synopsis:       Add support kernel modulable to ichsmb(4).
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    takawata
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 05 09:20:01 GMT 2005
>Closed-Date:    Sun Jun 05 12:01:54 GMT 2005
>Last-Modified:  Sun Jun 05 12:01:54 GMT 2005
>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@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:
Responsible-Changed-From-To: freebsd-bugs->takawata 
Responsible-Changed-By: nork 
Responsible-Changed-When: Sun Jun 5 09:24:56 GMT 2005 
Responsible-Changed-Why:  
Over to my src committer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81912 
State-Changed-From-To: open->closed 
State-Changed-By: takawata 
State-Changed-When: Sun Jun 5 12:01:31 GMT 2005 
State-Changed-Why:  
Commited Thanks. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=81912 
>Unformatted:
