Reduced number of syscalls
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#ifndef EVGA_CARD_H
|
||||
#define EVGA_CARD_H
|
||||
|
||||
#define NVIDIA_VEN 0x10DE
|
||||
|
||||
#define NVIDIA_RTX3060_DEV 0x2503
|
||||
@@ -85,6 +88,7 @@ struct card_info {
|
||||
char *pci_id;
|
||||
char *i2c_dev_path;
|
||||
int i2c_fd;
|
||||
int product_id;
|
||||
};
|
||||
|
||||
struct gpu_pci_info {
|
||||
@@ -159,3 +163,5 @@ static struct gpu_pci_info evga_pci_ids[] =
|
||||
int find_evga_gpu_i2cs(struct card_info *infos, int max_gpus);
|
||||
unsigned short read_pci_id(char *device_path, char *field);
|
||||
char *read_nvidia_pci_address(char *device_path);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user