]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
add marker for disabled RDO to network map
authorJan Michel <j.michel@gsi.de>
Wed, 1 Dec 2021 14:53:27 +0000 (15:53 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 1 Dec 2021 14:53:27 +0000 (15:53 +0100)
web/htdocs/layout/styles.css
web/htdocs/network/map.pl

index 94fde7ccf552504bb25bc80735a2dbe6ab220110..d1c8c7349e8fb489aaec9e59fb55b14de6bd7752 100644 (file)
@@ -333,3 +333,7 @@ table#server-details pre {
 #content .busy > td:first-child {
   border-left-color:#522;
 }
+
+#content .rdooff > td:first-child {
+  border-left-color:#552;
+}
index ab103dbf72d849c22fccd5ba4fb6effd2f78c095..401335133ab0848edba61bb0454521245829dcc6 100755 (executable)
@@ -42,6 +42,7 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
   my $inclHigh = trb_register_read(0xffff,0x43);
   my $addresses= trb_register_read(0xffff,0x44);
   my $hubbusy  = trb_register_read(0xfffe,0x81);
+  my $hubrdooff  = trb_register_read(0xfffe,0xc0);
   my $portactive = trb_register_read(0xfffe,0x84);
 
   my $hubbusy1  = trb_register_read_mem(0xfffe,0x4030,0,16);
@@ -253,6 +254,8 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
       my $serial = GetSerial($uids->{$addr},$hardware->{$addr}>>24&0xff);
 #Busy     
       my $busy = $hubbusy->{$parent} & (1<<$p);
+      my $rdooff = ($hubrdooff->{$parent} & (1<<$p)) // 1;
+         $rdooff = 1 if $parent == 0;
       my $hubval = $hubbusy2->{$parent}[$p] - $hubbusy1->{$parent}[$p];
          $hubval += 2**32 if $hubval < 0;
          $hubval /= 10E6; 
@@ -274,10 +277,11 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
         $defaddr = sprintf("default address: %04x\nbroadcast fe%02x",$addresses->{$addr}>>16,$addresses->{$addr}&0xff);
         }
         
-      printf("<tr class=\"level level%i%s%s\"><td title=\"%s\"><div>%i</div>0x%04x<td title=\"0x%08x\">%s<td title=\"0x%08x%08x\n%s\">%s<td title=\"0x%08x\">%s<td>%.1f°C<td>%016x&nbsp;-&nbsp;%i<td %s>%s<td %s>%s\n",
+      printf("<tr class=\"level level%i%s%s%s\"><td title=\"%s\"><div>%i</div>0x%04x<td title=\"0x%08x\">%s<td title=\"0x%08x%08x\n%s\">%s<td title=\"0x%08x\">%s<td>%.1f°C<td>%016x&nbsp;-&nbsp;%i<td %s>%s<td %s>%s\n",
              $layer,
              ($layer!=$lastlayer?' newlevel':' oldlevel'),
              ($busy?' busy':''),
+             ($rdooff?'':' rdooff'),
              $defaddr,
              $p,
              $addr,