Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __DSA_LOOP_H
0003 #define __DSA_LOOP_H
0004 
0005 struct dsa_chip_data;
0006 
0007 struct dsa_loop_pdata {
0008     /* Must be first, such that dsa_register_switch() can access this
0009      * without gory pointer manipulations
0010      */
0011     struct dsa_chip_data cd;
0012     const char *name;
0013     unsigned int enabled_ports;
0014     const char *netdev;
0015 };
0016 
0017 #define DSA_LOOP_NUM_PORTS  6
0018 #define DSA_LOOP_CPU_PORT   (DSA_LOOP_NUM_PORTS - 1)
0019 
0020 #endif /* __DSA_LOOP_H */