Browse Source

RPC: Update to work with Cairnsmore

Luke Dashjr 13 years ago
parent
commit
ea2e301a79
1 changed files with 5 additions and 0 deletions
  1. 5 0
      api.c

+ 5 - 0
api.c

@@ -587,6 +587,7 @@ extern struct device_api bitforce_api;
 #endif
 #endif
 
 
 #ifdef USE_ICARUS
 #ifdef USE_ICARUS
+extern struct device_api cairnsmore_api;
 extern struct device_api icarus_api;
 extern struct device_api icarus_api;
 #endif
 #endif
 
 
@@ -1018,6 +1019,8 @@ static int numpgas()
 			count++;
 			count++;
 #endif
 #endif
 #ifdef USE_ICARUS
 #ifdef USE_ICARUS
+		if (devices[i]->api == &cairnsmore_api)
+			count++;
 		if (devices[i]->api == &icarus_api)
 		if (devices[i]->api == &icarus_api)
 			count++;
 			count++;
 #endif
 #endif
@@ -1044,6 +1047,8 @@ static int pgadevice(int pgaid)
 			count++;
 			count++;
 #endif
 #endif
 #ifdef USE_ICARUS
 #ifdef USE_ICARUS
+		if (devices[i]->api == &cairnsmore_api)
+			count++;
 		if (devices[i]->api == &icarus_api)
 		if (devices[i]->api == &icarus_api)
 			count++;
 			count++;
 #endif
 #endif