stubs.c (936B)
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 8 #include <sal/appl/pci.h> 9 #include <appl/diag/sysconf.h> 10 #include <appl/diag/system.h> 11 #include <appl/stktask/attach.h> 12 13 /* 14 * Satisfy shell.c w/o BCMX library 15 */ 16 17 int bcmx_unit_count; 18 19 #if defined(BROADCOM_DEBUG) 20 uint32 bcmx_debug_level; 21 char *bcmx_debug_names[] = {""}; 22 #endif /*defined(BROADCOM_DEBUG)*/ 23 24 25 /* 26 * Satisfy dispatch.c w/o stacking library 27 */ 28 29 int 30 bcm_stack_attach_register(bcm_stack_attach_cb_f callback) 31 { 32 return 0; 33 } 34 35 int 36 bcm_stack_attach_unregister(bcm_stack_attach_cb_f callback) 37 { 38 return 0; 39 } 40 41 /* 42 * These stubs are here for legacy compatability reasons. 43 * They are used only by the diag/test code, not the driver, 44 * so they are really not that important. 45 */ 46 47 void 48 pci_print_all(void) 49 { 50 }