Changeset 248 for trunk/softs/giet_tsar
- Timestamp:
- Aug 9, 2012, 10:57:23 AM (12 years ago)
- Location:
- trunk/softs/giet_tsar
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/giet_tsar/dma.h
r158 r248 9 9 DMA_IRQ_DISABLE = 4, 10 10 /***/ 11 DMA_SPAN = 8,11 DMA_SPAN = 0x400, 12 12 }; 13 13 14 14 enum DmaStatusValues { 15 DMA_ IDLE= 0,16 DMA_ SUCCESS= 1,17 DMA_ READ_ERROR= 2,15 DMA_SUCCESS = 0, 16 DMA_READ_ERROR = 1, 17 DMA_IDLE = 2, 18 18 DMA_WRITE_ERROR = 3, 19 19 }; -
trunk/softs/giet_tsar/drivers.c
r178 r248 376 376 377 377 tty_address = (char*)(base + increment + tid*TTY_SPAN*4); 378 //tty_address = (char*)(base + tid*TTY_SPAN*4); 378 379 379 380 for ( i=0 ; i < length ; i++ ) … … 569 570 if( index >= max ) return -1; 570 571 571 register int delay = ( (_proctime() + _procid()) & 0xF) << 4;572 register int * plock = (int*)&_spin_lock[index];572 register int delay = ((_proctime() +_procid()) & 0xF) << 4; 573 register int * plock = (int *) &_spin_lock[index]; 573 574 574 575 asm volatile ("_locks_llsc: \n" … … 769 770 { 770 771 int* dma_address; 771 unsigned int base = (unsigned int) &seg_dma_base;772 unsigned int base = (unsigned int) &seg_dma_base; 772 773 unsigned int increment = _segment_increment(DMA_SPAN*4); 773 char * fb = (char*)&seg_fb_base + offset;774 unsigned int delay 774 char * fb = (char *) &seg_fb_base + offset; 775 unsigned int delay = (_proctime() & 0xF) << 4; 775 776 unsigned int pid = _procid(); 776 777 unsigned int i; -
trunk/softs/giet_tsar/isr.c
r158 r248 183 183 End: */ 184 184 185 /* vim: set filetype= asmexpandtab shiftwidth=4 tabstop=4 softtabstop=4: */185 /* vim: set filetype=c expandtab shiftwidth=4 tabstop=4 softtabstop=4: */ 186 186 -
trunk/softs/giet_tsar/reset.s
r163 r248 107 107 nop 108 108 la $26, _interrupt_vector # interrupt vector address 109 la $27, _isr_dma 110 sw $27, 0($26) # interrupt_vector[0] <= _isr_dma_get 111 sw $27, 4($26) # interrupt_vector[1] <= _isr_dma_get 112 sw $27, 8($26) # interrupt_vector[2] <= _isr_dma_get 113 sw $27, 12($26) # interrupt_vector[3] <= _isr_dma_get 109 114 la $27, _isr_tty_get 110 sw $27, 0($26) # interrupt_vector[0] <= _isr_tty_get 111 sw $27, 4($26) # interrupt_vector[1] <= _isr_tty_get 112 sw $27, 8($26) # interrupt_vector[2] <= _isr_tty_get 113 sw $27, 12($26) # interrupt_vector[3] <= _isr_tty_get 114 la $27, _isr_dma 115 sw $27, 16($26) # interrupt_vector[4] <= _isr_dma 116 sw $27, 20($26) # interrupt_vector[5] <= _isr_dma 117 sw $27, 24($26) # interrupt_vector[6] <= _isr_dma 118 sw $27, 28($26) # interrupt_vector[7] <= _isr_dma 115 sw $27, 16($26) # interrupt_vector[4] <= _isr_tty 116 sw $27, 20($26) # interrupt_vector[5] <= _isr_tty 117 sw $27, 24($26) # interrupt_vector[6] <= _isr_tty 118 sw $27, 28($26) # interrupt_vector[7] <= _isr_tty 119 119 la $27, _isr_ioc 120 120 sw $27, 32($26) # interrupt_vector[8] <= _isr_ioc
Note: See TracChangeset
for help on using the changeset viewer.