} device_info_t;
/* global graphics card info structure (one per card) */
-static device_info_t deviceInfo;
+static device_info_t deviceInfo = { 0 };
static char *mode_option __initdata = NULL;
static int nopan __initdata = 0;
static int kyrofb_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
static void kyrofb_remove(struct pci_dev *pdev);
+#ifndef MODULE
static struct fb_videomode kyro_modedb[] __initdata = {
{
/* 640x350 @ 85Hz */
VMODE_1920_1440_60,
VMODE_1920_1440_75,
};
+#endif
/* Accessors */
int kyro_dev_video_mode_set(struct fb_info *info)
deviceInfo.ulOverlayOffset = 0;
/* This should give a reasonable default video mode */
+#ifndef MODULE
if (!fb_find_mode(&info->var, info, mode_option, kyro_modedb,
NUM_TOTAL_MODES, &kyro_modedb[VMODE_1024_768_75], 32))
+#endif
info->var = kyro_var;
fb_alloc_cmap(&info->cmap, 256, 0);
info->var.bits_per_pixel);
size *= info->var.yres_virtual;
- fb_memset(info->screen_base, 0, size);
+ memset_io((unsigned long)info->screen_base, 0, size);
if (register_framebuffer(info) < 0)
goto out_unmap;