Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /***************************************************************************
0003  *   Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com>           *
0004  *                                                                         *
0005  ***************************************************************************/
0006 
0007 #include <linux/mutex.h>
0008 
0009 struct sch56xx_watchdog_data;
0010 
0011 int sch56xx_read_virtual_reg(u16 addr, u16 reg);
0012 int sch56xx_write_virtual_reg(u16 addr, u16 reg, u8 val);
0013 int sch56xx_read_virtual_reg16(u16 addr, u16 reg);
0014 int sch56xx_read_virtual_reg12(u16 addr, u16 msb_reg, u16 lsn_reg,
0015                    int high_nibble);
0016 
0017 void sch56xx_watchdog_register(struct device *parent, u16 addr, u32 revision,
0018                    struct mutex *io_lock, int check_enabled);
0019 void sch56xx_watchdog_unregister(struct sch56xx_watchdog_data *data);