audk/EmbeddedPkg/Drivers/Lan9118Dxe
Mark Rutland 73683a2464 EmbeddedPkg/Lan9118Dxe: add LAN9118 MMIO wrappers
As described in the LAN9118 datasheet, delays are necessary after some
reads and writes in order to ensure subsequent reads do not see stale
data.

This patch adds helpers to provide these delays automatically, by
performing dummy reads of the BYTE_TEST register (as recommended in the
LAN9118 datasheet). This approach allows the device register file itself
to provide the required delay, avoiding issues with early write
acknowledgement, or re-ordering of MMIO accesses aganist other
instructions (e.g. the delay loop).

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2016-05-10 14:48:48 +02:00
..
Lan9118Dxe.c Revert "EmbeddedPkg/Lan9118Dxe: use MemoryFence" 2016-05-10 14:48:25 +02:00
Lan9118Dxe.h ARM Packages: Replace tabs by spaces for indentation 2014-08-26 10:14:17 +00:00
Lan9118Dxe.inf EmbeddedPkg/Lan9118Dxe: add PCD for negotiation timeout 2016-02-10 17:56:43 +01:00
Lan9118DxeHw.h EmbeddedPkg/Lan9118Dxe: add LAN9118 MMIO wrappers 2016-05-10 14:48:48 +02:00
Lan9118DxeUtil.c EmbeddedPkg/Lan9118Dxe: add LAN9118 MMIO wrappers 2016-05-10 14:48:48 +02:00
Lan9118DxeUtil.h EmbeddedPkg/Lan9118Dxe: add LAN9118 MMIO wrappers 2016-05-10 14:48:48 +02:00