du440.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * (C) Copyright 2008
  3. * Matthias Fuchs, esd gmbh, matthias.fuchs@esd-electronics.com
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #define SDR0_USB0 0x0320 /* USB Control Register */
  21. #define CFG_GPIO0_EP_EEP (0x80000000 >> 23) /* GPIO0_23 */
  22. #define CFG_GPIO1_DCF77 (0x80000000 >> (42-32)) /* GPIO1_42 */
  23. #define CFG_GPIO1_IORSTN (0x80000000 >> (55-32)) /* GPIO1_55 */
  24. #define CFG_GPIO1_HWVER_MASK 0x000000f0 /* GPIO1_56-59 */
  25. #define CFG_GPIO1_HWVER_SHIFT 4
  26. #define CFG_GPIO1_LEDUSR1 0x00000008 /* GPIO1_60 */
  27. #define CFG_GPIO1_LEDUSR2 0x00000004 /* GPIO1_61 */
  28. #define CFG_GPIO1_LEDPOST 0x00000002 /* GPIO1_62 */
  29. #define CFG_GPIO1_LEDDU 0x00000001 /* GPIO1_63 */
  30. #define CPLD_VERSION_MASK 0x0f
  31. #define PWR_INT_FLAG 0x80
  32. #define PWR_RDY 0x10
  33. #define CPLD_IRQ (32+30)
  34. #define PCI_VENDOR_ID_ESDGMBH 0x12fe
  35. #define PCI_DEVICE_ID_DU440 0x0444