diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-06-28 17:23:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-06-28 17:23:59 +0000 |
commit | dfb546253b6e003a143b368f44bd043358d8f470 (patch) | |
tree | c7829154b3cb2ba77b6f0847dc749c3232f9a368 /target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | |
parent | 9362583263ce6877054cf8aedfc936843ed0b3ce (diff) | |
download | upstream-dfb546253b6e003a143b368f44bd043358d8f470.tar.gz upstream-dfb546253b6e003a143b368f44bd043358d8f470.tar.bz2 upstream-dfb546253b6e003a143b368f44bd043358d8f470.zip |
generic: rtl8366: standardize read_debugfs_mibs functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21983 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366_smi.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h index f1701a54a4..3b639f2b69 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h @@ -38,6 +38,8 @@ struct rtl8366_smi { unsigned int cpu_port; unsigned int num_ports; unsigned int num_vlan_mc; + unsigned int num_mib_counters; + struct rtl8366_mib_counter *mib_counters; struct rtl8366_smi_ops *ops; @@ -79,6 +81,8 @@ struct rtl8366_smi_ops { const struct rtl8366_vlan_4k *vlan4k); int (*get_mc_index)(struct rtl8366_smi *smi, int port, int *val); int (*set_mc_index)(struct rtl8366_smi *smi, int port, int index); + int (*get_mib_counter)(struct rtl8366_smi *smi, int counter, + int port, unsigned long long *val); }; int rtl8366_smi_init(struct rtl8366_smi *smi); |