#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/device.h>
#include <scsi/scsi_host.h>
#include <linux/libata.h>
#include "sis.h"
#define DRV_NAME …
#define DRV_VERSION …
enum { … };
static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val);
static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val);
static const struct pci_device_id sis_pci_tbl[] = …;
static struct pci_driver sis_pci_driver = …;
static const struct scsi_host_template sis_sht = …;
static struct ata_port_operations sis_ops = …;
static const struct ata_port_info sis_port_info = …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_DEVICE_TABLE(pci, sis_pci_tbl);
MODULE_VERSION(…);
static unsigned int get_scr_cfg_addr(struct ata_link *link, unsigned int sc_reg)
{ … }
static u32 sis_scr_cfg_read(struct ata_link *link,
unsigned int sc_reg, u32 *val)
{ … }
static int sis_scr_cfg_write(struct ata_link *link,
unsigned int sc_reg, u32 val)
{ … }
static int sis_scr_read(struct ata_link *link, unsigned int sc_reg, u32 *val)
{ … }
static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
{ … }
static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
module_pci_driver(…) …;