Changeset 958ed38 in rtems
- Timestamp:
- 10/12/14 13:38:49 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 0f9dd74
- Parents:
- 1ec8b829
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/12/14 13:38:49)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:25)
- Location:
- c/src/lib/libbsp/powerpc/mvme5500
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/mvme5500/GT64260/MVME5500I2C.c
r1ec8b829 r958ed38 17 17 /* #define I2C_DEBUG*/ 18 18 19 unsigned char I2cAddrPack(unsigned char busAddr,uint32_t offset)19 static unsigned char I2cAddrPack(unsigned char busAddr,uint32_t offset) 20 20 { 21 21 return(busAddr | ((offset & 0x700) >> 7)); 22 22 } 23 unsigned char I2cDevByteAddr(uint32_t devA2A1A0, unsigned char byteNum) 23 24 static unsigned char I2cDevByteAddr(uint32_t devA2A1A0, unsigned char byteNum) 24 25 { 25 26 return(( devA2A1A0 >>(byteNum*8)) & 0xff); -
c/src/lib/libbsp/powerpc/mvme5500/irq/irq_init.c
r1ec8b829 r958ed38 30 30 */ 31 31 static int not_connected(void) {return 0;} 32 /*33 * default possible isOn function34 */35 static int connected(void) {return 1;}36 32 37 33 static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER]; 38 34 static rtems_irq_global_settings initial_config; 39 35 36 static rtems_irq_connect_data defaultIrq = { 37 .name = 0, 38 .hdl = NULL, 39 .handle = NULL, 40 .on = (rtems_irq_enable) nop_func, 41 .off = (rtems_irq_disable) nop_func, 42 .isOn = (rtems_irq_is_enabled) not_connected, 40 43 #ifdef BSP_SHARED_HANDLER_SUPPORT 41 static rtems_irq_connect_data defaultIrq = { 42 /* vectorIdex, hdl ,handle , on , off , isOn ,next_handler, */ 43 0, nop_func , NULL , nop_func , nop_func , not_connected, 0 44 .next_handler = NULL 45 #endif 44 46 }; 45 #else46 static rtems_irq_connect_data defaultIrq = {47 /* vectorIdex, hdl , handle , on , off , isOn */48 0, nop_func , NULL , nop_func , nop_func , not_connected49 };50 #endif51 47 52 rtems_irq_prio BSPirqPrioTable[BSP_PIC_IRQ_NUMBER] ={48 rtems_irq_prio BSPirqPrioTable[BSP_PIC_IRQ_NUMBER] = { 53 49 /* 54 50 * This table is where the developers can change the levels of priority … … 98 94 { 99 95 int i; 100 rtems_interrupt_level l ;96 rtems_interrupt_level level; 101 97 102 98 /* … … 134 130 #endif 135 131 136 rtems_interrupt_disable(l); 132 rtems_interrupt_disable(level); 133 (void) level; /* avoid set but not used warning */ 134 137 135 if (!BSP_rtems_irq_mngt_set(&initial_config)) { 138 136 /* -
c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
r1ec8b829 r958ed38 197 197 uintptr_t intrStackStart; 198 198 uintptr_t intrStackSize; 199 ppc_cpu_id_t myCpu;200 ppc_cpu_revision_t myCpuRevision;201 199 Triv121PgTbl pt=0; 202 200 … … 220 218 221 219 /* 222 * Get CPU identification dynamically. Note that the get_ppc_cpu_type() function223 * store the result in global variables so that it can be used latter...224 */ 225 myCpu =get_ppc_cpu_type();226 myCpuRevision =get_ppc_cpu_revision();220 * Get CPU identification dynamically. Note that the get_ppc_cpu_type() 221 * function store the result in global variables so that it can be used later. 222 */ 223 get_ppc_cpu_type(); 224 get_ppc_cpu_revision(); 227 225 228 226 #ifdef SHOW_LCR1_REGISTER -
c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c
r1ec8b829 r958ed38 49 49 #include <bsp.h> 50 50 #include <bsp/vectors.h> 51 #include <bsp/bootcard.h> 51 52 #include <libcpu/spr.h> 52 53 #include <bsp/pci.h> -
c/src/lib/libbsp/powerpc/mvme5500/vme/VMEConfig.h
r1ec8b829 r958ed38 17 17 * 18 18 */ 19 20 /* 21 * Prototypes 22 */ 23 int BSP_VMEInit(void); 24 int BSP_VMEIrqMgrInstall(void); 25 19 26 /* BSP specific address space configuration parameters */ 20 27
Note: See TracChangeset
for help on using the changeset viewer.