Changeset 1050 for trunk/platforms/tsar_generic_iob/arch.py
- Timestamp:
- Apr 6, 2017, 5:01:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/arch.py
r1033 r1050 65 65 ### define architecture constants 66 66 67 nb_nics = 1 68 nb_cmas = 4 67 if ( x_size * y_size >= 4 ) : nb_nics = 4 68 elif ( x_size * y_size == 2 ) : nb_nics = 2 69 else : nb_nics = 1 70 71 nb_cmas = 1 69 72 x_io = 0 70 73 y_io = 0 … … 124 127 125 128 nic_base = 0x00B5000000 126 nic_size = 0x 80000 # 512kbytes129 nic_size = 0x1000 # 4 Kkbytes 127 130 128 131 cma_base = 0x00B6000000 … … 171 174 172 175 kernel_heap_vbase = 0xD0000000 173 kernel_heap_size = 0x00 400000 # 4Mbytes per cluster176 kernel_heap_size = 0x00200000 # 2 Mbytes per cluster 174 177 175 178 kernel_sched_vbase = 0xA0000000 … … 267 270 ptype = 'PIC', channels = 32 ) 268 271 272 if ( ioc_type == 'BDV' ): isr_ioc = 'ISR_BDV' 273 if ( ioc_type == 'HBA' ): isr_ioc = 'ISR_HBA' 274 if ( ioc_type == 'SDC' ): isr_ioc = 'ISR_SDC' 275 if ( ioc_type == 'SPI' ): isr_ioc = 'ISR_SPI' 276 269 277 mapping.addIrq( pic, index = 0, src = nic, 270 278 isrtype = 'ISR_NIC_RX', channel = 0 ) 271 279 mapping.addIrq( pic, index = 1, src = nic, 272 280 isrtype = 'ISR_NIC_RX', channel = 1 ) 273 274 281 mapping.addIrq( pic, index = 2, src = nic, 282 isrtype = 'ISR_NIC_RX', channel = 2 ) 283 mapping.addIrq( pic, index = 3, src = nic, 284 isrtype = 'ISR_NIC_RX', channel = 3 ) 285 286 mapping.addIrq( pic, index = 4, src = nic, 275 287 isrtype = 'ISR_NIC_TX', channel = 0 ) 276 mapping.addIrq( pic, index = 3, src = nic,288 mapping.addIrq( pic, index = 5, src = nic, 277 289 isrtype = 'ISR_NIC_TX', channel = 1 ) 278 279 mapping.addIrq( pic, index = 4, src = cma, 290 mapping.addIrq( pic, index = 6, src = nic, 291 isrtype = 'ISR_NIC_TX', channel = 2 ) 292 mapping.addIrq( pic, index = 7, src = nic, 293 isrtype = 'ISR_NIC_TX', channel = 3 ) 294 295 mapping.addIrq( pic, index = 8 , src = cma, 280 296 isrtype = 'ISR_CMA', channel = 0 ) 281 mapping.addIrq( pic, index = 5, src = cma,297 mapping.addIrq( pic, index = 9 , src = cma, 282 298 isrtype = 'ISR_CMA', channel = 1 ) 283 mapping.addIrq( pic, index = 6, src = cma,299 mapping.addIrq( pic, index = 10, src = cma, 284 300 isrtype = 'ISR_CMA', channel = 2 ) 285 mapping.addIrq( pic, index = 7, src = cma,301 mapping.addIrq( pic, index = 11, src = cma, 286 302 isrtype = 'ISR_CMA', channel = 3 ) 287 303 288 if ( ioc_type == 'BDV' ): isr_ioc = 'ISR_BDV' 289 if ( ioc_type == 'HBA' ): isr_ioc = 'ISR_HBA' 290 if ( ioc_type == 'SDC' ): isr_ioc = 'ISR_SDC' 291 if ( ioc_type == 'SPI' ): isr_ioc = 'ISR_SPI' 292 293 mapping.addIrq( pic, index = 8, src = ioc, 304 mapping.addIrq( pic, index = 12, src = ioc, 294 305 isrtype = isr_ioc, channel = 0 ) 306 295 307 mapping.addIrq( pic, index = 16, src = tty, 296 308 isrtype = 'ISR_TTY_RX', channel = 0 )
Note: See TracChangeset
for help on using the changeset viewer.