msi.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2013 Boundary Devices, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. * You should have received a copy of the GNU General Public License along
  13. * with this program; if not, write to the Free Software Foundation, Inc.,
  14. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. void imx_pcie_enable_irq(unsigned pos, int set);
  17. void imx_pcie_mask_irq(unsigned pos, int set);
  18. unsigned imx_pcie_msi_pending(unsigned index);
  19. #define MSI_MATCH_ADDR 0x10000050
  20. #define MXC_INT_PCIE_0 152
  21. #define MXC_INT_PCIE_1 153
  22. #define MXC_INT_PCIE_2 154
  23. #define MXC_INT_PCIE_3 155
  24. void imx_msi_init(void);