mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-31 17:30:58 +02:00
adding armbox
Origin commit data
------------------
Branch: master
Commit: d8c3c47b86
Author: TangoCash <eric@loxat.de>
Date: 2017-09-12 (Tue, 12 Sep 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
43
libarmbox/hardware_caps.c
Normal file
43
libarmbox/hardware_caps.c
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* determine the capabilities of the hardware.
|
||||
* part of libstb-hal
|
||||
*
|
||||
* (C) 2010-2012 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 <sys/ioctl.h>
|
||||
|
||||
#include <hardware_caps.h>
|
||||
|
||||
#define FP_DEV "/dev/vfd"
|
||||
static int initialized = 0;
|
||||
static hw_caps_t caps;
|
||||
|
||||
hw_caps_t *get_hwcaps(void)
|
||||
{
|
||||
if (initialized)
|
||||
return ∩︀
|
||||
|
||||
memset(&caps, 0, sizeof(hw_caps_t));
|
||||
|
||||
initialized = 1;
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
caps.can_set_display_brightness = 0;
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 4;
|
||||
strcpy(caps.boxvendor, "armbox");
|
||||
strcpy(caps.boxname, "armbox");
|
||||
strcpy(caps.boxarch,caps.boxname);
|
||||
return ∩︀
|
||||
}
|
Reference in New Issue
Block a user