From: Jan Michel Date: Wed, 23 Aug 2023 14:53:56 +0000 (+0200) Subject: add media interface registers to xml-db X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d4085b190991e6de97ba55c3d886650d07a48d1c;p=daqtools.git add media interface registers to xml-db --- diff --git a/web/htdocs/network/media.pl b/web/htdocs/network/media.pl new file mode 100755 index 0000000..d509000 --- /dev/null +++ b/web/htdocs/network/media.pl @@ -0,0 +1,44 @@ +#!/usr/bin/perl +if ($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i) { + print "HTTP/1.0 200 OK\n"; + print "Content-type: text/html\r\n\r\n"; + } +else { + use lib '..'; + use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv; + print "Content-type: text/html\n\n"; + } + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "Media Interfaces"; +$page->{link} = "../"; + +my @setup; + +push(@setup,({name => "ECP3", + cmd => "MediaECP3-0xffff-ControlStatus", + period => 10000, + address => 1})); + +push(@setup,({name => "ECP5", + cmd => "MediaECP5-0xffff-ControlStatus", + period => 10000, + address => 1})); + +xmlpage::initPage(\@setup,$page); + + + + +1; + + diff --git a/xml-db/database/MediaECP3.xml b/xml-db/database/MediaECP3.xml new file mode 100644 index 0000000..77f74b3 --- /dev/null +++ b/xml-db/database/MediaECP3.xml @@ -0,0 +1,80 @@ + + + Registers for the Media Interface + + + + + Link status register for ECP3, Trb3sc and newer. Does not support Trb3 + + RX Control Status + + + + + + + + + + TX Control Status + + + + + + + Reset FSM Status + + + + + + + + + + + + Reset FSM Status + + + + + + + + + + + + Reset FSM Status + + + + + + + + + + + + Reset FSM Status + + + + + + + + + + + + + diff --git a/xml-db/database/MediaECP5.xml b/xml-db/database/MediaECP5.xml new file mode 100644 index 0000000..cd18491 --- /dev/null +++ b/xml-db/database/MediaECP5.xml @@ -0,0 +1,100 @@ + + + Registers for the Media Interface + + + + + + RX Control Status + + + + + + + + + + TX Control Status + + + + + + + Reset FSM Status + + + + + + + + + + + + PCS Status Flags + + + + + + + + + + + + + + RX Control Status + + + + + + + + + + TX Control Status + + + + + + + Reset FSM Status + + + + + + + + + + + + PCS Status Flags + + + + + + + + + + + + + + + diff --git a/xml-db/database/TrbNet.xml b/xml-db/database/TrbNet.xml index ac4fcc6..4965bb7 100644 --- a/xml-db/database/TrbNet.xml +++ b/xml-db/database/TrbNet.xml @@ -162,6 +162,25 @@ Update Address enable bit. + + + Common Control Strobe Signals + + Reset trigger logic + + + Reset data handler logic + + + Reset error flags + + + Reset statistic counters + + + Reload FPGA + +