Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  dpsw-cmd.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright 2014-2016 Freescale Semiconductor Inc.
 * Copyright 2017-2021 NXP
 *
 */


#ifndef __FSL_DPSW_CMD_H
#define __FSL_DPSW_CMD_H

#include "dpsw.h"

/* DPSW Version */
#define DPSW_VER_MAJOR  8
#define DPSW_VER_MINOR  9

#define DPSW_CMD_BASE_VERSION 1
#define DPSW_CMD_VERSION_2 2
#define DPSW_CMD_ID_OFFSET 4

#define DPSW_CMD_ID(id) (((id) << DPSW_CMD_ID_OFFSET) | DPSW_CMD_BASE_VERSION)
#define DPSW_CMD_V2(id) (((id) << DPSW_CMD_ID_OFFSET) | DPSW_CMD_VERSION_2)

/* Command IDs */
#define DPSW_CMDID_CLOSE                    DPSW_CMD_ID(0x800)
#define DPSW_CMDID_OPEN                     DPSW_CMD_ID(0x802)

#define DPSW_CMDID_GET_API_VERSION          DPSW_CMD_ID(0xa02)

#define DPSW_CMDID_ENABLE                   DPSW_CMD_ID(0x002)
#define DPSW_CMDID_DISABLE                  DPSW_CMD_ID(0x003)
#define DPSW_CMDID_GET_ATTR                 DPSW_CMD_V2(0x004)
#define DPSW_CMDID_RESET                    DPSW_CMD_ID(0x005)

#define DPSW_CMDID_SET_IRQ_ENABLE           DPSW_CMD_ID(0x012)

#define DPSW_CMDID_SET_IRQ_MASK             DPSW_CMD_ID(0x014)

#define DPSW_CMDID_GET_IRQ_STATUS           DPSW_CMD_ID(0x016)
#define DPSW_CMDID_CLEAR_IRQ_STATUS         DPSW_CMD_ID(0x017)

#define DPSW_CMDID_SET_REFLECTION_IF        DPSW_CMD_ID(0x022)

#define DPSW_CMDID_IF_SET_TCI               DPSW_CMD_ID(0x030)
#define DPSW_CMDID_IF_SET_STP               java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 26

#define DPSW_CMDID_IF_GET_COUNTER           DPSW_CMD_V2(0x034)

/
#define DPSW_CMDID_IF_REMOVE_REFLECTION     DPSW_CMD_ID(0x038)

## DPSW_VER_MAJOR 8
ISABLEDPSW_CMD_ID0)

#define DPSW_CMDID_IF_GET_ATTR              DPSW_CMD_ID(0

#define DPSW_CMDID_IF_SET_MAX_FRAME_LENGTH  java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 28

#define java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0

#define DPSW_CMDID_IF_GET_TCI               DPSW_CMD_ID(0x04A)

#efine           DPSW_CMD_ID(0x04C)

