hardwaredb/lists/hardware.h

77 lines
1.5 KiB
C
Raw Normal View History

#pragma once
using namespace std;
class Hardware {
public:
std::string manufacturer;
std::string model;
int ReleasedYear;
};
2025-01-28 20:59:13 -07:00
class Mobo: public Hardware {
public:
int pciegen;
int piceslots;
int dimmslots;
int dualchannel; // This is an int so 1 = dualchannel and 2 = quad channel
int ramspeed;
std::string comment;
Mobo() {
manufacturer = "Forest Gnomes";
model = "HoneyJar";
ReleasedYear = 2025;
pciegen = 4;
piceslots = 3;
dimmslots = 2;
dualchannel = 1;
ramspeed = 6000;
comment = "If on AM5 platform - update BIOS before booting!";
};
};
class CPU: public Hardware {
public:
bool bits64;
2025-01-28 20:59:13 -07:00
bool igpu;
int igpusize;
int cores;
int threads;
2025-01-28 20:59:13 -07:00
int l1cache;
int l2cache;
int l3cache;
int pcielanes;
int maxram;
float mainclock;
float boostclock;
std::string architecture;
2025-01-28 13:38:55 -07:00
std::string memoryrange;
2025-01-28 20:59:13 -07:00
std::string microcode;
std::string kerneldriver;
std::string comment; // This shoule be used to warn the user about updating BIOS on AM5 before booting
CPU() {
2025-01-28 20:59:13 -07:00
manufacturer = "Forest Gnomes";
model = "HoneyPot";
ReleasedYear = 2025;
bits64 = true;
2025-01-28 20:59:13 -07:00
igpu = false;
igpusize = 0;
cores = 4;
threads = 2;
2025-01-28 20:59:13 -07:00
l1cache = 32;
l2cache = 32;
l3cache = 32;
pcielanes = 24;
maxram = 128;
mainclock = 2;
boostclock = 2.2;
architecture = "x86_64";
memoryrange = "00:00";
2025-01-28 20:59:13 -07:00
microcode = "acorns";
kerneldriver = "Forest Gnome Special";
comment = "";
};
};