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

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

File:
1 edited

Legend:

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

    r507 r570  
    2727#include <chdev.h>
    2828#include <dev_nic.h>
    29 #include <spinlock.h>
    3029#include <kmem.h>
    3130#include <printk.h>
     
    4948
    5049    // initialize Soclib NIC global registers
    51     hal_remote_sw( XPTR( nic_cxy , nic_ptr + NIC_GLOBAL_SPAN + NIC_G_BC_ENABLE ) , 0 );
    52     hal_remote_sw( XPTR( nic_cxy , nic_ptr + NIC_GLOBAL_SPAN + NIC_G_RUN       ) , 0 );
     50    hal_remote_s32( XPTR( nic_cxy , nic_ptr + NIC_GLOBAL_SPAN + NIC_G_BC_ENABLE ) , 0 );
     51    hal_remote_s32( XPTR( nic_cxy , nic_ptr + NIC_GLOBAL_SPAN + NIC_G_RUN       ) , 0 );
    5352
    5453    // allocate memory for chbuf descriptor (one page)
     
    296295
    297296    // read NIC channel status and acknowledge IRQ
    298     uint32_t status = hal_remote_lw( XPTR( cxy_nic , offset ) );
     297    uint32_t status = hal_remote_l32( XPTR( cxy_nic , offset ) );
    299298
    300299    assert( status != 0, "Illegal address: \n" );
Note: See TracChangeset for help on using the changeset viewer.