u-boot-2016/drivers
Thomas Petazzoni cfa414aefd net: mvpp2: add and use accessors for TX/RX descriptors
The PPv2.2 IP has a different TX and RX descriptor layout compared to
PPv2.1. In order to prepare for the introduction of PPv2.2 support in
mvpp2, this commit adds accessors for the different fields of the TX
and RX descriptors, and changes the code to use them.

For now, the mvpp2_port argument passed to the accessors is not used,
but it will be used in follow-up to update the descriptor according to
the version of the IP being used.

Apart from the mechanical changes to use the newly introduced
accessors, a few other changes, needed to use the accessors, are made:

- The mvpp2_txq_inc_put() function now takes a mvpp2_port as first
  argument, as it is needed to use the accessors.

- Similarly, the mvpp2_bm_cookie_build() gains a mvpp2_port first
  argument, for the same reason.

- In mvpp2_rx_error(), instead of accessing the RX descriptor in each
  case of the switch, we introduce a local variable to store the
  packet size.

- Similarly, in mvpp2_buff_hdr_rx(), we introduce a local "cookie"
  variable to store the RX descriptor cookie, rather than accessing
  it from the descriptor each time.

- In mvpp2_tx_frag_process() and mvpp2_tx() instead of accessing the
  packet size from the TX descriptor, we use the actual value
  available in the function, which is used to set the TX descriptor
  packet size a few lines before.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2017-03-29 07:40:34 +02:00
..
adc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
bios_emulator bios_emulator: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
block block: Move ceva driver to DM 2016-12-20 09:15:27 +01:00
bootcount bootcounter_ram: Fix misaligned cache warning 2016-11-28 15:10:34 -05:00
clk Merge git://git.denx.de/u-boot-rockchip 2017-03-17 14:15:17 -04:00
core regmap: use fdt address translation 2017-03-29 07:38:07 +02:00
cpu cpu: Add get_vendor callback 2016-10-19 09:01:51 +02:00
crypto crypto: Move CONFIG_SYS_FSL_SEC_LE and _BE to Kconfig 2017-01-04 19:40:19 -05:00
ddr ddr: fsl: Merge macro CONFIG_NUM_DDR_CONTROLLERS and CONFIG_SYS_NUM_DDR_CTRLS 2017-01-04 19:40:52 -05:00
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu dfu: align array in dfu_get_dev_type with enum dfu_device_type 2016-11-03 11:55:25 +01:00
dma treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
fpga fpga: zynqmp: Remove empty functions 2017-01-10 10:18:11 +01:00
gpio gpio: Add Rapid GPIO2P driver for i.MX7ULP 2017-03-17 09:27:08 +01:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
i2c i2c: lpi2c: add lpi2c driver for i.MX7ULP 2017-03-17 09:27:08 +01:00
input dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
led dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
mailbox dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
memory memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
misc mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP 2017-03-17 09:27:08 +01:00
mmc mmc: xenon_sdhci: Add missing host->max_clk to Xenon SDHCI driver 2017-03-29 07:38:07 +02:00
mtd mtd: nand: build MXS driver for MX7 as well 2017-02-19 16:20:28 +01:00
net net: mvpp2: add and use accessors for TX/RX descriptors 2017-03-29 07:40:34 +02:00
pch dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
pci mvebu: pcie: Add support for GPIO reset for PCIe device 2017-03-29 07:38:08 +02:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
phy/marvell dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-03-19 15:13:38 -04:00
power sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0 2017-03-09 11:26:02 +09:00
pwm pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif 2017-02-08 16:24:26 -05:00
qe powerpc: P1025: Remove macro CONFIG_P1025 2016-11-23 23:42:10 -08:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
rtc rtc: pcf2127: Update Kconfig and code style 2017-01-14 16:47:59 -05:00
serial Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-03-19 15:13:38 -04:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register 2017-03-29 07:38:07 +02:00
spmi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
sysreset rockchip: rk3328: add sysreset driver 2017-03-16 16:03:46 -06:00
thermal imx: thermal: Kconfig: add MX7 2017-01-02 17:08:25 +01:00
timer drivers: timer: Introduce ARC timer driver 2017-03-29 07:38:11 +02:00
tpm lib: tpm: Add command to flush resources 2017-02-01 09:02:57 +01:00
twserial
usb mvebu: usb: xhci: Add VBUS regulator supply to the host driver 2017-03-29 07:38:08 +02:00
video rockchip: video: Remove CSC initialization (HDMI) 2017-03-16 16:03:47 -06:00
watchdog wdog: Add the watchdog driver for MX7ULP. 2017-03-17 09:27:08 +01:00
Kconfig fsl_ddr: Move DDR config options to driver Kconfig 2017-01-04 19:40:41 -05:00
Makefile spl: Allow PCH drivers to be used in SPL 2017-02-06 11:38:46 +08:00