]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Fill out the set of MCDI accessors
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 14 Sep 2012 16:30:58 +0000 (17:30 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 15:35:23 +0000 (16:35 +0100)
commit4efd05e1a7f19556d71fd3fb869ace522342b532
tree3f7184ceae5e7b012b68a45b704416fca20bdbb7
parent3ebe03e40f82516b872d6db4dd4cf881ea8548d2
sfc: Fill out the set of MCDI accessors

We need to access arrays of 16-bit words and 32-bit dwords in MCDI
buffers based on the MCDI protocol definitions.

We should also be able to read and write fields within structures,
without specifying an array index each time.  So add MCDI_FIELD()
and make MCDI_ARRAY_FIELD() use it.  Also add MCDI_SET_FIELD().

Split MCDI_ARRAY_PTR() into MCDI_ARRAY_STRUCT_PTR() and
_MCDI_ARRAY_PTR(), which are currently identical but will diverge in
later changes.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.h