baseport/syborg/specific/syborg.h
branchgraphics-phase-3
changeset 114 19c4533e1567
parent 98 23e14cbcf117
parent 105 70ccc05e6c8c
equal deleted inserted replaced
113:b842c0cb760e 114:19c4533e1567
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 * NTT Docomo, Inc : BUG 1296
    13 * NTT DOCOMO, INC : BUG 1296
       
    14 * NTT DOCOMO, INC : BUG 3598
       
    15 * NTT DOCOMO, INC - Fix for bug 1291 "E32test t_tock.exe failed to load Logical Device"
    14 *
    16 *
    15 * Description:
    17 * Description:
    16 *
    18 *
    17 */
    19 */
    18 
    20 
    51 const TUint KHwSVPSnapDevice			= KHwBasePeripherals + 0x0b*KHwLinSeparation;
    53 const TUint KHwSVPSnapDevice			= KHwBasePeripherals + 0x0b*KHwLinSeparation;
    52 const TUint KHwSVPNetDevice			= KHwBasePeripherals + 0x0c*KHwLinSeparation;
    54 const TUint KHwSVPNetDevice			= KHwBasePeripherals + 0x0c*KHwLinSeparation;
    53 const TUint KHwSVPNandDevice			= KHwBasePeripherals + 0x0d*KHwLinSeparation;
    55 const TUint KHwSVPNandDevice			= KHwBasePeripherals + 0x0d*KHwLinSeparation;
    54 const TUint KHwSVPAudioDevice			= KHwBasePeripherals + 0x0e*KHwLinSeparation;
    56 const TUint KHwSVPAudioDevice			= KHwBasePeripherals + 0x0e*KHwLinSeparation;
    55 const TUint KHwSVPWebcameraDevice		= KHwBasePeripherals + 0x0f*KHwLinSeparation;
    57 const TUint KHwSVPWebcameraDevice		= KHwBasePeripherals + 0x0f*KHwLinSeparation;
    56 const TUint KHwNVMemoryDevice           = KHwBasePeripherals + 0x10*KHwLinSeparation;
    58 const TUint KHwNVMemoryDevice           	= KHwBasePeripherals + 0x10*KHwLinSeparation;
    57 const TUint KHwGraphicsRegBase          = KHwBasePeripherals + 0x11*KHwLinSeparation;
    59 const TUint KHwGraphicsRegBase          	= KHwBasePeripherals + 0x11*KHwLinSeparation;
    58 const TUint KHwSVPPlatformDevice        = KHwBasePeripherals + 0x12*KHwLinSeparation;
    60 const TUint KHwBaseCounterTimer2		= KHwBasePeripherals + 0x12*KHwLinSeparation;
       
    61 const TUint KHwSVPPlatformDevice		= KHwBasePeripherals + 0x13*KHwLinSeparation;
       
    62 // NTT Docomo - Defect 1291 fix - E32test t_tock.exe failed to load Logical Device - end
    59 	
    63 	
    60 enum TSyborgInterruptId
    64 enum TSyborgInterruptId
    61 {
    65 {
    62   EIntTimer0 = 0,     /* RTC -- not used */
    66   EIntTimer0 = 0,     /* RTC -- not used */
    63   EIntTimer1 = 1,     /* Interval Timer */
    67   EIntTimer1 = 1,     /* Interval Timer */
    70   EIntSerial2 = 7,
    74   EIntSerial2 = 7,
    71   EIntSerial3 = 8,
    75   EIntSerial3 = 8,
    72   EIntNet0 = 9,
    76   EIntNet0 = 9,
    73   EIntAudio0 = 10,
    77   EIntAudio0 = 10,
    74   EIntNVMemoryDevice = 12,
    78   EIntNVMemoryDevice = 12,
    75   EIntGraphics = 13
    79   EIntGraphics = 13,
       
    80   EIntTimer2 = 14
       
    81 // NTT Docomo - Defect 1291 fix - E32test t_tock.exe failed to load Logical Device - end
    76 };
    82 };
    77 
    83 
    78 // Timer Mode
    84 // Timer Mode
    79 const TUint KPeriodic			= 0x0;
    85 const TUint KPeriodic			= 0x0;
    80 const TUint KOneShot		    = 0x1;
    86 const TUint KOneShot		    = 0x1;
   125 	// Debug Port Specific
   131 	// Debug Port Specific
   126 	IMPORT_C static TUint32 DebugPortAddr();
   132 	IMPORT_C static TUint32 DebugPortAddr();
   127 	IMPORT_C static void MarkDebugPortOff();
   133 	IMPORT_C static void MarkDebugPortOff();
   128 };
   134 };
   129 
   135 
   130 static inline TUint32 ReadReg(TUint32 base, TUint8 aReg)
   136 static inline TUint32 ReadReg(TUint32 base, TUint32 aReg)
   131 {
   137 {
   132   return *(volatile TUint32 *)(base + (aReg << 2));
   138   return *(volatile TUint32 *)(base + (aReg << 2));
   133 }
   139 }
   134 
   140 
   135 static inline void WriteReg(TUint32 base, TUint8 aReg, TUint32 aVal)
   141 static inline void WriteReg(TUint32 base, TUint32 aReg, TUint32 aVal)
   136 {
   142 {
   137   *(volatile TUint32*)(base + (aReg<<2)) = aVal;
   143   *(volatile TUint32*)(base + (aReg<<2)) = aVal;
   138 }
   144 }
   139 
   145 
   140 #endif  // __SYBORG_H__
   146 #endif  // __SYBORG_H__