lba_pci.c (cf40a76e7d5874bb25f4404eecc58a2e033af885) lba_pci.c (bcf3f1752a622f1372d3252d0fea8855d89812e7)
1/*
2**
3** PCI Lower Bus Adapter (LBA) manager
4**
5** (c) Copyright 1999,2000 Grant Grundler
6** (c) Copyright 1999,2000 Hewlett-Packard Company
7**
8** This program is free software; you can redistribute it and/or modify

--- 1678 unchanged lines hidden (view full) ---

1687 WARN_ON((imask & 0x001fffff) != 0);
1688
1689 DBG("%s() ibase 0x%x imask 0x%x\n", __func__, ibase, imask);
1690 WRITE_REG32( imask, base_addr + LBA_IMASK);
1691 WRITE_REG32( ibase, base_addr + LBA_IBASE);
1692 iounmap(base_addr);
1693}
1694
1/*
2**
3** PCI Lower Bus Adapter (LBA) manager
4**
5** (c) Copyright 1999,2000 Grant Grundler
6** (c) Copyright 1999,2000 Hewlett-Packard Company
7**
8** This program is free software; you can redistribute it and/or modify

--- 1678 unchanged lines hidden (view full) ---

1687 WARN_ON((imask & 0x001fffff) != 0);
1688
1689 DBG("%s() ibase 0x%x imask 0x%x\n", __func__, ibase, imask);
1690 WRITE_REG32( imask, base_addr + LBA_IMASK);
1691 WRITE_REG32( ibase, base_addr + LBA_IBASE);
1692 iounmap(base_addr);
1693}
1694
1695
1696/*
1697 * The design of the Diva management card in rp34x0 machines (rp3410, rp3440)
1698 * seems rushed, so that many built-in components simply don't work.
1699 * The following quirks disable the serial AUX port and the built-in ATI RV100
1700 * Radeon 7000 graphics card which both don't have any external connectors and
1701 * thus are useless, and even worse, e.g. the AUX port occupies ttyS0 and as
1702 * such makes those machines the only PARISC machines on which we can't use
1703 * ttyS0 as boot console.
1704 */
1705static void quirk_diva_ati_card(struct pci_dev *dev)
1706{
1707 if (dev->subsystem_vendor != PCI_VENDOR_ID_HP ||
1708 dev->subsystem_device != 0x1292)
1709 return;
1710
1711 dev_info(&dev->dev, "Hiding Diva built-in ATI card");
1712 dev->device = 0;
1713}
1714DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RADEON_QY,
1715 quirk_diva_ati_card);
1716
1717static void quirk_diva_aux_disable(struct pci_dev *dev)
1718{
1719 if (dev->subsystem_vendor != PCI_VENDOR_ID_HP ||
1720 dev->subsystem_device != 0x1291)
1721 return;
1722
1723 dev_info(&dev->dev, "Hiding Diva built-in AUX serial device");
1724 dev->device = 0;
1725}
1726DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX,
1727 quirk_diva_aux_disable);