#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/idr.h>
#include <linux/mcb.h>
static DEFINE_IDA(mcb_ida);
static const struct mcb_device_id *mcb_match_id(const struct mcb_device_id *ids,
struct mcb_device *dev)
{ … }
static int mcb_match(struct device *dev, const struct device_driver *drv)
{ … }
static int mcb_uevent(const struct device *dev, struct kobj_uevent_env *env)
{ … }
static int mcb_probe(struct device *dev)
{ … }
static void mcb_remove(struct device *dev)
{ … }
static void mcb_shutdown(struct device *dev)
{ … }
static ssize_t revision_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(revision);
static ssize_t model_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(model);
static ssize_t minor_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(minor);
static ssize_t name_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(name);
static struct attribute *mcb_bus_attrs[] = …;
static const struct attribute_group mcb_carrier_group = …;
static const struct attribute_group *mcb_carrier_groups[] = …;
static const struct bus_type mcb_bus_type = …;
static const struct device_type mcb_carrier_device_type = …;
int __mcb_register_driver(struct mcb_driver *drv, struct module *owner,
const char *mod_name)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void mcb_unregister_driver(struct mcb_driver *drv)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static void mcb_release_dev(struct device *dev)
{ … }
int mcb_device_register(struct mcb_bus *bus, struct mcb_device *dev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static void mcb_free_bus(struct device *dev)
{ … }
struct mcb_bus *mcb_alloc_bus(struct device *carrier)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static int __mcb_devices_unregister(struct device *dev, void *data)
{ … }
static void mcb_devices_unregister(struct mcb_bus *bus)
{ … }
void mcb_release_bus(struct mcb_bus *bus)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
struct mcb_bus *mcb_bus_get(struct mcb_bus *bus)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void mcb_bus_put(struct mcb_bus *bus)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
struct mcb_device *mcb_alloc_dev(struct mcb_bus *bus)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void mcb_free_dev(struct mcb_device *dev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static int __mcb_bus_add_devices(struct device *dev, void *data)
{ … }
void mcb_bus_add_devices(const struct mcb_bus *bus)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
struct resource *mcb_get_resource(struct mcb_device *dev, unsigned int type)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
struct resource *mcb_request_mem(struct mcb_device *dev, const char *name)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void mcb_release_mem(struct resource *mem)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static int __mcb_get_irq(struct mcb_device *dev)
{ … }
int mcb_get_irq(struct mcb_device *dev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
static int mcb_init(void)
{ … }
static void mcb_exit(void)
{ … }
fs_initcall(mcb_init);
module_exit(mcb_exit);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;