This patch allows a custom vga driver that will give the flexibility to run code...
[coreboot.git] / src / northbridge / intel / i82830 / vga.c
1 /*\r
2  * This file is part of the coreboot project.\r
3  *\r
4  * Copyright (C) 2009 Joseph Smith <joe@settoplinux.org>\r
5  *\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
10  *\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
15  *\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
19  */\r
20 \r
21 #include <console/console.h>\r
22 #include <arch/io.h>\r
23 #include <stdint.h>\r
24 #include <device/device.h>\r
25 #include <device/pci.h>\r
26 #include <device/pci_ids.h>\r
27 \r
28 static void vga_init(device_t dev) {\r
29 \r
30         printk_info("Starting Graphics Initialization\n");\r
31         pci_dev_init(dev);\r
32         printk_info("Graphics Initialization Complete\n");\r
33         /* Future TV-OUT code will be called from here. */\r
34 }\r
35 \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
40         .init             = vga_init,\r
41         .scan_bus         = 0,\r
42         .enable           = 0,\r
43         .ops_pci          = 0,\r
44 };\r
45 \r
46 static const struct pci_driver vga_driver __pci_driver = {\r
47         .ops    = &vga_operations,\r
48         .vendor = PCI_VENDOR_ID_INTEL,\r
49         .device = 0x3577,\r
50 };\r