5151#include " utils/color_out.h"
5252#include " video_frame.h" // for get_interlacing_suffix
5353
54+ #if !defined VHD_MIN_6_00
55+ #define VHD_GetBoardModel (BoardIndex ) " UNKNOWN"
56+ #define VHD_GetPCIeIdentificationString (BoardIndex, pIdString_c ) \
57+ snprintf_ch (pIdString_c, " UNKNOWN" )
58+ #endif
59+
5460#define MOD_NAME " [DELTACAST] "
5561
5662const char *
@@ -156,10 +162,12 @@ delta_get_error_description(ULONG CodeError)
156162 return " Device removed" ;
157163 case VHDERR_LTCSOURCEUNLOCKED:
158164 return " LTC source unlocked" ;
165+ #ifdef VHD_MIN_6_00
159166 case VHDERR_INVALIDACCESSRIGHT:
160167 return " Invalid access right" ;
161168 case VHDERR_INVALIDCAPABILITY:
162169 return " Invalid capability index" ;
170+ #endif // defined VHD_MIN_6_00
163171#ifdef DELTA_DVI_DEPRECATED
164172 case VHDERR_DEPRECATED:
165173 return " Symbol is deprecated" ;
@@ -290,7 +298,7 @@ print_board_info(int BoardIndex, ULONG DllVersion, bool full)
290298
291299 ULONG SerialNumber_UL[4 ] = {};
292300 ULONG NbOfLane, BusType, FirmwareVersion, Firmware3Version, LowProfile,
293- NbRxChannels, NbTxChannels, Firmware4Version, ProductVersion = 0 ;
301+ NbRxChannels, NbTxChannels, ProductVersion = 0 ;
294302 char pIdString_c[64 ];
295303
296304 Result = VHD_GetBoardProperty (BoardHandle, VHD_CORE_BP_BOARD_TYPE,
@@ -319,8 +327,10 @@ print_board_info(int BoardIndex, ULONG DllVersion, bool full)
319327 &NbRxChannels);
320328 VHD_GetBoardProperty (BoardHandle, VHD_CORE_BP_NB_TXCHANNELS,
321329 &NbTxChannels);
330+ #if defined VHD_MIN_6_00
322331 VHD_GetBoardProperty (BoardHandle, VHD_CORE_BP_PRODUCT_VERSION,
323332 &ProductVersion);
333+ #endif
324334 VHD_GetBoardProperty (BoardHandle, VHD_CORE_BP_BUS_TYPE, &BusType);
325335 VHD_GetPCIeIdentificationString (BoardIndex, pIdString_c);
326336
@@ -340,6 +350,8 @@ print_board_info(int BoardIndex, ULONG DllVersion, bool full)
340350 (Firmware3Version >> 16 ) & 0xFF ,
341351 (Firmware3Version >> 8 ) & 0xFF );
342352 }
353+ #if defined VHD_MIN_6_00
354+ ULONG Firmware4Version = 0 ;
343355 if (BoardType == VHD_BOARDTYPE_IP) {
344356 VHD_GetBoardProperty (BoardHandle, VHD_CORE_BP_FIRMWARE4_VERSION,
345357 &Firmware4Version);
@@ -349,6 +361,7 @@ print_board_info(int BoardIndex, ULONG DllVersion, bool full)
349361 (Firmware4Version >> 16 ) & 0xFF ,
350362 (Firmware4Version >> 8 ) & 0xFF );
351363 }
364+ #endif
352365 printf (" \t - Board serial# : 0x%08X%08X%08X%08X\n " , SerialNumber_UL[3 ],
353366 SerialNumber_UL[2 ], SerialNumber_UL[1 ], SerialNumber_UL[0 ]);
354367
@@ -362,7 +375,7 @@ print_board_info(int BoardIndex, ULONG DllVersion, bool full)
362375#endif
363376 printf (" \t - %s on %s" , delta_get_board_type_name (BoardType),
364377 bus_type_to_str (BusType));
365- #undef bus_type_to_str "unknown bus"
378+ #undef bus_type_to_str
366379 if (NbOfLane)
367380 printf (" (%d lane%s)\n " , NbOfLane, (NbOfLane > 1 ) ? " s" : " " );
368381 else
@@ -601,12 +614,14 @@ delta_is_quad_channel_interface(ULONG Interface)
601614 case VHD_INTERFACE_2X3G_B_DS_425_3:
602615 case VHD_INTERFACE_4X3G_A_425_5:
603616 case VHD_INTERFACE_4X3G_B_DL_425_5:
617+ #if defined VHD_MIN_6_00
604618 case VHD_INTERFACE_2X3G_B_DS_425_3_DUAL:
605619 case VHD_INTERFACE_4XHD_QUADRANT_DUAL:
606620 case VHD_INTERFACE_4X3G_A_QUADRANT_DUAL:
607621 case VHD_INTERFACE_4X3G_A_425_5_DUAL:
608622 case VHD_INTERFACE_4X3G_B_DL_QUADRANT_DUAL:
609623 case VHD_INTERFACE_4X3G_B_DL_425_5_DUAL:
624+ #endif
610625 // Is8KInterface
611626#if defined VHD_MIN_6_19
612627 case VHD_INTERFACE_4X6G_2081_10_QUADRANT:
0 commit comments