#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/device.h>
#include <linux/dmi.h>
#include <linux/gfp.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>
#include <linux/libata.h>
#include "ahci.h"
#define DRV_NAME …
#define DRV_VERSION …
#define ACARD_AHCI_RX_FIS_SZ …
enum { … };
enum board_ids { … };
struct acard_sg { … };
static enum ata_completion_errors acard_ahci_qc_prep(struct ata_queued_cmd *qc);
static void acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc);
static int acard_ahci_port_start(struct ata_port *ap);
static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
#ifdef CONFIG_PM_SLEEP
static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg);
static int acard_ahci_pci_device_resume(struct pci_dev *pdev);
#endif
static const struct scsi_host_template acard_ahci_sht = …;
static struct ata_port_operations acard_ops = …;
#define AHCI_HFLAGS(flags) …
static const struct ata_port_info acard_ahci_port_info[] = …;
static const struct pci_device_id acard_ahci_pci_tbl[] = …;
static struct pci_driver acard_ahci_pci_driver = …;
#ifdef CONFIG_PM_SLEEP
static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg)
{ … }
static int acard_ahci_pci_device_resume(struct pci_dev *pdev)
{ … }
#endif
static void acard_ahci_pci_print_info(struct ata_host *host)
{ … }
static unsigned int acard_ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl)
{ … }
static enum ata_completion_errors acard_ahci_qc_prep(struct ata_queued_cmd *qc)
{ … }
static void acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc)
{ … }
static int acard_ahci_port_start(struct ata_port *ap)
{ … }
static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
module_pci_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_DEVICE_TABLE(pci, acard_ahci_pci_tbl);
MODULE_VERSION(…);