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
|
|
|
|
2021-02-06 18:16:46 +01:00
|
|
|
class CARDLIST {
|
|
|
|
public:
|
|
|
|
UINT32 Signature = 0;
|
|
|
|
XString8 Model = XString8();
|
|
|
|
UINT32 Id = 0;
|
|
|
|
UINT32 SubId = 0;
|
|
|
|
UINT64 VideoRam = 0;
|
|
|
|
UINTN VideoPorts = 0;
|
|
|
|
BOOLEAN LoadVBios = 0;
|
|
|
|
|
|
|
|
CARDLIST() {}
|
|
|
|
CARDLIST(const CARDLIST& other) = delete; // Can be defined if needed
|
|
|
|
const CARDLIST& operator = ( const CARDLIST & ) = delete; // Can be defined if needed
|
|
|
|
~CARDLIST() {}
|
|
|
|
};
|
2020-04-16 09:48:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
#define CARDLIST_SIGNATURE SIGNATURE_32('C','A','R','D')
|
|
|
|
|
2020-04-16 09:15:26 +02:00
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
void
|
2020-04-16 09:15:26 +02:00
|
|
|
FillCardList (
|
2020-08-25 17:35:19 +02:00
|
|
|
const TagDict* CfgDict
|
2020-04-16 09:15:26 +02:00
|
|
|
);
|
|
|
|
|
2021-02-06 18:16:46 +01:00
|
|
|
const CARDLIST*
|
|
|
|
FindCardWithIds (
|
2020-04-16 09:15:26 +02:00
|
|
|
UINT32 Id,
|
|
|
|
UINT32 SubId
|
|
|
|
);
|
|
|
|
|
2020-10-03 19:02:31 +02:00
|
|
|
void
|
2020-04-16 09:15:26 +02:00
|
|
|
AddCard (
|
|
|
|
CONST CHAR8 *Model,
|
|
|
|
UINT32 Id,
|
|
|
|
UINT32 SubId,
|
|
|
|
UINT64 VideoRam,
|
|
|
|
UINTN VideoPorts,
|
|
|
|
BOOLEAN LoadVBios
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* PLATFORM_CARD_VLIST_H_ */
|