Skip to content

Commit 0667e74

Browse files
Add SPDX headers to uefi-raw
1 parent 6ffdaf0 commit 0667e74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+84
-0
lines changed

uefi-raw/src/capsule.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI update capsules.
24
//!
35
//! Capsules are used to pass information to the firmware, for example to

uefi-raw/src/enums.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! This module provides tooling that facilitates dealing with C-style enums
24
//!
35
//! C-style enums and Rust-style enums are quite different. There are things

uefi-raw/src/firmware_storage.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Types related to firmware storage.
24
35
use crate::Guid;

uefi-raw/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Raw interface for working with UEFI.
24
//!
35
//! This crate is intended for implementing UEFI services. It is also used for

uefi-raw/src/protocol/block.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/console.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
pub mod serial;
24

35
use crate::{guid, Char16, Event, Guid, PhysicalAddress, Status};

uefi-raw/src/protocol/console/serial.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use bitflags::bitflags;
35

uefi-raw/src/protocol/device_path.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
mod device_path_gen;
24

35
use crate::{guid, Char16, Guid};

uefi-raw/src/protocol/disk.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Event, Guid, Status};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/driver.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::{guid, Guid, Handle, Status};
35

uefi-raw/src/protocol/file_system.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::time::Time;
24
use crate::{guid, Char16, Event, Guid, Status};
35
use bitflags::bitflags;

uefi-raw/src/protocol/firmware_volume.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::firmware_storage::FirmwareVolumeAttributes;
24
use crate::protocol::block::Lba;
35
use crate::{guid, Guid, Handle, PhysicalAddress, Status};

uefi-raw/src/protocol/hii/database.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Bindings for HII Database Protocol
24
35
use super::{HiiHandle, HiiPackageHeader, HiiPackageListHeader, KeyDescriptor};

uefi-raw/src/protocol/hii/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! HII Protocols
24
35
pub mod database;

uefi-raw/src/protocol/loaded_image.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::table::boot::MemoryType;
35
use crate::table::system::SystemTable;

uefi-raw/src/protocol/media.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::device_path::DevicePathProtocol;
24
use crate::{guid, Guid, Status};
35
use core::ffi::c_void;

uefi-raw/src/protocol/memory_protection.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::table::boot::MemoryAttribute;
24
use crate::{guid, Guid, PhysicalAddress, Status};
35

uefi-raw/src/protocol/misc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::table::runtime;
24
use crate::{guid, Guid, Status};
35

uefi-raw/src/protocol/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Protocol definitions.
24
//!
35
//! Protocols are sets of related functionality identified by a unique

uefi-raw/src/protocol/network/dhcp4.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char8, Event, Guid, Ipv4Address, MacAddress, Status};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/network/http.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Char8, Event, Guid, Ipv4Address, Ipv6Address, Status};
24
use core::ffi::c_void;
35
use core::fmt::{self, Debug, Formatter};

uefi-raw/src/protocol/network/ip4.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::Ipv4Address;
24

35
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]

uefi-raw/src/protocol/network/ip4_config2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::network::ip4::Ip4RouteTable;
24
use crate::{guid, Char16, Event, Guid, Ipv4Address, MacAddress, Status};
35
use core::ffi::c_void;

uefi-raw/src/protocol/network/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
pub mod dhcp4;
24
pub mod http;
35
pub mod ip4;

uefi-raw/src/protocol/network/tls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Guid, Status};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/rng.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! `Rng` protocol.
24
35
use crate::{guid, Guid, Status};

uefi-raw/src/protocol/scsi.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Event, Guid, Status};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/shell_params.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Guid};
24
use core::ffi::c_void;
35

uefi-raw/src/protocol/string.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::{guid, Char16, Char8, Guid};
24

35
#[derive(Debug)]

uefi-raw/src/protocol/tcg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocols.
24
//!
35
//! These protocols provide access to the [TPM][tpm] (Trusted Platform Module).

uefi-raw/src/protocol/tcg/enums.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
newtype_enum! {
24
/// Algorithm identifiers.
35
///

uefi-raw/src/protocol/tcg/v1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocol for [TPM] (Trusted Platform
24
//! Module) 1.1 and 1.2.
35
//!

uefi-raw/src/protocol/tcg/v2.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! [TCG] (Trusted Computing Group) protocol for [TPM] (Trusted Platform
24
//! Module) 2.0.
35
//!

uefi-raw/src/status.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use core::fmt::Debug;
24

35
newtype_enum! {

uefi-raw/src/table/boot.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI services available during boot.
24
35
use crate::protocol::device_path::DevicePathProtocol;

uefi-raw/src/table/configuration.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::Guid;
24
use core::ffi::c_void;
35

uefi-raw/src/table/header.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use super::Revision;
24

35
/// The common header that all UEFI tables begin with.

uefi-raw/src/table/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Standard UEFI tables.
24
35
mod header;

uefi-raw/src/table/revision.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use core::fmt;
24

35
/// A revision of the UEFI specification.

uefi-raw/src/table/runtime.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI services available at runtime, even after the OS boots.
24
35
use crate::capsule::CapsuleHeader;

uefi-raw/src/table/system.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use crate::protocol::console::{SimpleTextInputProtocol, SimpleTextOutputProtocol};
24
use crate::table::boot::BootServices;
35
use crate::table::configuration::ConfigurationTable;

uefi-raw/src/time.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Date and time types.
24
35
use bitflags::bitflags;

0 commit comments

Comments
 (0)