A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface below:

Mailbox property interface · raspberrypi/firmware Wiki · GitHub

Mailbox messages:

Buffer contents:

Tag format:

Future formats may specify multiple base+size combinations.

Future formats may specify multiple base+size combinations.

Returns all clocks that exist in top down breadth first order. Clocks that depend on another clock should be defined as children of that clock. Clocks that depend on no other clocks should have no parent. Clock IDs are as in the clock section below.

(swarren: This clock message is much less well defined than the other clock message below. To be useful, you'd need to either return a clock name along with each clock so the caller knew what they all were, or pre-define the list of valid clock IDs as the other clock message does below)

(lp0: I've now made it clear that the clock IDs are as below, which is why I reserved 0)

Caller should not assume the string is null terminated.

Shared resource management

Caller assumes that the VC has enabled all the usable DMA channels.

Unique device IDs:

Response indicates current state.

Response indicates wait time required after turning a device on before power is stable. Returns 0 wait time if the device does not exist.

Response indicates new state, with/without waiting for the power to become stable.

Unique clock IDs:

(swarren: I imagine there are more clocks than that; the clock message earlier returned clock parent information, and I doubt any of the clocks listed here are parents of each-other. At the very least I'd expect one more defined clock ID to represent the root crystal/PLL, and I'd expect there are a actually a variety of intermediate clocks between this and these peripherals).

All clocks are the base clocks for those peripherals, e.g. 3MHz for UART, 50/100MHz for EMMC, not the dividers applied using the peripheral.

(swarren: it doesn't seem to make sense for the request to have a "clock exists" bit, only the response)

(lp0: the lack of a response makes it unclear if the tag itself was unsupported)

Next enable rate should be returned even if the clock is not running. A rate of 0 is returned if the clock does not exist.

Response is the LED pin number and its status (0 or 1).

Response is the LED pin number and its status (0 or 1).

Response is the LED pin number and the status to set (0 or 1) .

Get the true/actual clock rate (instead of the last requested value returned by "Get clock rate"/0x0003002) which respects clamping, throttling and clock divider limitations.

Next supported enable rate should be returned even if the clock is not running. A rate of 0 is returned if the clock does not exist. The clock rate may be clamped to the supported range.

By default when setting arm freq above default, other turbo settings will be enabled (e.g. voltage, sdram and gpu frequencies). You can disable this effect by setting "skip setting turbo" to 1.

(swarren: As lp0 mentioned in the issue, min/max rates, and a list of valid parents would be useful response data from some message. Also, a set parent message might be useful if there are messages to get parenting information)

Return the maximum supported clock rate for the given clock. Clocks should not be set higher than this.

Return the minimum supported clock rate for the given clock. This may be used when idle.

Get the turbo state for index id. id should be 0. level will be zero for non-turbo and one for turbo.

Set the turbo state for index id. id should be zero. level will be zero for non-turbo and one for turbo. This will cause GPU clocks to be set to maximum when enabled and minimum when disabled.

Unique voltage IDs:

The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid.

The voltage value may be clamped to the supported range. A value of 0x80000000 means the id was not valid.

Return the maximum supported voltage rate for the given id. Voltages should not be set higher than this.

Return the minimum supported voltage rate for the given id. This may be used when idle.

Return the temperature of the SoC in thousandths of a degree C. id should be zero.

Return the maximum safe temperature of the SoC in thousandths of a degree C. id should be zero. Overclock may be disabled above this temperature.

Allocates contiguous memory on the GPU. size and alignment are in bytes. flags contain:

MEM_FLAG_DISCARDABLE = 1 << 0, /* can be resized to 0 at any time. Use for cached data */
MEM_FLAG_NORMAL = 0 << 2, /* normal allocating alias. Don't use from ARM */
MEM_FLAG_DIRECT = 1 << 2, /* 0xC alias uncached */
MEM_FLAG_COHERENT = 2 << 2, /* 0x8 alias. Non-allocating in L2 but coherent */
MEM_FLAG_L1_NONALLOCATING = (MEM_FLAG_DIRECT | MEM_FLAG_COHERENT), /* Allocating in L2 */
MEM_FLAG_ZERO = 1 << 4,  /* initialise buffer to all zeros */
MEM_FLAG_NO_INIT = 1 << 5, /* don't initialise (default is initialise to all ones */
MEM_FLAG_HINT_PERMALOCK = 1 << 6, /* Likely to be locked for long periods of time. */

handle != 0 is success.

Lock buffer in place, and return a bus address. Must be done before memory can be accessed. bus address != 0 is success.

Unlock buffer. It retains contents, but may move. Needs to be locked before next use. status=0 is success.

Free the memory buffer. status=0 is success.

Calls the function at given (bus) address and with arguments given. E.g. r0 = fn(r0, r1, r2, r3, r4, r5); It blocks until call completes. The (GPU) instruction cache is implicitly flushed. Setting the lsb of function pointer address will suppress the instruction cache flush if you know the buffer hasn't changed since last execution.

Get Dispmanx Resource mem handle

Gets the mem_handle associated with a created dispmanx resource. This can be locked and the memory directly written from the arm to avoid having to copy the image data to GPU.

This reads the specified EDID block from attached HDMI/DVI device. There will always be at least one block of 128 bytes, but there may be additional blocks. You should keep requesting blocks (starting from 0) until the status returned is non-zero.

For example:

  1. The current values/defaults are loaded into a temporary struct
  2. The tags are used to overwrite some or all of the values
  3. Validation of Test/Set tags occurs
  4. The Set changes are applied and responses based on the requested Get/Test/Set tags are written to the buffer

Duplicating the same tag in one request/response is prohibited. The expected result is either an error or implementation specified undefined behaviour (such as only using the last instance of the tag).

If the requested alignment is unsupported then the current base and size (which may be 0 if not allocated) is returned and no change occurs.

Releases and disables the frame buffer.

Get physical (display) width/height Test physical (display) width/height

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

Set physical (display) width/height

The response may not be the same as the request so it must be checked. May be the previous width/height or 0 for unsupported.

Get virtual (buffer) width/height Test virtual (buffer) width/height

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

Set virtual (buffer) width/height

The response may not be the same as the request so it must be checked. May be the previous width/height or 0 for unsupported.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked. May be the previous depth or 0 for unsupported.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked. May be the previous offset or 0 for unsupported.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked. May be the previous overscan or 0 for unsupported.

Response is the same as the request (or modified), to indicate if this configuration is supported (in combination with all the other settings). Does not modify the current hardware or frame buffer state.

The response may not be the same as the request so it must be checked. Palette changes should not be partially applied.

Format is 32bpp (ARGB). Width and height should be >= 16 and (width * height) <= 64.

The flags control: bit0: clean=display coords, set=framebuffer coords

if Set Cursor Info hasn't been called a default cursor will be used (64x64 with hotspot at 0,0).

(swarren: I agree that a single message for each of framebuffer get/test/set might be better - that way, the complete configuration is always available for test or set to operate on, although for test, the individual test messages might be useful alongside the overall configuration test message. What about multi-head; can both HDMI and TV out be active at once, or is there only 1 head? Are options like HDMI YUV vs. RGB, HDMI audio, HDMI EDID retrieval, HDMI reduced CE vs. PC RGB space, ... supported?)

(lp0: having a single message does not imply that the complete configuration is always available - the caller may be using an older version that lacks additional information, and all these extra options would be more easily supported as separate values than adding to a single large struct)

Set Screen Gamma (Pi3 only)

The tag was added on 2019-01-09. As the Pi4 uses a different gamma mechanism, this tag currently doesn't work on the Pi4. The developer has written a small example program.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4