On Feb 5, 2007, at 3:38 PM, Jared D. McNeill wrote:
Module Name: src Committed By: jmcneill Date: Mon Feb 5 23:38:15 UTC 2007 Modified Files: src/sys/dev/pci: amdpm.c amdpm_smbus.c amdpmvar.h Log Message: Disgusting Xbox hack;The "pci0 dev 1 function 2" aka "System Management" on the nForce chipset isn't detected on the Xbox. If XBOX is defined and arch_i386_is_xbox istrue, force intrline to 12 and map the system management IO space at0x8000. We can now call iic_smbus_intr when a system management interrupttakes place.
Yuck.This should be done by defining a platform-specific PCI device enumeration function, and possibly faking out the PCI configuration reads, as necessary.
While we're here, make amdpm_smbus honour the I2C_F_POLL flag. The Xbox no longer resets when you press the eject button. To generate a diff of this commit: cvs rdiff -r1.24 -r1.25 src/sys/dev/pci/amdpm.c cvs rdiff -r1.9 -r1.10 src/sys/dev/pci/amdpm_smbus.c cvs rdiff -r1.3 -r1.4 src/sys/dev/pci/amdpmvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
-- thorpej