fads.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * A collection of structures, addresses, and values associated with
  3. * the Motorola 860T FADS board. Copied from the MBX stuff.
  4. *
  5. * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
  6. */
  7. #ifdef __KERNEL__
  8. #ifndef __ASM_FADS_H__
  9. #define __ASM_FADS_H__
  10. #include <linux/config.h>
  11. #include <asm/ppcboot.h>
  12. /* Memory map is configured by the PROM startup.
  13. * I tried to follow the FADS manual, although the startup PROM
  14. * dictates this and we simply have to move some of the physical
  15. * addresses for Linux.
  16. */
  17. #define BCSR_ADDR ((uint)0xff010000)
  18. #define BCSR_SIZE ((uint)(64 * 1024))
  19. #define BCSR0 ((uint)0xff010000)
  20. #define BCSR1 ((uint)0xff010004)
  21. #define BCSR2 ((uint)0xff010008)
  22. #define BCSR3 ((uint)0xff01000c)
  23. #define BCSR4 ((uint)0xff010010)
  24. #define IMAP_ADDR ((uint)0xff000000)
  25. #define IMAP_SIZE ((uint)(64 * 1024))
  26. #define PCMCIA_MEM_ADDR ((uint)0xff020000)
  27. #define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
  28. /* Bits of interest in the BCSRs.
  29. */
  30. #define BCSR1_ETHEN ((uint)0x20000000)
  31. #define BCSR1_RS232EN_1 ((uint)0x01000000)
  32. #define BCSR1_RS232EN_2 ((uint)0x00040000)
  33. #define BCSR4_ETHLOOP ((uint)0x80000000) /* EEST Loopback */
  34. #define BCSR4_EEFDX ((uint)0x40000000) /* EEST FDX enable */
  35. #define BCSR4_FETH_EN ((uint)0x08000000) /* PHY enable */
  36. #define BCSR4_FETHCFG0 ((uint)0x04000000) /* PHY autoneg mode */
  37. #define BCSR4_FETHCFG1 ((uint)0x00400000) /* PHY autoneg mode */
  38. #define BCSR4_FETHFDE ((uint)0x02000000) /* PHY FDX advertise */
  39. #define BCSR4_FETHRST ((uint)0x00200000) /* PHY Reset */
  40. /* Interrupt level assignments.
  41. */
  42. #define FEC_INTERRUPT SIU_LEVEL1 /* FEC interrupt */
  43. #define PHY_INTERRUPT SIU_IRQ2 /* PHY link change interrupt */
  44. /* We don't use the 8259.
  45. */
  46. #define NR_8259_INTS 0
  47. #endif /* __ASM_FADS_H__ */
  48. #endif /* __KERNEL__ */