1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Document exported symbols

This commit is contained in:
Achilleas Anagnostopoulos 2017-07-12 08:00:38 +01:00
parent f4f3745073
commit 72feb11acb

View File

@ -15,6 +15,12 @@ import (
"unsafe"
)
// VesaFbConsole is a driver for a console backed by a VESA linear framebuffer.
// The driver supports framebuffers with depth 8, 15, 16, 24 and 32 bpp. In
// all framebuffer configurations, the driver exposes a 256-color palette whose
// entries get mapped to the correct pixel format for the framebuffer.
//
// To provide text output, a font needs to be specified via the SetFont method.
type VesaFbConsole struct {
bpp uint32
bytesPerPixel uint32
@ -45,6 +51,7 @@ type VesaFbConsole struct {
clearChar uint16
}
// NewVesaFbConsole returns a new instance of the vesa framebuffer driver.
func NewVesaFbConsole(width, height uint32, bpp uint8, pitch uint32, colorInfo *multiboot.FramebufferRGBColorInfo, fbPhysAddr uintptr) *VesaFbConsole {
return &VesaFbConsole{
bpp: uint32(bpp),