Changeset 211 for trunk/hal


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

hide the fields

Location:
trunk/hal
Files:
4 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
Note: See TracChangeset for help on using the changeset viewer.