openwrt/target/linux/generic-2.6/files/drivers
Gabor Juhos 065bc60f37 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
2010-06-08 20:18:20 +00:00
..
char deduplicate kernel source files from 2.6.30-2.6.32 by moving them to generic files/ 2009-12-25 10:34:21 +00:00
input/misc gpio_buttons: include slab.h 2010-05-12 22:50:26 +00:00
leds kernel: fix build with kernel 2.6.34-rc4 2010-04-18 17:14:49 +00:00
mtd generic-2.6: make MyLoader parser compatible with the old partition tables 2009-01-23 11:54:44 +00:00
net/phy ip17xx: Introduce indirection of low-level operations 2010-06-08 20:18:20 +00:00