~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-ppc/rpxlite.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 
  2 /*
  3  * A collection of structures, addresses, and values associated with
  4  * the RPCG RPX-Lite board.  Copied from the MBX stuff.
  5  *
  6  * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
  7  */
  8 #ifdef __KERNEL__
  9 #ifndef __MACH_RPX_DEFS
 10 #define __MACH_RPX_DEFS
 11 
 12 /* A Board Information structure that is given to a program when
 13  * prom starts it up.
 14  */
 15 typedef struct bd_info {
 16         unsigned int    bi_memstart;    /* Memory start address */
 17         unsigned int    bi_memsize;     /* Memory (end) size in bytes */
 18         unsigned int    bi_intfreq;     /* Internal Freq, in Hz */
 19         unsigned int    bi_busfreq;     /* Bus Freq, in Hz */
 20         unsigned char   bi_enetaddr[6];
 21         unsigned int    bi_baudrate;
 22 } bd_t;
 23 
 24 extern bd_t m8xx_board_info;
 25 
 26 /* Memory map is configured by the PROM startup.
 27  * We just map a few things we need.  The CSR is actually 4 byte-wide
 28  * registers that can be accessed as 8-, 16-, or 32-bit values.
 29  */
 30 #define RPX_CSR_ADDR            ((uint)0xfa400000)
 31 #define RPX_CSR_SIZE            ((uint)(4 * 1024))
 32 #define IMAP_ADDR               ((uint)0xfa200000)
 33 #define IMAP_SIZE               ((uint)(64 * 1024))
 34 #define HIOX_CSR_ADDR           ((uint)0xfac00000)
 35 #define HIOX_CSR_SIZE           ((uint)(4 * 1024))
 36 #define PCMCIA_MEM_ADDR         ((uint)0x04000000)
 37 #define PCMCIA_MEM_SIZE         ((uint)(64 * 1024))
 38 #define PCMCIA_IO_ADDR          ((uint)0x04400000)
 39 #define PCMCIA_IO_SIZE          ((uint)(4 * 1024))
 40 
 41 /* Things of interest in the CSR.
 42 */
 43 #define BCSR0_ETHEN             ((uint)0x80000000)
 44 #define BCSR0_ETHLPBK           ((uint)0x40000000)
 45 #define BCSR0_COLTESTDIS        ((uint)0x20000000)
 46 #define BCSR0_FULLDPLXDIS       ((uint)0x10000000)
 47 #define BCSR0_LEDOFF            ((uint)0x08000000)
 48 #define BCSR0_USBDISABLE        ((uint)0x04000000)
 49 #define BCSR0_USBHISPEED        ((uint)0x02000000)
 50 #define BCSR0_USBPWREN          ((uint)0x01000000)
 51 #define BCSR0_PCMCIAVOLT        ((uint)0x000f0000)
 52 #define BCSR0_PCMCIA3VOLT       ((uint)0x000a0000)
 53 #define BCSR0_PCMCIA5VOLT       ((uint)0x00060000)
 54 
 55 /* HIO Expansion card.
 56 */
 57 #define HIOX_CSR_ENAUDIO        ((uint)0x00000200)
 58 #define HIOX_CSR_RSTAUDIO       ((uint)0x00000100)      /* 0 == reset */
 59 
 60 /* We don't use the 8259.
 61 */
 62 #define NR_8259_INTS    0
 63 
 64 /* Machine type
 65 */
 66 #define _MACH_8xx (_MACH_rpxlite)
 67 
 68 #endif
 69 #endif /* __KERNEL__ */
 70 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.