linux/drivers/w1/masters/sgi_w1.c

// SPDX-License-Identifier: GPL-2.0
/*
 * sgi_w1.c - w1 master driver for one wire support in SGI ASICs
 */

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/platform_data/sgi-w1.h>

#include <linux/w1.h>

#define MCR_RD_DATA
#define MCR_DONE

#define MCR_PACK(pulse, sample)

struct sgi_w1_device {};

static u8 sgi_w1_wait(u32 __iomem *mcr)
{}

/*
 * this is the low level routine to
 * reset the device on the One Wire interface
 * on the hardware
 */
static u8 sgi_w1_reset_bus(void *data)
{}

/*
 * this is the low level routine to read/write a bit on the One Wire
 * interface on the hardware. It does write 0 if parameter bit is set
 * to 0, otherwise a write 1/read.
 */
static u8 sgi_w1_touch_bit(void *data, u8 bit)
{}

static int sgi_w1_probe(struct platform_device *pdev)
{}

/*
 * disassociate the w1 device from the driver
 */
static void sgi_w1_remove(struct platform_device *pdev)
{}

static struct platform_driver sgi_w1_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();