#include <linux/acpi.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/i2c-smbus.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_irq.h>
#include <linux/pci.h>
#include "i2c-octeon-core.h"
#define DRV_NAME …
#define PCI_DEVICE_ID_THUNDER_TWSI …
#define SYS_FREQ_DEFAULT …
#define OTX2_REF_FREQ_DEFAULT …
#define TWSI_INT_ENA_W1C …
#define TWSI_INT_ENA_W1S …
static void thunder_i2c_int_enable(struct octeon_i2c *i2c)
{ … }
static void thunder_i2c_int_disable(struct octeon_i2c *i2c)
{ … }
static void thunder_i2c_hlc_int_enable(struct octeon_i2c *i2c)
{ … }
static void thunder_i2c_hlc_int_disable(struct octeon_i2c *i2c)
{ … }
static u32 thunderx_i2c_functionality(struct i2c_adapter *adap)
{ … }
static const struct i2c_algorithm thunderx_i2c_algo = …;
static const struct i2c_adapter thunderx_i2c_ops = …;
static void thunder_i2c_clock_enable(struct device *dev, struct octeon_i2c *i2c)
{ … }
static void thunder_i2c_clock_disable(struct device *dev, struct clk *clk)
{ … }
static int thunder_i2c_smbus_setup_of(struct octeon_i2c *i2c,
struct device_node *node)
{ … }
static int thunder_i2c_smbus_setup(struct octeon_i2c *i2c,
struct device_node *node)
{ … }
static void thunder_i2c_smbus_remove(struct octeon_i2c *i2c)
{ … }
static int thunder_i2c_probe_pci(struct pci_dev *pdev,
const struct pci_device_id *ent)
{ … }
static void thunder_i2c_remove_pci(struct pci_dev *pdev)
{ … }
static const struct pci_device_id thunder_i2c_pci_id_table[] = …;
MODULE_DEVICE_TABLE(pci, thunder_i2c_pci_id_table);
static struct pci_driver thunder_i2c_pci_driver = …;
module_pci_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;