pci_read_config_byte(pdev, PCI_REVISION_ID, &all->par.tga_chip_rev);
/* Setup framebuffer. */
- all->info.flags = FBINFO_FLAG_DEFAULT;
+ all->info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_COPYAREA |
+ FBINFO_HWACCEL_IMAGEBLIT | FBINFO_HWACCEL_FILLRECT;
all->info.fbops = &tgafb_ops;
all->info.screen_base = (char *) all->par.tga_fb_base;
all->info.currcon = -1;
return ret;
}
-int __init
-tgafb_init(void)
-{
- return pci_module_init(&tgafb_driver);
-}
-
#ifdef MODULE
static void __exit
tgafb_pci_unregister(struct pci_dev *pdev)
}
#endif /* !MODULE */
+int __init
+tgafb_init(void)
+{
+#ifndef MODULE
+ char *option = NULL;
+
+ if (fb_get_options("tgafb", &option))
+ return -ENODEV;
+ tgafb_setup(option);
+#endif
+ return pci_module_init(&tgafb_driver);
+}
+
/*
* Modularisation
*/
-#ifdef MODULE
module_init(tgafb_init);
+
+#ifdef MODULE
module_exit(tgafb_exit);
#endif