Lines Matching refs:paddr
231 ml_phys_read_data(pmap_paddr_t paddr, int size )
238 map = pmap_get_mapwindow((pt_entry_t)(INTEL_PTE_VALID | (paddr & PG_FRAME) | INTEL_PTE_REF));
244 s1 = *(unsigned char *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK));
248 s2 = *(unsigned short *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK));
253 result = *(unsigned int *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK));
264 ml_phys_read_long_long(pmap_paddr_t paddr )
271 map = pmap_get_mapwindow((pt_entry_t)(INTEL_PTE_VALID | (paddr & PG_FRAME) | INTEL_PTE_REF));
273 result = *(unsigned long long *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK));
282 unsigned int ml_phys_read( vm_offset_t paddr)
284 return ml_phys_read_data((pmap_paddr_t)paddr, 4);
287 unsigned int ml_phys_read_word(vm_offset_t paddr) {
289 return ml_phys_read_data((pmap_paddr_t)paddr, 4);
302 unsigned int ml_phys_read_half(vm_offset_t paddr)
304 return ml_phys_read_data((pmap_paddr_t)paddr, 2);
312 unsigned int ml_phys_read_byte(vm_offset_t paddr)
314 return ml_phys_read_data((pmap_paddr_t)paddr, 1);
322 unsigned long long ml_phys_read_double(vm_offset_t paddr)
324 return ml_phys_read_long_long((pmap_paddr_t)paddr);
339 ml_phys_write_data(pmap_paddr_t paddr, unsigned long data, int size)
345 map = pmap_get_mapwindow((pt_entry_t)(INTEL_PTE_VALID | INTEL_PTE_RW | (paddr & PG_FRAME) |
350 *(unsigned char *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK)) = (unsigned char)data;
353 *(unsigned short *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK)) = (unsigned short)data;
357 *(unsigned int *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK)) = (uint32_t)data;
366 ml_phys_write_long_long(pmap_paddr_t paddr, unsigned long long data)
372 map = pmap_get_mapwindow((pt_entry_t)(INTEL_PTE_VALID | INTEL_PTE_RW | (paddr & PG_FRAME) |
375 *(unsigned long long *)((uintptr_t)map->prv_CADDR | ((uint32_t)paddr & INTEL_OFFMASK)) = data;
384 void ml_phys_write_byte(vm_offset_t paddr, unsigned int data)
386 ml_phys_write_data((pmap_paddr_t)paddr, data, 1);
394 void ml_phys_write_half(vm_offset_t paddr, unsigned int data)
396 ml_phys_write_data((pmap_paddr_t)paddr, data, 2);
404 void ml_phys_write(vm_offset_t paddr, unsigned int data)
406 ml_phys_write_data((pmap_paddr_t)paddr, data, 4);
414 void ml_phys_write_word(vm_offset_t paddr, unsigned int data)
416 ml_phys_write_data((pmap_paddr_t)paddr, data, 4);
424 void ml_phys_write_double(vm_offset_t paddr, unsigned long long data)
426 ml_phys_write_long_long((pmap_paddr_t)paddr, data);
438 * Read the memory location at physical address paddr.
445 ml_probe_read(vm_offset_t paddr, unsigned int *val)
447 if ((PAGE_SIZE - (paddr & PAGE_MASK)) < 4)
450 *val = ml_phys_read(paddr);
456 * Read the memory location at physical address paddr.