2020-03-22 22:11:55 -03:00
|
|
|
/*
|
2022-11-13 16:37:58 -05:00
|
|
|
* 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.
|
2020-03-22 22:11:55 -03:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* This file is part of the 86Box distribution.
|
2020-03-22 22:11:55 -03:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* Common functions for hardware monitoring chips.
|
2020-03-22 22:11:55 -03:00
|
|
|
*
|
2020-03-25 00:46:02 +02:00
|
|
|
*
|
2020-03-22 22:11:55 -03:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* Authors: RichardG, <richardg867@gmail.com>
|
2020-05-18 22:54:59 -03:00
|
|
|
*
|
2022-11-13 16:37:58 -05:00
|
|
|
* Copyright 2020 RichardG.
|
2020-03-22 22:11:55 -03:00
|
|
|
*/
|
|
|
|
|
|
2020-10-30 20:41:15 -03:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <stdio.h>
|
2020-03-23 09:17:55 +01:00
|
|
|
#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>
|
2020-03-29 14:24:42 +02:00
|
|
|
#include <86box/device.h>
|
2020-10-30 20:41:15 -03:00
|
|
|
#include "cpu.h"
|
|
|
|
|
#include <86box/machine.h>
|
2020-03-29 14:24:42 +02:00
|
|
|
#include <86box/hwm.h>
|
2020-03-22 22:11:55 -03:00
|
|
|
|
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-03-22 22:11:55 -03:00
|
|
|
|
2020-10-30 20:41:15 -03:00
|
|
|
uint16_t
|
2022-11-17 22:44:06 +01:00
|
|
|
hwm_get_vcore(void)
|
2020-03-22 22:11:55 -03:00
|
|
|
{
|
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;
|
2020-03-22 22:11:55 -03:00
|
|
|
}
|