Changeset 211 for trunk


Ignore:
Timestamp:
Jul 17, 2017, 1:22:11 PM (7 years ago)
Author:
max@…
Message:

hide the fields

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_bdv.c

    r75 r211  
    3434    // get extended pointer on SOCLIB_BDV peripheral base address
    3535        xptr_t  bdv_xp = chdev->base;
     36
     37    // set driver specific fields
     38    chdev->cmd = &soclib_bdv_cmd;
     39    chdev->isr = &soclib_bdv_isr;
    3640
    3741    // get hardware device cluster and local pointer
  • trunk/hal/tsar_mips32/drivers/soclib_hba.c

    r101 r211  
    5959    // get hardware device base address
    6060        xptr_t  hba_xp = chdev->base;
     61
     62    // set driver specific fields
     63    chdev->cmd = &soclib_hba_cmd;
     64    chdev->isr = &soclib_hba_isr;
    6165
    6266    // get hardware device cluster and local pointer
  • trunk/hal/x86_64/drivers/soclib_bdv.c

    r210 r211  
    176176/* -------------------------------------------------------------------------- */
    177177
    178 void soclib_bdv_init( chdev_t * chdev )
    179 {
     178void soclib_bdv_init(chdev_t *chdev)
     179{
     180        chdev->cmd = &soclib_bdv_cmd;
     181        chdev->isr = &soclib_bdv_isr;
    180182        ata_init();
    181183}
  • trunk/hal/x86_64/drivers/soclib_hba.c

    r76 r211  
    3232void soclib_hba_init( chdev_t * chdev )
    3333{
     34    // set driver specific fields
     35    chdev->cmd = &soclib_hba_cmd;
     36    chdev->isr = &soclib_hba_isr;
    3437
     38        x86_panic((const char *)__func__);
    3539}
    3640
    3741void __attribute__ ((noinline)) soclib_hba_cmd( xptr_t th_xp )
    3842{
    39 
     43        x86_panic((const char *)__func__);
    4044}
    4145
    4246void __attribute__ ((noinline)) soclib_hba_isr( chdev_t * chdev )
    4347{
    44 
     48        x86_panic((const char *)__func__);
    4549}
    4650
  • trunk/kernel/devices/dev_ioc.c

    r207 r211  
    5757    snprintf( ioc->name , 16 , "ioc_%d" , channel );
    5858
    59     // set driver specific fields in chdev descriptor and call driver init function
     59    // call driver init function
    6060    if( impl == IMPL_IOC_BDV )
    6161    {
    62         ioc->cmd = &soclib_bdv_cmd;
    63         ioc->isr = &soclib_bdv_isr;
    6462        soclib_bdv_init( ioc );
    6563    }
    6664    else if( impl == IMPL_IOC_HBA )
    6765    {
    68         ioc->cmd = &soclib_hba_cmd;
    69         ioc->isr = &soclib_hba_isr;
    7066        soclib_hba_init( ioc );
    7167    }
Note: See TracChangeset for help on using the changeset viewer.