Skip to content

Commit

Permalink
multiboot2: fill in missing module documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Sep 21, 2023
1 parent 1e22a66 commit 5fd2f77
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 4 deletions.
2 changes: 2 additions & 0 deletions multiboot2/src/boot_loader_name.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`BootLoaderNameTag`].
use crate::tag::StringError;
use crate::{Tag, TagTrait, TagType, TagTypeId};
use core::fmt::{Debug, Formatter};
Expand Down
2 changes: 1 addition & 1 deletion multiboot2/src/command_line.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Module for [CommandLineTag].
//! Module for [`CommandLineTag`].
use crate::{Tag, TagTrait, TagType, TagTypeId};

Expand Down
8 changes: 7 additions & 1 deletion multiboot2/src/efi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
//! All MBI tags related to (U)EFI.
//! All tags related to (U)EFI with the exception of EFI memory tags:
//!
//! - [`EFISdt32Tag`]
//! - [`EFISdt64Tag`]
//! - [`EFIImageHandle32Tag`]
//! - [`EFIImageHandle64Tag`]
//! - [`EFIBootServicesNotExitedTag`]
use crate::TagTypeId;
use crate::{Tag, TagTrait, TagType};
Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/elf_sections.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`ElfSectionsTag`].
#[cfg(feature = "builder")]
use crate::builder::BoxedDst;
use crate::{Tag, TagTrait, TagType, TagTypeId};
Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/framebuffer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`FramebufferTag`].
use crate::{Tag, TagTrait, TagType, TagTypeId};
use core::fmt::Debug;
use core::mem::size_of;
Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/image_load_addr.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`ImageLoadPhysAddrTag`].
use crate::{Tag, TagTrait, TagType, TagTypeId};
#[cfg(feature = "builder")]
use {core::convert::TryInto, core::mem::size_of};
Expand Down
3 changes: 3 additions & 0 deletions multiboot2/src/memory_map.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//! Module for [`MemoryMapTag`], [`EFIMemoryMapTag`] and [`BasicMemoryInfoTag`]
//! and corresponding helper types.
pub use uefi_raw::table::boot::MemoryDescriptor as EFIMemoryDesc;
pub use uefi_raw::table::boot::MemoryType as EFIMemoryAreaType;

Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/module.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`ModuleTag`].
use crate::tag::StringError;
use crate::{Tag, TagIter, TagTrait, TagType, TagTypeId};
use core::fmt::{Debug, Formatter};
Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/rsdp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`RsdpV1Tag`] and [`RsdpV2Tag`].
//! Module for RSDP/ACPI. RSDP (Root System Description Pointer) is a data structure used in the
//! ACPI programming interface.
//!
Expand Down
2 changes: 2 additions & 0 deletions multiboot2/src/smbios.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`SmbiosTag`].
#[cfg(feature = "builder")]
use crate::builder::BoxedDst;
use crate::{Tag, TagTrait, TagType, TagTypeId};
Expand Down
2 changes: 1 addition & 1 deletion multiboot2/src/tag.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Module for the base tag definition.
//! Module for the base tag definitions and helper types.
//!
//! The relevant exports of this module is [`Tag`].
Expand Down
3 changes: 2 additions & 1 deletion multiboot2/src/vbe_info.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Module for [`VBEInfoTag`].
use crate::{Tag, TagTrait, TagType, TagTypeId};
use core::fmt;

Expand Down Expand Up @@ -319,7 +321,6 @@ bitflags! {
}

bitflags! {

/// The DirectColorModeInfo field describes important characteristics of direct color modes.
///
/// Bit D0 specifies whether the color ramp of the DAC is fixed or
Expand Down

0 comments on commit 5fd2f77

Please sign in to comment.