rpxclassic.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:3k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  * BK Id: SCCS/s.rpxclassic.h 1.11 08/17/01 15:23:17 paulus
  3.  */
  4. /*
  5.  * A collection of structures, addresses, and values associated with
  6.  * the RPCG RPX-Classic board.  Copied from the RPX-Lite stuff.
  7.  *
  8.  * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
  9.  */
  10. #ifdef __KERNEL__
  11. #ifndef __MACH_RPX_DEFS
  12. #define __MACH_RPX_DEFS
  13. #include <linux/config.h>
  14. #ifndef __ASSEMBLY__
  15. /* A Board Information structure that is given to a program when
  16.  * prom starts it up.
  17.  */
  18. typedef struct bd_info {
  19. unsigned int bi_memstart; /* Memory start address */
  20. unsigned int bi_memsize; /* Memory (end) size in bytes */
  21. unsigned int bi_intfreq; /* Internal Freq, in Hz */
  22. unsigned int bi_busfreq; /* Bus Freq, in Hz */
  23. unsigned char bi_enetaddr[6];
  24. unsigned int bi_baudrate;
  25. } bd_t;
  26. extern bd_t m8xx_board_info;
  27. /* Memory map is configured by the PROM startup.
  28.  * We just map a few things we need.  The CSR is actually 4 byte-wide
  29.  * registers that can be accessed as 8-, 16-, or 32-bit values.
  30.  */
  31. #define PCI_ISA_IO_ADDR ((unsigned)0x80000000)
  32. #define PCI_ISA_IO_SIZE ((uint)(512 * 1024 * 1024))
  33. #define PCI_ISA_MEM_ADDR ((unsigned)0xc0000000)
  34. #define PCI_ISA_MEM_SIZE ((uint)(512 * 1024 * 1024))
  35. #define RPX_CSR_ADDR ((uint)0xfa400000)
  36. #define RPX_CSR_SIZE ((uint)(4 * 1024))
  37. #define IMAP_ADDR ((uint)0xfa200000)
  38. #define IMAP_SIZE ((uint)(64 * 1024))
  39. #define PCI_CSR_ADDR ((uint)0x80000000)
  40. #define PCI_CSR_SIZE ((uint)(64 * 1024))
  41. #define PCMCIA_MEM_ADDR ((uint)0xe0000000)
  42. #define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
  43. #define PCMCIA_IO_ADDR ((uint)0xe4000000)
  44. #define PCMCIA_IO_SIZE ((uint)(4 * 1024))
  45. #define PCMCIA_ATTRB_ADDR ((uint)0xe8000000)
  46. #define PCMCIA_ATTRB_SIZE ((uint)(4 * 1024))
  47. /* Things of interest in the CSR.
  48. */
  49. #define BCSR0_ETHEN ((uint)0x80000000)
  50. #define BCSR0_ETHLPBK ((uint)0x40000000)
  51. #define BCSR0_COLTESTDIS ((uint)0x20000000)
  52. #define BCSR0_FULLDPLXDIS ((uint)0x10000000)
  53. #define BCSR0_ENFLSHSEL ((uint)0x04000000)
  54. #define BCSR0_FLASH_SEL ((uint)0x02000000)
  55. #define BCSR0_ENMONXCVR ((uint)0x01000000)
  56. #define BCSR0_PCMCIAVOLT ((uint)0x000f0000) /* CLLF */
  57. #define BCSR0_PCMCIA3VOLT ((uint)0x000a0000) /* CLLF */
  58. #define BCSR0_PCMCIA5VOLT ((uint)0x00060000) /* CLLF */
  59. #define BCSR1_IPB5SEL           ((uint)0x00100000)
  60. #define BCSR1_PCVCTL4           ((uint)0x00080000)
  61. #define BCSR1_PCVCTL5           ((uint)0x00040000)
  62. #define BCSR1_PCVCTL6           ((uint)0x00020000)
  63. #define BCSR1_PCVCTL7           ((uint)0x00010000)
  64. #define BCSR2_EN232XCVR ((uint)0x00008000)
  65. #define BCSR2_QSPACESEL ((uint)0x00004000)
  66. #define BCSR2_FETHLEDMODE ((uint)0x00000800) /* CLLF */
  67. #if defined(CONFIG_HTDMSOUND)
  68. #include <asm/rpxhiox.h>
  69. #endif
  70. /* define IO_BASE for pcmcia, CLLF only */
  71. #if !defined(CONFIG_PCI)
  72. #define _IO_BASE 0x80000000
  73. #define _IO_BASE_SIZE 0x1000
  74. /* for pcmcia sandisk */
  75. #ifdef CONFIG_IDE
  76. #define MAX_HWIFS 1
  77. #define ide_request_irq(irq,hand,flg,dev,id)    request_8xxirq((irq),(hand),(flg),(dev),(id))
  78. #endif
  79. #endif
  80. /* Interrupt level assignments.
  81. */
  82. #define FEC_INTERRUPT SIU_LEVEL1 /* FEC interrupt */
  83. #endif /* !__ASSEMBLY__ */
  84. /* We don't use the 8259.
  85. */
  86. #define NR_8259_INTS 0
  87. #endif
  88. #endif /* __KERNEL__ */