]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update trbflash with new hardware ids for Dirich family
authorJan Michel <j.michel@gsi.de>
Wed, 6 Jul 2016 13:04:13 +0000 (15:04 +0200)
committerJan Michel <j.michel@gsi.de>
Wed, 6 Jul 2016 13:04:13 +0000 (15:04 +0200)
.gitignore
libtrbnet/trbflash.c

index b2b429c6a8eadb9af24654210e1c940250f8b84f..9fb33b5377fb3a9082ba79cc44654d6c4faeca26 100644 (file)
@@ -48,3 +48,7 @@ trbnetd/trbrpc.h
 trbnetd/trbrpc_clnt.c
 trbnetd/trbrpc_svc.c
 trbnetd/trbrpc_xdr.c
+bin
+binlocal
+include
+.kateproject.d
index 3f40b825a86b90a50032e93c6d58704d5eaa7e91..edb6eed7ba3c707d9c2a35c461ac8e1e739bb74f 100644 (file)
@@ -92,7 +92,9 @@ typedef enum
     
     CBM_RICH_1 = 19,
     CBM_TOF_1 = 20,
-    FLASH_TRB3SC = 21
+    FLASH_TRB3SC = 21,
+    FLASH_DIRICH = 22,
+    FLASH_DIRICH_CONCENTRATOR = 23
     
   } FlashType;
 
@@ -118,7 +120,9 @@ static const char FlashTypeStr[][32] = {
   "TRB3 FPGA 4",
   "CBM RICH V1",
   "CBM TOF V1",
-  "TRB3sc"
+  "TRB3sc",
+  "Dirich",
+  "DirichConcentrator"
 };
 
 typedef struct {
@@ -348,6 +352,20 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     strcpy(flashParam->allowedStringId[0], "trb3sc");
     flashParam->numPages = 32768;
     break;    
+
+  case 0x9600:
+    flashParam->flashType = FLASH_DIRICH;
+    flashParam->manId = 0x18ba20;
+    strcpy(flashParam->allowedStringId[0], "dirich");
+    flashParam->numPages = 32768;
+    break;    
+
+  case 0x9700:
+    flashParam->flashType = FLASH_DIRICH_CONCENTRATOR;
+    flashParam->manId = 0x1720c2;
+    strcpy(flashParam->allowedStringId[0], "dirich_co");
+    flashParam->numPages = 32768;
+    break;    
     
   default:
     return -1;