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