Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
falcon_boards.c File Reference
#include <linux/rtnetlink.h>
#include "net_driver.h"
#include "phy.h"
#include "efx.h"
#include "nic.h"
#include "workarounds.h"

Go to the source code of this file.

Macros

#define FALCON_BOARD_TYPE(_rev)   (_rev >> 8)
 
#define FALCON_BOARD_MAJOR(_rev)   ((_rev >> 4) & 0xf)
 
#define FALCON_BOARD_MINOR(_rev)   (_rev & 0xf)
 
#define FALCON_BOARD_SFE4001   0x01
 
#define FALCON_BOARD_SFE4002   0x02
 
#define FALCON_BOARD_SFE4003   0x03
 
#define FALCON_BOARD_SFN4112F   0x52
 
#define FALCON_BOARD_TEMP_BIAS   15
 
#define FALCON_BOARD_TEMP_CRIT   (80 + FALCON_BOARD_TEMP_BIAS)
 
#define FALCON_JUNC_TEMP_MIN   0
 
#define FALCON_JUNC_TEMP_MAX   90
 
#define FALCON_JUNC_TEMP_CRIT   125
 
#define LM87_REG_TEMP_HW_INT_LOCK   0x13
 
#define LM87_REG_TEMP_HW_EXT_LOCK   0x14
 
#define LM87_REG_TEMP_HW_INT   0x17
 
#define LM87_REG_TEMP_HW_EXT   0x18
 
#define LM87_REG_TEMP_EXT1   0x26
 
#define LM87_REG_TEMP_INT   0x27
 
#define LM87_REG_ALARMS1   0x41
 
#define LM87_REG_ALARMS2   0x42
 
#define LM87_IN_LIMITS(nr, _min, _max)   0x2B + (nr) * 2, _max, 0x2C + (nr) * 2, _min
 
#define LM87_AIN_LIMITS(nr, _min, _max)   0x3B + (nr), _max, 0x1A + (nr), _min
 
#define LM87_TEMP_INT_LIMITS(_min, _max)   0x39, _max, 0x3A, _min
 
#define LM87_TEMP_EXT1_LIMITS(_min, _max)   0x37, _max, 0x38, _min
 
#define LM87_ALARM_TEMP_INT   0x10
 
#define LM87_ALARM_TEMP_EXT1   0x20
 
#define PCA9539   0x74
 
#define P0_IN   0x00
 
#define P0_OUT   0x02
 
#define P0_INVERT   0x04
 
#define P0_CONFIG   0x06
 
#define P0_EN_1V0X_LBN   0
 
#define P0_EN_1V0X_WIDTH   1
 
#define P0_EN_1V2_LBN   1
 
#define P0_EN_1V2_WIDTH   1
 
#define P0_EN_2V5_LBN   2
 
#define P0_EN_2V5_WIDTH   1
 
#define P0_EN_3V3X_LBN   3
 
#define P0_EN_3V3X_WIDTH   1
 
#define P0_EN_5V_LBN   4
 
#define P0_EN_5V_WIDTH   1
 
#define P0_SHORTEN_JTAG_LBN   5
 
#define P0_SHORTEN_JTAG_WIDTH   1
 
#define P0_X_TRST_LBN   6
 
#define P0_X_TRST_WIDTH   1
 
#define P0_DSP_RESET_LBN   7
 
#define P0_DSP_RESET_WIDTH   1
 
#define P1_IN   0x01
 
#define P1_OUT   0x03
 
#define P1_INVERT   0x05
 
#define P1_CONFIG   0x07
 
#define P1_AFE_PWD_LBN   0
 
#define P1_AFE_PWD_WIDTH   1
 
#define P1_DSP_PWD25_LBN   1
 
#define P1_DSP_PWD25_WIDTH   1
 
#define P1_RESERVED_LBN   2
 
#define P1_RESERVED_WIDTH   2
 
#define P1_SPARE_LBN   4
 
#define P1_SPARE_WIDTH   4
 
#define MAX664X_REG_RSL   0x02
 
#define MAX664X_REG_WLHO   0x0B
 
