static void sendIOPT(unsigned int address, unsigned int level) { unsigned int i; vtd_pte_t *start = (vtd_pte_t *)address; for (i = 0; i < IO_PT_READ_SIZE; i++) { vtd_pte_t vtd_pte = start[i]; if (vtd_pte_get_addr(vtd_pte) != 0) { sendWord(i); sendWord(vtd_pte.words[0]); sendWord(vtd_pte.words[1]); if (level == ia32KSnumIOPTLevels) { sendWord(1); } else { sendWord(0); } } } }
static void sendIOPT(unsigned long address, unsigned int level) { unsigned long i; vtd_pte_t *start = (vtd_pte_t *)address; for (i = 0; i < IO_PT_READ_SIZE; i++) { vtd_pte_t vtd_pte = start[i]; if (vtd_pte_get_addr(vtd_pte) != 0) { sendWord(i); sendWord(vtd_pte.words[0]); #ifdef CONFIG_ARCH_IA32 sendWord(vtd_pte.words[1]); #endif if (level == x86KSnumIOPTLevels) { sendWord(1); } else { sendWord(0); } } } }