Include guards
This commit is contained in:
@@ -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)
|
||||
+3
-2
@@ -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);
|
||||
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_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
|
||||
Reference in New Issue
Block a user