Struct aw_fel::FelHandle

source ·
pub struct FelHandle<'h> { /* private fields */ }
Expand description

FEL device handle.

Implementations

This function tests a given buffer for a valid U-Boot image. Upon success, the image data gets transferred to the default memory address stored within the image header; and the function returns the U-Boot entry point (offset) and size values, in that order.

Writes U-Boot SPL into memory and executes it.

Gets the SoC information from the FEL device.

Note: This is a no-op. The SoC information is acquired during initialization.

Gets the SoC version information from the FEL device.

Note: This is a no-op. The SoC information is acquired during initialization.

Reads the SID from the SoC if it has one.

Read words chunk from the FEL device memory.

Write words chunk to the FEL device memory.

Perform FEL RMR request.

This function stores a given entry point to the RVBAR address for CPU0, and then writes the Reset Management Register to request a warm boot. It is useful with some AArch64 transitions, e.g. when passing control to ARM Trusted Firmware (ATF) during the boot process of Pine64.

The code was inspired by U-boot

Methods from Deref<Target = UsbHandle<'h>>

Fill memory at the given offset.

It will fill num_size bytes with the given byte.

Reads from the FEL device memory at the given offset.

It will fill all the given buffer, but it will panic if the buffer overflows total memory address space.

Writes to the FEL device memory at the given offset.

It will panic if the buffer overflows total memory address space.

Makes the FEL device execute the code at the given address.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.