xref: /openbmc/linux/drivers/sbus/char/max1617.h (revision 1da177e4)
11da177e4SLinus Torvalds /* $Id: max1617.h,v 1.1 2001/04/02 09:59:08 davem Exp $ */
21da177e4SLinus Torvalds #ifndef _MAX1617_H
31da177e4SLinus Torvalds #define _MAX1617_H
41da177e4SLinus Torvalds 
51da177e4SLinus Torvalds #define MAX1617_AMB_TEMP	0x00 /* Ambient temp in C	*/
61da177e4SLinus Torvalds #define MAX1617_CPU_TEMP	0x01 /* Processor die temp in C	*/
71da177e4SLinus Torvalds #define MAX1617_STATUS		0x02 /* Chip status bits	*/
81da177e4SLinus Torvalds 
91da177e4SLinus Torvalds /* Read-only versions of changable registers. */
101da177e4SLinus Torvalds #define MAX1617_RD_CFG_BYTE	0x03 /* Config register		*/
111da177e4SLinus Torvalds #define MAX1617_RD_CVRATE_BYTE	0x04 /* Temp conversion rate	*/
121da177e4SLinus Torvalds #define MAX1617_RD_AMB_HIGHLIM	0x05 /* Ambient high limit	*/
131da177e4SLinus Torvalds #define MAX1617_RD_AMB_LOWLIM	0x06 /* Ambient low limit	*/
141da177e4SLinus Torvalds #define MAX1617_RD_CPU_HIGHLIM	0x07 /* Processor high limit	*/
151da177e4SLinus Torvalds #define MAX1617_RD_CPU_LOWLIM	0x08 /* Processor low limit	*/
161da177e4SLinus Torvalds 
171da177e4SLinus Torvalds /* Write-only versions of the same. */
181da177e4SLinus Torvalds #define MAX1617_WR_CFG_BYTE	0x09
191da177e4SLinus Torvalds #define MAX1617_WR_CVRATE_BYTE	0x0a
201da177e4SLinus Torvalds #define MAX1617_WR_AMB_HIGHLIM	0x0b
211da177e4SLinus Torvalds #define MAX1617_WR_AMB_LOWLIM	0x0c
221da177e4SLinus Torvalds #define MAX1617_WR_CPU_HIGHLIM	0x0d
231da177e4SLinus Torvalds #define MAX1617_WR_CPU_LOWLIM	0x0e
241da177e4SLinus Torvalds 
251da177e4SLinus Torvalds #define MAX1617_ONESHOT		0x0f
261da177e4SLinus Torvalds 
271da177e4SLinus Torvalds #endif /* _MAX1617_H */
28