Skip to content

Commit 370c2c7

Browse files
Add SPDX headers to uefi
1 parent c576801 commit 370c2c7

Some content is hidden

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

88 files changed

+176
-0
lines changed

uefi/src/allocator.rs

Lines changed: 2 additions & 0 deletions
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 implements Rust's global allocator interface using UEFI's memory allocation functions.
24
//!
35
//! If the `global_allocator` feature is enabled, the [`Allocator`] will be used

uefi/src/boot.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI boot services.
24
//!
35
//! These functions will panic if called after exiting boot services.

uefi/src/data_types/chars.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! UEFI character handling
24
//!
35
//! UEFI uses both Latin-1 and UCS-2 character encoding, this module implements

uefi/src/data_types/guid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
pub use uguid::Guid;
24

35
/// Several entities in the UEFI specification can be referred to by their GUID,

uefi/src/data_types/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Data type definitions
24
//!
35
//! This module defines the basic data types that are used throughout uefi-rs

uefi/src/data_types/opaque.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
/// Create an opaque struct suitable for use as an FFI pointer.
24
///
35
/// The internal representation uses the recommendation in the [nomicon].

uefi/src/data_types/owned_strs.rs

Lines changed: 2 additions & 0 deletions
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::chars::{Char16, NUL_16};
24
use super::strs::{CStr16, FromSliceWithNulError};
35
use crate::data_types::strs::EqStrUntilNul;

uefi/src/data_types/strs.rs

Lines changed: 2 additions & 0 deletions
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::chars::{Char16, Char8, NUL_16, NUL_8};
24
use super::UnalignedSlice;
35
use crate::polyfill::maybe_uninit_slice_assume_init_ref;

uefi/src/data_types/unaligned_slice.rs

Lines changed: 2 additions & 0 deletions
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::{self, Debug, Formatter};
24
use core::marker::PhantomData;
35
use core::mem::MaybeUninit;

uefi/src/fs/dir_entry_iter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Module for directory iteration. See [`UefiDirectoryIter`].
24
35
use super::*;

0 commit comments

Comments
 (0)