#include <linux/dmaengine.h>
#include <linux/acpi.h>
#include <linux/property.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/bitops.h>
#include <linux/dma-mapping.h>
#include "hidma_mgmt.h"
#define HIDMA_QOS_N_OFFSET …
#define HIDMA_CFG_OFFSET …
#define HIDMA_MAX_BUS_REQ_LEN_OFFSET …
#define HIDMA_MAX_XACTIONS_OFFSET …
#define HIDMA_HW_VERSION_OFFSET …
#define HIDMA_CHRESET_TIMEOUT_OFFSET …
#define HIDMA_MAX_WR_XACTIONS_MASK …
#define HIDMA_MAX_RD_XACTIONS_MASK …
#define HIDMA_WEIGHT_MASK …
#define HIDMA_MAX_BUS_REQ_LEN_MASK …
#define HIDMA_CHRESET_TIMEOUT_MASK …
#define HIDMA_MAX_WR_XACTIONS_BIT_POS …
#define HIDMA_MAX_BUS_WR_REQ_BIT_POS …
#define HIDMA_WRR_BIT_POS …
#define HIDMA_PRIORITY_BIT_POS …
#define HIDMA_AUTOSUSPEND_TIMEOUT …
#define HIDMA_MAX_CHANNEL_WEIGHT …
static unsigned int max_write_request;
module_param(max_write_request, uint, 0644);
MODULE_PARM_DESC(…) …;
static unsigned int max_read_request;
module_param(max_read_request, uint, 0644);
MODULE_PARM_DESC(…) …;
static unsigned int max_wr_xactions;
module_param(max_wr_xactions, uint, 0644);
MODULE_PARM_DESC(…) …;
static unsigned int max_rd_xactions;
module_param(max_rd_xactions, uint, 0644);
MODULE_PARM_DESC(…) …;
int hidma_mgmt_setup(struct hidma_mgmt_dev *mgmtdev)
{ … }
EXPORT_SYMBOL_GPL(…);
static int hidma_mgmt_probe(struct platform_device *pdev)
{ … }
#if IS_ENABLED(CONFIG_ACPI)
static const struct acpi_device_id hidma_mgmt_acpi_ids[] = …;
MODULE_DEVICE_TABLE(acpi, hidma_mgmt_acpi_ids);
#endif
static struct platform_driver hidma_mgmt_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;