mirror of
https://github.com/AuxXxilium/arc-lkm.git
synced 2024-11-23 14:50:57 +07:00
d288da5003
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
19 lines
476 B
C
Executable File
19 lines
476 B
C
Executable File
#ifndef REDPILL_VPCI_LIMITS_H
|
|
#define REDPILL_VPCI_LIMITS_H
|
|
|
|
#include "../shim/pci_shim.h" //pci_shim_device_type
|
|
|
|
//Defines below are experimentally determined to be sufficient but can often be changed
|
|
#define MAX_VPCI_BUSES 8 //adjust if needed, max 256
|
|
#define MAX_VPCI_DEVS 16 //adjust if needed, max 256*32=8192
|
|
|
|
struct vpci_device_stub {
|
|
enum pci_shim_device_type type;
|
|
u8 bus;
|
|
u8 dev;
|
|
u8 fn;
|
|
bool multifunction:1;
|
|
};
|
|
|
|
#endif //REDPILL_VPCI_LIMITS_H
|