2020-04-16 09:15:26 +02:00
|
|
|
/*
|
|
|
|
* card_vlist.h
|
|
|
|
*
|
|
|
|
* Created on: 16 Apr 2020
|
|
|
|
* Author: jief
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLATFORM_CARD_VLIST_H_
|
|
|
|
#define PLATFORM_CARD_VLIST_H_
|
|
|
|
|
2020-08-25 17:35:19 +02:00
|
|
|
#include "../Platform/plist/plist.h"
|
2020-08-17 21:40:52 +02:00
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
|
2020-04-16 09:48:13 +02:00
|
|
|
typedef struct {
|
|
|
|
UINT32 Signature;
|
|
|
|
LIST_ENTRY Link;
|
|
|
|
CHAR8 Model[64];
|
|
|
|
UINT32 Id;
|
|
|
|
UINT32 SubId;
|
|
|
|
UINT64 VideoRam;
|
|
|
|
UINTN VideoPorts;
|
|
|
|
BOOLEAN LoadVBios;
|
|
|
|
} CARDLIST;
|
|
|
|
|
|
|
|
|
|
|
|
#define CARDLIST_SIGNATURE SIGNATURE_32('C','A','R','D')
|
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
|
|
|
|
VOID
|
|
|
|
FillCardList (
|
2020-08-25 17:35:19 +02:00
|
|
|
const TagDict* CfgDict
|
2020-04-16 09:15:26 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
CARDLIST
|
|
|
|
*FindCardWithIds (
|
|
|
|
UINT32 Id,
|
|
|
|
UINT32 SubId
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
AddCard (
|
|
|
|
CONST CHAR8 *Model,
|
|
|
|
UINT32 Id,
|
|
|
|
UINT32 SubId,
|
|
|
|
UINT64 VideoRam,
|
|
|
|
UINTN VideoPorts,
|
|
|
|
BOOLEAN LoadVBios
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* PLATFORM_CARD_VLIST_H_ */
|