markeins.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) NEC Electronics Corporation 2005-2006
  3. *
  4. * This file based on include/asm-mips/ddb5xxx/ddb5xxx.h
  5. * Copyright 2001 MontaVista Software Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #ifndef MARKEINS_H
  22. #define MARKEINS_H
  23. #define NUM_EMMA2RH_IRQ_SW 32
  24. #define NUM_EMMA2RH_IRQ_GPIO 32
  25. #define EMMA2RH_SW_CASCADE (EMMA2RH_IRQ_INT(7) - EMMA2RH_IRQ_INT(0))
  26. #define EMMA2RH_GPIO_CASCADE (EMMA2RH_IRQ_INT(46) - EMMA2RH_IRQ_INT(0))
  27. #define EMMA2RH_SW_IRQ_BASE (EMMA2RH_IRQ_BASE + NUM_EMMA2RH_IRQ)
  28. #define EMMA2RH_GPIO_IRQ_BASE (EMMA2RH_SW_IRQ_BASE + NUM_EMMA2RH_IRQ_SW)
  29. #define EMMA2RH_SW_IRQ_INT(n) (EMMA2RH_SW_IRQ_BASE + (n))
  30. #define MARKEINS_PCI_IRQ_INTA EMMA2RH_GPIO_IRQ_BASE+15
  31. #define MARKEINS_PCI_IRQ_INTB EMMA2RH_GPIO_IRQ_BASE+16
  32. #define MARKEINS_PCI_IRQ_INTC EMMA2RH_GPIO_IRQ_BASE+17
  33. #define MARKEINS_PCI_IRQ_INTD EMMA2RH_GPIO_IRQ_BASE+18
  34. #endif /* CONFIG_MARKEINS */