Changeset 311ba73 in rtems


Ignore:
Timestamp:
06/23/13 15:50:55 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
a4006fee
Parents:
98db96e
git-author:
Sebastian Huber <sebastian.huber@…> (06/23/13 15:50:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/29/13 13:15:49)
Message:

framebuffer: Add and use FRAMEBUFFER_DEVICE_0_NAME

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gumstix/fb/fb.c

    r98db96e r311ba73  
    100100   * Register the device
    101101   */
    102   status = rtems_io_register_name ("/dev/fb0", major, 0);
     102  status = rtems_io_register_name (FRAMEBUFFER_DEVICE_0_NAME, major, 0);
    103103  if (status != RTEMS_SUCCESSFUL)
    104104    {
  • c/src/lib/libbsp/arm/nds/fb/fb.c

    r98db96e r311ba73  
    7373
    7474  /* register the devices */
    75   status = rtems_io_register_name ("/dev/fb0", major, 0);
     75  status = rtems_io_register_name (FRAMEBUFFER_DEVICE_0_NAME, major, 0);
    7676  if (status != RTEMS_SUCCESSFUL) {
    7777    printk ("[!] error registering framebuffer\n");
    7878    rtems_fatal_error_occurred (status);
    7979  }
    80   status = rtems_io_register_name ("/dev/fb1", major, 1);
     80  status = rtems_io_register_name (FRAMEBUFFER_DEVICE_NAME "1", major, 1);
    8181  if (status != RTEMS_SUCCESSFUL) {
    8282    printk ("[!] error registering framebuffer\n");
  • c/src/lib/libbsp/i386/pc386/console/fb_cirrus.c

    r98db96e r311ba73  
    326326       * Register the device
    327327       */
    328       status = rtems_io_register_name ("/dev/fb0", major, 0);
     328      status = rtems_io_register_name (FRAMEBUFFER_DEVICE_0_NAME, major, 0);
    329329      if (status != RTEMS_SUCCESSFUL) {
    330           printk("Error registering /dev/fb0 FB_CIRRUS framebuffer device!\n");
     330          printk("Error registering " FRAMEBUFFER_DEVICE_0_NAME
     331                 " FB_CIRRUS framebuffer device!\n");
    331332          rtems_fatal_error_occurred( status );
    332333      }
  • c/src/lib/libbsp/i386/pc386/console/fb_vga.c

    r98db96e r311ba73  
    8181   * Register the device
    8282   */
    83   status = rtems_io_register_name ("/dev/fb0", major, 0);
     83  status = rtems_io_register_name (FRAMEBUFFER_DEVICE_0_NAME, major, 0);
    8484  if (status != RTEMS_SUCCESSFUL) {
    85     printk("Error registering /dev/fb0 FBVGA framebuffer device!\n");
     85    printk("Error registering " FRAMEBUFFER_DEVICE_0_NAME
     86           " FBVGA framebuffer device!\n");
    8687    rtems_fatal_error_occurred( status );
    8788  }
  • c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c

    r98db96e r311ba73  
    2222#include <rtems/libio.h>
    2323#include <rtems/fb.h>
    24 
    25 #define FRAMEBUFFER_DEVICE_NAME "/dev/fb"
     24#include <rtems/framebuffer.h>
    2625
    2726static unsigned short int framebufferA[1024*768]
     
    150149  MM_WRITE(MM_VGA_BASEADDRESS, (unsigned int)frontbuffer);
    151150
    152   status = rtems_io_register_name(FRAMEBUFFER_DEVICE_NAME, major, 0);
     151  status = rtems_io_register_name(FRAMEBUFFER_DEVICE_0_NAME, major, 0);
    153152  if (status != RTEMS_SUCCESSFUL) {
    154153    printk("Error registering frame buffer device!\n");
  • cpukit/libcsupport/include/rtems/framebuffer.h

    r98db96e r311ba73  
    1919#define __RTEMS_FRAMEBUFFER_h__
    2020
     21#include <rtems/io.h>
     22
    2123#ifdef __cplusplus
    2224extern "C" {
     
    2830 */
    2931#define FRAMEBUFFER_DEVICE_NAME "/dev/fb"
     32
     33/**
     34 * @brief Standard device file path of first frame buffer device.
     35 *
     36 * This device is the default frame buffer device for the Microwindows Screen
     37 * Driver.
     38 */
     39#define FRAMEBUFFER_DEVICE_0_NAME "/dev/fb0"
    3040
    3141/**
Note: See TracChangeset for help on using the changeset viewer.