linux/drivers/ata/pata_atp867x.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * pata_atp867x.c - ARTOP 867X 64bit 4-channel UDMA133 ATA controller driver
 *
 *	(C) 2009 Google Inc. John(Jung-Ik) Lee <[email protected]>
 *
 * Per Atp867 data sheet rev 1.2, Acard.
 * Based in part on early ide code from
 *	2003-2004 by Eric Uhrhane, Google, Inc.
 *
 * TODO:
 *   1. RAID features [comparison, XOR, striping, mirroring, etc.]
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/gfp.h>
#include <scsi/scsi_host.h>
#include <linux/libata.h>

#define DRV_NAME
#define DRV_VERSION

/*
 * IO Registers
 * Note that all runtime hot priv ports are cached in ap private_data
 */

enum {};

#define ATP867X_IOBASE(ap)
#define ATP867X_SYS_INFO(ap)

#define ATP867X_IO_PORTBASE(ap, port)
#define ATP867X_IO_DMABASE(ap, port)

#define ATP867X_IO_STATUS(ap, port)
#define ATP867X_IO_ALTSTATUS(ap, port)

/*
 * hot priv ports
 */
#define ATP867X_IO_MSTRPIOSPD(ap, port)
#define ATP867X_IO_SLAVPIOSPD(ap, port)
#define ATP867X_IO_8BPIOSPD(ap, port)
#define ATP867X_IO_DMAMODE(ap, port)

#define ATP867X_IO_PORTSPD(ap, port)
#define ATP867X_IO_PREREAD(ap, port)

struct atp867x_priv {};

static void atp867x_set_dmamode(struct ata_port *ap, struct ata_device *adev)
{}

static int atp867x_get_active_clocks_shifted(struct ata_port *ap,
	unsigned int clk)
{}

static int atp867x_get_recover_clocks_shifted(struct ata_port *ap,
					      unsigned int clk)
{}

static void atp867x_set_piomode(struct ata_port *ap, struct ata_device *adev)
{}

static int atp867x_cable_override(struct pci_dev *pdev)
{}

static int atp867x_cable_detect(struct ata_port *ap)
{}

static const struct scsi_host_template atp867x_sht =;

static struct ata_port_operations atp867x_ops =;


static void atp867x_check_res(struct pci_dev *pdev)
{}

static void atp867x_check_ports(struct ata_port *ap, int port)
{}

static int atp867x_set_priv(struct ata_port *ap)
{}

static void atp867x_fixup(struct ata_host *host)
{}

static int atp867x_ata_pci_sff_init_host(struct ata_host *host)
{}

static int atp867x_init_one(struct pci_dev *pdev,
	const struct pci_device_id *id)
{}

#ifdef CONFIG_PM_SLEEP
static int atp867x_reinit_one(struct pci_dev *pdev)
{}
#endif

static struct pci_device_id atp867x_pci_tbl[] =;

static struct pci_driver atp867x_driver =;

module_pci_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl);
MODULE_VERSION();