linux/drivers/mtd/maps/pci.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *  linux/drivers/mtd/maps/pci.c
 *
 *  Copyright (C) 2001 Russell King, All rights reserved.
 *
 * Generic PCI memory map driver.  We support the following boards:
 *  - Intel IQ80310 ATU.
 *  - Intel EBSA285 (blank rom programming mode). Tested working 27/09/2001
 */
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/slab.h>

#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>

struct map_pci_info;

struct mtd_pci_info {};

struct map_pci_info {};

static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs)
{}

static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs)
{}

static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len)
{}

static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs)
{}

static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs)
{}

static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len)
{}

static const struct map_info mtd_pci_map =;

/*
 * Intel IOP80310 Flash driver
 */

static int
intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map)
{}

static void
intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map)
{}

static unsigned long
intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs)
{}

static struct mtd_pci_info intel_iq80310_info =;

/*
 * Intel DC21285 driver
 */

static int
intel_dc21285_init(struct pci_dev *dev, struct map_pci_info *map)
{}

static void
intel_dc21285_exit(struct pci_dev *dev, struct map_pci_info *map)
{}

static unsigned long
intel_dc21285_translate(struct map_pci_info *map, unsigned long ofs)
{}

static struct mtd_pci_info intel_dc21285_info =;

/*
 * PCI device ID table
 */

static const struct pci_device_id mtd_pci_ids[] =;

/*
 * Generic code follows.
 */

static int mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
{}

static void mtd_pci_remove(struct pci_dev *dev)
{}

static struct pci_driver mtd_pci_driver =;

module_pci_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_DEVICE_TABLE(pci, mtd_pci_ids);