Files
recycled-ni-libstb-hal/raspi/hardware_caps.c
Stefan Seyfried 5f500b2144 add skeleton for Raspberry Pi support
no audio / video decoding, yet :-(


Origin commit data
------------------
Branch: master
Commit: 92edef3e48
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-10-05 (Sat, 05 Oct 2013)



------------------
This commit was generated by Migit
2013-10-05 22:02:13 +02:00

38 lines
683 B
C

/*
* determine the capabilities of the hardware.
* part of libstb-hal
*
* (C) 2010-2013 Stefan Seyfried
*
* License: GPL v2 or later
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <hardware_caps.h>
static int initialized = 0;
static hw_caps_t caps;
hw_caps_t *get_hwcaps(void)
{
if (initialized)
return &caps;
memset(&caps, 0, sizeof(hw_caps_t));
initialized = 1;
caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1;
caps.display_xres = 8;
strcpy(caps.boxvendor, "Raspberry");
strcpy(caps.boxname, "Pi");
return &caps;
}