Changeset 570 for trunk/hal/tsar_mips32/drivers/soclib_iob.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_iob.c
r451 r570 31 31 { 32 32 // desactivate IOMMU 33 hal_remote_s w( chdev->base + (IOB_IOMMU_ACTIVE<<2) , 0 );33 hal_remote_s32( chdev->base + (IOB_IOMMU_ACTIVE<<2) , 0 ); 34 34 } 35 35 … … 43 43 44 44 // get extended pointer on SOCLIB_IOB base_xp segment 45 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );45 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 46 46 47 47 // set ACTIVE register 48 hal_remote_s w( base_xp + (IOB_IOMMU_ACTIVE<<2) , value );48 hal_remote_s32( base_xp + (IOB_IOMMU_ACTIVE<<2) , value ); 49 49 } 50 50 … … 58 58 59 59 // get extended pointer on SOCLIB_IOB base_xp segment 60 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );60 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 61 61 62 62 // set PTPR register 63 hal_remote_s w( base_xp + (IOB_IOMMU_PTPR<<2) , value );63 hal_remote_s32( base_xp + (IOB_IOMMU_PTPR<<2) , value ); 64 64 } 65 65 … … 73 73 74 74 // get extended pointer on SOCLIB_IOB base_xp segment 75 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );75 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 76 76 77 77 // invalidate TLB entry 78 hal_remote_s w( base_xp + (IOB_INVAL_PTE<<2) , vpn );78 hal_remote_s32( base_xp + (IOB_INVAL_PTE<<2) , vpn ); 79 79 } 80 80 … … 87 87 88 88 // get extended pointer on SOCLIB_IOB base_xp segment 89 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );89 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 90 90 91 91 // get BVAR register 92 return hal_remote_l w( base_xp + (IOB_IOMMU_BVAR<<2) );92 return hal_remote_l32( base_xp + (IOB_IOMMU_BVAR<<2) ); 93 93 } 94 94 … … 101 101 102 102 // get extended pointer on SOCLIB_IOB base_xp segment 103 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );103 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 104 104 105 105 // get BVAR register 106 return hal_remote_l w( base_xp + (IOB_IOMMU_SRCID<<2) );106 return hal_remote_l32( base_xp + (IOB_IOMMU_SRCID<<2) ); 107 107 } 108 108 … … 115 115 116 116 // get extended pointer on SOCLIB_IOB base_xp segment 117 xptr_t base_xp = (xptr_t)hal_remote_l wd( XPTR( iob_cxy , &iob_ptr->base ) );117 xptr_t base_xp = (xptr_t)hal_remote_l64( XPTR( iob_cxy , &iob_ptr->base ) ); 118 118 119 119 // get BVAR register 120 return hal_remote_l w( base_xp + (IOB_IOMMU_ERROR<<2) );120 return hal_remote_l32( base_xp + (IOB_IOMMU_ERROR<<2) ); 121 121 } 122 122
Note: See TracChangeset
for help on using the changeset viewer.