sweep_utilities.h (1637B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 5 */ 6 7 8 #ifndef __SWEEP_UTILITIES_H_INCLUDED__ 9 /* { */ 10 #define __SWEEP_UTILITIES_H_INCLUDED__ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #ifdef _MSC_VER 17 /* 18 * On MS-Windows platform this attribute is not defined. 19 */ 20 #define __ATTRIBUTE_PACKED__ 21 #pragma pack(push) 22 #pragma pack(1) 23 24 #elif __GNUC__ 25 /* 26 * GNUC packing attribute 27 */ 28 #define __ATTRIBUTE_PACKED__ __attribute__ ((packed)) 29 #else 30 #error "Add your system support for packed attribute." 31 #endif 32 33 /************* 34 * INCLUDES * 35 */ 36 /* { */ 37 38 /* } */ 39 40 /************* 41 * DEFINES * 42 */ 43 /* { */ 44 #define SWEEP_MAX_LINE_SIZE (200) 45 46 #define SWEEP_USE_RANDOM_SEED 0 47 48 /* } */ 49 50 /************* 51 * MACROS * 52 */ 53 /* { */ 54 55 /* } */ 56 57 /************* 58 * TYPE DEFS * 59 */ 60 /* { */ 61 62 /* } */ 63 64 /************* 65 * GLOBALS * 66 */ 67 /* { */ 68 69 /* } */ 70 71 /************* 72 * FUNCTIONS * 73 */ 74 /* { */ 75 76 #if !defined(FAP20M_STANDALONE_PACKAGE) && !(DUNE_STANDALONE_PACKAGE) 77 78 unsigned int 79 sweep_init_remote_access_system( 80 void 81 ); 82 83 #endif 84 85 /* } */ 86 /********************************************************** 87 * Start random mechanism. The seed can be determined either 88 * by the clock or by "given_seed". Enabling bug reproducing. 89 */ 90 91 unsigned int 92 sweep_set_random_seed( 93 unsigned int given_seed 94 ); 95 unsigned long 96 sweep_get_random_seed( 97 void 98 ); 99 100 101 102 #ifdef _MSC_VER 103 #pragma pack(pop) 104 #endif 105 106 #ifdef __cplusplus 107 } 108 #endif 109 110 111 /* } __SWEEP_UTILITIES_H_INCLUDED__*/ 112 #endif