tree c306097b64ec6c647354cb4cd420d49efd293e78 parent 20f733e7d75a16bffc34842b7682c9247dd5f954 author Jeff Garzik <[EMAIL PROTECTED]> Wed, 07 Sep 2005 10:05:59 -0400 committer Jeff Garzik <[EMAIL PROTECTED]> Wed, 07 Sep 2005 10:05:59 -0400
[libata sata_mv] fix build This function will go away when pci_intx() finally makes it into the core PCI layer. drivers/scsi/sata_mv.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+) diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c --- a/drivers/scsi/sata_mv.c +++ b/drivers/scsi/sata_mv.c @@ -699,6 +699,22 @@ static int mv_host_init(struct ata_probe return rc; } +/* move to PCI layer, integrate w/ MSI stuff */ +static void pci_intx(struct pci_dev *pdev, int enable) +{ + u16 pci_command, new; + + pci_read_config_word(pdev, PCI_COMMAND, &pci_command); + + if (enable) + new = pci_command & ~PCI_COMMAND_INTX_DISABLE; + else + new = pci_command | PCI_COMMAND_INTX_DISABLE; + + if (new != pci_command) + pci_write_config_word(pdev, PCI_COMMAND, pci_command); +} + static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) { static int printed_version = 0; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html