Expand description
Software Development Kit (SDK) for Patina
This crate implements the core SDK for Patina and is only part of the Patina solution. For general knowledge on Patina, refer to the Patina book.
§Features
core: Exposes additional items in the component module necessary to manage and execute components and their dependencies.
§License
Copyright (C) Microsoft Corporation.
SPDX-License-Identifier: Apache-2.0
Re-exports§
pub use base::guid::BinaryGuid;pub use base::guid::Guid;pub use base::guid::GuidError;pub use base::guid::OwnedGuid;
Modules§
- arch
- Arch Specific abstractions for Patina.
- base
- UEFI Base Definitions
- boot_
services - UEFI Boot Services trait definition and implementations.
- component
- Module for creating UEFI components.
- device_
path - Device Path Definitions
- driver_
binding - This module provides way of implementing driver binding and installing and uninstalling the driver binding protocol.
- efi_
types - UEFI Wrapper Types
- error
- Module for converting UEFI errors to rusty errors.
- guid_
constants - Common GUID constants
- guids
- Patina GUID Definitions
- hash
- Hash utilities for Patina
- log
- UEFI targeted logging implementations
- macros
- Macro definitions for the UEFI SDK.
- management_
mode - Management Mode (MM) SDK for Patina
- mmio
- Re-export of the
safe-mmiocrate. - performance
- Patina SDK Performance Module
- pi
- Platform Initialization (PI) Specification Definitions and Support Code
- runtime_
services - Rust-friendly UEFI Runtime Service Wrappers
- serial
- Serial Traits and Implementations for the SerialIO interface.
- tpl_
mutex - A module containing a TPL aware Mutex implementation.
- uefi_
decompress - UEFI decompression.
- uefi_
protocol - A module containing UEFI protocol definitions and their implementations of ProtocolInterface.
Macros§
- bit
- A macro to generate a bit mask with the nth bit set.
- function
- Gives a
&'static strthat is the name of the containing function. - log_
debug_ assert - Logs an error message and fires a
debug_assert!(false)with the same message. - pci_
address - Constructs a PCI library address from the given bus, device, function, and register values.
- signature
- Generates a UEFI-style signature from between 1 to 8 bytes, packing them into a u16, u32 or u64 as appropriate for the parameters passed.
- uefi_
pages_ to_ size - Converts a number of UEFI pages to the corresponding size in bytes.
- uefi_
size_ to_ pages - Converts a size in bytes to the number of UEFI pages required.
- writelncrlf
- Writes a line to the Writer target, followed by CRLF.