/*
* Copyright (c) 2013 Soren S. Jorvang. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
/*
* Bank 2 registers
*/
#define W83795G_FCMS1 0x01 /* Fan Control Mode Selection */
#define W83795G_T1FMR 0x02 /* Temperature to Fan Mapping */
#define W83795G_T2FMR 0x03 /* Temperature to Fan Mapping */
#define W83795G_T3FMR 0x04 /* Temperature to Fan Mapping */
#define W83795G_T4FMR 0x05 /* Temperature to Fan Mapping */
#define W83795G_T5FMR 0x06 /* Temperature to Fan Mapping */
#define W83795G_T6FMR 0x07 /* Temperature to Fan Mapping */
#define W83795G_FCMS2 0x08 /* Fan Control Mode Selection */
#define W83795G_T12TSS 0x09 /* Temperature Source Selection */
#define W83795G_T34TSS 0x0a /* Temperature Source Selection */
#define W83795G_T56TSS 0x0b /* Temperature Source Selection */
#define W83795G_DFSP 0x0c /* Default Fan Speed at Power-on */
#define W83795G_SFOSUT 0x0d /* SmartFan Output Step Up Time */
#define W83795G_SFOSDT 0x0e /* SmartFan Output Step Down Time */
#define W83795G_FOMC 0x0f /* Fan Output Mode Control */
#define W83795G_F1OV 0x10 /* Fan Output Value */
#define W83795G_F2OV 0x11 /* Fan Output Value */
#define W83795G_F3OV 0x12 /* Fan Output Value */
#define W83795G_F4OV 0x13 /* Fan Output Value */
#define W83795G_F5OV 0x14 /* Fan Output Value */
#define W83795G_F6OV 0x15 /* Fan Output Value */
#define W83795G_F7OV 0x16 /* Fan Output Value */
#define W83795G_F8OV 0x17 /* Fan Output Value */
#define W83795G_F1PFP 0x18 /* Fan Output PWM Frequency Prescalar */
#define W83795G_F2PFP 0x19 /* Fan Output PWM Frequency Prescalar */
#define W83795G_F3PFP 0x1a /* Fan Output PWM Frequency Prescalar */
#define W83795G_FdPFP 0x1b /* Fan Output PWM Frequency Prescalar */
#define W83795G_F5PFP 0x1c /* Fan Output PWM Frequency Prescalar */
#define W83795G_F6PFP 0x1d /* Fan Output PWM Frequency Prescalar */
#define W83795G_F7PFP 0x1e /* Fan Output PWM Frequency Prescalar */
#define W83795G_F8PFP 0x1f /* Fan Output PWM Frequency Prescalar */
#define W83795G_F1OSV 0x20 /* Fan Output Start-up Value */
#define W83795G_F2OSV 0x21 /* Fan Output Start-up Value */
#define W83795G_F3OSV 0x22 /* Fan Output Start-up Value */
#define W83795G_F4OSV 0x23 /* Fan Output Start-up Value */
#define W83795G_F5OSV 0x24 /* Fan Output Start-up Value */
#define W83795G_F6OSV 0x25 /* Fan Output Start-up Value */
#define W83795G_F7OSV 0x26 /* Fan Output Start-up Value */
#define W83795G_F8OSV 0x27 /* Fan Output Start-up Value */
#define W83795G_F1ONV 0x28 /* Fan Output Nonstop Value */
#define W83795G_F2ONV 0x29 /* Fan Output Nonstop Value */
#define W83795G_F3ONV 0x2a /* Fan Output Nonstop Value */
#define W83795G_F4ONV 0x2b /* Fan Output Nonstop Value */
#define W83795G_F5ONV 0x2c /* Fan Output Nonstop Value */
#define W83795G_F6ONV 0x2d /* Fan Output Nonstop Value */
#define W83795G_F7ONV 0x2e /* Fan Output Nonstop Value */
#define W83795G_F8ONV 0x2f /* Fan Output Nonstop Value */
#define W83795G_F1OST 0x30 /* Fan Output Stop Time */
#define W83795G_F2OST 0x31 /* Fan Output Stop Time */
#define W83795G_F3OST 0x32 /* Fan Output Stop Time */
#define W83795G_F4OST 0x33 /* Fan Output Stop Time */
#define W83795G_F5OST 0x34 /* Fan Output Stop Time */
#define W83795G_F6OST 0x35 /* Fan Output Stop Time */
#define W83795G_F7OST 0x36 /* Fan Output Stop Time */
#define W83795G_F8OST 0x37 /* Fan Output Stop Time */
#define W83795G_FOPPC 0x38 /* Fan Output PWM Polarity Control */
#define W83795G_F1TSH 0x40 /* FANIN Target Speed */
#define W83795G_F1TSL 0x41 /* FANIN Target Speed */
#define W83795G_F2TSH 0x42 /* FANIN Target Speed */
#define W83795G_F2TSL 0x43 /* FANIN Target Speed */
#define W83795G_F3TSH 0x44 /* FANIN Target Speed */
#define W83795G_F3TSL 0x45 /* FANIN Target Speed */
#define W83795G_F4TSH 0x46 /* FANIN Target Speed */
#define W83795G_F4TSL 0x47 /* FANIN Target Speed */
#define W83795G_F5TSH 0x48 /* FANIN Target Speed */
#define W83795G_F5TSL 0x49 /* FANIN Target Speed */
#define W83795G_F6TSH 0x4a /* FANIN Target Speed */
#define W83795G_F6TSL 0x4b /* FANIN Target Speed */
#define W83795G_F7TSH 0x4c /* FANIN Target Speed */
#define W83795G_F7TSL 0x4d /* FANIN Target Speed */
#define W83795G_F8TSH 0x4e /* FANIN Target Speed */
#define W83795G_F8TSL 0x4f /* FANIN Target Speed */
#define W83795G_TFTS 0x50 /* Tolerance of FANIN Target Speed */
#define W83795G_T1TTI 0x60 /* Target Temperature of Inputs */
#define W83795G_T2TTI 0x61 /* Target Temperature of Inputs */
#define W83795G_T3TTI 0x62 /* Target Temperature of Inputs */
#define W83795G_T4TTI 0x63 /* Target Temperature of Inputs */
#define W83795G_T5TTI 0x64 /* Target Temperature of Inputs */
#define W83795G_T6TTI 0x65 /* Target Temperature of Inputs */
#define W83795G_T1CTFS 0x68 /* Critical Temperature to Full Speed */
#define W83795G_T2CTFS 0x69 /* Critical Temperature to Full Speed */
#define W83795G_T3CTFS 0x6a /* Critical Temperature to Full Speed */
#define W83795G_T4CTFS 0x6b /* Critical Temperature to Full Speed */
#define W83795G_T5CTFS 0x6c /* Critical Temperature to Full Speed */
#define W83795G_HT1 0x70 /* Hysteresis of Temperature */
#define W83795G_HT2 0x71 /* Hysteresis of Temperature */
#define W83795G_HT3 0x72 /* Hysteresis of Temperature */
#define W83795G_HT4 0x73 /* Hysteresis of Temperature */
#define W83795G_HT5 0x74 /* Hysteresis of Temperature */
#define W83795G_HT6 0x75 /* Hysteresis of Temperature */
#define W83795G_SFIV 0x80 /* SMART FAN IV Temperature Maps */
#define W83795G_CRPE1 0xe0 /* Configuration of PECI Error */
#define W83795G_CRPE2 0xe1 /* Configuration of PECI Error */
#define W83795G_F1OMV 0xe2 /* Fan Output Min Value on PECI Error */
#define W83795G_F2OMV 0xe3 /* Fan Output Min Value on PECI Error */
#define W83795G_F3OMV 0xe4 /* Fan Output Min Value on PECI Error */
#define W83795G_F4OMV 0xe5 /* Fan Output Min Value on PECI Error */
#define W83795G_F5OMV 0xe6 /* Fan Output Min Value on PECI Error */
#define W83795G_F6OMV 0xe7 /* Fan Output Min Value on PECI Error */
#define W83795G_F7OMV 0xe8 /* Fan Output Min Value on PECI Error */
#define W83795G_F8OMV 0xe9 /* Fan Output Min Value on PECI Error */