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

switch.h (1434B)


      1 /*
      2  * 
      3  * 
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  * 
      8  * DO NOT EDIT THIS FILE!
      9  * This file is auto-generated.
     10  * Edits to this file will be lost when it is regenerated.
     11  */
     12 
     13 #ifndef __BCMX_SWITCH_H__
     14 #define __BCMX_SWITCH_H__
     15 
     16 #include <bcm/types.h>
     17 #include <bcmx/bcmx.h>
     18 #include <bcm/switch.h>
     19 
     20 /* Configure device-wide operating modes. */
     21 extern int bcmx_switch_control_set(
     22     bcm_switch_control_t type, 
     23     int arg);
     24 
     25 /* Get device-wide operating modes. */
     26 extern int bcmx_switch_control_get(
     27     bcm_switch_control_t type, 
     28     int *arg);
     29 
     30 /* Configure port-specific operating modes. */
     31 extern int bcmx_switch_control_port_set(
     32     bcmx_lport_t port, 
     33     bcm_switch_control_t type, 
     34     int arg);
     35 
     36 /* Get port-specific operating modes. */
     37 extern int bcmx_switch_control_port_get(
     38     bcmx_lport_t port, 
     39     bcm_switch_control_t type, 
     40     int *arg);
     41 
     42 /* Configure encapsulation priority for the internal priority queue. */
     43 extern int bcmx_switch_rcpu_encap_priority_map_set(
     44     uint32 flags, 
     45     int internal_cpu_pri, 
     46     int encap_pri);
     47 
     48 /* Retrieve encapsulation priority of the internal priority queue. */
     49 extern int bcmx_switch_rcpu_encap_priority_map_get(
     50     uint32 flags, 
     51     int internal_cpu_pri, 
     52     int *encap_pri);
     53 
     54 #endif /* __BCMX_SWITCH_H__ */