[Spice-devel] [spice-protocol PATCH 31/46] qxlhw: qxl.h: remove physical_address

Alon Levy alevy at redhat.com
Tue Apr 10 04:50:27 PDT 2012


---
 src/qxl.h |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/qxl.h b/src/qxl.h
index 585f204..a386651 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -224,14 +224,6 @@ struct _qxl_screen_t
 #endif /* XSPICE */
 };
 
-static inline uint64_t
-physical_address (qxl_screen_t *qxl, void *virtual, uint8_t slot_id)
-{
-    qxl_memslot_t *p_slot = &(qxl->mem_slots[slot_id]);
-
-    return p_slot->high_bits | ((unsigned long)virtual - p_slot->start_virt_addr);
-}
-
 static inline void *
 u64_to_pointer (uint64_t u)
 {
-- 
1.7.9.3



More information about the Spice-devel mailing list