Date: Sun, 22 Jun 2008 17:40:03 GMT From: Gavin Atkinson <gavin@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/120714: [viapm] [patch] viapm driver doesn't work on VIA VT8237 chip Message-ID: <200806221740.m5MHe3Sa019156@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/120714; it has been noted by GNATS. From: Gavin Atkinson <gavin@FreeBSD.org> To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/120714: [viapm] [patch] viapm driver doesn't work on VIA VT8237 chip Date: Sun, 22 Jun 2008 18:37:16 +0100 (BST) I don't really see any need to collapse the four similar chipsets into one, here is a patch which simply adds support for the chip without affecting the description of others. Index: src/sys/pci/viapm.c =================================================================== RCS file: /usr/ncvs/src/sys/pci/viapm.c,v retrieving revision 1.19 diff -u -r1.19 viapm.c --- src/sys/pci/viapm.c 6 Jun 2008 18:29:56 -0000 1.19 +++ src/sys/pci/viapm.c 22 Jun 2008 17:33:17 -0000 @@ -70,6 +70,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 VIA_CX700_PMU_ID 0x83241106 #define VIAPM_INB(port) \ @@ -285,6 +286,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; + case VIA_CX700_PMU_ID: desc = "VIA CX700 Power Management Unit"; viapm->type = VIAPM_TYP_UNKNOWN;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806221740.m5MHe3Sa019156>
