linux/drivers/pci/hotplug/cpcihp_generic.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * cpcihp_generic.c
 *
 * Generic port I/O CompactPCI driver
 *
 * Copyright 2002 SOMA Networks, Inc.
 * Copyright 2001 Intel San Luis Obispo
 * Copyright 2000,2001 MontaVista Software Inc.
 *
 * This generic CompactPCI hotplug driver should allow using the PCI hotplug
 * mechanism on any CompactPCI board that exposes the #ENUM signal as a bit
 * in a system register that can be read through standard port I/O.
 *
 * Send feedback to <[email protected]>
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/string.h>
#include "cpci_hotplug.h"

#define DRIVER_VERSION
#define DRIVER_AUTHOR
#define DRIVER_DESC

#if !defined(MODULE)
#define MY_NAME
#else
#define MY_NAME
#endif

#define dbg(format, arg...)
#define err(format, arg...)
#define info(format, arg...)
#define warn(format, arg...)

/* local variables */
static bool debug;
static char *bridge;
static u8 bridge_busnr;
static u8 bridge_slot;
static struct pci_bus *bus;
static u8 first_slot;
static u8 last_slot;
static u16 port;
static unsigned int enum_bit;
static u8 enum_mask;

static struct cpci_hp_controller_ops generic_hpc_ops;
static struct cpci_hp_controller generic_hpc;

static int __init validate_parameters(void)
{}

static int query_enum(void)
{}

static int __init cpcihp_generic_init(void)
{}

static void __exit cpcihp_generic_exit(void)
{}

module_init();
module_exit(cpcihp_generic_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
module_param(debug, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC();
module_param(bridge, charp, 0);
MODULE_PARM_DESC();
module_param(first_slot, byte, 0);
MODULE_PARM_DESC();
module_param(last_slot, byte, 0);
MODULE_PARM_DESC();
module_param_hw(port, ushort, ioport, 0);
MODULE_PARM_DESC();
module_param(enum_bit, uint, 0);
MODULE_PARM_DESC();