Commit Graph

5 Commits

Author SHA1 Message Date
Kevin O'Connor 731c88d503 stdvgaio: Only read/write one color palette entry at a time
Introduce stdvga_dac_read_many() and stdvga_dac_write_many() for
writing multiple dac palette entries.  Convert the stdvga_dac_read()
and stdvga_dac_write() low-level IO access functions in stdvgaio.c to
access just one color palette entry.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2024-04-13 13:19:56 -04:00
Kevin O'Connor c682ffe671 vgautil: Move generic definitions from stdvga.h to vgautil.h
Don't use stdvga.h for function definitions of code in stdvgamodes.c
and stdvgaio.c.  Move them to vgautil.h.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2016-08-05 11:48:20 -04:00
Kevin O'Connor 4ade523a9d Remove ioport.h; disperse its contents to other header files.
Move the inb(), insb(), etc. code from ioport.h to x86.h.  Move the
PORT_* definitions to their appropriate hardware files.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-09-28 22:10:31 -04:00
Kevin O'Connor f98bbf09fc vgabios: Move stdvga_set_mode() to stdvgamodes.c.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2012-02-01 20:39:27 -05:00
Kevin O'Connor 3471fdbe63 vgabios: Add wrapper functions for accessing standard VGA registers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2012-01-16 11:50:42 -05:00