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 | 065bc60f37d9b5a972c6ff23c7b5f69fe5d5582c (patch) | |
tree | 46f86c06e1193d06fcd8309b869fc2dfa5bab7d8 /target/linux/generic-2.6/patches-2.6.35/250-pppoe_header_pad.patch | |
parent | 09be47cf909c9313901998527d6ec80f69fad02b (diff) | |
download | mtk-20170518-065bc60f37d9b5a972c6ff23c7b5f69fe5d5582c.zip mtk-20170518-065bc60f37d9b5a972c6ff23c7b5f69fe5d5582c.tar.gz mtk-20170518-065bc60f37d9b5a972c6ff23c7b5f69fe5d5582c.tar.bz2 |
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>
SVN-Revision: 21714
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.35/250-pppoe_header_pad.patch')
0 files changed, 0 insertions, 0 deletions