Init pci_option_rom_offset for VGA BIOS absence
[qemu-kvm/fedora.git] / target-ppc / libkvm.h
blob95c314d7b03b49aeecda665e9004a8557eb4d621
1 /*
2 * This header is for functions & variables that will ONLY be
3 * used inside libkvm for powerpc.
4 * THESE ARE NOT EXPOSED TO THE USER AND ARE ONLY FOR USE
5 * WITHIN LIBKVM.
7 * Copyright (C) 2006 Qumranet, Inc.
9 * Authors:
10 * Avi Kivity <avi@qumranet.com>
11 * Yaniv Kamay <yaniv@qumranet.com>
13 * Copyright 2007 IBM Corporation.
14 * Added by: Jerone Young <jyoung5@us.ibm.com>
16 * This work is licensed under the GNU LGPL license, version 2.
19 #ifndef KVM_POWERPC_H
20 #define KVM_POWERPC_H
22 #include "libkvm-common.h"
24 extern int kvm_page_size;
26 #define PAGE_SIZE kvm_page_size
27 #define PAGE_MASK (~(PAGE_SIZE - 1))
29 static inline void eieio(void)
31 asm volatile("eieio" : : : "memory");
34 #define smp_wmb() eieio()
36 #endif