Documentation ¶
Overview ¶
Package videocore interacts with the VideoCore GPU found on bcm283x.
This package shouldn't be used directly, it is used by bcm283x's DMA implementation.
Datasheet ¶
While not an actual datasheet, this is the closest to actual formal documentation: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mem ¶
Mem represents contiguous physically locked memory that was allocated by VideoCore.
The memory is mapped in user space.
func Alloc ¶
Alloc allocates a continuous chunk of physical memory for use with DMA controller.
Size must be rounded to 4Kb.
Example ¶
// Allocates physical memory on a Broadcom CPU by leveraging the GPU. // This memory can be leveraged to do DMA operations. m, err := Alloc(64536) if err != nil { log.Fatal(err) } // Use m m.Close()
Output:
Click to show internal directories.
Click to hide internal directories.