Struct aw_fel::FelHandle [] [src]

pub struct FelHandle<'h> { /* fields omitted */ }

FEL device handle.

Methods

impl<'h> FelHandle<'h>
[src]

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.

impl<'h> FelHandle<'h>
[src]

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

impl<'h> Deref for FelHandle<'h>
[src]

The resulting type after dereferencing

The method called to dereference a value