Put an io page table entry.
result = lv1_put_iopte( /*IN*/ ioas_id, ioif_addr, lpar_addr, io_id, flags );
| Inputs | |
|---|---|
| Register | Description |
| R3 | ioas_id - io address space id |
| R4 | ioif_addr - io interface address |
| R5 | lpar_addr - logical partition address |
| R6 | io_id - io id |
| R7 | flags - see notes |
| Outputs | |
| Register | Description |
| R3 | Status - 0 = OK, Other values are unknown, but indicate failure. |
Notes:
Code taken from kboot-10\dl\linux-2.6.16\sound\powerpc\snd_ps3pf.c (kboot-20061208)
ret64 = lv1_put_iopte(0, /* io address space id */
ioif_map_info_array[current_segment].ioif_addr + current_page * IO_PAGESIZE, /* ioif addr */
p_to_lp(current_paddr), /* lpar addr */
PS3PF_AUDIO_IOID, IOPTE_READONLY | IOPTE_COHERENT | IOPTE_STRICT_ORDER);