Browse Source

lowl-pci: Never probe via -S *:all

Luke Dashjr 11 years ago
parent
commit
a2e4740a47
3 changed files with 5 additions and 0 deletions
  1. 1 0
      lowl-pci.c
  2. 2 0
      lowlevel.h
  3. 2 0
      miner.c

+ 1 - 0
lowl-pci.c

@@ -490,4 +490,5 @@ void lowl_pci_close(struct lowl_pci_handle * const lph)
 struct lowlevel_driver lowl_pci = {
 	.dname = "pci",
 	.devinfo_scan = pci_devinfo_scan,
+	.exclude_from_all = true,
 };

+ 2 - 0
lowlevel.h

@@ -13,6 +13,8 @@ typedef bool (*lowl_found_devinfo_func_t)(struct lowlevel_device_info *, void *)
 
 struct lowlevel_driver {
 	const char *dname;
+	bool exclude_from_all;
+	
 	struct lowlevel_device_info *(*devinfo_scan)();
 	void (*devinfo_free)(struct lowlevel_device_info *);
 };

+ 2 - 0
miner.c

@@ -10901,6 +10901,8 @@ void *probe_device_thread(void *p)
 		const size_t dnamelen = (colon - dname);
 		LL_FOREACH2(infolist, info, same_devid_next)
 		{
+			if (info->lowl->exclude_from_all)
+				continue;
 			if (_probe_device_internal(info, dname, dnamelen))
 				return NULL;
 		}