Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 418
b: refs/heads/master
c: 6ee7c15
h: refs/heads/master
v: v3
  • Loading branch information
Tom 'spot' Callaway authored and David S. Miller committed Apr 25, 2005
1 parent a0aeed0 commit 3060ef2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a271c241a6036d4d583d0f47a02ba5f18b8b92b5
refs/heads/master: 6ee7c15294985e4e722959fd4482df60cefd2cc8
14 changes: 13 additions & 1 deletion trunk/drivers/video/tcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static int tcx_blank(int, struct fb_info *);
static int tcx_mmap(struct fb_info *, struct file *, struct vm_area_struct *);
static int tcx_ioctl(struct inode *, struct file *, unsigned int,
unsigned long, struct fb_info *);
static int tcx_pan_display(struct fb_var_screeninfo *, struct fb_info *);

/*
* Frame buffer operations
Expand All @@ -45,6 +46,7 @@ static struct fb_ops tcx_ops = {
.owner = THIS_MODULE,
.fb_setcolreg = tcx_setcolreg,
.fb_blank = tcx_blank,
.fb_pan_display = tcx_pan_display,
.fb_fillrect = cfb_fillrect,
.fb_copyarea = cfb_copyarea,
.fb_imageblit = cfb_imageblit,
Expand Down Expand Up @@ -153,6 +155,12 @@ static void tcx_reset (struct fb_info *info)
spin_unlock_irqrestore(&par->lock, flags);
}

static int tcx_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
{
tcx_reset(info);
return 0;
}

/**
* tcx_setcolreg - Optional function. Sets a color register.
* @regno: boolean, 0 copy local, 1 get_user() function
Expand Down Expand Up @@ -366,6 +374,9 @@ static void tcx_init_one(struct sbus_dev *sdev)
all->par.lowdepth = prom_getbool(sdev->prom_node, "tcx-8-bit");

sbusfb_fill_var(&all->info.var, sdev->prom_node, 8);
all->info.var.red.length = 8;
all->info.var.green.length = 8;
all->info.var.blue.length = 8;

linebytes = prom_getintdefault(sdev->prom_node, "linebytes",
all->info.var.xres);
Expand Down Expand Up @@ -439,6 +450,7 @@ static void tcx_init_one(struct sbus_dev *sdev)
return;
}

fb_set_cmap(&all->info.cmap, &all->info);
tcx_init_fix(&all->info, linebytes);

if (register_framebuffer(&all->info) < 0) {
Expand Down Expand Up @@ -466,7 +478,7 @@ int __init tcx_init(void)
return -ENODEV;

for_all_sbusdev(sdev, sbus) {
if (!strcmp(sdev->prom_name, "tcx"))
if (!strcmp(sdev->prom_name, "SUNW,tcx"))
tcx_init_one(sdev);
}

Expand Down

0 comments on commit 3060ef2

Please sign in to comment.