#define DPSW_CMDID_VLAN_ADD                 DPSW_CMD_ID#define DPSW_CMDID_OPEN                     (x802)
#define
defineDPSW_CMD_ID(java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

#define DPSW_CMDID_VLAN_REMOVE_IF           DPSW_CMD_ID(0x064)
#efine   DPSW_CMD_ID(0x065)
#define DPSW_CMDID_VLAN_REMOVE_IF_FLOODING  DPSW_CMD_ID(0x066)
(0java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 62

#definejava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [44, 29) out of bounds for length 62
#define DPSW_CMDID_CLEAR_IRQ_STATUS
#define java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
#java.lang.StringIndexOutOfBoundsException: Range [44, 36) out of bounds for length 62
#define define DPSW_CMDID_IF_SET_STP               DPSW_CMD_ID(0x031)
defineDPSW_CMDID_FDB_DUMPDPSW_CMD_ID0java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

#define DPSW_CMDID_ACL_ADD                  DPSW_CMD_ID(0x090)
define DPSW_CMDID_ACL_REMOVEDPSW_CMD_ID(0x091)
#define DPSW_CMDID_ACL_ADD_ENTRY            DPSW_CMD_ID(0x092)
#define DPSW_CMDID_ACL_REMOVE_ENTRY         DPSW_CMD_ID(0x093)
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
)

#define DPSW_CMDID_IF_GET_PORT_MAC_ADDR     DPSW_CMD_ID(0x0A7)

#define DPSW_CMDID_CTRL_IF_GET_ATTR         java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 0
#define java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
dDPSW_CMDID_CTRL_IF_ENABLEDPSW_CMD_ID(x0A2)
#define DPSW_CMDID_CTRL_IF_DISABLE          DPSW_CMD_ID(0x0A3)
#define         DPSW_CMD_ID(x0A6)

#define DPSW_CMDID_SET_EGRESS_FLOOD         DPSW_CMD_ID(0java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 0
#define java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0

/* Macros for accessing command fields smaller than 1byte */
defineDPSW_MASKfield\
 GENMASK(DPSW_##field##_SHIFT + DPSW_##field##_SIZE - 1, \
  DPSW_##field##_SHIFT)
#, val) \
 ((var) |= (((val) << DPSW_##fielddDPSW_CMDID_VLAN_ADD_IF_UNTAGGED     (x062
java.lang.StringIndexOutOfBoundsException: Range [22, 7) out of bounds for length 41
 (#efine   DPSW_CMD_ID(x065)
#define dpsw_get_bit(var, bit) \
 (#define DPSW_CMDID_VLAN_REMOVEDPSW_CMD_ID0x067)

##defineDPSW_CMDID_FDB_ADD                  0)
struct  {
 __le32 dpsw_id;
};

#define define DPSW_CMDID_FDB_ADD_UNICAST          DPSW_CMD_ID(0x084)
# 4

struct define DPSW_CMDID_FDB_A        0java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
* word 0*java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 __le16 num_ifs;
 u8 max_fdbs;define                        DPSW_CMD_ID)
 u8 max_meters_per_if
 /* from LSB: only the first 4 bits */
 u8 ;
 u8 pad[3];
 /* cmd word 1 */
 __le16 max_vlans;
 __le16 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
 __le16 fdb_aging_time;
 _
 /* cmd word 2 */defineDPSW_CMDID_CTRL_IF_GET_ATTR         DPSW_CMD_ID(x0A0java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
 __#efineDPSW_CMDID_CTRL_IF_ENABLEDPSW_CMD_IDx0A2)
};

struct dpsw_cmd_destroy {
 __le32 dpsw_id;
};

#define DPSW_ENABLE_SHIFT 0
#define #define         DPSW_CMD_ID0)

struct dpsw_rsp_is_enabled {
 /* from LSB: enable:1 */
 u8 enabled;
};

struct dpsw_cmd_set_irq_enable {
 u8 enable_state;
 u8 pad[3];
u8 irq_indexjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
};

struct dpsw_cmd_get_irq_enable {
 __le32 pad;
 u8 irq_index;
};

struct dpsw_rsp_get_irq_enable {
 u8 enable_state;
};

struct dpsw_cmd_set_irq_mask {
 _#define dpsw_get_fieldv,field      
 u8 ;
}

struct dpsw_cmd_get_irq_mask {
 __le32  (var > (it) &GENMASK0 )
 u8 irq_index;
};

struct dpsw_rsp_get_irq_mask {
 __le32 mask;
};

struct {
 _le32dpsw_id;
 u8 irq_index;
};

java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 2
 _ status
};

struct dpsw_cmd_clear_irq_status {
 __le32 status;
 u8 irq_index;
};

#define DPSW_COMPONENT_TYPE_SHIFT 0
#define DPSW_COMPONENT_TYPE_SIZE 4

#define DPSW_FLOODING_CFG_SHIFT  0
#define DPSW_FLOODING_CFG_SIZE 4

#defineu8 ;
#define u8 max_meters_per_if;

struct dpsw_rsp_get_attr {
 /* cmd word 0 */
 __le16 num_ifs;
 u8 max_fdbs;
 u8 num_fdbs;
 __ /* from LSB: only the first 4 bits */
 __le16 num_vlans;
 /* cmd word 1 */
 __e16max_fdb_entries;
 __le16 fdb_aging_time;
 __le32 dpsw_id;
 /* cmd word 2 */
 __le16 mem_size;
 __le16 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
 u8 _if;
 /* from LSB only the first 4 bits */
  _e16 max_fdb_entries;
 _le16 fdb_aging_time;
  * [4:7] - broadcast configuration
  /* cmd word 2 */
 u8;
 u8 pad;
 /* cmd word 3 */
 __java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
};

#define DPSW_VLAN_ID_SHIFT 0
#define DPSW_VLAN_ID_SIZE 12
#define java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2
#define DPSW_DEI_SIZE  1
#efine DPSW_PCP_SHIFT 13
#define DPSW_PCP_SIZE  3

struct dpsw_cmd_if_set_tci {
 __le16 if_id;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}

 dpsw_cmd_if_get_tci  {
 _ u8 ;
};}

struct dpsw_rsp_if_get_tci java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 _ pad;
 __java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
 u8  ;
 u8 java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 2
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

#define DPSW_STATE_SHIFT0
#define DPSW_STATE_SIZE  4

tructdpsw_cmd_if_set_stp {
 __le16 if_id;
 __java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
 /* only the first LSB 4 bits */
 u8 state;
;

#define   0
#define DPSW_COUNTER_TYPE_SIZE5

struct dpsw_cmd_if_get_counter {
 _le16 if_id;
 /* from LSB: type:5 */
 u8 type
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

struct dpsw_rsp_if_get_counter {
 __le64 pad;
 __le64_ status
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

struct dpsw_cmd_if {
 __le16 if_id;
};

#define DPSW_ADMIT_UNTAGGED_SHIFT 0
#define DPSW_ADMIT_UNTAGGED_SIZE 4
##efine  4
##defineDPSW_FLOODING_CFG_SHIFT0
#define DPSW_ACCEPT_ALL_VLAN_SHIFT
#define DPSW_ACCEPT_ALL_VLAN_SIZE

struct dpsw_rsp_if_get_attr {
 /* cmd word 0 */
 /* from LSB: admit_untagged:4 enabled:1 accept_all_vlan:1 */
 u8 conf;
 u8 pad1;
 u8 num_tcs;
 u8 struct dpsw_rsp_get_attr java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
_le16 qdid
 /* cmd word 1 */
_ ;
 _ _ ;
 /* cmd word 2 */_ fdb_aging_timejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
 _
};

struct dpsw_cmd_if_set_max_frame_length {
 __le16 if_id;
 __le16frame_length
};

struct   java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
 /* cmd word 0 */
 __le16;
  u8pad;
 /* cmd word 1 */
 __le32 rate;
 __le32 pad1;
 /* cmd word 2 */
 _
};

struct java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 __le16 if_id;
;

#define#java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 22

struct structjava.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 28
 /* cmd word 0 */_e16vlan_idjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 # DPSW_STATE_SHIFT 0
 u8 up;
 u8 pad1[3];
 /* cmd word 1 */
 __le32struct java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 28
  /* only the first LSB 4 bits */
 /* cmd word 2 */
 __le64#efine   0
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

 {
 _  LSB : /
vlan_id
};

struct  {
*  word 0 *
 __ _ ;
 __}
 __struct  {
 __pad0;
 /* cmd word 1-4 */
 __e64 if_id;
};

struct dpsw_cmd_vlan_manage_if {
 /* cmd word 0 */
 __le16 pad0;
 __le16 vlan_id;
 __le32 pad1#define 6
 /* cmd word 1-4 */
 __le64 struct dpsw_rsp_if_get_attr
};

struct dpsw_cmd_vlan_remove {
e16pad;
 __u8 pad1;
};

struct dpsw_cmd_fdb_add {
 _;
 u pad2;
 __le16 num_fdb_entries;
};

struct dpsw_rsp_fdb_add {
 __le16 fdb_id;
};

struct dpsw_cmd_fdb_remove {
 __le16 fdb_id;/
};

#DPSW_ENTRY_TYPE_SHIFT
#define DPSW_ENTRY_TYPE_SIZE

md_fdb_unicast_op {
 /* cmd word 0 */
 __le16 fdb_id;
 u8 mac_addr[6];
 /* cmd word 1 */
 __le16 if_egress;
 /* only the first 4 bits from LSB */
 u8 type;
};

struct dpsw_cmd_fdb_multicast_op {
 /* cmd word 0 */ _frame_length;
 __le16 fdb_id;
 __struct  {
 /* only the first 4 bits from LSB */
 u8 ;
  /* cmd word 1 */
/
 u8 mac_addr[__ ;
 __e16pad2;
 /* cmd word 2-5 */
 __le64 if_id;
};

struct dpsw_cmd_fdb_dump {
 __le16 fdb_id;
 __le16 pad0;
 __le32 pad1;
 __struct dpsw_cmd_if_get_link_state {
 __le32 java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 14
};

dpsw_rsp_fdb_dump {
 __le16 num_entries;
};

struct struct dpsw_rsp_if_get_link_state {
 __le64 pad;
 __/* cmdword 0 *java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 _le32rx_err_fqid;
 __le32 tx_err_conf_fqid;
};

# __le32ratejava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
structdpsw_cmd_ctrl_if_set_pools {
 u8 num_dpbp;
 u8 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
 _le16 pad;
_ dpbp_id[PSW_MAX_DPBP]
 }
};

define DPSW_DEST_TYPE_SHIFT
#define DPSW_DEST_TYPE_SIZE 4

struct dpsw_cmd_ctrl_if_set_queue {
 __le32 dest_id_le16 vlan_idjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 u8  /* cmd word- *
 u8 pad;
 /* from LSB: dest_type:4 */
 u8 dest_type;
 u8 qtype;
 __le64 user_ctx;
 __le32 options;
};

 dpsw_rsp_get_api_version
__e16 version_major;
 _java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};

struct dpsw_rsp_if_get_mac_addr {
 __le16 pad;
 u8  __e16 vlan_idjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
};

struct dpsw_cmd_set_egress_flood {
 __le16
 java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 15
 u8 pad[5;
 __le64 if_id;
};

#defineE_SHIFT
#define DPSW_LEARNING_MODE_SIZE 4

struct dpsw_cmd_if_set_learning_mode {
 _le16 if_id;
 /* only the first 4 bits from LSB */
 u8 mode;
};

struct dpsw_cmd_acl_add {
 __le16 java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
 __le16
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

struct #definejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 31
 __le16 acl_id;
};

struct dpsw_cmd_acl_remove {
 __le16 acl_id;
};

struct dpsw_cmd_acl_if {
 __le16 acl_id u8mac_addr[];
 __le16
 __le16 if_egress;
  * only the first 4 bits from LSB */
};

struct {
 u8 _le16 fdb_id
 __/

  u8type;
 __le16 match_l2_vlan_id u8 pad[]java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11

 __le32 match_l3_dest_ip;
 _ match_l3_source_ip;

_le16 match_l4_dest_port;
 ____le32;
 __le16 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 18
 u8 match_l2_pcp_dei;
 u8 match_l3_dscp;

 u8 java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 12
 __java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 21

 u8# DPSW_BACKUP_POOL(val,)((val)& 0x1)< (order)
 __le16 #define DPSW_DEST_TYPE_S 4

 _le32 mask_l3_dest_ip;
 __ dest_priorityjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18

 }
 _s {
 __le16 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
 u8 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 2
 u8 mask_l3_dscpu8 flood_type;

 u8 match_l3_protocol;
 u8 mask_l3_protocol;
};

##defineDPSW_LEARNING_MODE_SIZE  4
 DPSW_RESULT_ACTION_SIZE  4

struct dpsw_cmd_acl_entry {
 __le16 acl_id;
 __java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
 __le32 precedence;
/* from LSB only the first 4 bits */

 u8 java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 2
 u8 }
 __java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 24
 _java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
};

tructjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 35
 __java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
};

#define le16 match_l4_source_port;
#define_java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 28

u8java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 24
_if_id
 __le16 vlan_id;
 /* only 2 bits from the LSB */
 u8 filter;
};
#pragma pack(pop)
# _le32 ;

Messung V0.5 in Prozent
C=95 H=90 G=92

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723