Line data Source code
1 : // This file (tt.cc) was created by Ron Rechenmacher <ron@fnal.gov> on
2 : // Feb 7, 2014. "TERMS AND CONDITIONS" governing this file are in the README
3 : // or COPYING file. If you do not have such a file, one can be obtained by
4 : // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
5 : // $RCSfile: .emacs.gnu,v $
6 : // rev="$Revision: 1.23 $$Date: 2012/01/23 15:32:40 $";
7 :
8 : #include <stdint.h>
9 : #include <stdio.h> // printf
10 :
11 : // typedef unsigned u64;
12 : #include "mu2e_driver/xdma_hw.h"
13 :
14 0 : int main(int, char *[])
15 : {
16 0 : printf("sizeof(mu2e_buffdesc_S2C_t)=%lu (u32)=%lu (u64)=%lu\n", sizeof(mu2e_buffdesc_S2C_t), sizeof(u32),
17 : sizeof(u64));
18 0 : printf(
19 : "UserControl offset: %lu\n"
20 : "CardAddress offset: %lu\n"
21 : "SystemAddress offset: %lu\n"
22 : "NextDescPtr offset: %lu\n",
23 : (unsigned long)&((mu2e_buffdesc_S2C_t *)0)->UserControl, (unsigned long)&((mu2e_buffdesc_S2C_t *)0)->CardAddress,
24 : (unsigned long)&((mu2e_buffdesc_S2C_t *)0)->SystemAddress,
25 : (unsigned long)&((mu2e_buffdesc_S2C_t *)0)->NextDescPtr);
26 0 : return (0);
27 : } // main
|