Changeset 534 for trunk/kernel


Ignore:
Timestamp:
Sep 21, 2018, 10:20:35 PM (3 years ago)
Author:
nicolas.van.phan@…
Message:

Add mtty driver.

Location:
trunk/kernel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/Makefile

    r473 r534  
    1212
    1313  DRIVERS_OBJS = $(HAL_ARCH)/build/drivers/soclib_tty.o  \
     14                 $(HAL_ARCH)/build/drivers/soclib_mtty.o \
    1415                 $(HAL_ARCH)/build/drivers/soclib_bdv.o  \
    1516                 $(HAL_ARCH)/build/drivers/soclib_hba.o  \
  • trunk/kernel/devices/dev_pic.h

    r503 r534  
    141141    uint32_t   dma[CONFIG_MAX_DMA_CHANNELS];
    142142    uint32_t   mmc;                             // MMC is single channel
     143    uint32_t   mtty;                            // Multi Tty (backup tty in cluster 0)
    143144}
    144145lapic_input_t;
  • trunk/kernel/devices/dev_txt.h

    r527 r534  
    7171    IMPL_TXT_TTY =   0,
    7272    IMPL_TXT_RS2 =   1,
     73    IMPL_TXT_MTY =   2,
    7374}
    7475txt_impl_t;
  • trunk/kernel/kern/kernel_init.c

    r532 r534  
    695695                if     ( func == DEV_FUNC_MMC ) lapic_input.mmc = id;
    696696                else if( func == DEV_FUNC_DMA ) lapic_input.dma[channel] = id;
     697                else if( func == DEV_FUNC_TXT ) lapic_input.mtty = id;
    697698                else assert( false , "illegal source device for LAPIC input" );
    698699            }
Note: See TracChangeset for help on using the changeset viewer.