patch-2.4.3 linux/drivers/video/fbmem.c
Next file: linux/drivers/video/fonts.c
Previous file: linux/drivers/video/fbgen.c
Back to the patch index
Back to the overall index
- Lines: 104
- Date:
Fri Mar 2 18:38:39 2001
- Orig file:
v2.4.2/linux/drivers/video/fbmem.c
- Orig date:
Wed Feb 21 18:20:37 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/video/fbmem.c linux/drivers/video/fbmem.c
@@ -3,6 +3,9 @@
*
* Copyright (C) 1994 Martin Schaller
*
+ * 2001 - Documented with DocBook
+ * - Brad Douglas <brad@neruo.com>
+ *
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
@@ -115,6 +118,8 @@
extern int sisfb_setup(char*);
extern int stifb_init(void);
extern int stifb_setup(char*);
+extern int radeonfb_init(void);
+extern int radeonfb_setup(char*);
static struct {
const char *name;
@@ -167,6 +172,9 @@
#ifdef CONFIG_FB_RIVA
{ "riva", rivafb_init, rivafb_setup },
#endif
+#ifdef CONFIG_FB_RADEON
+ { "radeon", radeonfb_init, radeonfb_setup },
+#endif
#ifdef CONFIG_FB_CONTROL
{ "controlfb", control_init, control_setup },
#endif
@@ -683,6 +691,17 @@
static devfs_handle_t devfs_handle;
+
+/**
+ * register_framebuffer - registers a frame buffer device
+ * @fb_info: frame buffer info structure
+ *
+ * Registers a frame buffer device @fb_info.
+ *
+ * Returns negative errno on error, or zero for success.
+ *
+ */
+
int
register_framebuffer(struct fb_info *fb_info)
{
@@ -732,6 +751,17 @@
return 0;
}
+
+/**
+ * unregister_framebuffer - releases a frame buffer device
+ * @fb_info: frame buffer info structure
+ *
+ * Unregisters a frame buffer device @fb_info.
+ *
+ * Returns negative errno on error, or zero for success.
+ *
+ */
+
int
unregister_framebuffer(struct fb_info *fb_info)
{
@@ -752,6 +782,16 @@
return 0;
}
+
+/**
+ * fbmem_init - init frame buffer subsystem
+ *
+ * Initialize the frame buffer subsystem.
+ *
+ * NOTE: This function is _only_ to be called by drivers/char/mem.c.
+ *
+ */
+
void __init
fbmem_init(void)
{
@@ -781,9 +821,18 @@
fb_drivers[i].init();
}
- /*
- * Command line options
- */
+
+/**
+ * video_setup - process command line options
+ * @options: string of options
+ *
+ * Process command line options for frame buffer subsystem.
+ *
+ * NOTE: This function is a __setup and __init function.
+ *
+ * Returns zero.
+ *
+ */
int __init video_setup(char *options)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)