kvm: qemu: LSI SCSI and e1000 unregister callbacks
[kvm-userspace.git] / qemu / target-ia64 / firmware.h
blobdde8b2dd9107bdaadff2b2688bdd7eb7ee422cd8
1 /*
2 * firmwar.h: Firmware build logic head file
4 * Copyright (c) 2007, Intel Corporation.
5 * Zhang Xiantao <xiantao.zhang@intel.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 * Place - Suite 330, Boston, MA 02111-1307 USA.
20 #ifndef __FIRM_WARE_H
21 #define __FIRM_WARE_
22 #include "cpu.h"
24 #include <sys/types.h>
25 #include <sys/stat.h>
26 #include <fcntl.h>
28 #include <zlib.h>
30 #define GFW_SIZE (16UL<<20)
31 #define GFW_START ((4UL<<30) - GFW_SIZE)
33 #define HOB_SIGNATURE 0x3436474953424f48 // "HOBSIG64"
34 #define GFW_HOB_START ((4UL<<30) - (14UL<<20)) // 4G - 14M
35 #define GFW_HOB_SIZE (1UL<<20) // 1M
36 #define HOB_OFFSET (GFW_HOB_START-GFW_START)
38 #define Hob_Output(s) \
39 fprintf(stderr, s)
41 extern int kvm_ia64_build_hob(unsigned long memsize,
42 unsigned long vcpus, uint8_t* fw_start);
43 extern char *read_image(const char *filename, unsigned long *size);
45 #endif //__FIRM_WARE_