Subject: Re: CVS commit: src/sys/dev/pci
To: None <jmcneill@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 02/05/2007 22:27:11
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  
> is
> true, force intrline to 12 and map the system management IO space at
> 0x8000. We can now call iic_smbus_intr when a system management  
> interrupt
> takes 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