xref: /kernel/linux/linux-5.10/drivers/hwmon/sch56xx-common.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/hwmon/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/***************************************************************************
38c2ecf20Sopenharmony_ci *   Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com>           *
48c2ecf20Sopenharmony_ci *                                                                         *
58c2ecf20Sopenharmony_ci ***************************************************************************/
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/mutex.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct sch56xx_watchdog_data;
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciint sch56xx_read_virtual_reg(u16 addr, u16 reg);
128c2ecf20Sopenharmony_ciint sch56xx_write_virtual_reg(u16 addr, u16 reg, u8 val);
138c2ecf20Sopenharmony_ciint sch56xx_read_virtual_reg16(u16 addr, u16 reg);
148c2ecf20Sopenharmony_ciint sch56xx_read_virtual_reg12(u16 addr, u16 msb_reg, u16 lsn_reg,
158c2ecf20Sopenharmony_ci			       int high_nibble);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_cistruct sch56xx_watchdog_data *sch56xx_watchdog_register(struct device *parent,
188c2ecf20Sopenharmony_ci	u16 addr, u32 revision, struct mutex *io_lock, int check_enabled);
198c2ecf20Sopenharmony_civoid sch56xx_watchdog_unregister(struct sch56xx_watchdog_data *data);
20

Indexes created Thu Nov 07 10:32:03 CST 2024