power_test.c (1655B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * Implements power test APIs that will dispatch to per project power test APIs 8 * Projects supported: 9 * TRIDENT3 10 * MAVERICK2 11 * TOMAHAWK3 12 */ 13 14 15 #include <appl/diag/system.h> 16 #include <shared/alloc.h> 17 #include <shared/bsl.h> 18 19 #include <soc/cm.h> 20 #include <soc/dma.h> 21 #include <soc/drv.h> 22 #include <soc/dcb.h> 23 #include <soc/cmicm.h> 24 #include <soc/cmic.h> 25 26 #include <sal/types.h> 27 #include <appl/diag/parse.h> 28 #include <bcm/port.h> 29 #include <bcm/vlan.h> 30 31 #include "testlist.h" 32 33 #if defined(BCM_TRIDENT3_SUPPORT) || defined(BCM_MAVERICK2_SUPPORT) || defined(BCM_TOMAHAWK3_SUPPORT) 34 35 /* 36 * Function: 37 * power_test_init 38 * Purpose: 39 * Test init function. Parse CLI params and do necessary init. 40 * Parameters: 41 * unit - StrataSwitch Unit #. 42 * 43 * Returns: 44 * Nothing 45 */ 46 int 47 power_test_init(int unit, args_t *a, void **pa) 48 { 49 int rv = BCM_E_NONE; 50 return rv; 51 } 52 53 54 /* 55 * Function: 56 * power_test 57 * Purpose: 58 * Set up ports/streams and send packets. 59 * Parameters: 60 * unit - StrataSwitch Unit #. 61 * 62 * Returns: 63 * Nothing 64 */ 65 int 66 power_test(int unit, args_t *a, void *pa) 67 { 68 int rv = BCM_E_NONE; 69 return rv; 70 } 71 72 73 /* 74 * Function: 75 * power_test_cleanup 76 * Purpose: 77 * Do test end checks and free all allocated memory. 78 * Parameters: 79 * unit - StrataSwitch Unit #. 80 * 81 * Returns: 82 * Nothing 83 */ 84 int 85 power_test_cleanup(int unit, void *pa) 86 { 87 int rv = BCM_E_NONE; 88 89 return rv; 90 } 91 92 #endif