Changeset 975 for trunk/platforms
- Timestamp:
- Apr 15, 2015, 4:02:09 PM (10 years ago)
- Location:
- trunk/platforms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/arch.py
r972 r975 221 221 arg0 = 32, arg1 = 32, arg2 = 32 ) 222 222 223 mapping.addIrq( xcu, index = 0, isrtype = 'ISR_MMC' ) 224 mapping.addIrq( xcu, index = 1, isrtype = 'ISR_MWR' ) 225 226 mapping.addPeriph( 'MMC', base = mmc_base + offset, 227 size = mmc_size, ptype = 'MMC' ) 223 mapping.addPeriph( 'MMC', base = mmc_base + offset, 224 size = mmc_size, ptype = 'MMC' ) 228 225 229 226 if ( mwr_type == 'GCD' ): 230 m apping.addPeriph( 'MWR', base = mwr_base + offset,231 size = mwr_size, ptype = 'MWR', subtype = 'GCD',232 arg0 = 2, arg1 = 1, arg2 = 1, arg3 = 0 )227 mwr = mapping.addPeriph( 'MWR', base = mwr_base + offset, 228 size = mwr_size, ptype = 'MWR', subtype = 'GCD', 229 arg0 = 2, arg1 = 1, arg2 = 1, arg3 = 0 ) 233 230 234 231 if ( mwr_type == 'DCT' ): 235 m apping.addPeriph( 'MWR', base = mwr_base + offset,236 size = mwr_size, ptype = 'MWR', subtype = 'DCT',237 arg0 = 1, arg1 = 1, arg2 = 1, arg3 = 0 )232 mwr = mapping.addPeriph( 'MWR', base = mwr_base + offset, 233 size = mwr_size, ptype = 'MWR', subtype = 'DCT', 234 arg0 = 1, arg1 = 1, arg2 = 1, arg3 = 0 ) 238 235 239 236 if ( mwr_type == 'CPY' ): 240 mapping.addPeriph( 'MWR', base = mwr_base + offset, 241 size = mwr_size, ptype = 'MWR', subtype = 'CPY', 242 arg0 = 1, arg1 = 1, arg2 = 1, arg3 = 0 ) 237 mwr = mapping.addPeriph( 'MWR', base = mwr_base + offset, 238 size = mwr_size, ptype = 'MWR', subtype = 'CPY', 239 arg0 = 1, arg1 = 1, arg2 = 1, arg3 = 0 ) 240 241 mapping.addIrq( xcu, index = 0, src = mmc, isrtype = 'ISR_MMC' ) 242 mapping.addIrq( xcu, index = 1, src = mwr, isrtype = 'ISR_MWR' ) 243 243 244 244 for p in xrange ( nb_procs ): … … 272 272 ptype = 'PIC', channels = 32 ) 273 273 274 mapping.addIrq( pic, index = 0, isrtype = 'ISR_NIC_RX', channel = 0 ) 275 mapping.addIrq( pic, index = 1, isrtype = 'ISR_NIC_RX', channel = 1 ) 276 277 mapping.addIrq( pic, index = 2, isrtype = 'ISR_NIC_TX', channel = 0 ) 278 mapping.addIrq( pic, index = 3, isrtype = 'ISR_NIC_TX', channel = 1 ) 279 280 mapping.addIrq( pic, index = 4, isrtype = 'ISR_CMA' , channel = 0 ) 281 mapping.addIrq( pic, index = 5, isrtype = 'ISR_CMA' , channel = 1 ) 282 mapping.addIrq( pic, index = 6, isrtype = 'ISR_CMA' , channel = 2 ) 283 mapping.addIrq( pic, index = 7, isrtype = 'ISR_CMA' , channel = 3 ) 274 mapping.addIrq( pic, index = 0, src = nic, 275 isrtype = 'ISR_NIC_RX', channel = 0 ) 276 mapping.addIrq( pic, index = 1, src = nic, 277 isrtype = 'ISR_NIC_RX', channel = 1 ) 278 279 mapping.addIrq( pic, index = 2, src = nic, 280 isrtype = 'ISR_NIC_TX', channel = 0 ) 281 mapping.addIrq( pic, index = 3, src = nic, 282 isrtype = 'ISR_NIC_TX', channel = 1 ) 283 284 mapping.addIrq( pic, index = 4, src = cma, 285 isrtype = 'ISR_CMA', channel = 0 ) 286 mapping.addIrq( pic, index = 5, src = cma, 287 isrtype = 'ISR_CMA', channel = 1 ) 288 mapping.addIrq( pic, index = 6, src = cma, 289 isrtype = 'ISR_CMA', channel = 2 ) 290 mapping.addIrq( pic, index = 7, src = cma, 291 isrtype = 'ISR_CMA', channel = 3 ) 284 292 285 293 if ( ioc_type == 'BDV' ): isr_ioc = 'ISR_BDV' … … 287 295 if ( ioc_type == 'SDC' ): isr_ioc = 'ISR_SDC' 288 296 289 mapping.addIrq( pic, index = 8, isrtype = isr_ioc , channel = 0 ) 290 291 mapping.addIrq( pic, index = 16, isrtype = 'ISR_TTY_RX', channel = 0 ) 292 mapping.addIrq( pic, index = 17, isrtype = 'ISR_TTY_RX', channel = 1 ) 293 mapping.addIrq( pic, index = 18, isrtype = 'ISR_TTY_RX', channel = 2 ) 294 mapping.addIrq( pic, index = 19, isrtype = 'ISR_TTY_RX', channel = 3 ) 295 mapping.addIrq( pic, index = 20, isrtype = 'ISR_TTY_RX', channel = 4 ) 296 mapping.addIrq( pic, index = 21, isrtype = 'ISR_TTY_RX', channel = 5 ) 297 mapping.addIrq( pic, index = 22, isrtype = 'ISR_TTY_RX', channel = 6 ) 298 mapping.addIrq( pic, index = 23, isrtype = 'ISR_TTY_RX', channel = 7 ) 297 mapping.addIrq( pic, index = 8, src = ioc, 298 isrtype = isr_ioc, channel = 0 ) 299 mapping.addIrq( pic, index = 16, src = tty, 300 isrtype = 'ISR_TTY_RX', channel = 0 ) 301 mapping.addIrq( pic, index = 17, src = tty, 302 isrtype = 'ISR_TTY_RX', channel = 1 ) 303 mapping.addIrq( pic, index = 18, src = tty, 304 isrtype = 'ISR_TTY_RX', channel = 2 ) 305 mapping.addIrq( pic, index = 19, src = tty, 306 isrtype = 'ISR_TTY_RX', channel = 3 ) 307 mapping.addIrq( pic, index = 20, src = tty, 308 isrtype = 'ISR_TTY_RX', channel = 4 ) 309 mapping.addIrq( pic, index = 21, src = tty, 310 isrtype = 'ISR_TTY_RX', channel = 5 ) 311 mapping.addIrq( pic, index = 22, src = tty, 312 isrtype = 'ISR_TTY_RX', channel = 6 ) 313 mapping.addIrq( pic, index = 23, src = tty, 314 isrtype = 'ISR_TTY_RX', channel = 7 ) 299 315 300 316 -
trunk/platforms/tsar_generic_leti/arch.py
r967 r975 217 217 arg0 = 16, arg1 = 16, arg2 = 16 ) 218 218 219 mapping.addIrq( xcu, index = 8, isrtype = 'ISR_MMC' )219 mapping.addIrq( xcu, index = 8, src = mmc, isrtype = 'ISR_MMC' ) 220 220 221 221 for p in xrange ( nb_procs ): … … 244 244 ptype = 'PIC', channels = 32 ) 245 245 246 mapping.addIrq( pic, index = 0 , isrtype = 'ISR_NIC_RX', channel = 0 ) 247 mapping.addIrq( pic, index = 1 , isrtype = 'ISR_NIC_RX', channel = 1 ) 248 249 mapping.addIrq( pic, index = 2 , isrtype = 'ISR_NIC_TX', channel = 0 ) 250 mapping.addIrq( pic, index = 3 , isrtype = 'ISR_NIC_TX', channel = 1 ) 251 252 mapping.addIrq( pic, index = 4 , isrtype = 'ISR_CMA' , channel = 0 ) 253 mapping.addIrq( pic, index = 5 , isrtype = 'ISR_CMA' , channel = 1 ) 254 mapping.addIrq( pic, index = 6 , isrtype = 'ISR_CMA' , channel = 2 ) 255 mapping.addIrq( pic, index = 7 , isrtype = 'ISR_CMA' , channel = 3 ) 256 257 if ( ioc_type == 'BDV' ): 258 mapping.addIrq( pic, index = 8 , isrtype = 'ISR_BDV' , channel = 0 ) 259 if ( ioc_type == 'HBA' ): 260 mapping.addIrq( pic, index = 8 , isrtype = 'ISR_HBA' , channel = 0 ) 261 if ( ioc_type == 'SDC' ): 262 mapping.addIrq( pic, index = 8 , isrtype = 'ISR_SDC' , channel = 0 ) 263 264 mapping.addIrq( pic, index = 16, isrtype = 'ISR_TTY_RX', channel = 0 ) 265 mapping.addIrq( pic, index = 17, isrtype = 'ISR_TTY_RX', channel = 1 ) 266 mapping.addIrq( pic, index = 18, isrtype = 'ISR_TTY_RX', channel = 2 ) 267 mapping.addIrq( pic, index = 19, isrtype = 'ISR_TTY_RX', channel = 3 ) 268 mapping.addIrq( pic, index = 20, isrtype = 'ISR_TTY_RX', channel = 4 ) 269 mapping.addIrq( pic, index = 21, isrtype = 'ISR_TTY_RX', channel = 5 ) 270 mapping.addIrq( pic, index = 22, isrtype = 'ISR_TTY_RX', channel = 6 ) 271 mapping.addIrq( pic, index = 23, isrtype = 'ISR_TTY_RX', channel = 7 ) 246 mapping.addIrq( pic, index = 0, src = nic, 247 isrtype = 'ISR_NIC_RX', channel = 0 ) 248 mapping.addIrq( pic, index = 1, src = nic, 249 isrtype = 'ISR_NIC_RX', channel = 1 ) 250 mapping.addIrq( pic, index = 2, src = nic, 251 isrtype = 'ISR_NIC_TX', channel = 0 ) 252 mapping.addIrq( pic, index = 3, src = nic, 253 isrtype = 'ISR_NIC_TX', channel = 1 ) 254 mapping.addIrq( pic, index = 4, src = cma, 255 isrtype = 'ISR_CMA', channel = 0 ) 256 mapping.addIrq( pic, index = 5, src = cma, 257 isrtype = 'ISR_CMA', channel = 1 ) 258 mapping.addIrq( pic, index = 6, src = cma, 259 isrtype = 'ISR_CMA', channel = 2 ) 260 mapping.addIrq( pic, index = 7, src = cma, 261 isrtype = 'ISR_CMA', channel = 3 ) 262 263 if ( ioc_type == 'BDV' ): isr_type = 'ISR_BDV' 264 elif ( ioc_type == 'HBA' ): isr_type = 'ISR_HBA' 265 elif ( ioc_type == 'SDC' ): isr_type = 'ISR_SDC' 266 267 if ( ioc_type != 'RDK' ): 268 mapping.addIrq( pic, index = 8, src = ioc, 269 isrtype = isr_type, channel = 0 ) 270 271 mapping.addIrq( pic, index = 16, src = tty, 272 isrtype = 'ISR_TTY_RX', channel = 0 ) 273 mapping.addIrq( pic, index = 17, src = tty, 274 isrtype = 'ISR_TTY_RX', channel = 1 ) 275 mapping.addIrq( pic, index = 18, src = tty, 276 isrtype = 'ISR_TTY_RX', channel = 2 ) 277 mapping.addIrq( pic, index = 19, src = tty, 278 isrtype = 'ISR_TTY_RX', channel = 3 ) 279 mapping.addIrq( pic, index = 20, src = tty, 280 isrtype = 'ISR_TTY_RX', channel = 4 ) 281 mapping.addIrq( pic, index = 21, src = tty, 282 isrtype = 'ISR_TTY_RX', channel = 5 ) 283 mapping.addIrq( pic, index = 22, src = tty, 284 isrtype = 'ISR_TTY_RX', channel = 6 ) 285 mapping.addIrq( pic, index = 23, src = tty, 286 isrtype = 'ISR_TTY_RX', channel = 7 ) 272 287 273 288 ################################### -
trunk/platforms/tsar_generic_mwmr/arch.py
r956 r975 57 57 nb_procs = 2, 58 58 nb_ttys = 1, 59 fbf_width = 128 ): 59 fbf_width = 128, 60 ioc_type = 'BDV' ): 60 61 61 62 ### define architecture constants … … 219 220 arg0 = 32, arg1 = 32, arg2 = 32, arg3 = 16 ) 220 221 221 mapping.addIrq( xcu, index = 0, isrtype = 'ISR_MMC' ) 222 mapping.addIrq( xcu, index = 1, isrtype = 'ISR_MWR' , channel = 2 ) 222 mapping.addIrq( xcu, index = 0, src = mmc, 223 isrtype = 'ISR_MMC' ) 224 mapping.addIrq( xcu, index = 1, src = mwr, 225 isrtype = 'ISR_MWR' , channel = 2 ) 223 226 224 227 for p in xrange ( nb_procs ): … … 252 255 ptype = 'PIC', channels = 32 ) 253 256 254 mapping.addIrq( pic, index = 0, isrtype = 'ISR_NIC_RX', channel = 0 ) 255 mapping.addIrq( pic, index = 1, isrtype = 'ISR_NIC_RX', channel = 1 ) 256 257 mapping.addIrq( pic, index = 2, isrtype = 'ISR_NIC_TX', channel = 0 ) 258 mapping.addIrq( pic, index = 3, isrtype = 'ISR_NIC_TX', channel = 1 ) 259 260 mapping.addIrq( pic, index = 4, isrtype = 'ISR_CMA' , channel = 0 ) 261 mapping.addIrq( pic, index = 5, isrtype = 'ISR_CMA' , channel = 1 ) 262 mapping.addIrq( pic, index = 6, isrtype = 'ISR_CMA' , channel = 2 ) 263 mapping.addIrq( pic, index = 7, isrtype = 'ISR_CMA' , channel = 3 ) 264 265 mapping.addIrq( pic, index = 8, isrtype = 'ISR_BDV' , channel = 0 ) 266 267 mapping.addIrq( pic, index = 16, isrtype = 'ISR_TTY_RX', channel = 0 ) 268 mapping.addIrq( pic, index = 17, isrtype = 'ISR_TTY_RX', channel = 1 ) 269 mapping.addIrq( pic, index = 18, isrtype = 'ISR_TTY_RX', channel = 2 ) 270 mapping.addIrq( pic, index = 19, isrtype = 'ISR_TTY_RX', channel = 3 ) 271 mapping.addIrq( pic, index = 20, isrtype = 'ISR_TTY_RX', channel = 4 ) 272 mapping.addIrq( pic, index = 21, isrtype = 'ISR_TTY_RX', channel = 5 ) 273 mapping.addIrq( pic, index = 22, isrtype = 'ISR_TTY_RX', channel = 6 ) 274 mapping.addIrq( pic, index = 23, isrtype = 'ISR_TTY_RX', channel = 7 ) 257 mapping.addIrq( pic, index = 0, src = nic, 258 isrtype = 'ISR_NIC_RX', channel = 0 ) 259 mapping.addIrq( pic, index = 1, src = nic, 260 isrtype = 'ISR_NIC_RX', channel = 1 ) 261 262 mapping.addIrq( pic, index = 2, src = nic, 263 isrtype = 'ISR_NIC_TX', channel = 0 ) 264 mapping.addIrq( pic, index = 3, src = nic, 265 isrtype = 'ISR_NIC_TX', channel = 1 ) 266 267 mapping.addIrq( pic, index = 4, src = cma, 268 isrtype = 'ISR_CMA', channel = 0 ) 269 mapping.addIrq( pic, index = 5, src = cma, 270 isrtype = 'ISR_CMA', channel = 1 ) 271 mapping.addIrq( pic, index = 6, src = cma, 272 isrtype = 'ISR_CMA', channel = 2 ) 273 mapping.addIrq( pic, index = 7, src = cma, 274 isrtype = 'ISR_CMA', channel = 3 ) 275 276 mapping.addIrq( pic, index = 8, src = bdv, 277 isrtype = 'ISR_BDV', channel = 0 ) 278 279 mapping.addIrq( pic, index = 16, src = tty, 280 isrtype = 'ISR_TTY_RX', channel = 0 ) 281 mapping.addIrq( pic, index = 17, src = tty, 282 isrtype = 'ISR_TTY_RX', channel = 1 ) 283 mapping.addIrq( pic, index = 18, src = tty, 284 isrtype = 'ISR_TTY_RX', channel = 2 ) 285 mapping.addIrq( pic, index = 19, src = tty, 286 isrtype = 'ISR_TTY_RX', channel = 3 ) 287 mapping.addIrq( pic, index = 20, src = tty, 288 isrtype = 'ISR_TTY_RX', channel = 4 ) 289 mapping.addIrq( pic, index = 21, src = tty, 290 isrtype = 'ISR_TTY_RX', channel = 5 ) 291 mapping.addIrq( pic, index = 22, src = tty, 292 isrtype = 'ISR_TTY_RX', channel = 6 ) 293 mapping.addIrq( pic, index = 23, src = tty, 294 isrtype = 'ISR_TTY_RX', channel = 7 ) 275 295 276 296 -
trunk/platforms/tsar_mono_fpga/arch.py
r958 r975 33 33 nb_procs = 2, 34 34 nb_ttys = 1, 35 fbf_width = 480 ): 35 fbf_width = 480, 36 ioc_type = 'BDV' ): 36 37 37 38 ### define architecture constants … … 165 166 ptype = 'MMC' ) 166 167 167 mapping.addIrq( xcu, index = 8 , isrtype = 'ISR_MMC' )168 mapping.addIrq( xcu, index = 8 , src = mmc, isrtype = 'ISR_MMC' ) 168 169 169 170 for p in xrange ( nb_procs ): mapping.addProc( 0, 0, p ) … … 172 173 ptype = 'IOC', subtype = 'BDV' ) 173 174 174 mapping.addIrq( xcu, index = 9 , isrtype = 'ISR_BDV' )175 mapping.addIrq( xcu, index = 9 , src = bdv, isrtype = 'ISR_BDV' ) 175 176 176 177 tty = mapping.addPeriph( 'TTY0', base = tty_base, size = tty_size, 177 178 ptype = 'TTY', channels = nb_ttys ) 178 179 179 mapping.addIrq( xcu, index = 10, isrtype = 'ISR_TTY_RX' )180 mapping.addIrq( xcu, index = 10, src = tty, isrtype = 'ISR_TTY_RX' ) 180 181 181 182 rom = mapping.addPeriph( 'ROM', base = rom_base, size = rom_size,
Note: See TracChangeset
for help on using the changeset viewer.