Include guards

This commit is contained in:
2026-09-30 00:40:25 -07:00
parent a8bea7b62c
commit f6efb12fdb
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -22,8 +22,8 @@ debug : CFLAGS += -g -Og
debug : evga-icx
clean :
rm evga-icx
rm *.o
rm *.d
rm evga-icx
-include $(OBJS:.o=.d)
+2 -1
View File
@@ -3,7 +3,8 @@
#include "card.h"
#endif
int find_blackwell_gpus(struct card_info *infos, int num_gpus, int max_gpus);
void print_blackwell_info(int compact, int overwrite, struct card_info *gpu);
#endif
+4
View File
@@ -1,3 +1,6 @@
#ifndef CARD_H
#define CARD_H
#define NVIDIA_VEN 0x10DE
#define NVIDIA_RTX3060_DEV 0x2503
@@ -36,3 +39,4 @@ struct card_info {
unsigned short read_pci_id(char *device_path, char *field);
char *read_nvidia_pci_address(char *device_path);
void mmap_bar0(struct card_info *card);
#endif
+3
View File
@@ -1,3 +1,5 @@
#ifndef GDDR6_H
#define GDDR6_H
#include "evga-card.h"
struct device_offset {
@@ -8,3 +10,4 @@ struct device_offset {
float get_vram_temp(struct card_info *card);
float get_hotspot_temp(struct card_info *card);
#endif