lm75.c (279852) | lm75.c (300421) |
---|---|
1/*- 2 * Copyright (c) 2010 Andreas Tobler. 3 * Copyright (c) 2013-2014 Luiz Otavio O Souza <loos@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Andreas Tobler. 3 * Copyright (c) 2013-2014 Luiz Otavio O Souza <loos@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/iicbus/lm75.c 279852 2015-03-10 14:55:05Z loos $"); | 29__FBSDID("$FreeBSD: head/sys/dev/iicbus/lm75.c 300421 2016-05-22 13:58:32Z loos $"); |
30 31#include "opt_platform.h" 32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/endian.h> 36#include <sys/kernel.h> 37#include <sys/module.h> --- 29 unchanged lines hidden (view full) --- 67#define LM75_TEST_PATTERN 0xa 68#define LM75_MIN_TEMP -55 69#define LM75_MAX_TEMP 125 70#define LM75_0500C 0x80 71#define LM75_0250C 0x40 72#define LM75_0125C 0x20 73#define LM75_MSB 0x8000 74#define LM75_NEG_BIT LM75_MSB | 30 31#include "opt_platform.h" 32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/endian.h> 36#include <sys/kernel.h> 37#include <sys/module.h> --- 29 unchanged lines hidden (view full) --- 67#define LM75_TEST_PATTERN 0xa 68#define LM75_MIN_TEMP -55 69#define LM75_MAX_TEMP 125 70#define LM75_0500C 0x80 71#define LM75_0250C 0x40 72#define LM75_0125C 0x20 73#define LM75_MSB 0x8000 74#define LM75_NEG_BIT LM75_MSB |
75#define TZ_ZEROC 2732 | 75#define TZ_ZEROC 2731 |
76 77/* LM75 supported models. */ 78#define HWTYPE_LM75 1 79#define HWTYPE_LM75A 2 80 81/* Regular bus attachment functions */ 82static int lm75_probe(device_t); 83static int lm75_attach(device_t); --- 496 unchanged lines hidden --- | 76 77/* LM75 supported models. */ 78#define HWTYPE_LM75 1 79#define HWTYPE_LM75A 2 80 81/* Regular bus attachment functions */ 82static int lm75_probe(device_t); 83static int lm75_attach(device_t); --- 496 unchanged lines hidden --- |