2019-09-03 11:58:42 +02:00
|
|
|
#ifndef __LIBSAIO_GMA_H
|
|
|
|
#define __LIBSAIO_GMA_H
|
2020-08-17 21:40:52 +02:00
|
|
|
|
2021-04-28 20:30:34 +02:00
|
|
|
#include "MacOsVersion.h"
|
|
|
|
#include "../include/Pci.h"
|
2019-09-03 11:58:42 +02:00
|
|
|
|
2021-04-28 20:30:34 +02:00
|
|
|
//#include "device_inject.h"
|
|
|
|
//#include "../gui/menu_items/menu_items.h"
|
|
|
|
|
2021-09-28 10:28:45 +02:00
|
|
|
//XBool setup_gma_devprop(LOADER_ENTRY *Entry, pci_dt_t *gma_dev); // do not use LOADER_ENTRY to avoid dependency
|
|
|
|
XBool setup_gma_devprop(const MacOsVersion& macOSVersion, const XString8& BuildVersion, EFI_FILE* RootDir, pci_dt_t *gma_dev);
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
struct gma_gpu_t {
|
|
|
|
UINT32 device;
|
2020-02-17 21:41:09 +01:00
|
|
|
CONST CHAR8 *name;
|
2019-09-03 11:58:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
Chameleon
|
|
|
|
uint32_t ram = (((getVBEVideoRam() + 512) / 1024) + 512) / 1024;
|
|
|
|
uint32_t ig_platform_id;
|
|
|
|
switch (ram)
|
|
|
|
{
|
|
|
|
case 96:
|
|
|
|
ig_platform_id = 0x01660000; // 96mb
|
|
|
|
break;
|
|
|
|
case 64:
|
|
|
|
ig_platform_id = 0x01660009; // 64mb
|
|
|
|
break;
|
|
|
|
case 32:
|
|
|
|
ig_platform_id = 0x01620005; // 32mb
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
*/
|
2020-04-16 09:15:26 +02:00
|
|
|
|
|
|
|
CONST CHAR8
|
|
|
|
*get_gma_model (
|
|
|
|
IN UINT16 DeviceID
|
|
|
|
);
|
2019-09-03 11:58:42 +02:00
|
|
|
|
|
|
|
#endif /* !__LIBSAIO_GMA_H */
|