aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / uefi-raw / CHANGELOG.md
| 1 | # uefi-raw - [Unreleased] |
| 2 | |
| 3 | ## Added |
| 4 | |
| 5 | ## Changed |
| 6 | |
| 7 | ## Removed |
| 8 | |
| 9 | |
| 10 | # uefi-raw - v0.17.0 (2026-09-21) |
| 11 | |
| 12 | Most of this release is the outcome of an LLM-assisted audit of the crate |
| 13 | against UEFI 2.11 and the EDK2 headers. Accordingly, the bulk of the entries |
| 14 | below are pointer declarations that now express who writes through a pointer and |
| 15 | who owns the pointee, as described in `api_guidelines.md`. None of them change |
| 16 | the ABI or the memory that the firmware sees, so adapting to them usually means |
| 17 | adding or dropping a `cast_mut()`/`cast_const()`. Everything under `## Changed` |
| 18 | is breaking. |
| 19 | |
| 20 | We use LLMs to find problems, not to write code we do not understand. Nothing |
| 21 | unreviewed lands in this crate. |
| 22 | |
| 23 | ## Added |
| 24 | - HII Internal Forms Representation (IFR) bindings in `protocol::hii::ifr`. |
| 25 | - `EdidDiscoveredProtocol`. |
| 26 | - `MemoryAttribute::HOT_PLUGGABLE` (UEFI 2.11) and |
| 27 | `HttpStatusCode::STATUS_429_TOO_MANY_REQUESTS`. |
| 28 | - `Clone` and `Copy` derives for `PciRootBridgeIoAccess`. |
| 29 | |
| 30 | ## Fixed |
| 31 | - `IpAddress::new_v4` and the corresponding `From` impl left 12 of the 16 union |
| 32 | bytes uninitialized, which is undefined behavior. |
| 33 | - `EdkiiIommuAttribute::INVALID_FOR_ALLOCATE_BUFFER` was always `0`, because |
| 34 | `from_bits_truncate` drops every bit that is not a named attribute. |
| 35 | |
| 36 | ## Changed |
| 37 | |
| 38 | ### Callee-allocated results are `*mut`, as the caller must free them |
| 39 | - The pool-allocating functions of `DevicePathUtilitiesProtocol`, |
| 40 | `DevicePathToTextProtocol` and `DevicePathFromTextProtocol`. |
| 41 | - `device_path` of `build_device_path` of `ExtScsiPassThruProtocol`, |
| 42 | `AtaPassThruProtocol` and `NvmExpressPassThruProtocol`. |
| 43 | - `info` of `GraphicsOutputProtocol::query_mode`. |
| 44 | - The result strings of `ConfigKeywordHandlerProtocol::get_data`, |
| 45 | `HiiConfigAccessProtocol::extract_config` and |
| 46 | `HiiConfigRoutingProtocol::{extract_config, export_config, block_to_config, |
| 47 | get_alt_cfg}`. |
| 48 | - `ShellProtocol::{get_device_path_from_file_path, |
| 49 | get_file_path_from_device_path, get_file_info}`, plus `ShellFileHandle`, |
| 50 | which is now `*mut c_void` like the other opaque handles. |
| 51 | - `host_addr` of `PciRootBridgeIoProtocol::allocate_buffer`, which is writable |
| 52 | memory owned by the caller. |
| 53 | |
| 54 | ### Pointers whose pointee the firmware writes are `*mut` |
| 55 | - `data` of `Usb2HostControllerProtocol::{bulk_transfer, isochronous_transfer, |
| 56 | async_isochronous_transfer}` is `*const *mut c_void`. The buffers are |
| 57 | `IN OUT`; the controller writes received data into them. |
| 58 | - `target` of `ExtScsiPassThruProtocol::get_target_lun` and |
| 59 | `ScsiIoProtocol::get_device_location` is `*const *mut u8`. The firmware fills |
| 60 | the caller's array and only reads the pointer to it. |
| 61 | - `HttpRequestOrResponse::response` and `HttpAccessPoint::{ipv4_node, |
| 62 | ipv6_node}`. |
| 63 | - The inner pointer of the outputs `registration` of |
| 64 | `BootServices::register_protocol_notify`, `entry_buffer` of |
| 65 | `BootServices::open_protocol_information` and `address` of |
| 66 | `RuntimeServices::convert_pointer`. |
| 67 | - `ShellProtocol::{free_file_list, remove_dup_in_file_list}` take |
| 68 | `*mut *mut ShellFileInfo`, as the shell frees the list and clears the pointer. |
| 69 | - The `new_packet` output of the DHCP4 callback is `*mut *mut Dhcp4Packet`, as |
| 70 | the driver takes ownership of the returned packet. |
| 71 | - `this` of `AbsolutePointerProtocol::get_state`. The call consumes the state |
| 72 | it reports: it returns `EFI_NOT_READY` unless the state changed since the |
| 73 | last call, and clears the change flag. `SimplePointerProtocol::get_state` |
| 74 | already declares `this` this way. |
| 75 | |
| 76 | ### Inputs that the firmware only reads are `*const` |
| 77 | - USB: `request` of `UsbIoProtocol::control_transfer`, `data` of |
| 78 | `AsyncUsbTransferCallback`, and the `context` parameters of the asynchronous |
| 79 | transfer functions and the callback. |
| 80 | - Boot services: `event_group` and `notify_ctx` of `create_event_ex`, `events` |
| 81 | of `wait_for_event`, and `registration` of `locate_protocol`. |
| 82 | - `virtual_map` of `RuntimeServices::set_virtual_address_map`. |
| 83 | - `EdkiiIommuProtocol`: `host_address` of `free_buffer`, and `mapping` of |
| 84 | `set_attribute` and `unmap`. |
| 85 | - `buffer` of `FirmwareVolumeBlock2Protocol::write`. |
| 86 | - DHCP4: `seed_packet` and `delete_list` of `build`, and `packet` of `parse`. |
| 87 | - `notify_handle` of `SimpleTextInputExProtocol::unregister_key_notify`. |
| 88 | - The `write_file` buffer of `ShellProtocol`. |
| 89 | - `this` of `SimpleTextOutputProtocol::query_mode`, which only reads the |
| 90 | protocol. |
| 91 | |
| 92 | ### Firmware-owned memory that consumers only read is `*const` |
| 93 | - The mode and info pointers `SimpleNetworkProtocol::mode`, |
| 94 | `AbsolutePointerProtocol::mode`, `SimpleTextOutputProtocol::mode`, |
| 95 | `GraphicsOutputProtocol::mode` and `GraphicsOutputProtocolMode::info`, |
| 96 | matching the other mode pointers in the crate. |
| 97 | - The name returned by `ShellProtocol::get_guid_name` and |
| 98 | `ShellFileInfo::{full_name, file_name}`, which point into the shell. |
| 99 | |
| 100 | ### Types, layout and module paths |
| 101 | - `PxeBaseCodeSrvlist::server_type` and the `server_type` parameter of |
| 102 | `PxeBaseCodeSrvlist::new` use the newtype-enum `PxeBaseCodeBootType` instead |
| 103 | of `u16`. |
| 104 | - The callback of `UsbIoProtocol::async_interrupt_transfer` and |
| 105 | `Usb2HostControllerProtocol::async_interrupt_transfer` is |
| 106 | `Option<AsyncUsbTransferCallback>`. The specification marks it `OPTIONAL`, |
| 107 | and NULL cancels the transfer. |
| 108 | - `HiiPackageListHeader` and `HiiPackageHeader` are packed, as the |
| 109 | specification mandates. |
| 110 | - `HiiRef`, `HiiTime` and `HiiDate` moved from `protocol::hii::config` to |
| 111 | `protocol::hii`, and `IfrTypeValue` moved to `protocol::hii::ifr`. |
| 112 | |
| 113 | # uefi-raw - v0.16.0 (2026-08-25) |
| 114 | |
| 115 | ## Added |
| 116 | - Added the revision constants `BlockIoProtocol::{REVISION, REVISION_2, |
| 117 | REVISION_3}`. |
| 118 | - Added `Boolean::is_true()` and `Boolean::is_false()` for a quick conversion |
| 119 | of an EFI boolean to a Rust boolean. |
| 120 | |
| 121 | ## Changed |
| 122 | - **Breaking**: `MemoryDescriptor` now has a new member to ensure correct |
| 123 | layout on all non-UEFI 32-bit targets. |
| 124 | - **Breaking**: Corrected the `volatile` parameter of |
| 125 | `ShellProtocol::get_alias` from `Boolean` to `*mut Boolean`. |
| 126 | - **Breaking**: The USB descriptor types in `protocol::usb` are now packed to |
| 127 | match their layout in the USB specification. `ConfigDescriptor` and |
| 128 | `EndpointDescriptor` previously had a too-large `size_of`. |
| 129 | - **Breaking**: `HiiKeyboardLayout` and `KeyDescriptor` are now packed to |
| 130 | match the layout mandated by the UEFI specification. Previously, all |
| 131 | `HiiKeyboardLayout` fields after `layout_length` were at wrong offsets. |
| 132 | - **Breaking**: `IfrTypeValue`, `HiiRef`, `HiiTime`, and `HiiDate` are now |
| 133 | packed to match the size and alignment mandated by the UEFI specification. |
| 134 | |
| 135 | ## Removed |
| 136 | |
| 137 | |
| 138 | # uefi-raw - v0.15.1 (2026-07-11) |
| 139 | |
| 140 | ## Added |
| 141 | - Added additional derives to IOMMU types. |
| 142 | |
| 143 | # uefi-raw - v0.15.0 (2026-06-21) |
| 144 | |
| 145 | ## Added |
| 146 | - Added `SimpleTextInputExProtocol`. |
| 147 | - Added `PciRootBridgeIoProtocolAttributes` |
| 148 | |
| 149 | ## Changed |
| 150 | - Corrected the type of the `driver_image` parameter in |
| 151 | `BootServices::connect_controller` from `Handle` to `*const Handle`. |
| 152 | - Corrected signature of `BootServices::exit` from `!` to `Status`. |
| 153 | - We made changes to the `Boolean` type, especially switching to manual |
| 154 | implementations of `PartialEq`, `Eq`, `PartialOrd`, `Ord`, and `Hash` to match |
| 155 | the type's logical properties. If you rely on the specific bit pattern, |
| 156 | please use `.0` to access the underlying value. |
| 157 | - Added `PxeBaseCodeDhcpV4Flags`. |
| 158 | - Added `PxeBaseCodeDhcpV4Packet::{DHCP_MAGIK, bootp_ident(), bootp_seconds(), |
| 159 | bootp_flags(), dhcp_magik()}`. |
| 160 | - Added `PxeBaseCodeDhcpV6Packet::transaction_id()`. |
| 161 | - Added `AsRef` implementations to `PxeBaseCodePacket`. |
| 162 | - Added `PxeBaseCodeIpFilter::{new(), ip_list()}`. |
| 163 | - Added `PxeBaseCodeSrvlist::{new(), ip_addr()}`. |
| 164 | - `PxeBaseCodeIcmpError` and `PxeBaseCodeTftpError` now implement `Display` and |
| 165 | `core::error::Error`. |
| 166 | |
| 167 | |
| 168 | # uefi-raw - v0.14.0 (2026-03-22) |
| 169 | |
| 170 | ## Added |
| 171 | - Added `Tcpv4Protocol`. |
| 172 | - Added `StorageSecurityCommandProtocol`. |
| 173 | - Added `FirmwareManagementProtocol`. |
| 174 | - Added `HiiFontProtocol`, `HiiFontExProtocol`. |
| 175 | - Added `HiiImageProtocol`, `HiiImageExProtocol`. |
| 176 | - Added `HiiStringProtocol`. |
| 177 | - Added `HiiPopupProtocol`. |
| 178 | - Added `FormBrowser2Protocol`. |
| 179 | - Added new type `SerialIoProtocolRevision` |
| 180 | - Added new type `SerialIoProtocol_1_1` as companion for `SerialIoProtocol` |
| 181 | that includes the `device_type_guid` parameter |
| 182 | |
| 183 | ## Changed |
| 184 | - Switched `*const Self` to `*mut Self` in `SerialIoProtocol::set_attributes()` |
| 185 | - Switched field `revision` in `SerialIoProtocol` from `u32` to new type |
| 186 | `SerialIoProtocolRevision` |
| 187 | |
| 188 | |
| 189 | # uefi-raw - v0.13.0 (2025-11-05) |
| 190 | |
| 191 | ## Changed |
| 192 | - **Breaking:** Various uses of `bool` have been replaced with `Boolean`. |
| 193 | - Fixing build on <https://docs.rs/uefi> |
| 194 | |
| 195 | |
| 196 | # uefi-raw - v0.12 (2025-10-21) |
| 197 | |
| 198 | ## Added |
| 199 | - Added `AllocateType`. |
| 200 | - Added `PciRootBridgeIoProtocol`. |
| 201 | - Added `ConfigKeywordHandlerProtocol`. |
| 202 | - Added `HiiConfigAccessProtocol`. |
| 203 | - Added `::octets()` for `Ipv4Address`, `Ipv6Address`, and |
| 204 | `MacAddress` to streamline the API with `core::net`. |
| 205 | - Added `::into_core_addr()` for `IpAddress` |
| 206 | - Added `::into_ethernet_addr()` for `MacAddress` |
| 207 | - Added `::ZERO` constant for `IpAddress` |
| 208 | - `Ipv4Address` and `Ipv6Address` now implement `Display`. They |
| 209 | use the same formatting as `core::net::{Ipv4Addr, Ipv6Addr}` |
| 210 | - Added comprehensive integration with `core::net::{IpAddr, Ipv4Addr, Ipv6Addr}` |
| 211 | via `From` impls to better integrate uefi-raw types `IpAddress`, |
| 212 | `Ipv4Address`, and `Ipv6Address` with the Rust ecosystem. |
| 213 | - Added convenient `From` impls: |
| 214 | - `[u8; 6]` <--> `MacAddress` |
| 215 | - `[u8; 32]` --> `MacAddress` |
| 216 | - `[u8; 4]` --> `Ipv4Address`, `IpAddress` |
| 217 | - `[u8; 16]` --> `Ipv6Address`, `IpAddress` |
| 218 | - Added `HiiConfigRoutingProtocol`. |
| 219 | |
| 220 | ## Changed |
| 221 | - **Breaking:** The MSRV is now 1.85.1 and the crate uses the Rust 2024 edition. |
| 222 | - The documentation for UEFI protocols has been streamlined and improved. |
| 223 | |
| 224 | |
| 225 | # uefi-raw - 0.11.0 (2025-05-04) |
| 226 | |
| 227 | ## Added |
| 228 | - MSRV increased to 1.77. |
| 229 | - Added `Boolean` type |
| 230 | - Added `protocol::network::pxe` module. |
| 231 | - Added conversions between `MacAddress` and the `[u8; 6]` type that's more commonly used to represent MAC addresses. |
| 232 | - Implemented `From` conversions between the `core::net` and `uefi_raw` IP |
| 233 | address types. |
| 234 | - Added `DiskInfoProtocol`. |
| 235 | - Added `ExtScsiPassThruProtocol`. |
| 236 | - Added `NvmExpressPassThruProtocol`. |
| 237 | - Added `AtaPassThruProtocol`. |
| 238 | - Added `DevicePathUtilitiesProtocol`. |
| 239 | - Added `UsbIoProtocol`. |
| 240 | - Added `Usb2HostControllerProtocol`. |
| 241 | - Added `DevicePathProtocol::length()` properly constructing the `u16` value |
| 242 | |
| 243 | ## Changed |
| 244 | - `DevicePathProtocol` now derives |
| 245 | `Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash` |
| 246 | |
| 247 | |
| 248 | # uefi-raw - 0.10.0 (2025-02-07) |
| 249 | |
| 250 | As of this release, the project has been relicensed from MPL-2.0 to |
| 251 | Apache-2.0/MIT, to better align with the Rust crate ecosystem. (This does not |
| 252 | alter the license of previous releases.) |
| 253 | Details at <https://github.com/rust-osdev/uefi-rs/issues/1470>. |
| 254 | |
| 255 | ## Added |
| 256 | |
| 257 | - Added `protocol::string::UnicodeCollationProtocol`. |
| 258 | - Added `protocol::tcg` module, containing the TCG v1 and v2 protocols. |
| 259 | - Added `DriverBindingProtocol`. |
| 260 | - Added `FirmwareVolume2Protocol`. |
| 261 | - Added `FirmwareVolumeBlock2Protocol`. |
| 262 | - Added `HiiDatabaseProtocol`. |
| 263 | - Added `ScsiIoProtocol`. |
| 264 | - Added `Default` and other common impls for HTTP types. |
| 265 | - Added `boot::TimerDelay`. |
| 266 | |
| 267 | ## Changed |
| 268 | - The definition of `BootServices::set_timer` now uses `TimerDelay` rather than |
| 269 | a plain integer. |
| 270 | |
| 271 | |
| 272 | # uefi-raw - 0.9.0 (2024-10-23) |
| 273 | |
| 274 | ## Added |
| 275 | |
| 276 | - Added `DeviceType` and `DeviceSubType` enums. |
| 277 | - Added device path node types in the `protocol::device_path` module. |
| 278 | |
| 279 | |
| 280 | # uefi-raw - 0.8.0 (2024-09-09) |
| 281 | |
| 282 | ## Added |
| 283 | |
| 284 | - Added `PAGE_SIZE` constant. |
| 285 | |
| 286 | |
| 287 | # uefi-raw - 0.7.0 (2024-08-20) |
| 288 | |
| 289 | ## Added |
| 290 | - New `MemoryType` constants: `UNACCEPTED`, `MAX`, `RESERVED_FOR_OEM`, and |
| 291 | `RESERVED_FOR_OS_LOADER`. |
| 292 | |
| 293 | |
| 294 | # uefi-raw - 0.6.0 (2024-07-02) |
| 295 | |
| 296 | ## Added |
| 297 | - Added `ResetNotificationProtocol`. |
| 298 | |
| 299 | ## Changed |
| 300 | - `maximum_capsule_size` of `query_capsule_capabilities` now takes a *mut u64 instead of a *mut usize. |
| 301 | - `ResetType` now derives the `Default` trait. |
| 302 | |
| 303 | |
| 304 | # uefi-raw - 0.5.2 (2024-04-19) |
| 305 | |
| 306 | ## Added |
| 307 | - Added `TimestampProtocol`. |
| 308 | - Added `DevicePathToTextProtocol` and `DevicePathFromTextProtocol`. |
| 309 | |
| 310 | |
| 311 | # uefi-raw - 0.5.1 (2024-03-17) |
| 312 | |
| 313 | ## Added |
| 314 | - Added `IpAddress`, `Ipv4Address`, `Ipv6Address`, and `MacAddress` types. |
| 315 | - Added `ServiceBindingProtocol`, `Dhcp4Protocol`, `HttpProtocol`, |
| 316 | `Ip4Config2Protocol`, `TlsConfigurationProtocol`, and related types. |
| 317 | - Added `LoadFileProtocol` and `LoadFile2Protocol`. |
| 318 | - Added `firmware_storage` module. |
| 319 | |
| 320 | |
| 321 | # uefi-raw - 0.5.0 (2023-11-12) |
| 322 | |
| 323 | ## Added |
| 324 | - Added `AbsolutePointerProtocol`. |
| 325 | - Added `SimpleFileSystemProtocol` and related types. |
| 326 | |
| 327 | ## Changed |
| 328 | - `{install,reinstall,uninstall}_protocol_interface` now take `const` interface pointers. |
| 329 | - `{un}install_multiple_protocol_interfaces` are now defined as c-variadic |
| 330 | function pointers. The ABI is `extern "C"` until such time as |
| 331 | [`extended_varargs_abi_support`](https://github.com/rust-lang/rust/issues/100189) |
| 332 | is stabilized. |