Linux Kernel
3.7.1
|
#include <asm/sibyte/sb1250_defs.h>
Go to the source code of this file.
#define G_SMB_ADDR | ( | x | ) | _SB_GETVALUE(x, S_SMB_ADDR, M_SMB_ADDR) |
Definition at line 103 of file sb1250_smbus.h.
#define G_SMB_DATA_IN | ( | x | ) | _SB_GETVALUE(x, S_SMB_DATA_IN, M_SMB_DATA_IN) |
Definition at line 94 of file sb1250_smbus.h.
#define G_SMB_REF | ( | x | ) | _SB_GETVALUE(x, S_SMB_REF, M_SMB_REF) |
Definition at line 89 of file sb1250_smbus.h.
#define G_SMB_TT | ( | x | ) | _SB_GETVALUE(x, S_SMB_TT, M_SMB_TT) |
Definition at line 110 of file sb1250_smbus.h.
#define K_SMB_FREQ_100KHZ 0x7D |
Definition at line 48 of file sb1250_smbus.h.
#define K_SMB_FREQ_10KHZ 1250 |
Definition at line 49 of file sb1250_smbus.h.
#define K_SMB_FREQ_400KHZ 0x1F |
Definition at line 47 of file sb1250_smbus.h.
#define K_SMB_TT_CMD_RD1BYTE 3 |
Definition at line 115 of file sb1250_smbus.h.
#define K_SMB_TT_CMD_RD2BYTE 4 |
Definition at line 116 of file sb1250_smbus.h.
#define K_SMB_TT_EEPROMREAD 7 |
Definition at line 119 of file sb1250_smbus.h.
#define K_SMB_TT_QUICKCMD 6 |
Definition at line 118 of file sb1250_smbus.h.
#define K_SMB_TT_RD1BYTE 5 |
Definition at line 117 of file sb1250_smbus.h.
#define K_SMB_TT_WR1BYTE 0 |
Definition at line 112 of file sb1250_smbus.h.
#define K_SMB_TT_WR2BYTE 1 |
Definition at line 113 of file sb1250_smbus.h.
#define K_SMB_TT_WR3BYTE 2 |
Definition at line 114 of file sb1250_smbus.h.
#define M_SMB_ADDR _SB_MAKEMASK(7, S_SMB_ADDR) |
Definition at line 101 of file sb1250_smbus.h.
#define M_SMB_BUSY _SB_MAKEMASK1(0) |
Definition at line 75 of file sb1250_smbus.h.
#define M_SMB_CLK_OUT _SB_MAKEMASK1(6) |
Definition at line 68 of file sb1250_smbus.h.
#define M_SMB_CMD _SB_MAKEMASK(8, S_SMB_CMD) |
Definition at line 52 of file sb1250_smbus.h.
#define M_SMB_DATA_DIR _SB_MAKEMASK1(5) |
Definition at line 66 of file sb1250_smbus.h.
#define M_SMB_DATA_DIR_OUTPUT M_SMB_DATA_DIR |
Definition at line 67 of file sb1250_smbus.h.
#define M_SMB_DATA_IN _SB_MAKEMASK1(S_SMB_DATA_IN) |
Definition at line 92 of file sb1250_smbus.h.
#define M_SMB_DATA_OUT _SB_MAKEMASK1(S_SMB_DATA_OUT) |
Definition at line 63 of file sb1250_smbus.h.
#define M_SMB_DIRECT_ENABLE _SB_MAKEMASK1(7) |
Definition at line 69 of file sb1250_smbus.h.
#define M_SMB_ERR_INTR _SB_MAKEMASK1(0) |
Definition at line 59 of file sb1250_smbus.h.
#define M_SMB_ERROR _SB_MAKEMASK1(1) |
Definition at line 76 of file sb1250_smbus.h.
#define M_SMB_ERROR_TYPE _SB_MAKEMASK1(2) |
Definition at line 77 of file sb1250_smbus.h.
#define M_SMB_FINISH_INTR _SB_MAKEMASK1(1) |
Definition at line 60 of file sb1250_smbus.h.
#define M_SMB_FREQ_DIV _SB_MAKEMASK(13, S_SMB_FREQ_DIV) |
Definition at line 44 of file sb1250_smbus.h.
#define M_SMB_LB _SB_MAKEMASK(8, S_SMB_LB) |
Definition at line 137 of file sb1250_smbus.h.
#define M_SMB_MB _SB_MAKEMASK(8, S_SMB_MB) |
Definition at line 141 of file sb1250_smbus.h.
#define M_SMB_PEC _SB_MAKEMASK1(15) |
Definition at line 130 of file sb1250_smbus.h.
#define M_SMB_QDATA _SB_MAKEMASK1(7) |
Definition at line 105 of file sb1250_smbus.h.
#define M_SMB_REF _SB_MAKEMASK1(S_SMB_REF) |
Definition at line 87 of file sb1250_smbus.h.
#define M_SMB_TT _SB_MAKEMASK(3, S_SMB_TT) |
Definition at line 108 of file sb1250_smbus.h.
#define M_SPEC_PEC _SB_MAKEMASK(8, S_SPEC_PEC) |
Definition at line 150 of file sb1250_smbus.h.
#define S_SMB_ADDR 0 |
Definition at line 100 of file sb1250_smbus.h.
#define S_SMB_CMD 0 |
Definition at line 51 of file sb1250_smbus.h.
#define S_SMB_DATA_IN 7 |
Definition at line 91 of file sb1250_smbus.h.
#define S_SMB_DATA_OUT 4 |
Definition at line 62 of file sb1250_smbus.h.
#define S_SMB_FREQ_DIV 0 |
Definition at line 43 of file sb1250_smbus.h.
#define S_SMB_LB 0 |
Definition at line 136 of file sb1250_smbus.h.
#define S_SMB_MB 8 |
Definition at line 140 of file sb1250_smbus.h.
#define S_SMB_REF 6 |
Definition at line 86 of file sb1250_smbus.h.
#define S_SMB_TT 8 |
Definition at line 107 of file sb1250_smbus.h.
#define S_SPEC_PEC 0 |
Definition at line 149 of file sb1250_smbus.h.
#define V_SMB_ADDR | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_ADDR) |
Definition at line 102 of file sb1250_smbus.h.
#define V_SMB_CMD | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_CMD) |
Definition at line 53 of file sb1250_smbus.h.
#define V_SMB_DATA_IN | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_DATA_IN) |
Definition at line 93 of file sb1250_smbus.h.
#define V_SMB_DATA_OUT | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_DATA_OUT) |
Definition at line 64 of file sb1250_smbus.h.
#define V_SMB_FREQ_DIV | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_FREQ_DIV) |
Definition at line 45 of file sb1250_smbus.h.
#define V_SMB_LB | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_LB) |
Definition at line 138 of file sb1250_smbus.h.
#define V_SMB_MB | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_MB) |
Definition at line 142 of file sb1250_smbus.h.
#define V_SMB_REF | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_REF) |
Definition at line 88 of file sb1250_smbus.h.
#define V_SMB_TT | ( | x | ) | _SB_MAKEVALUE(x, S_SMB_TT) |
Definition at line 109 of file sb1250_smbus.h.
#define V_SMB_TT_CMD_RD1BYTE V_SMB_TT(K_SMB_TT_CMD_RD1BYTE) |
Definition at line 124 of file sb1250_smbus.h.
#define V_SMB_TT_CMD_RD2BYTE V_SMB_TT(K_SMB_TT_CMD_RD2BYTE) |
Definition at line 125 of file sb1250_smbus.h.
#define V_SMB_TT_EEPROMREAD V_SMB_TT(K_SMB_TT_EEPROMREAD) |
Definition at line 128 of file sb1250_smbus.h.
#define V_SMB_TT_QUICKCMD V_SMB_TT(K_SMB_TT_QUICKCMD) |
Definition at line 127 of file sb1250_smbus.h.
#define V_SMB_TT_RD1BYTE V_SMB_TT(K_SMB_TT_RD1BYTE) |
Definition at line 126 of file sb1250_smbus.h.
#define V_SMB_TT_WR1BYTE V_SMB_TT(K_SMB_TT_WR1BYTE) |
Definition at line 121 of file sb1250_smbus.h.
#define V_SMB_TT_WR2BYTE V_SMB_TT(K_SMB_TT_WR2BYTE) |
Definition at line 122 of file sb1250_smbus.h.
#define V_SMB_TT_WR3BYTE V_SMB_TT(K_SMB_TT_WR3BYTE) |
Definition at line 123 of file sb1250_smbus.h.
#define V_SPEC_MB | ( | x | ) | _SB_MAKEVALUE(x, S_SPEC_PEC) |
Definition at line 151 of file sb1250_smbus.h.