mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
33 lines
584 B
C
33 lines
584 B
C
#ifndef __SOC__
|
|
#define __SOC__
|
|
|
|
#include "../common/cpu.h"
|
|
#include <stdint.h>
|
|
|
|
typedef int32_t SOC;
|
|
|
|
enum {
|
|
SOC_VENDOR_UNKNOWN,
|
|
SOC_VENDOR_SNAPDRAGON,
|
|
SOC_VENDOR_MEDIATEK,
|
|
SOC_VENDOR_EXYNOS,
|
|
SOC_VENDOR_KIRIN,
|
|
SOC_VENDOR_BROADCOM,
|
|
SOC_VENDOR_APPLE
|
|
};
|
|
|
|
struct system_on_chip {
|
|
SOC soc_model;
|
|
VENDOR soc_vendor;
|
|
int32_t process;
|
|
char* soc_name;
|
|
char* raw_name;
|
|
};
|
|
|
|
struct system_on_chip* get_soc();
|
|
char* get_soc_name(struct system_on_chip* soc);
|
|
VENDOR get_soc_vendor(struct system_on_chip* soc);
|
|
char* get_str_process(struct system_on_chip* soc);
|
|
|
|
#endif
|