#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include "coreboot_table.h"
#define CB_DEV(d) …
#define CB_DRV(d) …
static int coreboot_bus_match(struct device *dev, const struct device_driver *drv)
{ … }
static int coreboot_bus_probe(struct device *dev)
{ … }
static void coreboot_bus_remove(struct device *dev)
{ … }
static int coreboot_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
{ … }
static const struct bus_type coreboot_bus_type = …;
static void coreboot_device_release(struct device *dev)
{ … }
int __coreboot_driver_register(struct coreboot_driver *driver,
struct module *owner)
{ … }
EXPORT_SYMBOL(…);
void coreboot_driver_unregister(struct coreboot_driver *driver)
{ … }
EXPORT_SYMBOL(…);
static int coreboot_table_populate(struct device *dev, void *ptr)
{ … }
static int coreboot_table_probe(struct platform_device *pdev)
{ … }
static int __cb_dev_unregister(struct device *dev, void *dummy)
{ … }
static void coreboot_table_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_ACPI
static const struct acpi_device_id cros_coreboot_acpi_match[] = …;
MODULE_DEVICE_TABLE(acpi, cros_coreboot_acpi_match);
#endif
#ifdef CONFIG_OF
static const struct of_device_id coreboot_of_match[] = …;
MODULE_DEVICE_TABLE(of, coreboot_of_match);
#endif
static struct platform_driver coreboot_table_driver = …;
static int __init coreboot_table_driver_init(void)
{ … }
static void __exit coreboot_table_driver_exit(void)
{ … }
module_init(…) …;
module_exit(coreboot_table_driver_exit);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;