#define SFE4002_FAULT_LED   (2) /* Red */
 
#define SFE4002_RX_LED   (0) /* Green */
 
#define SFE4002_TX_LED   (1) /* Amber */
 
#define SFN4112F_ACT_LED   0
 
#define SFN4112F_LINK_LED   1
 
#define SFE4003_RED_LED_GPIO   11
 
#define SFE4003_LED_ON   1
 
#define SFE4003_LED_OFF   0
 

Functions

int falcon_probe_board (struct efx_nic *efx, u16 revision_info)
 

Macro Definition Documentation

#define FALCON_BOARD_MAJOR (   _rev)    ((_rev >> 4) & 0xf)

Definition at line 21 of file falcon_boards.c.

#define FALCON_BOARD_MINOR (   _rev)    (_rev & 0xf)

Definition at line 22 of file falcon_boards.c.

#define FALCON_BOARD_SFE4001   0x01

Definition at line 25 of file falcon_boards.c.

#define FALCON_BOARD_SFE4002   0x02

Definition at line 26 of file falcon_boards.c.

#define FALCON_BOARD_SFE4003   0x03

Definition at line 27 of file falcon_boards.c.

#define FALCON_BOARD_SFN4112F   0x52

Definition at line 28 of file falcon_boards.c.

#define FALCON_BOARD_TEMP_BIAS   15

Definition at line 34 of file falcon_boards.c.

#define FALCON_BOARD_TEMP_CRIT   (80 + FALCON_BOARD_TEMP_BIAS)

Definition at line 35 of file falcon_boards.c.

#define FALCON_BOARD_TYPE (   _rev)    (_rev >> 8)

Definition at line 20 of file falcon_boards.c.

#define FALCON_JUNC_TEMP_CRIT   125

Definition at line 42 of file falcon_boards.c.

#define FALCON_JUNC_TEMP_MAX   90

Definition at line 41 of file falcon_boards.c.

#define FALCON_JUNC_TEMP_MIN   0

Definition at line 40 of file falcon_boards.c.

#define LM87_AIN_LIMITS (   nr,
  _min,
  _max 
)    0x3B + (nr), _max, 0x1A + (nr), _min

Definition at line 57 of file falcon_boards.c.

#define LM87_ALARM_TEMP_EXT1   0x20

Definition at line 65 of file falcon_boards.c.

#define LM87_ALARM_TEMP_INT   0x10

Definition at line 64 of file falcon_boards.c.

#define LM87_IN_LIMITS (   nr,
  _min,
  _max 
)    0x2B + (nr) * 2, _max, 0x2C + (nr) * 2, _min

Definition at line 55 of file falcon_boards.c.

#define LM87_REG_ALARMS1   0x41

Definition at line 53 of file falcon_boards.c.

#define LM87_REG_ALARMS2   0x42

Definition at line 54 of file falcon_boards.c.

#define LM87_REG_TEMP_EXT1   0x26

Definition at line 51 of file falcon_boards.c.

#define LM87_REG_TEMP_HW_EXT   0x18

Definition at line 50 of file falcon_boards.c.

#define LM87_REG_TEMP_HW_EXT_LOCK   0x14

Definition at line 48 of file falcon_boards.c.

#define LM87_REG_TEMP_HW_INT   0x17

Definition at line 49 of file falcon_boards.c.

#define LM87_REG_TEMP_HW_INT_LOCK   0x13

Definition at line 47 of file falcon_boards.c.

#define LM87_REG_TEMP_INT   0x27

Definition at line 52 of file falcon_boards.c.

#define LM87_TEMP_EXT1_LIMITS (   _min,
  _max 
)    0x37, _max, 0x38, _min

Definition at line 61 of file falcon_boards.c.

#define LM87_TEMP_INT_LIMITS (   _min,
  _max 
)    0x39, _max, 0x3A, _min

Definition at line 59 of file falcon_boards.c.

#define MAX664X_REG_RSL   0x02

Definition at line 255 of file falcon_boards.c.

#define MAX664X_REG_WLHO   0x0B

Definition at line 256 of file falcon_boards.c.

