summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2003-09-01 14:58:34 +0000
committerdfr <dfr@FreeBSD.org>2003-09-01 14:58:34 +0000
commitcb09824b9c2ee78086224d5528a13ae99255b507 (patch)
treee49f7da0a980fe28eeb836865a4e2388553051ab
parentcb6061aa80503dccea34c902ded7519ab9764d29 (diff)
downloadFreeBSD-src-cb09824b9c2ee78086224d5528a13ae99255b507.zip
FreeBSD-src-cb09824b9c2ee78086224d5528a13ae99255b507.tar.gz
Add support for AMD766 and AMD768 chipsets.
PR: 41812
-rw-r--r--sys/pci/amdpm.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c
index c01d5129..c3868fe 100644
--- a/sys/pci/amdpm.c
+++ b/sys/pci/amdpm.c
@@ -66,6 +66,8 @@ static int amdpm_debug = 0;
#define AMDPM_VENDORID_AMD 0x1022
#define AMDPM_DEVICEID_AMD756PM 0x740b
+#define AMDPM_DEVICEID_AMD766PM 0x7413
+#define AMDPM_DEVICEID_AMD768PM 0x7443
/* nVidia nForce chipset */
#define AMDPM_VENDORID_NVIDIA 0x10de
@@ -142,10 +144,14 @@ static int
amdpm_probe(device_t dev)
{
u_long base;
-
+ u_int16_t did;
+
+ did = pci_get_device(dev);
if ((pci_get_vendor(dev) == AMDPM_VENDORID_AMD) &&
- (pci_get_device(dev) == AMDPM_DEVICEID_AMD756PM)) {
- device_set_desc(dev, "AMD 756 Power Management Controller");
+ ((did == AMDPM_DEVICEID_AMD756PM) ||
+ (did == AMDPM_DEVICEID_AMD766PM) ||
+ (did == AMDPM_DEVICEID_AMD768PM))) {
+ device_set_desc(dev, "AMD 756/766/768 Power Management Controller");
/*
* We have to do this, since the BIOS won't give us the
OpenPOWER on IntegriCloud