From owner-freebsd-hackers Wed Jul 3 22:58:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7AEA37B400 for ; Wed, 3 Jul 2002 22:58:49 -0700 (PDT) Received: from postfix1-2.free.fr (postfix1-2.free.fr [213.228.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E23243E4A for ; Wed, 3 Jul 2002 22:58:49 -0700 (PDT) (envelope-from nsouch@free.fr) Received: from free.fr (nas-cbv-11-62-147-118-185.dial.proxad.net [62.147.118.185]) by postfix1-2.free.fr (Postfix) with ESMTP id 663EAAB1D6; Thu, 4 Jul 2002 07:58:47 +0200 (CEST) Received: from armor.fastether (localhost.fastether [127.0.0.1]) by free.fr (8.12.3/8.9.3) with ESMTP id g645xv4W031657; Thu, 4 Jul 2002 07:59:58 +0200 (CEST) (envelope-from nsouch@perso.free.fr) Received: (from nsouch@localhost) by armor.fastether (8.12.3/8.12.3/Submit) id g645xvvL031656; Thu, 4 Jul 2002 07:59:57 +0200 (CEST) Date: Thu, 4 Jul 2002 07:59:52 +0200 From: Nicolas Souchu To: "Thomas D. Dean" Cc: evantd@hotmail.com, freebsd-hackers@FreeBSD.ORG Subject: Re: AS99127F Hardware Monitor Message-ID: <20020704075952.B27612@armor.fastether> References: <200206172232.g5HMWqfK001804@asus.tddhome> <20020701075958.B6932@armor.fastether> <200207011407.g61E7sCH005717@asus.tddhome> <20020703075257.A20219@armor.fastether> <200207030655.g636tUJV001323@asus.tddhome> <20020703210737.A27612@armor.fastether> <200207032139.g63LdTEE000517@asus.tddhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200207032139.g63LdTEE000517@asus.tddhome>; from tomdean@speakeasy.org on Wed, Jul 03, 2002 at 02:39:29PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jul 03, 2002 at 02:39:29PM -0700, Thomas D. Dean wrote: > Yes, I will try it. > > The patch you posted is for i2c-amd756.c. Is there a patch for > sys/pci/amdpm.c? Of course not :) The patch for i2c-amd756.c comes from Linux. The goal is to _write_ the one for sys/pci/amdpm.c (FreeBSD). You have to write the new nfpm_probe() and nfpm_attach() (where nfpm stands for nForce Power Management) routines like amdpm_probe() and amdpm_attach() are. Use the Linux patch to determine the nForce PCI id and the differences between the AMD and the nForce inits. Reproduce amdpm_devclass, amdpm_methods and amdpm_driver for nfpm. Add a line at the end of the driver like this one to connect your new PCI device: DRIVER_MODULE(nfpm, pci, nfpm_driver, nfpm_devclass, 0, 0); Ask me if you need. Nicholas -- Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message