#define P0_CONFIG   0x06

Definition at line 221 of file falcon_boards.c.

#define P0_DSP_RESET_LBN   7

Definition at line 237 of file falcon_boards.c.

#define P0_DSP_RESET_WIDTH   1

Definition at line 238 of file falcon_boards.c.

#define P0_EN_1V0X_LBN   0

Definition at line 223 of file falcon_boards.c.

#define P0_EN_1V0X_WIDTH   1

Definition at line 224 of file falcon_boards.c.

#define P0_EN_1V2_LBN   1

Definition at line 225 of file falcon_boards.c.

#define P0_EN_1V2_WIDTH   1

Definition at line 226 of file falcon_boards.c.

#define P0_EN_2V5_LBN   2

Definition at line 227 of file falcon_boards.c.

#define P0_EN_2V5_WIDTH   1

Definition at line 228 of file falcon_boards.c.

#define P0_EN_3V3X_LBN   3

Definition at line 229 of file falcon_boards.c.

#define P0_EN_3V3X_WIDTH   1

Definition at line 230 of file falcon_boards.c.

#define P0_EN_5V_LBN   4

Definition at line 231 of file falcon_boards.c.

#define P0_EN_5V_WIDTH   1

Definition at line 232 of file falcon_boards.c.

#define P0_IN   0x00

Definition at line 218 of file falcon_boards.c.

#define P0_INVERT   0x04

Definition at line 220 of file falcon_boards.c.

#define P0_OUT   0x02

Definition at line 219 of file falcon_boards.c.

#define P0_SHORTEN_JTAG_LBN   5

Definition at line 233 of file falcon_boards.c.

#define P0_SHORTEN_JTAG_WIDTH   1

Definition at line 234 of file falcon_boards.c.

#define P0_X_TRST_LBN   6

Definition at line 235 of file falcon_boards.c.

#define P0_X_TRST_WIDTH   1

Definition at line 236 of file falcon_boards.c.

#define P1_AFE_PWD_LBN   0

Definition at line 245 of file falcon_boards.c.

#define P1_AFE_PWD_WIDTH   1

Definition at line 246 of file falcon_boards.c.

#define P1_CONFIG   0x07

Definition at line 243 of file falcon_boards.c.

#define P1_DSP_PWD25_LBN   1

Definition at line 247 of file falcon_boards.c.

#define P1_DSP_PWD25_WIDTH   1

Definition at line 248 of file falcon_boards.c.

#define P1_IN   0x01

Definition at line 240 of file falcon_boards.c.

#define P1_INVERT   0x05

Definition at line 242 of file falcon_boards.c.

#define P1_OUT   0x03

Definition at line 241 of file falcon_boards.c.

#define P1_RESERVED_LBN   2

Definition at line 249 of file falcon_boards.c.

#define P1_RESERVED_WIDTH   2

Definition at line 250 of file falcon_boards.c.

#define P1_SPARE_LBN   4

Definition at line 251 of file falcon_boards.c.

#define P1_SPARE_WIDTH   4

Definition at line 252 of file falcon_boards.c.

#define PCA9539   0x74

Definition at line 216 of file falcon_boards.c.

#define SFE4002_FAULT_LED   (2) /* Red */

Definition at line 536 of file falcon_boards.c.

#define SFE4002_RX_LED   (0) /* Green */

Definition at line 537 of file falcon_boards.c.

#define SFE4002_TX_LED   (1) /* Amber */

Definition at line 538 of file falcon_boards.c.

#define SFE4003_LED_OFF   0

Definition at line 664 of file falcon_boards.c.

#define SFE4003_LED_ON   1

Definition at line 663 of file falcon_boards.c.

#define SFE4003_RED_LED_GPIO   11

Definition at line 662 of file falcon_boards.c.

#define SFN4112F_ACT_LED   0

Definition at line 599 of file falcon_boards.c.

#define SFN4112F_LINK_LED   1

Definition at line 600 of file falcon_boards.c.

Function Documentation

int falcon_probe_board ( struct efx_nic efx,
u16  revision_info 
)

Definition at line 744 of file falcon_boards.c.