26 #include <linux/compiler.h>
27 #include <linux/errno.h>
30 #include <linux/kernel.h>
31 #include <linux/module.h>
33 #include <linux/types.h>
72 .smem_len = (1024 * 1024),
94 static int pmagbafb_setcolreg(
unsigned int regno,
unsigned int red,
100 if (regno >= info->
cmap.len)
120 static struct fb_ops pmagbafb_ops = {
122 .fb_setcolreg = pmagbafb_setcolreg,
132 static void __init pmagbafb_erase_cursor(
struct fb_info *info)
168 info->
fbops = &pmagbafb_ops;
169 info->
fix = pmagbafb_fix;
170 info->
var = pmagbafb_defined;
175 len = tdev->
resource.end - start + 1;
204 pmagbafb_erase_cursor(info);
215 pr_info(
"fb%d: %s frame buffer device at %s\n",
216 info->
node, info->
fix.id, dev_name(dev));
250 len = tdev->
resource.end - start + 1;
261 static const struct tc_device_id pmagbafb_tc_table[] = {
262 {
"DEC ",
"PMAG-BA " },
267 static struct tc_driver pmagbafb_driver = {
268 .id_table = pmagbafb_tc_table,
272 .probe = pmagbafb_probe,
273 .remove =
__exit_p(pmagbafb_remove),
277 static int __init pmagbafb_init(
void)
286 static void __exit pmagbafb_exit(
void)