Changeset 570 for trunk/hal/tsar_mips32/drivers/soclib_nic.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_nic.c
r507 r570 27 27 #include <chdev.h> 28 28 #include <dev_nic.h> 29 #include <spinlock.h>30 29 #include <kmem.h> 31 30 #include <printk.h> … … 49 48 50 49 // initialize Soclib NIC global registers 51 hal_remote_s w( XPTR( nic_cxy , nic_ptr + NIC_GLOBAL_SPAN + NIC_G_BC_ENABLE ) , 0 );52 hal_remote_s w( 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 ); 53 52 54 53 // allocate memory for chbuf descriptor (one page) … … 296 295 297 296 // read NIC channel status and acknowledge IRQ 298 uint32_t status = hal_remote_l w( XPTR( cxy_nic , offset ) );297 uint32_t status = hal_remote_l32( XPTR( cxy_nic , offset ) ); 299 298 300 299 assert( status != 0, "Illegal address: \n" );
Note: See TracChangeset
for help on using the changeset viewer.