kvm tools: Add ivshmem device
[linux-2.6/next.git] / tools / kvm / include / kvm / segment.h
blob362e46d00b1488ddd348ce5b26378755503891cc
1 #ifndef KVM_SEGMENT_H
2 #define KVM_SEGMENT_H
4 #include <linux/types.h>
6 static inline u16 flat_to_seg16(u32 address)
8 return address >> 4;
11 static inline u16 flat_to_off16(u32 address, u32 segment)
13 return address - (segment << 4);
16 #endif /* KVM_SEGMENT_H */