summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-09 17:34:32 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-09 17:34:32 -0400
commit8e32927b6bb6f16a8349ead26ca143f999d0ea5f (patch)
treeb916c71847a1ec6bd37b7faaadb84ac52a9508a3 /pts-core/functions/pts-functions_system_parsing.php
parentdeb39910c970f404f1d6b02192bd905fbbe74922 (diff)
downloadphoronix-test-suite-upstream-8e32927b6bb6f16a8349ead26ca143f999d0ea5f.tar.gz
phoronix-test-suite-upstream-8e32927b6bb6f16a8349ead26ca143f999d0ea5f.tar.xz
phoronix-test-suite-upstream-8e32927b6bb6f16a8349ead26ca143f999d0ea5f.zip
pts-core: Add ATI multi-GPU detection support
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 8902f12..32c85b5 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -210,6 +210,17 @@ function read_xdpy_monitor_info()
return $monitor_info;
}
+function read_amd_graphics_adapters()
+{
+ $info = trim(shell_exec("aticonfig --list-adapters 2>&1"));
+ $adapters = array();
+
+ foreach(explode("\n", $info) as $line)
+ if(($last_point = strrpos($line, ".")) > 0)
+ array_push($adapters, substr($line, $last_point + 3));
+
+ return $adapters;
+}
function read_amd_pcsdb($attribute)
{
$info = shell_exec("aticonfig --get-pcs-key=" . $attribute . " 2>&1");