Files
recycled-ni-libstb-hal/libraspi/hardware_caps.c
vanhofen 89efe1a366 introduce can_cpufreq to control the cpu frequency
Origin commit data
------------------
Branch: master
Commit: 6866feb9f7
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-08-30 (Sun, 30 Aug 2020)

Origin message was:
------------------
- introduce can_cpufreq to control the cpu frequency

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-08-30 22:46:26 +02:00

41 lines
775 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_cpufreq = 0;
caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1;
caps.display_xres = 8;
caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
strcpy(caps.boxvendor, "Raspberry");
strcpy(caps.boxname, "Pi");
return &caps;
}