]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
staging: xroeframer: add support for multi-port Ethernet
authorVasileios Bimpikas <vasileios.bimpikas@xilinx.com>
Thu, 1 Nov 2018 16:41:46 +0000 (16:41 +0000)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 2 Nov 2018 10:39:16 +0000 (11:39 +0100)
commitf4fa8f2c1ef5a504abb8fc0f35bcfd857b438ca2
treea8bc957932e677ad5afa3550145ccda74292fd83
parentb15b50f8cdad2e5ccee22b528df1e624b4007684
staging: xroeframer: add support for multi-port Ethernet

Support for up to 4 Ethernet ports. This wraps all the "store" & "show"
functions of sysfs entries in a function which calculates the current
Ethernet port (when applicable) and adds the correct offset to the
address' register, which is ADDRESS + (0x100 * port_num). It defaults
to 0 for the non-applicable cases so no other entries are affected.

Signed-off-by: Vasileios Bimpikas <vasileios.bimpikas@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/staging/xroeframer/roe_framer_ctrl.h
drivers/staging/xroeframer/sysfs_xroe.c
drivers/staging/xroeframer/sysfs_xroe_framer_ipv4.c
drivers/staging/xroeframer/sysfs_xroe_framer_ipv6.c
drivers/staging/xroeframer/sysfs_xroe_framer_udp.c
drivers/staging/xroeframer/xroe_framer.h