#ifndef __LINUX_MOXTET_H
#define __LINUX_MOXTET_H
#include <linux/device.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/mutex.h>
#define TURRIS_MOX_MAX_MODULES …
enum turris_mox_cpu_module_id { … };
enum turris_mox_module_id { … };
#define MOXTET_NIRQS …
struct moxtet { … };
struct moxtet_driver { … };
#define to_moxtet_driver(__drv) …
extern int __moxtet_register_driver(struct module *owner,
struct moxtet_driver *mdrv);
static inline void moxtet_unregister_driver(struct moxtet_driver *mdrv)
{ … }
#define moxtet_register_driver(driver) …
#define module_moxtet_driver(__moxtet_driver) …
struct moxtet_device { … };
extern int moxtet_device_read(struct device *dev);
extern int moxtet_device_write(struct device *dev, u8 val);
extern int moxtet_device_written(struct device *dev);
static inline struct moxtet_device *
to_moxtet_device(struct device *dev)
{ … }
#endif