diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-10-27 09:28:41 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-10-27 13:51:49 +0100 |
commit | 1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865 (patch) | |
tree | 619a8fd83147632b6648b04c5d6752f2c7c0c35e /i386/i386at/mbinfo.h | |
parent | 7ea3a05d1dd190db757d577757f2e3dba85e3e15 (diff) | |
download | gnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.tar.gz gnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.tar.bz2 gnumach-1f39d752da4eed39d1b7ebc17b7ce75c3f0a6865.zip |
Expose device(mbinfo) with read access to multiboot raw info
Message-ID: <20241027092828.3162279-1-damien@zamaudio.com>
Diffstat (limited to 'i386/i386at/mbinfo.h')
-rw-r--r-- | i386/i386at/mbinfo.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/i386/i386at/mbinfo.h b/i386/i386at/mbinfo.h new file mode 100644 index 00000000..120996f2 --- /dev/null +++ b/i386/i386at/mbinfo.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2024 Free Software Foundation, Inc. + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _I386AT_MBINFO_H_ +#define _I386AT_MBINFO_H_ 1 + +#include <sys/types.h> + +#include <vm/vm_types.h> +#include <mach/vm_prot.h> +#include <device/device_types.h> +#include <device/io_req.h> +#include <mach/machine/multiboot.h> + +void mbinfo_register_boot_data(const struct multiboot_raw_info *mbi); + +io_return_t mbinforead(dev_t dev, io_req_t ior); + +#endif /* !_I386AT_MBINFO_H_ */ |