virtex_ml510.c 845 B

1234567891011121314151617181920212223242526272829
  1. #include <asm/i8259.h>
  2. #include <linux/pci.h>
  3. #include "44x.h"
  4. /**
  5. * ml510_ail_quirk
  6. */
  7. static void ml510_ali_quirk(struct pci_dev *dev)
  8. {
  9. /* Enable the IDE controller */
  10. pci_write_config_byte(dev, 0x58, 0x4c);
  11. /* Assign irq 14 to the primary ide channel */
  12. pci_write_config_byte(dev, 0x44, 0x0d);
  13. /* Assign irq 15 to the secondary ide channel */
  14. pci_write_config_byte(dev, 0x75, 0x0f);
  15. /* Set the ide controller in native mode */
  16. pci_write_config_byte(dev, 0x09, 0xff);
  17. /* INTB = disabled, INTA = disabled */
  18. pci_write_config_byte(dev, 0x48, 0x00);
  19. /* INTD = disabled, INTC = disabled */
  20. pci_write_config_byte(dev, 0x4a, 0x00);
  21. /* Audio = INT7, Modem = disabled. */
  22. pci_write_config_byte(dev, 0x4b, 0x60);
  23. /* USB = INT7 */
  24. pci_write_config_byte(dev, 0x74, 0x06);
  25. }
  26. DECLARE_PCI_FIXUP_EARLY(0x10b9, 0x1533, ml510_ali_quirk);