2 * This file is part of the coreboot project.
\r
4 * Copyright (C) 2009 Joseph Smith <joe@settoplinux.org>
\r
6 * This program is free software; you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation; either version 2 of the License, or
\r
9 * (at your option) any later version.
\r
11 * This program is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with this program; if not, write to the Free Software
\r
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
\r
21 #include <console/console.h>
\r
22 #include <arch/io.h>
\r
24 #include <device/device.h>
\r
25 #include <device/pci.h>
\r
26 #include <device/pci_ids.h>
\r
28 static void vga_init(device_t dev) {
\r
30 printk_info("Starting Graphics Initialization\n");
\r
32 printk_info("Graphics Initialization Complete\n");
\r
33 /* Future TV-OUT code will be called from here. */
\r
36 static const struct device_operations vga_operations = {
\r
37 .read_resources = pci_dev_read_resources,
\r
38 .set_resources = pci_dev_set_resources,
\r
39 .enable_resources = pci_dev_enable_resources,
\r
46 static const struct pci_driver vga_driver __pci_driver = {
\r
47 .ops = &vga_operations,
\r
48 .vendor = PCI_VENDOR_ID_INTEL,
\r