| 123456789101112131415161718192021222324252627282930313233 |
- #ifndef __NETSWITCH_Hx__
- #define __NETSWITCH_Hx__
- #include <stdint.h>
- #include "common.h"
- enum {
- EVT_NONE=0,
- EVT_CAB_IN,
- EVT_CAB_OUT,
- EVT_IP_CHG,
- EVT_MAC_CHG,
- };
- typedef struct {
- uint8_t cab; //cable
- uint8_t dev; //device connect to the port
- }netswitch_evt_t;
- typedef struct {
- netswitch_evt_t evt[SW_PORT_MAX];
- }netswitch_evts_t;
- int netswitch_init(void);
- int netswitch_deinit(void);
- int netswitch_get(netswitch_info_t *info);
- #endif
|