#include <linux/device.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/isa.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/regmap.h>
#include <linux/types.h>
#include "gpio-i8255.h"
MODULE_IMPORT_NS(…);
#define GPIOMM_EXTENT …
#define MAX_NUM_GPIOMM …
static unsigned int base[MAX_NUM_GPIOMM];
static unsigned int num_gpiomm;
module_param_hw_array(base, uint, ioport, &num_gpiomm, 0);
MODULE_PARM_DESC(…) …;
#define GPIOMM_NUM_PPI …
static const struct regmap_range gpiomm_volatile_ranges[] = …;
static const struct regmap_access_table gpiomm_volatile_table = …;
static const struct regmap_config gpiomm_regmap_config = …;
#define GPIOMM_NGPIO …
static const char *gpiomm_names[GPIOMM_NGPIO] = …;
static int gpiomm_probe(struct device *dev, unsigned int id)
{ … }
static struct isa_driver gpiomm_driver = …;
module_isa_driver(gpiomm_driver, num_gpiomm);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;