lantiq_platform.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * This program is free software; you can redistribute it and/or modify it
  3. * under the terms of the GNU General Public License version 2 as published
  4. * by the Free Software Foundation.
  5. *
  6. * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
  7. */
  8. #ifndef _LANTIQ_PLATFORM_H__
  9. #define _LANTIQ_PLATFORM_H__
  10. #include <linux/mtd/partitions.h>
  11. #include <linux/socket.h>
  12. /* struct used to pass info to the pci core */
  13. enum {
  14. PCI_CLOCK_INT = 0,
  15. PCI_CLOCK_EXT
  16. };
  17. #define PCI_EXIN0 0x0001
  18. #define PCI_EXIN1 0x0002
  19. #define PCI_EXIN2 0x0004
  20. #define PCI_EXIN3 0x0008
  21. #define PCI_EXIN4 0x0010
  22. #define PCI_EXIN5 0x0020
  23. #define PCI_EXIN_MAX 6
  24. #define PCI_GNT1 0x0040
  25. #define PCI_GNT2 0x0080
  26. #define PCI_GNT3 0x0100
  27. #define PCI_GNT4 0x0200
  28. #define PCI_REQ1 0x0400
  29. #define PCI_REQ2 0x0800
  30. #define PCI_REQ3 0x1000
  31. #define PCI_REQ4 0x2000
  32. #define PCI_REQ_SHIFT 10
  33. #define PCI_REQ_MASK 0xf
  34. struct ltq_pci_data {
  35. int clock;
  36. int gpio;
  37. int irq[16];
  38. };
  39. /* struct used to pass info to network drivers */
  40. struct ltq_eth_data {
  41. struct sockaddr mac;
  42. int mii_mode;
  43. };
  44. #endif