ds28e17iicvar.h revision 1.1 1 /* $NetBSD: ds28e17iicvar.h,v 1.1 2025/01/23 19:02:42 brad Exp $ */
2
3 /*
4 * Copyright (c) 2025 Brad Spencer <brad (at) anduin.eldar.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef _DEV_I2C_DS28E17IICVAR_H_
20 #define _DEV_I2C_DS28E17IICVAR_H_
21
22 #include <sys/sysctl.h>
23 #include <sys/types.h>
24
25 #include <dev/i2c/i2cvar.h>
26
27
28 struct ds28e17iic_softc {
29 device_t sc_dv;
30 void *sc_onewire;
31 u_int64_t sc_rom;
32 int sc_dying;
33 int sc_ds28e17iicdebug;
34
35 struct i2c_controller sc_i2c_tag;
36 device_t sc_i2c_dev;
37
38 struct sysctllog *sc_ds28e17iiclog;
39 bool sc_reportreadnostop;
40 bool sc_reportzerolen;
41
42 int sc_readycount;
43 int sc_readydelay;
44 };
45
46 #endif
47