aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/siena_sriov.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-09-14 17:30:58 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-21 16:35:23 +0100
commita649dfcb48ea60490d9bb06fbeb65baaf59524e3 (patch)
tree3f7184ceae5e7b012b68a45b704416fca20bdbb7 /drivers/net/ethernet/sfc/siena_sriov.c
parentsfc: Rationalise MCDI buffer accessors (diff)
downloadlinux-dev-a649dfcb48ea60490d9bb06fbeb65baaf59524e3.tar.xz
linux-dev-a649dfcb48ea60490d9bb06fbeb65baaf59524e3.zip
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena_sriov.c')
0 files changed, 0 insertions, 0 deletions