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

led.c (978B)


      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  * File:        led.c
      8  * Purpose:     LED driver support
      9  */
     10 
     11 #include <bcm/error.h>
     12 #include <board_int/support.h>
     13 
     14 /*
     15  * Function:
     16  *     board_led_init
     17  * Purpose:
     18  *     Initialize LED subsystem
     19  * Parameters:
     20  *     unit - (IN) BCM device number
     21  * Returns:
     22  *     BCM_E_NONE - success
     23  *     BCM_E_XXX - failed
     24  */
     25 int
     26 board_led_init(int unit, int offset, int len, uint8 *pgm)
     27 {
     28     /* clear program, data */
     29     /* copy program */
     30     /* register with linkscan */
     31     return BCM_E_UNAVAIL;
     32 }
     33 
     34 /*
     35  * Function:
     36  *     board_led_deinit
     37  * Purpose:
     38  *     Deinitialize LED subsystem
     39  * Parameters:
     40  *     unit - (IN) BCM device number
     41  * Returns:
     42  *     BCM_E_NONE - success
     43  *     BCM_E_XXX - failed
     44  */
     45 int
     46 board_led_deinit(int unit)
     47 {
     48     return BCM_E_UNAVAIL;
     49 }
     50