diff options
author | dfr <dfr@FreeBSD.org> | 2003-09-01 14:58:34 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2003-09-01 14:58:34 +0000 |
commit | cb09824b9c2ee78086224d5528a13ae99255b507 (patch) | |
tree | e49f7da0a980fe28eeb836865a4e2388553051ab | |
parent | cb6061aa80503dccea34c902ded7519ab9764d29 (diff) | |
download | FreeBSD-src-cb09824b9c2ee78086224d5528a13ae99255b507.zip FreeBSD-src-cb09824b9c2ee78086224d5528a13ae99255b507.tar.gz |
Add support for AMD766 and AMD768 chipsets.
PR: 41812
-rw-r--r-- | sys/pci/amdpm.c | 12 |
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 |