diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-06-08 20:18:20 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-06-08 20:18:20 +0000 |
commit | 83ae20132ecdff6b9e598c04c04358be694cf056 (patch) | |
tree | 4e79b64d984586f66fb57ad139b2c6a62ae74914 /include/package-bin.mk | |
parent | ce244e155a3b6f19202fd7a79c838358aa85af8c (diff) | |
download | upstream-83ae20132ecdff6b9e598c04c04358be694cf056.tar.gz upstream-83ae20132ecdff6b9e598c04c04358be694cf056.tar.bz2 upstream-83ae20132ecdff6b9e598c04c04358be694cf056.zip |
ip17xx: Introduce indirection of low-level operations
This patch introduces seperation between low-level and high-level parts
of the driver. The low-level functions are now called via pointers stored
in struct ip175c_regs.
The only functional changes are:
o correct_vlan_state() is now called as a part of every update_state().
o The order of setting of MODE_REG and resetting switch ports
has changed. (These are independent actions, so it should not matter.)
o ip175c_set_tagged() sets the tags via update_state() instead of writing
directly to the registers.
o The same for ip175c_set_pvid().
The only gaps in this abstraction are operations on ports (get_port_speed
and friends), which access PHY registers directly.
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21714 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/package-bin.mk')
0 files changed, 0 insertions, 0 deletions