#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/watchdog.h>
#define GTI_CWD_WDOG(reg_offset) …
#define GTI_CWD_WDOG_MODE_INT_DEL3T_RST …
#define GTI_CWD_WDOG_MODE_MASK …
#define GTI_CWD_WDOG_LEN_SHIFT …
#define GTI_CWD_WDOG_LEN_MASK …
#define GTI_CWD_WDOG_CNT_SHIFT …
#define GTI_CWD_WDOG_CNT_MASK …
#define GTI_CWD_INT …
#define GTI_CWD_INT_PENDING_STATUS(bit) …
#define GTI_CWD_INT_ENA_CLR …
#define GTI_CWD_INT_ENA_CLR_VAL(bit) …
#define GTI_CWD_INT_ENA_SET …
#define GTI_CWD_INT_ENA_SET_VAL(bit) …
#define GTI_CWD_POKE(reg_offset) …
#define GTI_CWD_POKE_VAL …
struct gti_match_data { … };
static const struct gti_match_data match_data_octeontx2 = …;
static const struct gti_match_data match_data_cn10k = …;
struct gti_wdt_priv { … };
static irqreturn_t gti_wdt_interrupt(int irq, void *data)
{ … }
static int gti_wdt_ping(struct watchdog_device *wdev)
{ … }
static int gti_wdt_start(struct watchdog_device *wdev)
{ … }
static int gti_wdt_stop(struct watchdog_device *wdev)
{ … }
static int gti_wdt_settimeout(struct watchdog_device *wdev,
unsigned int timeout)
{ … }
static int gti_wdt_set_pretimeout(struct watchdog_device *wdev,
unsigned int timeout)
{ … }
static void gti_clk_disable_unprepare(void *data)
{ … }
static int gti_wdt_get_cntfrq(struct platform_device *pdev,
struct gti_wdt_priv *priv)
{ … }
static const struct watchdog_info gti_wdt_ident = …;
static const struct watchdog_ops gti_wdt_ops = …;
static int gti_wdt_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id gti_wdt_of_match[] = …;
MODULE_DEVICE_TABLE(of, gti_wdt_of_match);
static struct platform_driver gti_wdt_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;