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 - [EMAIL PROTECTED] - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message