TinLethax

Tektronix DPO/MSO2000 hardware initialization and rax harware number

Oct 28th, 2025
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.47 KB | Source Code | 0 0
  1. undefined4 hwInitializeHardware(void)
  2.  
  3. {
  4.   int ret;
  5.   undefined4 local_20;
  6.  
  7.   local_20 = registerAccessInit();
  8.   hwAllocTek0001Register();
  9.   FUN_107ca0f8();
  10.   hwRaxInitDevice();
  11.   raxInit();
  12.   raxResetDeviceInitializedFlags();
  13.   ret = hwSpiInit();
  14.   if (ret == 0) {
  15.     ret = startUserKernelCommunications();
  16.     if (ret == 0) {
  17.                     /* Init Mpc8xx */
  18.       raxInitializeDevice(7);
  19.                     /* Init ADG420 AFE */
  20.       raxInitializeDevice(1);
  21.                     /* Init ExtTrigger */
  22.       raxInitializeDevice(4);
  23.                     /* Init ADC08D1000 */
  24.       raxInitializeDevice(0);
  25.                     /* Init DAC121S101 */
  26.       raxInitializeDevice(3);
  27.                     /* Init AD5150 */
  28.       raxInitializeDevice(11);
  29.                     /* Init AD5300 */
  30.       raxInitializeDevice(12);
  31.       ret = hwTek0001IsMissing();
  32.       if (ret == 0) {
  33.         tek0001Initializer();
  34.       }
  35.       else {
  36.         raxInitializeDevice(10);
  37.       }
  38.                     /* Init LM95241 */
  39.       raxInitializeDevice(5);
  40.                     /* Init reset cpld */
  41.       raxInitializeDevice(8);
  42.       FUN_107ca140();
  43.       FUN_107ca414();
  44.       FUN_107ca644();
  45.     }
  46.     else {
  47.       errPrintf("%s: Error the kernel <--> user interface.\n","hwInit.cpp");
  48.       local_20 = 0xffffffff;
  49.     }
  50.   }
  51.   else {
  52.     errPrintf("%s: Error initializing the MIA SPI interface.\n","hwInit.cpp");
  53.     local_20 = 0xffffffff;
  54.   }
  55.   return local_20;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment