linux/drivers/pnp/quirks.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  This file contains quirk handling code for PnP devices
 *  Some devices do not report all their resources, and need to have extra
 *  resources added. This is most easily accomplished at initialisation time
 *  when building up the resource structure for the first time.
 *
 *  Copyright (c) 2000 Peter Denison <[email protected]>
 *  Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
 *	Bjorn Helgaas <[email protected]>
 *
 *  Heavily based on PCI quirks handling which is
 *
 *  Copyright (c) 1999 Martin Mares <[email protected]>
 */

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/pnp.h>
#include <linux/io.h>
#include "base.h"

static void quirk_awe32_add_ports(struct pnp_dev *dev,
				  struct pnp_option *option,
				  unsigned int offset)
{}

static void quirk_awe32_resources(struct pnp_dev *dev)
{}

static void quirk_cmi8330_resources(struct pnp_dev *dev)
{}

static void quirk_sb16audio_resources(struct pnp_dev *dev)
{}

static struct pnp_option *pnp_clone_dependent_set(struct pnp_dev *dev,
						  unsigned int set)
{}


static void quirk_add_irq_optional_dependent_sets(struct pnp_dev *dev)
{}

static void quirk_ad1815_mpu_resources(struct pnp_dev *dev)
{}

static void quirk_system_pci_resources(struct pnp_dev *dev)
{}

#ifdef CONFIG_AMD_NB

#include <asm/amd_nb.h>

static void quirk_amd_mmconfig_area(struct pnp_dev *dev)
{}
#endif

#ifdef CONFIG_PCI
/* Device IDs of parts that have 32KB MCH space */
static const unsigned int mch_quirk_devices[] =;

static struct pci_dev *get_intel_host(void)
{}

static void quirk_intel_mch(struct pnp_dev *dev)
{}
#endif

/*
 *  PnP Quirks
 *  Cards or devices that need some tweaking due to incomplete resource info
 */

static struct pnp_fixup pnp_fixups[] =;

void pnp_fixup_device(struct pnp_dev *dev)
{}