Documentation ¶
Overview ¶
Port of modeset.c example to Go Source: https://github.com/dvdhrm/docs/blob/master/drm-howto/modeset.c
Index ¶
- Constants
- func AddFB(f *os.File, width, height uint16, depth, bpp uint8, pitch, boHandle uint32) (uint32, error)
- func DestroyDumb(f *os.File, handle uint32) error
- func MapDumb(f *os.File, handle uint32) (uint64, error)
- func RmFB(f *os.File, handle uint32) error
- func SetCrtc(f *os.File, crtcid, bufferid, x, y uint32, connectors *uint32, count int, ...) error
- type Connector
- type Crtc
- type Encoder
- type FB
- type Info
- type Modeset
- type Resources
- type SimpleModeset
Constants ¶
View Source
const ( DisplayInfoLen = 32 ConnectorNameLen = 32 DisplayModeLen = 32 PropNameLen = 32 Connected = 1 Disconnected = 2 UnknownConnection = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Crtc ¶
type Encoder ¶
type FB ¶
type Resources ¶
type SimpleModeset ¶
type SimpleModeset struct { Modesets []Modeset // contains filtered or unexported fields }
func NewSimpleModeset ¶
func NewSimpleModeset(file *os.File) (*SimpleModeset, error)
Click to show internal directories.
Click to hide internal directories.