Fix emu build with grub-emu-pci and grub-emu-modules.
* include/grub/util/misc.h: Export grub_util_{info,error,warn} functions. * include/grub/libpciaccess.h: New file. * conf/any-emu.rmk: Update kernel headers for emu build.
This commit is contained in:
commit
bc4a2d832b
4 changed files with 41 additions and 4 deletions
26
include/grub/libpciaccess.h
Normal file
26
include/grub/libpciaccess.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GRUB is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
void EXPORT_FUNC (pci_slot_match_iterator_create) (void);
|
||||
void EXPORT_FUNC (pci_system_cleanup) (void);
|
||||
void EXPORT_FUNC (pci_device_unmap_range) (void);
|
||||
void EXPORT_FUNC (pci_iterator_destroy) (void);
|
||||
void EXPORT_FUNC (pci_device_map_range) (void);
|
||||
void EXPORT_FUNC (pci_device_cfg_read_u32) (void);
|
||||
void EXPORT_FUNC (pci_device_next) (void);
|
||||
void EXPORT_FUNC (pci_system_init) (void);
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <grub/types.h>
|
||||
#include <grub/symbol.h>
|
||||
|
||||
#ifdef __NetBSD__
|
||||
/* NetBSD uses /boot for its boot block. */
|
||||
|
@ -40,9 +41,9 @@
|
|||
extern char *progname;
|
||||
extern int verbosity;
|
||||
|
||||
void grub_util_warn (const char *fmt, ...);
|
||||
void grub_util_info (const char *fmt, ...);
|
||||
void grub_util_error (const char *fmt, ...) __attribute__ ((noreturn));
|
||||
void EXPORT_FUNC(grub_util_warn) (const char *fmt, ...);
|
||||
void EXPORT_FUNC(grub_util_info) (const char *fmt, ...);
|
||||
void EXPORT_FUNC(grub_util_error) (const char *fmt, ...) __attribute__ ((noreturn));
|
||||
|
||||
void *xmalloc (size_t size);
|
||||
void *xrealloc (void *ptr, size_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue