#include "framebuffer.h"
#include <stdio.h>
#include <errno.h>
#include <sysfs/libsysfs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
Functions | |
int | g13_device_get_fb_node (g13_device *device) |
Returns the framebuffer node number of the specified device. | |
int | g13_device_framebuffer_open (g13_device *device, G13Mode mode) |
Opens the framebuffer device of the specified g13 device. | |
unsigned char * | g13_device_framebuffer_mmap (g13_device *device, G13Mode mode) |
int | g13_device_framebuffer_munmap (unsigned char *map) |
unsigned char* g13_device_framebuffer_mmap | ( | g13_device * | device, | |
G13Mode | mode | |||
) |
References g13_device_framebuffer_open(), G13_FRAMEBUFFER_SIZE, G13_RD, G13_RDWR, and G13_WR.
Referenced by cairo_g13_surface_create().
int g13_device_framebuffer_munmap | ( | unsigned char * | map | ) |
References G13_FRAMEBUFFER_SIZE.
int g13_device_framebuffer_open | ( | g13_device * | device, | |
G13Mode | mode | |||
) |
Opens the framebuffer device of the specified g13 device.
flags | Must be one of O_RDONLY , O_WRONLY or O_RDWR |
The returned file descriptor should be closed with close()
References g13_device_get_fb_node(), G13_RD, G13_RDWR, and G13_WR.
Referenced by g13_device_framebuffer_mmap().
int g13_device_get_fb_node | ( | g13_device * | device | ) |
Returns the framebuffer node number of the specified device.
References g13_device_get_syspath().
Referenced by g13_device_framebuffer_open().