ics.h 714 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright 2009 IBM Corporation.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #ifndef __ICS_H
  10. #define __ICS_H
  11. #define XIVE_ADDR_MASK 0x7FFULL
  12. extern void wsp_init_irq(void);
  13. extern int wsp_ics_alloc_irq(struct device_node *dn, int num);
  14. extern void wsp_ics_free_irq(struct device_node *dn, unsigned int irq);
  15. #ifdef CONFIG_PCI_MSI
  16. extern void wsp_ics_set_msi_chip(unsigned int irq);
  17. extern void wsp_ics_set_std_chip(unsigned int irq);
  18. #endif /* CONFIG_PCI_MSI */
  19. #endif /* __ICS_H */