Files
86Box/src/device/hwm.c

39 lines
950 B
C
Raw Normal View History

/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box distribution.
*
* Common functions for hardware monitoring chips.
*
2020-03-25 00:46:02 +02:00
*
*
* Authors: RichardG, <richardg867@gmail.com>
2020-05-18 22:54:59 -03:00
*
* Copyright 2020 RichardG.
*/
2020-10-30 20:41:15 -03:00
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
2020-10-30 20:41:15 -03:00
#include <stdlib.h>
#include <string.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/device.h>
2020-10-30 20:41:15 -03:00
#include "cpu.h"
#include <86box/machine.h>
#include <86box/hwm.h>
2020-10-30 20:41:15 -03:00
/* Refer to specific hardware monitor implementations for the meaning of hwm_values. */
2022-09-18 17:13:28 -04:00
hwm_values_t hwm_values;
2020-10-30 20:41:15 -03:00
uint16_t
hwm_get_vcore(void)
{
2020-10-30 20:41:15 -03:00
/* Determine Vcore for the active CPU. */
2020-11-18 01:09:17 -03:00
return cpu_s->voltage;
}