Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224950
b: refs/heads/master
c: e506147
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings committed Dec 6, 2010
1 parent c98a783 commit b48dc8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a29cc40115c011895143c5f8278dee49423d5df
refs/heads/master: e506147271229d6c53b42c6a9897db67b5cfdb6d
15 changes: 14 additions & 1 deletion trunk/drivers/net/sfc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,20 @@ static inline void efx_readd_table(struct efx_nic *efx, efx_dword_t *value,
static inline void _efx_writeo_page(struct efx_nic *efx, efx_oword_t *value,
unsigned int reg, unsigned int page)
{
efx_writeo(efx, value, EFX_PAGED_REG(page, reg));
reg = EFX_PAGED_REG(page, reg);

netif_vdbg(efx, hw, efx->net_dev,
"writing register %x with " EFX_OWORD_FMT "\n", reg,
EFX_OWORD_VAL(*value));

#ifdef EFX_USE_QWORD_IO
_efx_writeq(efx, value->u64[0], reg + 0);
#else
_efx_writed(efx, value->u32[0], reg + 0);
_efx_writed(efx, value->u32[1], reg + 4);
#endif
_efx_writed(efx, value->u32[2], reg + 8);
_efx_writed(efx, value->u32[3], reg + 12);
}
#define efx_writeo_page(efx, value, reg, page) \
_efx_writeo_page(efx, value, \
Expand Down

0 comments on commit b48dc8c

Please sign in to comment.