diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:48:55 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:48 -0400 |
commit | a515089c963b045f65c495cee1d344d8cb75e1d1 (patch) | |
tree | 55bc6bbbe1d70b3cc2bbcbc1d778d4271efcf480 /drivers/net/sfc/falcon_hwdefs.h | |
parent | 2467ca46b6bb7672ed59fc74ac6780bf10bcd742 (diff) |
sfc: Rework the bitfield header so that we can identify fields by bit number
This will support register self-tests.
From: Steve Hodgson <shodgson@solarflare.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/falcon_hwdefs.h')
-rw-r--r-- | drivers/net/sfc/falcon_hwdefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/falcon_hwdefs.h b/drivers/net/sfc/falcon_hwdefs.h index 7c784f71f185..a3260dfb49a3 100644 --- a/drivers/net/sfc/falcon_hwdefs.h +++ b/drivers/net/sfc/falcon_hwdefs.h | |||
@@ -1147,8 +1147,8 @@ struct falcon_nvconfig_board_v3 { | |||
1147 | #define SPI_DEV_TYPE_ERASE_SIZE_WIDTH 5 | 1147 | #define SPI_DEV_TYPE_ERASE_SIZE_WIDTH 5 |
1148 | #define SPI_DEV_TYPE_BLOCK_SIZE_LBN 24 | 1148 | #define SPI_DEV_TYPE_BLOCK_SIZE_LBN 24 |
1149 | #define SPI_DEV_TYPE_BLOCK_SIZE_WIDTH 5 | 1149 | #define SPI_DEV_TYPE_BLOCK_SIZE_WIDTH 5 |
1150 | #define SPI_DEV_TYPE_FIELD(type, field) \ | 1150 | #define SPI_DEV_TYPE_FIELD(type, field) \ |
1151 | (((type) >> EFX_LOW_BIT(field)) & EFX_MASK32(field)) | 1151 | (((type) >> EFX_LOW_BIT(field)) & EFX_MASK32(EFX_WIDTH(field))) |
1152 | 1152 | ||
1153 | #define NVCONFIG_BASE 0x300 | 1153 | #define NVCONFIG_BASE 0x300 |
1154 | #define NVCONFIG_BOARD_MAGIC_NUM 0xFA1C | 1154 | #define NVCONFIG_BOARD_MAGIC_NUM 0xFA1C |