qos.h (1794B)
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_QOS_H__ 14 #define __BCMX_QOS_H__ 15 16 #include <bcm/types.h> 17 #include <bcmx/bcmx.h> 18 #include <bcm/qos.h> 19 20 /* QoS Map Structure */ 21 typedef bcm_qos_map_t bcmx_qos_map_t; 22 23 /* Initialize the QoS Map structure. */ 24 extern void bcmx_qos_map_t_init( 25 bcmx_qos_map_t *qos_map); 26 27 /* Initialize the QoS subsystem. */ 28 extern int bcmx_qos_init(void); 29 30 /* Detach the QoS software module. */ 31 extern int bcmx_qos_detach(void); 32 33 extern int bcmx_qos_map_create( 34 uint32 flags, 35 int *map_id); 36 37 extern int bcmx_qos_map_destroy( 38 int map_id); 39 40 extern int bcmx_qos_map_add( 41 uint32 flags, 42 bcmx_qos_map_t *map, 43 int map_id); 44 45 extern int bcmx_qos_map_delete( 46 uint32 flags, 47 bcmx_qos_map_t *map, 48 int map_id); 49 50 extern int bcmx_qos_map_multi_get( 51 uint32 flags, 52 int map_id, 53 int array_size, 54 bcmx_qos_map_t *array, 55 int *array_count); 56 57 extern int bcmx_qos_port_map_set( 58 bcm_gport_t port, 59 int ing_map, 60 int egr_map); 61 62 extern int bcmx_qos_port_map_get( 63 bcm_gport_t port, 64 int *ing_map, 65 int *egr_map); 66 67 extern int bcmx_qos_port_vlan_map_set( 68 bcm_gport_t port, 69 bcm_vlan_t vid, 70 int ing_map, 71 int egr_map); 72 73 extern int bcmx_qos_port_vlan_map_get( 74 bcm_gport_t port, 75 bcm_vlan_t vid, 76 int *ing_map, 77 int *egr_map); 78 79 extern int bcmx_qos_multi_get( 80 int array_size, 81 int *map_ids_array, 82 int *flags_array, 83 int *array_count); 84 85 #endif /* __BCMX_QOS_H__ */