Changeset 534 for trunk/hal/tsar_mips32/drivers/soclib_pic.c
- Timestamp:
- Sep 21, 2018, 10:20:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_pic.c
r492 r534 367 367 // get the source chdev functionnal type, channel, and direction 368 368 uint32_t func = src_chdev->func; 369 uint32_t impl = src_chdev->impl; 369 370 uint32_t channel = src_chdev->channel; 370 371 bool_t is_rx = src_chdev->is_rx; 371 372 372 373 if( (func == DEV_FUNC_IOC) || (func == DEV_FUNC_NIC) || 373 (func == DEV_FUNC_TXT ) || (func == DEV_FUNC_IOB) ) // external IRQ => WTI374 (func == DEV_FUNC_TXT && impl == IMPL_TXT_TTY) || (func == DEV_FUNC_IOB) ) // external IRQ => WTI 374 375 { 375 376 // get external IRQ index … … 415 416 416 417 } 417 else if( (func == DEV_FUNC_DMA) || (func == DEV_FUNC_MMC) ) // internal IRQ => HWI 418 else if( (func == DEV_FUNC_DMA) || (func == DEV_FUNC_MMC) || 419 (func == DEV_FUNC_TXT && impl == IMPL_TXT_MTY) ) // internal IRQ => HWI 418 420 { 419 421 // get internal IRQ index 420 422 uint32_t hwi_id; 421 423 if( func == DEV_FUNC_DMA ) hwi_id = lapic_input.dma[channel]; 424 else if (func == DEV_FUNC_TXT ) hwi_id = lapic_input.mtty; 422 425 else hwi_id = lapic_input.mmc; 423 426
Note: See TracChangeset
for help on using the changeset viewer.