Include guards
This commit is contained in:
@@ -22,8 +22,8 @@ debug : CFLAGS += -g -Og
|
|||||||
debug : evga-icx
|
debug : evga-icx
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm evga-icx
|
|
||||||
rm *.o
|
rm *.o
|
||||||
rm *.d
|
rm *.d
|
||||||
|
rm evga-icx
|
||||||
|
|
||||||
-include $(OBJS:.o=.d)
|
-include $(OBJS:.o=.d)
|
||||||
+3
-2
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
#include "card.h"
|
#include "card.h"
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int find_blackwell_gpus(struct card_info *infos, int num_gpus, int max_gpus);
|
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);
|
void print_blackwell_info(int compact, int overwrite, struct card_info *gpu);
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
#ifndef CARD_H
|
||||||
|
#define CARD_H
|
||||||
|
|
||||||
#define NVIDIA_VEN 0x10DE
|
#define NVIDIA_VEN 0x10DE
|
||||||
|
|
||||||
#define NVIDIA_RTX3060_DEV 0x2503
|
#define NVIDIA_RTX3060_DEV 0x2503
|
||||||
@@ -36,3 +39,4 @@ struct card_info {
|
|||||||
unsigned short read_pci_id(char *device_path, char *field);
|
unsigned short read_pci_id(char *device_path, char *field);
|
||||||
char *read_nvidia_pci_address(char *device_path);
|
char *read_nvidia_pci_address(char *device_path);
|
||||||
void mmap_bar0(struct card_info *card);
|
void mmap_bar0(struct card_info *card);
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#ifndef GDDR6_H
|
||||||
|
#define GDDR6_H
|
||||||
#include "evga-card.h"
|
#include "evga-card.h"
|
||||||
|
|
||||||
struct device_offset {
|
struct device_offset {
|
||||||
@@ -8,3 +10,4 @@ struct device_offset {
|
|||||||
|
|
||||||
float get_vram_temp(struct card_info *card);
|
float get_vram_temp(struct card_info *card);
|
||||||
float get_hotspot_temp(struct card_info *card);
|
float get_hotspot_temp(struct card_info *card);
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user