#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/list.h>
#include <linux/mhi.h>
#include <linux/mutex.h>
#include <linux/overflow.h>
#include <linux/pci.h>
#include <linux/seq_file.h>
#include <linux/sprintf.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/workqueue.h>
#include "qaic.h"
#include "qaic_debugfs.h"
#define BOOTLOG_POOL_SIZE …
#define BOOTLOG_MSG_SIZE …
#define QAIC_DBC_DIR_NAME …
struct bootlog_msg { … };
struct bootlog_page { … };
static int bootlog_show(struct seq_file *s, void *unused)
{ … }
static int bootlog_fops_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations bootlog_fops = …;
static int read_dbc_fifo_size(struct seq_file *s, void *unused)
{ … }
static int fifo_size_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations fifo_size_fops = …;
static int read_dbc_queued(struct seq_file *s, void *unused)
{ … }
static int queued_open(struct inode *inode, struct file *file)
{ … }
static const struct file_operations queued_fops = …;
void qaic_debugfs_init(struct qaic_drm_device *qddev)
{ … }
static struct bootlog_page *alloc_bootlog_page(struct qaic_device *qdev)
{ … }
static int reset_bootlog(struct qaic_device *qdev)
{ … }
static void *bootlog_get_space(struct qaic_device *qdev, unsigned int size)
{ … }
static void bootlog_commit(struct qaic_device *qdev, unsigned int size)
{ … }
static void bootlog_log(struct work_struct *work)
{ … }
static int qaic_bootlog_mhi_probe(struct mhi_device *mhi_dev, const struct mhi_device_id *id)
{ … }
static void qaic_bootlog_mhi_remove(struct mhi_device *mhi_dev)
{ … }
static void qaic_bootlog_mhi_ul_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result)
{ … }
static void qaic_bootlog_mhi_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_result *mhi_result)
{ … }
static const struct mhi_device_id qaic_bootlog_mhi_match_table[] = …;
static struct mhi_driver qaic_bootlog_mhi_driver = …;
int qaic_bootlog_register(void)
{ … }
void qaic_bootlog_unregister(void)
{ … }