]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fixed network map GbE entry
authorJan Michel <j.michel@gsi.de>
Mon, 1 Dec 2014 12:24:35 +0000 (13:24 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 1 Dec 2014 12:24:35 +0000 (13:24 +0100)
web/htdocs/network/map.pl

index 7106a015104d1b181a0be9d34dc6472f9c0aec36..e4523d2f0666a889ade6e3a347d61bb1d4d56fec 100755 (executable)
@@ -138,14 +138,17 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
             $feat .= GetTDCInfo($addr,$inclLow->{$addr},1);
             }
           }
-        if($inclLow->{$addr}&0x800000) { #GbE
+        if($inclLow->{$addr}&0x30000) { #GbE
           $feat .= "\nGbE: ";
-          if($inclLow->{$addr} & 0x10000) {$feat .= "data sending, ";}
+          if($inclLow->{$addr} & 0x10000) {
+            $feat .= "data sending buffer 64kB, " if(($inclLow->{$addr} & 0xc0000) = 0x40000);
+            $feat .= "data sending, "             if(($inclLow->{$addr} & 0xc0000) = 0x00000);
+            }
           if($inclLow->{$addr} & 0x20000) {
-            $feat .="slow control, ";
-            if($inclLow->{$addr} & 0x400000) {
-              $feat .= "with multi-packet";
-              }
+            $feat .= "slow control buffer 4kB, "  if(($inclLow->{$addr} & 0x300000) = 0x10000);
+            $feat .= "slow control buffer 64kB, " if(($inclLow->{$addr} & 0x300000) = 0x20000);
+            $feat .= "slow control, "             if(($inclLow->{$addr} & 0x300000) = 0x00000);
+            $feat .= "with multi-packet"          if ($inclLow->{$addr} & 0x400000);
             }
           }
         $feat .= "\nHub: ".(($inclLow->{$addr}>>24)&0x7)." SFPs";