|
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|
#define | DRVNAME "pc87427" |
|
#define | SIOREG_LDSEL 0x07 /* Logical device select */ |
|
#define | SIOREG_DEVID 0x20 /* Device ID */ |
|
#define | SIOREG_CF2 0x22 /* Configuration 2 */ |
|
#define | SIOREG_CF3 0x23 /* Configuration 3 */ |
|
#define | SIOREG_CF4 0x24 /* Configuration 4 */ |
|
#define | SIOREG_CF5 0x25 /* Configuration 5 */ |
|
#define | SIOREG_CFB 0x2B /* Configuration B */ |
|
#define | SIOREG_CFC 0x2C /* Configuration C */ |
|
#define | SIOREG_CFD 0x2D /* Configuration D */ |
|
#define | SIOREG_ACT 0x30 /* Device activation */ |
|
#define | SIOREG_MAP 0x50 /* I/O or memory mapping */ |
|
#define | SIOREG_IOBASE 0x60 /* I/O base address */ |
|
#define | LD_FAN 0 |
|
#define | LD_IN 1 |
|
#define | LD_TEMP 1 |
|
#define | REGION_LENGTH 32 |
|
#define | PC87427_REG_BANK 0x0f |
|
#define | BANK_FM(nr) (nr) |
|
#define | BANK_FT(nr) (0x08 + (nr)) |
|
#define | BANK_FC(nr) (0x10 + (nr) * 2) |
|
#define | BANK_TM(nr) (nr) |
|
#define | BANK_VM(nr) (0x08 + (nr)) |
|
#define | PC87427_REG_FAN 0x12 |
|
#define | PC87427_REG_FAN_MIN 0x14 |
|
#define | PC87427_REG_FAN_STATUS 0x10 |
|
#define | FAN_STATUS_STALL (1 << 3) |
|
#define | FAN_STATUS_LOSPD (1 << 1) |
|
#define | FAN_STATUS_MONEN (1 << 0) |
|
#define | PC87427_REG_PWM_ENABLE 0x10 |
|
#define | PC87427_REG_PWM_DUTY 0x12 |
|
#define | PWM_ENABLE_MODE_MASK (7 << 4) |
|
#define | PWM_ENABLE_CTLEN (1 << 0) |
|
#define | PWM_MODE_MANUAL (0 << 4) |
|
#define | PWM_MODE_AUTO (1 << 4) |
|
#define | PWM_MODE_OFF (2 << 4) |
|
#define | PWM_MODE_ON (7 << 4) |
|
#define | PC87427_REG_TEMP_STATUS 0x10 |
|
#define | PC87427_REG_TEMP 0x14 |
|
#define | PC87427_REG_TEMP_MAX 0x18 |
|
#define | PC87427_REG_TEMP_MIN 0x19 |
|
#define | PC87427_REG_TEMP_CRIT 0x1a |
|
#define | PC87427_REG_TEMP_TYPE 0x1d |
|
#define | TEMP_STATUS_CHANEN (1 << 0) |
|
#define | TEMP_STATUS_LOWFLG (1 << 1) |
|
#define | TEMP_STATUS_HIGHFLG (1 << 2) |
|
#define | TEMP_STATUS_CRITFLG (1 << 3) |
|
#define | TEMP_STATUS_SENSERR (1 << 5) |
|
#define | TEMP_TYPE_MASK (3 << 5) |
|
#define | TEMP_TYPE_THERMISTOR (1 << 5) |
|
#define | TEMP_TYPE_REMOTE_DIODE (2 << 5) |
|
#define | TEMP_TYPE_LOCAL_DIODE (3 << 5) |
|