html-to-markdown 2.27.2 → 2.27.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -1
- data/lib/html_to_markdown/version.rb +1 -1
- data/rust-vendor/getrandom/.cargo-checksum.json +1 -1
- data/rust-vendor/getrandom/.cargo_vcs_info.json +1 -1
- data/rust-vendor/getrandom/CHANGELOG.md +62 -43
- data/rust-vendor/getrandom/Cargo.lock +49 -56
- data/rust-vendor/getrandom/Cargo.toml +2 -2
- data/rust-vendor/getrandom/Cargo.toml.orig +2 -2
- data/rust-vendor/getrandom/src/backends/efi_rng.rs +8 -10
- data/rust-vendor/getrandom/src/backends/getentropy.rs +13 -4
- data/rust-vendor/getrandom/src/backends/linux_android_with_fallback.rs +10 -25
- data/rust-vendor/getrandom/src/backends/netbsd.rs +17 -25
- data/rust-vendor/getrandom/src/backends/rdrand.rs +15 -9
- data/rust-vendor/getrandom/src/backends/rndr.rs +2 -1
- data/rust-vendor/getrandom/src/backends/vxworks.rs +7 -3
- data/rust-vendor/getrandom/src/backends/windows.rs +21 -5
- data/rust-vendor/getrandom/src/utils/lazy_bool.rs +39 -0
- data/rust-vendor/getrandom/src/utils/lazy_ptr.rs +57 -0
- data/rust-vendor/html-to-markdown-rs/Cargo.toml +2 -2
- data/rust-vendor/html-to-markdown-rs/src/converter/text_node.rs +2 -1
- data/rust-vendor/html-to-markdown-rs/tests/issue_216_217_regressions.rs +82 -0
- data/rust-vendor/quote/.cargo-checksum.json +1 -1
- data/rust-vendor/quote/.cargo_vcs_info.json +1 -1
- data/rust-vendor/quote/.github/workflows/ci.yml +2 -2
- data/rust-vendor/quote/Cargo.lock +21 -21
- data/rust-vendor/quote/Cargo.toml +2 -2
- data/rust-vendor/quote/Cargo.toml.orig +2 -2
- data/rust-vendor/quote/README.md +0 -1
- data/rust-vendor/quote/src/lib.rs +1 -1
- data/rust-vendor/quote/src/to_tokens.rs +7 -0
- data/rust-vendor/quote/tests/ui/not-quotable.stderr +1 -1
- data/rust-vendor/quote/tests/ui/not-repeatable.stderr +3 -11
- data/rust-vendor/r-efi/.cargo-checksum.json +1 -1
- data/rust-vendor/r-efi/.cargo_vcs_info.json +1 -1
- data/rust-vendor/r-efi/AUTHORS +1 -0
- data/rust-vendor/r-efi/Cargo.lock +1 -1
- data/rust-vendor/r-efi/Cargo.toml +1 -3
- data/rust-vendor/r-efi/Cargo.toml.orig +1 -5
- data/rust-vendor/r-efi/NEWS.md +16 -0
- data/rust-vendor/r-efi/src/base.rs +1 -1
- data/rust-vendor/r-efi/src/lib.rs +27 -12
- data/rust-vendor/r-efi/src/protocols/absolute_pointer.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/block_io.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/bus_specific_driver_override.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/debug_support.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/debugport.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/decompress.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_from_text.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_to_text.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/device_path_utilities.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/disk_io.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/disk_io2.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/driver_binding.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/driver_diagnostics2.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/driver_family_override.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/file.rs +28 -28
- data/rust-vendor/r-efi/src/protocols/graphics_output.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/hii_database.rs +24 -24
- data/rust-vendor/r-efi/src/protocols/hii_font.rs +8 -8
- data/rust-vendor/r-efi/src/protocols/hii_font_ex.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/hii_string.rs +10 -10
- data/rust-vendor/r-efi/src/protocols/ip4.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/ip6.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/load_file.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/loaded_image.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/managed_network.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/memory_attribute.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/mp_services.rs +15 -15
- data/rust-vendor/r-efi/src/protocols/pci_io.rs +26 -26
- data/rust-vendor/r-efi/src/protocols/platform_driver_override.rs +6 -6
- data/rust-vendor/r-efi/src/protocols/rng.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/service_binding.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/shell.rs +81 -81
- data/rust-vendor/r-efi/src/protocols/shell_dynamic_command.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/simple_file_system.rs +2 -2
- data/rust-vendor/r-efi/src/protocols/simple_network.rs +26 -26
- data/rust-vendor/r-efi/src/protocols/simple_text_input.rs +4 -4
- data/rust-vendor/r-efi/src/protocols/simple_text_input_ex.rs +11 -11
- data/rust-vendor/r-efi/src/protocols/simple_text_output.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/tcp4.rs +20 -20
- data/rust-vendor/r-efi/src/protocols/tcp6.rs +18 -18
- data/rust-vendor/r-efi/src/protocols/timestamp.rs +3 -3
- data/rust-vendor/r-efi/src/protocols/udp4.rs +16 -16
- data/rust-vendor/r-efi/src/protocols/udp6.rs +14 -14
- data/rust-vendor/r-efi/src/system.rs +115 -115
- data/rust-vendor/r-efi/src/vendor/intel/console_control.rs +6 -6
- data/rust-vendor/r-efi-5.3.0/.cargo-checksum.json +1 -0
- data/rust-vendor/r-efi-5.3.0/.cargo_vcs_info.json +6 -0
- data/rust-vendor/r-efi-5.3.0/.github/workflows/publish.yml +39 -0
- data/rust-vendor/r-efi-5.3.0/.github/workflows/rust-tests.yml +125 -0
- data/rust-vendor/r-efi-5.3.0/AUTHORS +74 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.lock +16 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.toml +70 -0
- data/rust-vendor/r-efi-5.3.0/Cargo.toml.orig +51 -0
- data/rust-vendor/r-efi-5.3.0/Makefile +85 -0
- data/rust-vendor/r-efi-5.3.0/NEWS.md +301 -0
- data/rust-vendor/r-efi-5.3.0/README.md +99 -0
- data/rust-vendor/r-efi-5.3.0/examples/freestanding.rs +34 -0
- data/rust-vendor/r-efi-5.3.0/examples/gop-query.rs +188 -0
- data/rust-vendor/r-efi-5.3.0/examples/hello-world.rs +55 -0
- data/rust-vendor/r-efi-5.3.0/src/base.rs +993 -0
- data/rust-vendor/r-efi-5.3.0/src/hii.rs +1300 -0
- data/rust-vendor/r-efi-5.3.0/src/lib.rs +182 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/absolute_pointer.rs +69 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/block_io.rs +70 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/bus_specific_driver_override.rs +32 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/debug_support.rs +835 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/debugport.rs +42 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/decompress.rs +37 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path.rs +82 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_from_text.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_to_text.rs +30 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/device_path_utilities.rs +63 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/disk_io.rs +40 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/disk_io2.rs +58 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_binding.rs +42 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_diagnostics2.rs +38 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/driver_family_override.rs +23 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/file.rs +183 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/graphics_output.rs +103 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_database.rs +299 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_font.rs +87 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_font_ex.rs +107 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_package_list.rs +14 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/hii_string.rs +71 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/ip4.rs +202 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/ip6.rs +264 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/load_file.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/load_file2.rs +15 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/loaded_image.rs +39 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/loaded_image_device_path.rs +13 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/managed_network.rs +147 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/memory_attribute.rs +40 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/mp_services.rs +121 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/pci_io.rs +203 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/platform_driver_override.rs +46 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/rng.rs +83 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/service_binding.rs +20 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell.rs +295 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell_dynamic_command.rs +33 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/shell_parameters.rs +23 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_file_system.rs +26 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_network.rs +196 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_input.rs +38 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_input_ex.rs +85 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/simple_text_output.rs +86 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/tcp4.rs +224 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/tcp6.rs +202 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/timestamp.rs +32 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/udp4.rs +151 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols/udp6.rs +137 -0
- data/rust-vendor/r-efi-5.3.0/src/protocols.rs +54 -0
- data/rust-vendor/r-efi-5.3.0/src/system.rs +1130 -0
- data/rust-vendor/r-efi-5.3.0/src/vendor/intel/console_control.rs +37 -0
- data/rust-vendor/r-efi-5.3.0/src/vendor.rs +10 -0
- data/rust-vendor/tokio/.cargo-checksum.json +1 -1
- data/rust-vendor/tokio/.cargo_vcs_info.json +1 -1
- data/rust-vendor/tokio/CHANGELOG.md +94 -0
- data/rust-vendor/tokio/Cargo.lock +1549 -0
- data/rust-vendor/tokio/Cargo.toml +96 -83
- data/rust-vendor/tokio/Cargo.toml.orig +7 -7
- data/rust-vendor/tokio/README.md +1 -1
- data/rust-vendor/tokio/src/fs/open_options.rs +4 -1
- data/rust-vendor/tokio/src/fs/read.rs +4 -1
- data/rust-vendor/tokio/src/fs/write.rs +4 -1
- data/rust-vendor/tokio/src/io/async_write.rs +3 -4
- data/rust-vendor/tokio/src/io/poll_evented.rs +23 -1
- data/rust-vendor/tokio/src/io/stderr.rs +15 -1
- data/rust-vendor/tokio/src/io/stdout.rs +14 -0
- data/rust-vendor/tokio/src/io/util/async_write_ext.rs +2 -2
- data/rust-vendor/tokio/src/io/util/write_buf.rs +11 -2
- data/rust-vendor/tokio/src/lib.rs +12 -28
- data/rust-vendor/tokio/src/macros/select.rs +6 -8
- data/rust-vendor/tokio/src/net/tcp/socket.rs +25 -1
- data/rust-vendor/tokio/src/net/tcp/stream.rs +40 -1
- data/rust-vendor/tokio/src/process/unix/pidfd_reaper.rs +1 -41
- data/rust-vendor/tokio/src/runtime/blocking/pool.rs +18 -14
- data/rust-vendor/tokio/src/runtime/builder.rs +10 -4
- data/rust-vendor/tokio/src/runtime/handle.rs +3 -2
- data/rust-vendor/tokio/src/runtime/io/driver/uring.rs +49 -61
- data/rust-vendor/tokio/src/runtime/io/driver.rs +6 -5
- data/rust-vendor/tokio/src/runtime/mod.rs +20 -1
- data/rust-vendor/tokio/src/runtime/runtime.rs +71 -1
- data/rust-vendor/tokio/src/runtime/scheduler/current_thread/mod.rs +24 -8
- data/rust-vendor/tokio/src/runtime/scheduler/multi_thread/worker.rs +5 -0
- data/rust-vendor/tokio/src/runtime/task/core.rs +1 -0
- data/rust-vendor/tokio/src/runtime/task/join.rs +7 -3
- data/rust-vendor/tokio/src/runtime/task/list.rs +5 -3
- data/rust-vendor/tokio/src/runtime/task/mod.rs +0 -5
- data/rust-vendor/tokio/src/runtime/tests/loom_blocking.rs +39 -1
- data/rust-vendor/tokio/src/signal/mod.rs +6 -17
- data/rust-vendor/tokio/src/signal/registry.rs +1 -1
- data/rust-vendor/tokio/src/signal/unix.rs +24 -44
- data/rust-vendor/tokio/src/signal/windows/sys.rs +52 -64
- data/rust-vendor/tokio/src/signal/windows.rs +35 -23
- data/rust-vendor/tokio/src/sync/mpsc/mod.rs +3 -1
- data/rust-vendor/tokio/src/sync/oneshot.rs +13 -0
- data/rust-vendor/tokio/src/sync/rwlock.rs +4 -5
- data/rust-vendor/tokio/src/sync/tests/loom_oneshot.rs +27 -1
- data/rust-vendor/tokio/src/task/blocking.rs +16 -1
- data/rust-vendor/tokio/src/task/builder.rs +2 -2
- data/rust-vendor/tokio/src/task/mod.rs +1 -1
- data/rust-vendor/tokio/src/task/spawn.rs +8 -3
- data/rust-vendor/tokio/src/task/yield_now.rs +13 -23
- data/rust-vendor/tokio/src/time/clock.rs +62 -0
- data/rust-vendor/tokio/src/util/memchr.rs +32 -4
- data/rust-vendor/tokio/src/util/sharded_list.rs +6 -4
- data/rust-vendor/tokio/tests/fs_link.rs +54 -0
- data/rust-vendor/tokio/tests/io_async_fd_memory_leak.rs +209 -0
- data/rust-vendor/tokio/tests/io_write_buf.rs +56 -0
- data/rust-vendor/tokio/tests/process_issue_7144.rs +8 -0
- data/rust-vendor/tokio/tests/rt_basic.rs +41 -0
- data/rust-vendor/tokio/tests/rt_common_before_park.rs +92 -0
- data/rust-vendor/tokio/tests/rt_metrics.rs +1 -1
- data/rust-vendor/tokio/tests/rt_panic.rs +12 -0
- data/rust-vendor/tokio/tests/rt_shutdown_err.rs +82 -0
- data/rust-vendor/tokio/tests/rt_threaded.rs +49 -1
- data/rust-vendor/tokio/tests/rt_unstable_metrics.rs +32 -0
- data/rust-vendor/tokio/tests/tcp_connect.rs +2 -3
- data/rust-vendor/tokio/tests/tcp_shutdown.rs +1 -3
- data/rust-vendor/tokio/tests/tcp_socket.rs +3 -4
- data/rust-vendor/tokio/tests/tcp_stream.rs +3 -0
- metadata +78 -3
- data/rust-vendor/getrandom/src/utils/lazy.rs +0 -64
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//! Memory Attribute Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! Provides an interface to abstract setting or getting of memory attributes in the UEFI environment.
|
|
4
|
+
|
|
5
|
+
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
|
|
6
|
+
0xf4560cf6,
|
|
7
|
+
0x40ec,
|
|
8
|
+
0x4b4a,
|
|
9
|
+
0xa1,
|
|
10
|
+
0x92,
|
|
11
|
+
&[0xbf, 0x1d, 0x57, 0xd0, 0xb1, 0x89],
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
pub type GetMemoryAttributes = eficall! {fn(
|
|
15
|
+
*mut Protocol,
|
|
16
|
+
crate::base::PhysicalAddress,
|
|
17
|
+
u64,
|
|
18
|
+
*mut u64,
|
|
19
|
+
) -> crate::base::Status};
|
|
20
|
+
|
|
21
|
+
pub type SetMemoryAttributes = eficall! {fn(
|
|
22
|
+
*mut Protocol,
|
|
23
|
+
crate::base::PhysicalAddress,
|
|
24
|
+
u64,
|
|
25
|
+
u64,
|
|
26
|
+
) -> crate::base::Status};
|
|
27
|
+
|
|
28
|
+
pub type ClearMemoryAttributes = eficall! {fn(
|
|
29
|
+
*mut Protocol,
|
|
30
|
+
crate::base::PhysicalAddress,
|
|
31
|
+
u64,
|
|
32
|
+
u64,
|
|
33
|
+
) -> crate::base::Status};
|
|
34
|
+
|
|
35
|
+
#[repr(C)]
|
|
36
|
+
pub struct Protocol {
|
|
37
|
+
pub get_memory_attributes: GetMemoryAttributes,
|
|
38
|
+
pub set_memory_attributes: SetMemoryAttributes,
|
|
39
|
+
pub clear_memory_attributes: ClearMemoryAttributes,
|
|
40
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
//! Multi-Processor Services Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! This Protocol is defined in the UEFI Platform Integration Specification,
|
|
4
|
+
//! Section 13.4.
|
|
5
|
+
//!
|
|
6
|
+
//! This provides a generalized way of performing the following tasks:
|
|
7
|
+
//! - Retrieving information of multi-processor environments.
|
|
8
|
+
//! - Dispatching user-provided function to APs.
|
|
9
|
+
//! - Maintain MP-related processor status.
|
|
10
|
+
|
|
11
|
+
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
|
|
12
|
+
0x3fdda605,
|
|
13
|
+
0xa76e,
|
|
14
|
+
0x4f46,
|
|
15
|
+
0xad,
|
|
16
|
+
0x29,
|
|
17
|
+
&[0x12, 0xf4, 0x53, 0x1b, 0x3d, 0x08],
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
pub const PROCESSOR_AS_BSP_BIT: u32 = 0x00000001;
|
|
21
|
+
pub const PROCESSOR_ENABLED_BIT: u32 = 0x00000002;
|
|
22
|
+
pub const PROCESSOR_HEALTH_STATUS_BIT: u32 = 0x00000004;
|
|
23
|
+
|
|
24
|
+
pub const END_OF_CPU_LIST: usize = usize::MAX;
|
|
25
|
+
|
|
26
|
+
#[repr(C)]
|
|
27
|
+
#[derive(Debug, Clone, Copy)]
|
|
28
|
+
pub struct CpuPhysicalLocation {
|
|
29
|
+
pub package: u32,
|
|
30
|
+
pub core: u32,
|
|
31
|
+
pub thread: u32,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#[repr(C)]
|
|
35
|
+
#[derive(Debug, Clone, Copy)]
|
|
36
|
+
pub struct CpuPhysicalLocation2 {
|
|
37
|
+
pub package: u32,
|
|
38
|
+
pub module: u32,
|
|
39
|
+
pub tile: u32,
|
|
40
|
+
pub die: u32,
|
|
41
|
+
pub core: u32,
|
|
42
|
+
pub thread: u32,
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#[repr(C)]
|
|
46
|
+
#[derive(Clone, Copy)]
|
|
47
|
+
pub union ExtendedProcessorInformation {
|
|
48
|
+
pub location2: CpuPhysicalLocation2,
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#[repr(C)]
|
|
52
|
+
#[derive(Clone, Copy)]
|
|
53
|
+
pub struct ProcessorInformation {
|
|
54
|
+
pub processor_id: u64,
|
|
55
|
+
pub status_flag: u32,
|
|
56
|
+
pub location: CpuPhysicalLocation,
|
|
57
|
+
pub extended_information: ExtendedProcessorInformation,
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
pub type ApProcedure = eficall! {fn(*mut core::ffi::c_void)};
|
|
61
|
+
|
|
62
|
+
pub type GetNumberOfProcessors = eficall! {fn(
|
|
63
|
+
*mut Protocol,
|
|
64
|
+
*mut usize,
|
|
65
|
+
*mut usize,
|
|
66
|
+
) -> crate::base::Status};
|
|
67
|
+
|
|
68
|
+
pub type GetProcessorInfo = eficall! {fn(
|
|
69
|
+
*mut Protocol,
|
|
70
|
+
usize,
|
|
71
|
+
*mut ProcessorInformation,
|
|
72
|
+
) -> crate::base::Status};
|
|
73
|
+
|
|
74
|
+
pub type StartupAllAps = eficall! {fn(
|
|
75
|
+
*mut Protocol,
|
|
76
|
+
ApProcedure,
|
|
77
|
+
crate::base::Boolean,
|
|
78
|
+
crate::base::Event,
|
|
79
|
+
usize,
|
|
80
|
+
*mut core::ffi::c_void,
|
|
81
|
+
*mut *mut usize,
|
|
82
|
+
) -> crate::base::Status};
|
|
83
|
+
|
|
84
|
+
pub type StartupThisAp = eficall! {fn(
|
|
85
|
+
*mut Protocol,
|
|
86
|
+
ApProcedure,
|
|
87
|
+
usize,
|
|
88
|
+
crate::base::Event,
|
|
89
|
+
usize,
|
|
90
|
+
*mut core::ffi::c_void,
|
|
91
|
+
*mut crate::base::Boolean,
|
|
92
|
+
) -> crate::base::Status};
|
|
93
|
+
|
|
94
|
+
pub type SwitchBsp = eficall! {fn(
|
|
95
|
+
*mut Protocol,
|
|
96
|
+
usize,
|
|
97
|
+
crate::base::Boolean,
|
|
98
|
+
) -> crate::base::Status};
|
|
99
|
+
|
|
100
|
+
pub type EnableDisableAp = eficall! {fn(
|
|
101
|
+
*mut Protocol,
|
|
102
|
+
usize,
|
|
103
|
+
crate::base::Boolean,
|
|
104
|
+
*mut u32,
|
|
105
|
+
) -> crate::base::Status};
|
|
106
|
+
|
|
107
|
+
pub type WhoAmI = eficall! {fn(
|
|
108
|
+
*mut Protocol,
|
|
109
|
+
*mut usize,
|
|
110
|
+
) -> crate::base::Status};
|
|
111
|
+
|
|
112
|
+
#[repr(C)]
|
|
113
|
+
pub struct Protocol {
|
|
114
|
+
pub get_number_of_processors: GetNumberOfProcessors,
|
|
115
|
+
pub get_processor_info: GetProcessorInfo,
|
|
116
|
+
pub startup_all_aps: StartupAllAps,
|
|
117
|
+
pub startup_this_ap: StartupThisAp,
|
|
118
|
+
pub switch_bsp: SwitchBsp,
|
|
119
|
+
pub enable_disable_ap: EnableDisableAp,
|
|
120
|
+
pub who_am_i: WhoAmI,
|
|
121
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
//! PCI I/O Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! Used by code, typically drivers, running in the EFI boot services
|
|
4
|
+
//! environment to access memory and I/O on a PCI controller.
|
|
5
|
+
|
|
6
|
+
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
|
|
7
|
+
0x4cf5b200,
|
|
8
|
+
0x68b8,
|
|
9
|
+
0x4ca5,
|
|
10
|
+
0x9e,
|
|
11
|
+
0xec,
|
|
12
|
+
&[0xb2, 0x3e, 0x3f, 0x50, 0x02, 0x9a],
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
pub type Width = u32;
|
|
16
|
+
|
|
17
|
+
pub const WIDTH_UINT8: Width = 0x00000000;
|
|
18
|
+
pub const WIDTH_UINT16: Width = 0x00000001;
|
|
19
|
+
pub const WIDTH_UINT32: Width = 0x00000002;
|
|
20
|
+
pub const WIDTH_UINT64: Width = 0x00000003;
|
|
21
|
+
pub const WIDTH_FIFO_UINT8: Width = 0x00000004;
|
|
22
|
+
pub const WIDTH_FIFO_UINT16: Width = 0x00000005;
|
|
23
|
+
pub const WIDTH_FIFO_UINT32: Width = 0x00000006;
|
|
24
|
+
pub const WIDTH_FIFO_UINT64: Width = 0x00000007;
|
|
25
|
+
pub const WIDTH_FILL_UINT8: Width = 0x00000008;
|
|
26
|
+
pub const WIDTH_FILL_UINT16: Width = 0x00000009;
|
|
27
|
+
pub const WIDTH_FILL_UINT32: Width = 0x0000000a;
|
|
28
|
+
pub const WIDTH_FILL_UINT64: Width = 0x0000000b;
|
|
29
|
+
pub const WIDTH_MAXIMUM: Width = 0x0000000c;
|
|
30
|
+
|
|
31
|
+
pub type Operation = u32;
|
|
32
|
+
|
|
33
|
+
pub const OPERATION_BUS_MASTER_READ: Operation = 0x00000000;
|
|
34
|
+
pub const OPERATION_BUS_MASTER_WRITE: Operation = 0x00000001;
|
|
35
|
+
pub const OPERATION_BUS_MASTER_COMMON_BUFFER: Operation = 0x00000002;
|
|
36
|
+
pub const OPERATION_MAXIMUM: Operation = 0x00000003;
|
|
37
|
+
|
|
38
|
+
pub type Attribute = u64;
|
|
39
|
+
|
|
40
|
+
pub const ATTRIBUTE_ISA_MOTHERBOARD_IO: Attribute = 0x00000001;
|
|
41
|
+
pub const ATTRIBUTE_ISA_IO: Attribute = 0x00000002;
|
|
42
|
+
pub const ATTRIBUTE_VGA_PALETTE_IO: Attribute = 0x00000004;
|
|
43
|
+
pub const ATTRIBUTE_VGA_MEMORY: Attribute = 0x00000008;
|
|
44
|
+
pub const ATTRIBUTE_VGA_IO: Attribute = 0x00000010;
|
|
45
|
+
pub const ATTRIBUTE_IDE_PRIMARY_IO: Attribute = 0x00000020;
|
|
46
|
+
pub const ATTRIBUTE_IDE_SECONDARY_IO: Attribute = 0x00000040;
|
|
47
|
+
pub const ATTRIBUTE_MEMORY_WRITE_COMBINE: Attribute = 0x00000080;
|
|
48
|
+
pub const ATTRIBUTE_IO: Attribute = 0x00000100;
|
|
49
|
+
pub const ATTRIBUTE_MEMORY: Attribute = 0x00000200;
|
|
50
|
+
pub const ATTRIBUTE_BUS_MASTER: Attribute = 0x00000400;
|
|
51
|
+
pub const ATTRIBUTE_MEMORY_CACHED: Attribute = 0x00000800;
|
|
52
|
+
pub const ATTRIBUTE_MEMORY_DISABLE: Attribute = 0x00001000;
|
|
53
|
+
pub const ATTRIBUTE_EMBEDDED_DEVICE: Attribute = 0x00002000;
|
|
54
|
+
pub const ATTRIBUTE_EMBEDDED_ROM: Attribute = 0x00004000;
|
|
55
|
+
pub const ATTRIBUTE_DUAL_ADDRESS_CYCLE: Attribute = 0x00008000;
|
|
56
|
+
pub const ATTRIBUTE_ISA_IO_16: Attribute = 0x00010000;
|
|
57
|
+
pub const ATTRIBUTE_VGA_PALETTE_IO_16: Attribute = 0x00020000;
|
|
58
|
+
pub const ATTRIBUTE_VGA_IO_16: Attribute = 0x00040000;
|
|
59
|
+
|
|
60
|
+
pub type AttributeOperation = u32;
|
|
61
|
+
|
|
62
|
+
pub const ATTRIBUTE_OPERATION_GET: AttributeOperation = 0x00000000;
|
|
63
|
+
pub const ATTRIBUTE_OPERATION_SET: AttributeOperation = 0x00000001;
|
|
64
|
+
pub const ATTRIBUTE_OPERATION_ENABLE: AttributeOperation = 0x00000002;
|
|
65
|
+
pub const ATTRIBUTE_OPERATION_DISABLE: AttributeOperation = 0x00000003;
|
|
66
|
+
pub const ATTRIBUTE_OPERATION_SUPPORTED: AttributeOperation = 0x00000004;
|
|
67
|
+
pub const ATTRIBUTE_OPERATION_MAXIMUM: AttributeOperation = 0x00000005;
|
|
68
|
+
|
|
69
|
+
pub const PASS_THROUGH_BAR: u8 = 0xff;
|
|
70
|
+
|
|
71
|
+
pub type ProtocolPollIoMem = eficall! {fn(
|
|
72
|
+
*mut Protocol,
|
|
73
|
+
Width,
|
|
74
|
+
u8,
|
|
75
|
+
u64,
|
|
76
|
+
u64,
|
|
77
|
+
u64,
|
|
78
|
+
u64,
|
|
79
|
+
*mut u64,
|
|
80
|
+
) -> crate::base::Status};
|
|
81
|
+
|
|
82
|
+
pub type ProtocolIoMem = eficall! {fn(
|
|
83
|
+
*mut Protocol,
|
|
84
|
+
Width,
|
|
85
|
+
u8,
|
|
86
|
+
u64,
|
|
87
|
+
usize,
|
|
88
|
+
*mut core::ffi::c_void,
|
|
89
|
+
) -> crate::base::Status};
|
|
90
|
+
|
|
91
|
+
pub type ProtocolConfig = eficall! {fn(
|
|
92
|
+
*mut Protocol,
|
|
93
|
+
Width,
|
|
94
|
+
u32,
|
|
95
|
+
usize,
|
|
96
|
+
*mut core::ffi::c_void,
|
|
97
|
+
) -> crate::base::Status};
|
|
98
|
+
|
|
99
|
+
pub type ProtocolCopyMem = eficall! {fn(
|
|
100
|
+
*mut Protocol,
|
|
101
|
+
Width,
|
|
102
|
+
u8,
|
|
103
|
+
u64,
|
|
104
|
+
u8,
|
|
105
|
+
u64,
|
|
106
|
+
usize,
|
|
107
|
+
) -> crate::base::Status};
|
|
108
|
+
|
|
109
|
+
pub type ProtocolMap = eficall! {fn(
|
|
110
|
+
*mut Protocol,
|
|
111
|
+
Operation,
|
|
112
|
+
*mut core::ffi::c_void,
|
|
113
|
+
*mut usize,
|
|
114
|
+
*mut crate::base::PhysicalAddress,
|
|
115
|
+
*mut *mut core::ffi::c_void,
|
|
116
|
+
) -> crate::base::Status};
|
|
117
|
+
|
|
118
|
+
pub type ProtocolUnmap = eficall! {fn(
|
|
119
|
+
*mut Protocol,
|
|
120
|
+
*mut core::ffi::c_void,
|
|
121
|
+
) -> crate::base::Status};
|
|
122
|
+
|
|
123
|
+
pub type ProtocolAllocateBuffer = eficall! {fn(
|
|
124
|
+
*mut Protocol,
|
|
125
|
+
crate::system::AllocateType,
|
|
126
|
+
crate::system::MemoryType,
|
|
127
|
+
usize,
|
|
128
|
+
*mut *mut core::ffi::c_void,
|
|
129
|
+
Attribute,
|
|
130
|
+
) -> crate::base::Status};
|
|
131
|
+
|
|
132
|
+
pub type ProtocolFreeBuffer = eficall! {fn(
|
|
133
|
+
*mut Protocol,
|
|
134
|
+
usize,
|
|
135
|
+
*mut core::ffi::c_void,
|
|
136
|
+
) -> crate::base::Status};
|
|
137
|
+
|
|
138
|
+
pub type ProtocolFlush = eficall! {fn(
|
|
139
|
+
*mut Protocol,
|
|
140
|
+
) -> crate::base::Status};
|
|
141
|
+
|
|
142
|
+
pub type ProtocolGetLocation = eficall! {fn(
|
|
143
|
+
*mut Protocol,
|
|
144
|
+
*mut usize,
|
|
145
|
+
*mut usize,
|
|
146
|
+
*mut usize,
|
|
147
|
+
*mut usize,
|
|
148
|
+
) -> crate::base::Status};
|
|
149
|
+
|
|
150
|
+
pub type ProtocolAttributes = eficall! {fn(
|
|
151
|
+
*mut Protocol,
|
|
152
|
+
AttributeOperation,
|
|
153
|
+
Attribute,
|
|
154
|
+
*mut Attribute,
|
|
155
|
+
) -> crate::base::Status};
|
|
156
|
+
|
|
157
|
+
pub type ProtocolGetBarAttributes = eficall! {fn(
|
|
158
|
+
*mut Protocol,
|
|
159
|
+
u8,
|
|
160
|
+
*mut Attribute,
|
|
161
|
+
*mut *mut core::ffi::c_void,
|
|
162
|
+
) -> crate::base::Status};
|
|
163
|
+
|
|
164
|
+
pub type ProtocolSetBarAttributes = eficall! {fn(
|
|
165
|
+
*mut Protocol,
|
|
166
|
+
Attribute,
|
|
167
|
+
u8,
|
|
168
|
+
*mut u64,
|
|
169
|
+
*mut u64,
|
|
170
|
+
) -> crate::base::Status};
|
|
171
|
+
|
|
172
|
+
#[repr(C)]
|
|
173
|
+
pub struct Access {
|
|
174
|
+
pub read: ProtocolIoMem,
|
|
175
|
+
pub write: ProtocolIoMem,
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
#[repr(C)]
|
|
179
|
+
pub struct ConfigAccess {
|
|
180
|
+
pub read: ProtocolConfig,
|
|
181
|
+
pub write: ProtocolConfig,
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
#[repr(C)]
|
|
185
|
+
pub struct Protocol {
|
|
186
|
+
pub poll_mem: ProtocolPollIoMem,
|
|
187
|
+
pub poll_io: ProtocolPollIoMem,
|
|
188
|
+
pub mem: Access,
|
|
189
|
+
pub io: Access,
|
|
190
|
+
pub pci: ConfigAccess,
|
|
191
|
+
pub copy_mem: ProtocolCopyMem,
|
|
192
|
+
pub map: ProtocolMap,
|
|
193
|
+
pub unmap: ProtocolUnmap,
|
|
194
|
+
pub allocate_buffer: ProtocolAllocateBuffer,
|
|
195
|
+
pub free_buffer: ProtocolFreeBuffer,
|
|
196
|
+
pub flush: ProtocolFlush,
|
|
197
|
+
pub get_location: ProtocolGetLocation,
|
|
198
|
+
pub attributes: ProtocolAttributes,
|
|
199
|
+
pub get_bar_attributes: ProtocolGetBarAttributes,
|
|
200
|
+
pub set_bar_attributes: ProtocolSetBarAttributes,
|
|
201
|
+
pub rom_size: u64,
|
|
202
|
+
pub rom_image: *mut core::ffi::c_void,
|
|
203
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//! Platform Driver Override Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! This protocol matches one or more drivers to a controller. A platform driver
|
|
4
|
+
//! produces this protocol, and it is installed on a separate handle. This
|
|
5
|
+
//! protocol is used by the `EFI_BOOT_SERVICES.ConnectController()` boot service
|
|
6
|
+
//! to select the best driver for a controller. All of the drivers returned by
|
|
7
|
+
//! this protocol have a higher precedence than drivers found from an EFI Bus
|
|
8
|
+
//! Specific Driver Override Protocol or drivers found from the general UEFI
|
|
9
|
+
//! driver binding search algorithm. If more than one driver is returned by this
|
|
10
|
+
//! protocol, then the drivers are returned in order from highest precedence to
|
|
11
|
+
//! lowest precedence.
|
|
12
|
+
|
|
13
|
+
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
|
|
14
|
+
0x6b30c738,
|
|
15
|
+
0xa391,
|
|
16
|
+
0x11d4,
|
|
17
|
+
0x9a,
|
|
18
|
+
0x3b,
|
|
19
|
+
&[0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d],
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
pub type ProtocolGetDriver = eficall! {fn(
|
|
23
|
+
*mut Protocol,
|
|
24
|
+
crate::base::Handle,
|
|
25
|
+
*mut crate::base::Handle,
|
|
26
|
+
) -> crate::base::Status};
|
|
27
|
+
|
|
28
|
+
pub type ProtocolGetDriverPath = eficall! {fn(
|
|
29
|
+
*mut Protocol,
|
|
30
|
+
crate::base::Handle,
|
|
31
|
+
*mut *mut crate::protocols::device_path::Protocol
|
|
32
|
+
) -> crate::base::Status};
|
|
33
|
+
|
|
34
|
+
pub type ProtocolDriverLoaded = eficall! {fn(
|
|
35
|
+
*mut Protocol,
|
|
36
|
+
crate::base::Handle,
|
|
37
|
+
*mut crate::protocols::device_path::Protocol,
|
|
38
|
+
crate::base::Handle,
|
|
39
|
+
) -> crate::base::Status};
|
|
40
|
+
|
|
41
|
+
#[repr(C)]
|
|
42
|
+
pub struct Protocol {
|
|
43
|
+
pub get_driver: ProtocolGetDriver,
|
|
44
|
+
pub get_driver_path: ProtocolGetDriverPath,
|
|
45
|
+
pub driver_loaded: ProtocolDriverLoaded,
|
|
46
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
//! Random Number Generator Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! This protocol is used to provide random numbers for use in applications, or
|
|
4
|
+
//! entropy for seeding other random number generators.
|
|
5
|
+
|
|
6
|
+
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields(
|
|
7
|
+
0x3152bca5,
|
|
8
|
+
0xeade,
|
|
9
|
+
0x433d,
|
|
10
|
+
0x86,
|
|
11
|
+
0x2e,
|
|
12
|
+
&[0xc0, 0x1c, 0xdc, 0x29, 0x1f, 0x44],
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
pub type Algorithm = crate::base::Guid;
|
|
16
|
+
|
|
17
|
+
pub const ALGORITHM_SP800_90_HASH_256_GUID: Algorithm = crate::base::Guid::from_fields(
|
|
18
|
+
0xa7af67cb,
|
|
19
|
+
0x603b,
|
|
20
|
+
0x4d42,
|
|
21
|
+
0xba,
|
|
22
|
+
0x21,
|
|
23
|
+
&[0x70, 0xbf, 0xb6, 0x29, 0x3f, 0x96],
|
|
24
|
+
);
|
|
25
|
+
pub const ALGORITHM_SP800_90_HMAC_256_GUID: Algorithm = crate::base::Guid::from_fields(
|
|
26
|
+
0xc5149b43,
|
|
27
|
+
0xae85,
|
|
28
|
+
0x4f53,
|
|
29
|
+
0x99,
|
|
30
|
+
0x82,
|
|
31
|
+
&[0xb9, 0x43, 0x35, 0xd3, 0xa9, 0xe7],
|
|
32
|
+
);
|
|
33
|
+
pub const ALGORITHM_SP800_90_CTR_256_GUID: Algorithm = crate::base::Guid::from_fields(
|
|
34
|
+
0x44f0de6e,
|
|
35
|
+
0x4d8c,
|
|
36
|
+
0x4045,
|
|
37
|
+
0xa8,
|
|
38
|
+
0xc7,
|
|
39
|
+
&[0x4d, 0xd1, 0x68, 0x85, 0x6b, 0x9e],
|
|
40
|
+
);
|
|
41
|
+
pub const ALGORITHM_X9_31_3DES_GUID: Algorithm = crate::base::Guid::from_fields(
|
|
42
|
+
0x63c4785a,
|
|
43
|
+
0xca34,
|
|
44
|
+
0x4012,
|
|
45
|
+
0xa3,
|
|
46
|
+
0xc8,
|
|
47
|
+
&[0x0b, 0x6a, 0x32, 0x4f, 0x55, 0x46],
|
|
48
|
+
);
|
|
49
|
+
pub const ALGORITHM_X9_31_AES_GUID: Algorithm = crate::base::Guid::from_fields(
|
|
50
|
+
0xacd03321,
|
|
51
|
+
0x777e,
|
|
52
|
+
0x4d3d,
|
|
53
|
+
0xb1,
|
|
54
|
+
0xc8,
|
|
55
|
+
&[0x20, 0xcf, 0xd8, 0x88, 0x20, 0xc9],
|
|
56
|
+
);
|
|
57
|
+
pub const ALGORITHM_RAW: Algorithm = crate::base::Guid::from_fields(
|
|
58
|
+
0xe43176d7,
|
|
59
|
+
0xb6e8,
|
|
60
|
+
0x4827,
|
|
61
|
+
0xb7,
|
|
62
|
+
0x84,
|
|
63
|
+
&[0x7f, 0xfd, 0xc4, 0xb6, 0x85, 0x61],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
pub type ProtocolGetInfo = eficall! {fn(
|
|
67
|
+
*mut Protocol,
|
|
68
|
+
*mut usize,
|
|
69
|
+
*mut Algorithm,
|
|
70
|
+
) -> crate::base::Status};
|
|
71
|
+
|
|
72
|
+
pub type ProtocolGetRng = eficall! {fn(
|
|
73
|
+
*mut Protocol,
|
|
74
|
+
*mut Algorithm,
|
|
75
|
+
usize,
|
|
76
|
+
*mut u8,
|
|
77
|
+
) -> crate::base::Status};
|
|
78
|
+
|
|
79
|
+
#[repr(C)]
|
|
80
|
+
pub struct Protocol {
|
|
81
|
+
pub get_info: ProtocolGetInfo,
|
|
82
|
+
pub get_rng: ProtocolGetRng,
|
|
83
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//! Service Binding Protocol
|
|
2
|
+
//!
|
|
3
|
+
//! Provides services that are required to create and destroy child handles
|
|
4
|
+
//! that support a given set of protocols.
|
|
5
|
+
|
|
6
|
+
pub type ProtocolCreateChild = eficall! {fn(
|
|
7
|
+
*mut Protocol,
|
|
8
|
+
*mut crate::base::Handle,
|
|
9
|
+
) -> crate::base::Status};
|
|
10
|
+
|
|
11
|
+
pub type ProtocolDestroyChild = eficall! {fn(
|
|
12
|
+
*mut Protocol,
|
|
13
|
+
crate::base::Handle,
|
|
14
|
+
) -> crate::base::Status};
|
|
15
|
+
|
|
16
|
+
#[repr(C)]
|
|
17
|
+
pub struct Protocol {
|
|
18
|
+
pub create_child: ProtocolCreateChild,
|
|
19
|
+
pub destroy_child: ProtocolDestroyChild,
|
|
20
|
+
}
|