diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-23 11:05:12 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-24 13:58:42 -0500 |
commit | 278c0621fbc4ef52177969edb6f07352da816fdb (patch) | |
tree | 1af11fc3f69948a0687df279255c754f5671bd99 /drivers/net/sfc/falcon.h | |
parent | 981fc1b4b8cc6bfe8c6f0c07052e25738d959c68 (diff) |
sfc: Make board information explicitly Falcon-specific
Rename struct efx_board to struct falcon_board.
Introduce and use inline function to look up board info from struct
efx_nic, in preparation for moving it.
Move board init and fini calls into NIC probe and remove functions.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 4dd965774a90..54dad2de22f2 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -29,6 +29,11 @@ static inline int falcon_rev(struct efx_nic *efx) | |||
29 | return efx->pci_dev->revision; | 29 | return efx->pci_dev->revision; |
30 | } | 30 | } |
31 | 31 | ||
32 | static inline struct falcon_board *falcon_board(struct efx_nic *efx) | ||
33 | { | ||
34 | return &efx->board_info; | ||
35 | } | ||
36 | |||
32 | extern struct efx_nic_type falcon_a_nic_type; | 37 | extern struct efx_nic_type falcon_a_nic_type; |
33 | extern struct efx_nic_type falcon_b_nic_type; | 38 | extern struct efx_nic_type falcon_b_nic_type; |
34 | 39 | ||