From owner-cvs-all@FreeBSD.ORG Thu Jan 11 19:56:25 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6443316A57C; Thu, 11 Jan 2007 19:56:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 54D2D13C469; Thu, 11 Jan 2007 19:56:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0BJuPhp047252; Thu, 11 Jan 2007 19:56:25 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0BJuPQG047251; Thu, 11 Jan 2007 19:56:25 GMT (envelope-from jhb) Message-Id: <200701111956.l0BJuPQG047251@repoman.freebsd.org> From: John Baldwin Date: Thu, 11 Jan 2007 19:56:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/ichsmb ichsmb.c ichsmb_pci.c src/sys/pci alpm.c amdpm.c amdsmb.c intpm.c intpmreg.h nfsmb.c viapm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 19:56:25 -0000 jhb 2007-01-11 19:56:24 UTC FreeBSD src repository Modified files: sys/dev/ichsmb ichsmb.c ichsmb_pci.c sys/pci alpm.c amdpm.c amdsmb.c intpm.c intpmreg.h nfsmb.c viapm.c Log: Various updates to most of the smbus(4) drivers: - Use printf() and device_printf() instead of log() in ichsmb(4). - Create the mutex sooner during ichsmb(4) attach. - Attach the interrupt handler later during ichsmb(4) attach to avoid races. - Don't try to set PCIM_CMD_PORTEN in ichsmb(4) attach as the PCI bus driver does this already. - Add locking to alpm(4), amdpm(4), amdsmb(4), intsmb(4), nfsmb(4), and viapm(4). - Axe ALPM_SMBIO_BASE_ADDR, it's not really safe to write arbitrary values into BARs, and the PCI bus layer will allocate resources now if needed. - Merge intpm(4) and intsmb(4) into just intsmb(4). Previously, intpm(4) attached to the PCI device and created an intsmb(4) child. Now, intsmb(4) just attaches to PCI directly. - Change several intsmb functions to take a softc instead of a device_t to make things simpler. Revision Changes Path 1.17 +29 -21 src/sys/dev/ichsmb/ichsmb.c 1.18 +6 -24 src/sys/dev/ichsmb/ichsmb_pci.c 1.26 +71 -43 src/sys/pci/alpm.c 1.21 +69 -15 src/sys/pci/amdpm.c 1.4 +40 -7 src/sys/pci/amdsmb.c 1.36 +418 -430 src/sys/pci/intpm.c 1.4 +1 -1 src/sys/pci/intpmreg.h 1.6 +48 -9 src/sys/pci/nfsmb.c 1.17 +83 -28 src/sys/pci/viapm.c