AR8216_PORT_STATE_FORWARD = 4
};
+/* mib counter type */
+enum {
+ AR8XXX_MIB_BASIC = 0,
+ AR8XXX_MIB_EXTENDED = 1
+};
+
enum {
AR8XXX_VER_AR8216 = 0x01,
AR8XXX_VER_AR8236 = 0x03,
unsigned int size;
unsigned int offset;
const char *name;
+ u8 type;
};
struct ar8xxx_chip {
struct delayed_work mib_work;
u64 *mib_stats;
u32 mib_poll_interval;
+ u8 mib_type;
struct list_head list;
unsigned int use_count;
const struct switch_attr *attr,
struct switch_val *val);
int
+ar8xxx_sw_set_mib_type(struct switch_dev *dev,
+ const struct switch_attr *attr,
+ struct switch_val *val);
+int
+ar8xxx_sw_get_mib_type(struct switch_dev *dev,
+ const struct switch_attr *attr,
+ struct switch_val *val);
+int
ar8xxx_sw_set_mirror_rx_enable(struct switch_dev *dev,
const struct switch_attr *attr,
struct switch_val *val);