patch-2.4.4 linux/drivers/video/fbmem.c
Next file: linux/drivers/video/hitfb.c
Previous file: linux/drivers/video/epson1355fb.c
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Wed Apr 25 16:31:16 2001
- Orig file:
v2.4.3/linux/drivers/video/fbmem.c
- Orig date:
Fri Mar 2 18:38:39 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/video/fbmem.c linux/drivers/video/fbmem.c
@@ -120,7 +120,10 @@
extern int stifb_setup(char*);
extern int radeonfb_init(void);
extern int radeonfb_setup(char*);
-
+extern int e1355fb_init(void);
+extern int e1355fb_setup(char*);
+extern int dcfb_init(void);
+
static struct {
const char *name;
int (*init)(void);
@@ -264,6 +267,12 @@
#ifdef CONFIG_FB_HIT
{ "hitfb", hitfb_init, NULL },
#endif
+#ifdef CONFIG_FB_E1355
+ { "e1355fb", e1355fb_init, e1355fb_setup },
+#endif
+#ifdef CONFIG_FB_DC
+ { "dcfb", dcfb_init, NULL },
+#endif
/*
* Generic drivers that don't use resource management (yet)
@@ -562,22 +571,6 @@
vma->vm_pgoff = off >> PAGE_SHIFT;
#if defined(__sparc_v9__)
vma->vm_flags |= (VM_SHM | VM_LOCKED);
- {
- unsigned long align, j;
- for (align = 0x400000; align > PAGE_SIZE; align >>= 3)
- if (len >= align && !((start & ~PAGE_MASK) & (align - 1)))
- break;
- if (align > PAGE_SIZE && vma->vm_start & (align - 1)) {
- /* align as much as possible */
- struct vm_area_struct *vmm;
- j = (-vma->vm_start) & (align - 1);
- vmm = find_vma(current->mm, vma->vm_start);
- if (!vmm || vmm->vm_start >= vma->vm_end + j) {
- vma->vm_start += j;
- vma->vm_end += j;
- }
- }
- }
if (io_remap_page_range(vma->vm_start, off,
vma->vm_end - vma->vm_start, vma->vm_page_prot, 0))
return -EAGAIN;
@@ -687,6 +680,9 @@
mmap: fb_mmap,
open: fb_open,
release: fb_release,
+#ifdef HAVE_ARCH_FB_UNMAPPED_AREA
+ get_unmapped_area: get_fb_unmapped_area,
+#endif
};
static devfs_handle_t devfs_handle;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)