#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 <scsi/scsi_host.h>
#include <linux/libata.h>
#include <linux/dmi.h>
#define DRV_NAME …
#define DRV_VERSION …
enum { … };
static int sch_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent);
static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev);
static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev);
static const struct pci_device_id sch_pci_tbl[] = …;
static struct pci_driver sch_pci_driver = …;
static const struct scsi_host_template sch_sht = …;
static struct ata_port_operations sch_pata_ops = …;
static const struct ata_port_info sch_port_info = …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_DEVICE_TABLE(pci, sch_pci_tbl);
MODULE_VERSION(…);
static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev)
{ … }
static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev)
{ … }
static int sch_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
module_pci_driver(…) …;