]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[intel] Remove hardcoded offsets for descriptor ring registers
authorMichael Brown <mcb30@ipxe.org>
Wed, 3 Apr 2013 14:20:55 +0000 (15:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 18 Apr 2013 22:56:05 +0000 (23:56 +0100)
commitc2ba57e517031c751b93ffc59fa30ffa4d03ba0d
tree876cc77a2db70b9710f8c7986b62c31ca1388909
parent9909e7b10ab9c2e1fd9b81eaac59fbaec76b9613
[intel] Remove hardcoded offsets for descriptor ring registers

The Intel 10 Gigabit NICs use the same simplified (aka "legacy")
descriptor format and the same layout for descriptor register blocks
as the Intel 1 Gigabit NICs.  The offsets of the descriptor register
blocks are not the same.

Simplify reuse of the existing code by removing all hardcoded offsets
for registers within descriptor register blocks, and ensuring that all
offsets are calculated using the descriptor register block base
address provided via intel_init_ring().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intel.c
src/drivers/net/intel.h