summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc/mw-fb/mw_fb.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-12-12 03:59:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-12-12 03:59:25 +0000
commit7fe03217c8facf2fd90b29c31928e6d090f4e19c (patch)
treee7dfd9e9146944f1529dc5edab5b25dc4c22cd9f /c/src/libmisc/mw-fb/mw_fb.c
parent2002-12-12 Ralf Corsepius <corsepius@faw.uni-ulm.de> (diff)
downloadrtems-7fe03217c8facf2fd90b29c31928e6d090f4e19c.tar.bz2
2002-12-12 Ralf Corsepius <corsepius@faw.uni-ulm.de>
* .cvsignore: Moved to rtems/cpukit/libmisc. * ChangeLog: Moved to rtems/cpukit/libmisc. * Makefile.am: Moved to rtems/cpukit/libmisc. * README: Moved to rtems/cpukit/libmisc. * configure.ac: Moved to rtems/cpukit/libmisc. * capture/Makefile.am: Moved to rtems/cpukit/libmisc. * capture/README: Moved to rtems/cpukit/libmisc. * capture/capture-cli.c: Moved to rtems/cpukit/libmisc. * capture/capture-cli.h: Moved to rtems/cpukit/libmisc. * capture/capture.c: Moved to rtems/cpukit/libmisc. * capture/capture.h: Moved to rtems/cpukit/libmisc. * cpuuse/Makefile.am: Moved to rtems/cpukit/libmisc. * cpuuse/README: Moved to rtems/cpukit/libmisc. * cpuuse/cpuuse.c: Moved to rtems/cpukit/libmisc. * cpuuse/cpuuse.h: Moved to rtems/cpukit/libmisc. * devnull/.cvsignore: Moved to rtems/cpukit/libmisc. * devnull/Makefile.am: Moved to rtems/cpukit/libmisc. * devnull/devnull.c: Moved to rtems/cpukit/libmisc. * devnull/devnull.h: Moved to rtems/cpukit/libmisc. * dummy/.cvsignore: Moved to rtems/cpukit/libmisc. * dummy/Makefile.am: Moved to rtems/cpukit/libmisc. * dummy/README: Moved to rtems/cpukit/libmisc. * dummy/dummy.c: Moved to rtems/cpukit/libmisc. * dumpbuf/.cvsignore: Moved to rtems/cpukit/libmisc. * dumpbuf/Makefile.am: Moved to rtems/cpukit/libmisc. * dumpbuf/dumpbuf.c: Moved to rtems/cpukit/libmisc. * dumpbuf/dumpbuf.h: Moved to rtems/cpukit/libmisc. * monitor/.cvsignore: Moved to rtems/cpukit/libmisc. * monitor/Makefile.am: Moved to rtems/cpukit/libmisc. * monitor/README: Moved to rtems/cpukit/libmisc. * monitor/mon-command.c: Moved to rtems/cpukit/libmisc. * monitor/mon-config.c: Moved to rtems/cpukit/libmisc. * monitor/mon-dname.c: Moved to rtems/cpukit/libmisc. * monitor/mon-driver.c: Moved to rtems/cpukit/libmisc. * monitor/mon-extension.c: Moved to rtems/cpukit/libmisc. * monitor/mon-itask.c: Moved to rtems/cpukit/libmisc. * monitor/mon-manager.c: Moved to rtems/cpukit/libmisc. * monitor/mon-monitor.c: Moved to rtems/cpukit/libmisc. * monitor/mon-mpci.c: Moved to rtems/cpukit/libmisc. * monitor/mon-object.c: Moved to rtems/cpukit/libmisc. * monitor/mon-prmisc.c: Moved to rtems/cpukit/libmisc. * monitor/mon-queue.c: Moved to rtems/cpukit/libmisc. * monitor/mon-server.c: Moved to rtems/cpukit/libmisc. * monitor/mon-symbols.c: Moved to rtems/cpukit/libmisc. * monitor/mon-task.c: Moved to rtems/cpukit/libmisc. * monitor/monitor.h: Moved to rtems/cpukit/libmisc. * monitor/symbols.h: Moved to rtems/cpukit/libmisc. * mw-fb/.cvsignore: Moved to rtems/cpukit/libmisc. * mw-fb/Makefile.am: Moved to rtems/cpukit/libmisc. * mw-fb/mw_fb.c: Moved to rtems/cpukit/libmisc. * mw-fb/mw_fb.h: Moved to rtems/cpukit/libmisc. * mw-fb/mw_uid.c: Moved to rtems/cpukit/libmisc. * mw-fb/mw_uid.h: Moved to rtems/cpukit/libmisc. * rtmonuse/.cvsignore: Moved to rtems/cpukit/libmisc. * rtmonuse/Makefile.am: Moved to rtems/cpukit/libmisc. * rtmonuse/rtmonuse.c: Moved to rtems/cpukit/libmisc. * rtmonuse/rtmonuse.h: Moved to rtems/cpukit/libmisc. * serdbg/.cvsignore: Moved to rtems/cpukit/libmisc. * serdbg/Makefile.am: Moved to rtems/cpukit/libmisc. * serdbg/README: Moved to rtems/cpukit/libmisc. * serdbg/serdbg.c: Moved to rtems/cpukit/libmisc. * serdbg/serdbg.h: Moved to rtems/cpukit/libmisc. * serdbg/serdbgcnf.h: Moved to rtems/cpukit/libmisc. * serdbg/serdbgio.c: Moved to rtems/cpukit/libmisc. * serdbg/termios_printk.c: Moved to rtems/cpukit/libmisc. * serdbg/termios_printk.h: Moved to rtems/cpukit/libmisc. * serdbg/termios_printk_cnf.h: Moved to rtems/cpukit/libmisc. * shell/.cvsignore: Moved to rtems/cpukit/libmisc. * shell/Makefile.am: Moved to rtems/cpukit/libmisc. * shell/README: Moved to rtems/cpukit/libmisc. * shell/cmds.c: Moved to rtems/cpukit/libmisc. * shell/shell.c: Moved to rtems/cpukit/libmisc. * shell/shell.h: Moved to rtems/cpukit/libmisc. * stackchk/.cvsignore: Moved to rtems/cpukit/libmisc. * stackchk/Makefile.am: Moved to rtems/cpukit/libmisc. * stackchk/README: Moved to rtems/cpukit/libmisc. * stackchk/check.c: Moved to rtems/cpukit/libmisc. * stackchk/internal.h: Moved to rtems/cpukit/libmisc. * stackchk/stackchk.h: Moved to rtems/cpukit/libmisc. * untar/.cvsignore: Moved to rtems/cpukit/libmisc. * untar/Makefile.am: Moved to rtems/cpukit/libmisc. * untar/README: Moved to rtems/cpukit/libmisc. * untar/untar.c: Moved to rtems/cpukit/libmisc. * untar/untar.h: Moved to rtems/cpukit/libmisc. * wrapup/.cvsignore: Moved to rtems/cpukit/libmisc. * wrapup/Makefile.am: Moved to rtems/cpukit/libmisc.
Diffstat (limited to 'c/src/libmisc/mw-fb/mw_fb.c')
-rw-r--r--c/src/libmisc/mw-fb/mw_fb.c137
1 files changed, 0 insertions, 137 deletions
diff --git a/c/src/libmisc/mw-fb/mw_fb.c b/c/src/libmisc/mw-fb/mw_fb.c
deleted file mode 100644
index c54b113654..0000000000
--- a/c/src/libmisc/mw-fb/mw_fb.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
-/////////////////////////////////////////////////////////////////////////////
-// $Header$
-//
-// Copyright (c) 2000 - Rosimildo da Silva
-//
-// MODULE DESCRIPTION:
-// Wrapper API around the ioctls calls for the Micro FrameBuffer
-// interface for Embedded Systems
-//
-// All functions returns 0 on success. Any other value should be
-// decoded as an error. A list of errors will be created over time.
-//
-// MODIFICATION/HISTORY:
-//
-// $Log$
-//
-/////////////////////////////////////////////////////////////////////////////
-*/
-
-#include <sys/ioctl.h>
-#include <rtems/mw_fb.h>
-
-
-/*
- * This function returns the information regarding the display.
- * It is called just after the driver be opened to get all needed
- * information about the driver. No change in the mode of operation
- * of the driver is done with this call.
- */
- int ufb_get_screen_info( int fd, struct fb_screeninfo *info )
- {
- return ioctl( fd, FB_SCREENINFO, ( void *)info);
- }
-
-
-
-/*
- * Returns the mode of the graphics subsystem
- */
- int ufb_get_mode( int fd, int *mode )
- {
- struct fb_exec_function exec;
- exec.func_no = FB_FUNC_GET_MODE;
- exec.param = ( void *)mode;
- return ioctl( fd, FB_EXEC_FUNCTION , ( void *)&exec );
- }
-
-
-/*
- * Returns the current collor pallete
- */
- int ufb_get_palette( int fd, struct fb_cmap *color )
- {
- return ioctl( fd, FB_GETPALETTE, ( void *)color );
- }
-
-
-/*
- * Set the current collor pallete
- */
- int ufb_set_palette( int fd, struct fb_cmap *color )
- {
- return ioctl( fd, FB_SETPALETTE, ( void *)color );
- }
-
-/*
- * Does all necessary initialization to put the device in
- * graphics mode
- */
- int ufb_enter_graphics( int fd, int mode )
- {
- struct fb_exec_function exec;
- exec.func_no = FB_FUNC_ENTER_GRAPHICS;
- exec.param = ( void *)mode;
- return ioctl( fd, FB_EXEC_FUNCTION , ( void *)&exec );
- }
-
-
-/*
- * Switch the device back to the default mode of operation.
- * In most cases it put the device back to plain text mode.
- */
- int ufb_exit_graphics( int fd )
- {
- struct fb_exec_function exec;
- exec.func_no = FB_FUNC_EXIT_GRAPHICS;
- exec.param = 0;
- return ioctl( fd, FB_EXEC_FUNCTION , ( void *)&exec );
- }
-
-/*
- * Tell the driver that the "virtual buffer" is dirty, and an update
- * of it to the real device, maybe a serial/parallel LCD or whatever
- * is required
- */
- int ufb_buffer_is_dirty( int fd )
- {
- struct fb_exec_function exec;
- exec.func_no = FB_FUNC_IS_DIRTY;
- exec.param = 0;
- return ioctl( fd, FB_EXEC_FUNCTION , ( void *)&exec );
- }
-
-
-
-/*
- * This function maps the physical ( kernel mode ) address of the framebuffer device
- * and maps it to the user space address.
- */
- int ufb_mmap_to_user_space( int fd, void **fb_addr, void *physical_addr, unsigned long size )
- {
- #ifdef __rtems__
- /* RTEMS runs in ring 0, and there is no distinction between
- user space and kernel space, so we just return the same
- pointer to the caller.
- */
- *fb_addr = physical_addr;
- return 0;
- #else
- /* other kernels might want to map it to the user space,
- maybe using mmap()
- */
- return 0;
- #endif
-
- }
-
-
-/*
- * This function unmaps memory of the FB from the user's space
- */
- int ufb_unmmap_from_user_space( int fd, void *addr )
- {
- return 0;
- }
-