diff options
author | Vikram Narayanan <vikram186@gmail.com> | 2012-01-25 20:40:40 +0530 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-01-27 20:07:00 +0100 |
commit | cc16cca2be1939a731157b1b62029d99be268dc8 (patch) | |
tree | 1d018c683d807fc4f472147c4d915446be90a265 /src/pc80/vga/vga_palette.c | |
parent | 976f8cc1e29daee35a2f92f97be59a4838949c43 (diff) |
vga: removed inclusion of .c files
Add local vga.h for prototypes.
Change-Id: I5ff627c6420d4b7fd1bc9a537f406ef6d9597522
Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/588
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/pc80/vga/vga_palette.c')
-rw-r--r-- | src/pc80/vga/vga_palette.c | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/src/pc80/vga/vga_palette.c b/src/pc80/vga/vga_palette.c index 01c90309cc..5f6972890b 100644 --- a/src/pc80/vga/vga_palette.c +++ b/src/pc80/vga/vga_palette.c @@ -1,13 +1,27 @@ /* - * Basic palette. + * Copyright (C) 2007-2009 Luc Verhaegen <libv@skynet.be> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -struct palette { - unsigned char red; - unsigned char green; - unsigned char blue; -}; -static const struct palette +#include "vga.h" + +/* + * Basic palette. + */ +const struct palette default_vga_palette[0x100] = { { 0x00, 0x00, 0x00}, { 0x00, 0x00, 0x2A}, @@ -259,3 +273,4 @@ default_vga_palette[0x100] = { { 0x0B, 0x0C, 0x20}, /* Pad with NULL */ }; + |