Changeset 570 for trunk/hal/x86_64


Ignore:
Timestamp:
Oct 5, 2018, 12:08:35 AM (5 years ago)
Author:
alain
Message:

Introduction of the soclib_mty driver for the TSAR-LETI architecture.

Location:
trunk/hal/x86_64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_remote.c

    r457 r570  
    3030}
    3131
    32 void hal_remote_sw(xptr_t xp, uint32_t data)
     32void hal_remote_s32(xptr_t xp, uint32_t data)
    3333{
    3434        *(uint32_t *)xp = data;
    3535}
    3636
    37 void hal_remote_swd(xptr_t xp, uint64_t data)
     37void hal_remote_s64(xptr_t xp, uint64_t data)
    3838{
    3939        *(uint64_t *)xp = data;
     
    4242void hal_remote_spt(xptr_t xp, void *pt)
    4343{
    44         hal_remote_swd(xp, (uint64_t)pt);
     44        hal_remote_s64(xp, (uint64_t)pt);
    4545}
    4646
     
    5050}
    5151
    52 uint32_t hal_remote_lw(xptr_t xp)
     52uint32_t hal_remote_l32(xptr_t xp)
    5353{
    5454        return *(uint32_t *)xp;
    5555}
    5656
    57 uint64_t hal_remote_lwd(xptr_t xp)
     57uint64_t hal_remote_l64(xptr_t xp)
    5858{
    5959        return *(uint64_t *)xp;
     
    6262void *hal_remote_lpt(xptr_t xp)
    6363{
    64         return (void *)hal_remote_lwd(xp);
     64        return (void *)hal_remote_l64(xp);
    6565}
    6666
  • trunk/hal/x86_64/drivers/ioc_ata.c

    r503 r570  
    205205
    206206        // get command arguments and extended pointer on IOC device
    207         cmd_type =         hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.type   ) );
    208         lba      =         hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.lba    ) );
    209         count    =         hal_remote_lw ( XPTR( th_cxy , &th_ptr->ioc_cmd.count  ) );
    210         buf_xp   = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->ioc_cmd.buf_xp ) );
     207        cmd_type =         hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.type   ) );
     208        lba      =         hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.lba    ) );
     209        count    =         hal_remote_l32 ( XPTR( th_cxy , &th_ptr->ioc_cmd.count  ) );
     210        buf_xp   = (xptr_t)hal_remote_l64( XPTR( th_cxy , &th_ptr->ioc_cmd.buf_xp ) );
    211211
    212212        /* execute operation */
  • trunk/hal/x86_64/drivers/txt_rs232.c

    r321 r570  
    4646
    4747        // get command type and extended pointer on TXT device
    48         uint32_t type   =         hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.type ) );
    49         xptr_t   dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) );
     48        uint32_t type   =         hal_remote_l32 ( XPTR( th_cxy , &th_ptr->txt_cmd.type ) );
     49        xptr_t   dev_xp = (xptr_t)hal_remote_l64( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) );
    5050
    5151        // get TXT device cluster and local pointer
     
    5454
    5555        // get TTY channel index
    56         uint32_t   channel = hal_remote_lw( XPTR( dev_cxy , &dev_ptr->channel ) );
     56        uint32_t   channel = hal_remote_l32( XPTR( dev_cxy , &dev_ptr->channel ) );
    5757
    5858        // for now, only channel zero
     
    7070
    7171                // get source buffer extended pointer & bytes count
    72                 uint32_t count  = hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.count ) );
    73                 xptr_t   buf_xp = hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) );
     72                uint32_t count  = hal_remote_l32 ( XPTR( th_cxy , &th_ptr->txt_cmd.count ) );
     73                xptr_t   buf_xp = hal_remote_l64( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) );
    7474
    7575                // loop on characters
Note: See TracChangeset for help on using the changeset viewer.