Reduced number of syscalls

This commit is contained in:
2025-02-01 08:04:41 -08:00
parent afdddabc0c
commit 34bbcf7883
5 changed files with 82 additions and 99 deletions
+6
View File
@@ -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