cvs commit: src/sys/pci viapm.c
John Baldwin
jhb at freebsd.org
Tue Nov 8 17:18:25 GMT 2005
On Tuesday 08 November 2005 11:08 am, Ion-Mihai Tetcu wrote:
> On Tue, 8 Nov 2005 15:56:03 +0000 (UTC)
>
> John Baldwin <jhb at FreeBSD.org> wrote:
> > jhb 2005-11-08 15:56:03 UTC
> >
> > FreeBSD src repository
> >
> > Modified files: (Branch: RELENG_6)
> > sys/pci viapm.c
> > Log:
> > MFC: Add the device ID for the VIA VT8235 south bridge.
>
> What about 8237 ? I own a few boards with this cip, how can I get the
> device id ?
>
> (with acpi)
>
> isab0 at pci0:17:0: class=0x060100 card=0x50011458 chip=0x32271106
> rev=0x00 hdr=0x00 vendor = 'VIA Technologies Inc'
> device = 'VT8237 PCI-to-ISA Bridge'
> class = bridge
> subclass = PCI-ISA
This is the device that might matter though I'm not sure if it will work. You
can try this patch:
Index: viapm.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/viapm.c,v
retrieving revision 1.12
diff -u -r1.12 viapm.c
--- viapm.c 31 Oct 2005 18:43:28 -0000 1.12
+++ viapm.c 8 Nov 2005 16:55:08 -0000
@@ -72,6 +72,7 @@
#define VIA_8233_PMU_ID 0x30741106
#define VIA_8233A_PMU_ID 0x31471106
#define VIA_8235_PMU_ID 0x31771106
+#define VIA_8237_PMU_ID 0x32271106
#define VIAPM_INB(port) \
((u_char)bus_space_read_1(viapm->st, viapm->sh, port))
@@ -284,6 +285,12 @@
base_cfgreg = VIAPM_8233_BASE;
goto viapro;
+ case VIA_8237_PMU_ID:
+ desc = "VIA VT8237 Power Management Unit";
+ viapm->type = VIAPM_TYP_UNKNOWN;
+ base_cfgreg = VIAPM_8233_BASE;
+ goto viapro;
+
viapro:
#ifdef VIAPM_BASE_ADDR
That assumes it is just like the 8233 and 8235. No idea if it will actually
work, you'll just have to try it out if you are feeling brave.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the cvs-src
mailing list