openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

sysconf.c (747B)


      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 <shared/bslext.h>
      9 
     10 #include <sal/appl/sal.h>
     11 #include <sal/appl/config.h>
     12 #include <sal/appl/io.h>
     13 
     14 #include <soc/drv.h>
     15 
     16 #include <appl/diag/sysconf.h>
     17 
     18 #include <bcm-core.h>
     19 
     20 int
     21 sysconf_probe(void)
     22 {
     23     return 0;
     24 }
     25 
     26 int
     27 sysconf_attach(int unit)
     28 {
     29     
     30     if ( (soc_attached(unit)) ||
     31         (CMDEV(unit).dev.info->dev_type & SOC_ETHER_DEV_TYPE) ) {
     32         printk("OK - already attached\n");
     33         return 0;
     34     }
     35     return -1;
     36 }
     37 
     38 int
     39 sysconf_detach(int unit)
     40 {
     41     return 0;
     42 }
     43 
     44 int
     45 sysconf_init(void)
     46 {
     47     return 0;
     48 }