]> sigrok.org Git - libsigrok.git/commitdiff
dslogic: Declare memory depths
authorJoel Holdsworth <redacted>
Wed, 14 Jun 2017 20:20:12 +0000 (14:20 -0600)
committerUwe Hermann <redacted>
Mon, 19 Jun 2017 22:18:16 +0000 (00:18 +0200)
src/hardware/dslogic/api.c
src/hardware/dslogic/protocol.h

index 7ee747a130681206145450b43befe7aa42fff844..342ce2b0ef0dd162a66e385e695e33b89c45a82d 100644 (file)
@@ -27,23 +27,23 @@ static const struct dslogic_profile supported_device[] = {
        /* DreamSourceLab DSLogic */
        { 0x2a0e, 0x0001, "DreamSourceLab", "DSLogic", NULL,
                "dreamsourcelab-dslogic-fx2.fw",
-               0, "DreamSourceLab", "DSLogic"},
+               0, "DreamSourceLab", "DSLogic", 256 * 1048576ULL},
        /* DreamSourceLab DSCope */
        { 0x2a0e, 0x0002, "DreamSourceLab", "DSCope", NULL,
                "dreamsourcelab-dscope-fx2.fw",
-               0, "DreamSourceLab", "DSCope"},
+               0, "DreamSourceLab", "DSCope", 256 * 1048576ULL},
        /* DreamSourceLab DSLogic Pro */
        { 0x2a0e, 0x0003, "DreamSourceLab", "DSLogic Pro", NULL,
                "dreamsourcelab-dslogic-pro-fx2.fw",
-               0, "DreamSourceLab", "DSLogic"},
+               0, "DreamSourceLab", "DSLogic", 256 * 1048576ULL},
        /* DreamSourceLab DSLogic Plus */
        { 0x2a0e, 0x0020, "DreamSourceLab", "DSLogic Plus", NULL,
                "dreamsourcelab-dslogic-plus-fx2.fw",
-               0, "DreamSourceLab", "DSLogic"},
+               0, "DreamSourceLab", "DSLogic", 256 * 1048576ULL},
        /* DreamSourceLab DSLogic Basic */
        { 0x2a0e, 0x0021, "DreamSourceLab", "DSLogic Basic", NULL,
                "dreamsourcelab-dslogic-basic-fx2.fw",
-               0, "DreamSourceLab", "DSLogic"},
+               0, "DreamSourceLab", "DSLogic", 256 * 1024ULL},
 
        ALL_ZERO
 };
index 8e889940e4856a0ae7cc62ca23603cb36e27c3d0..3729e5cd178be481b28efd58133057da6f9253d4 100644 (file)
@@ -67,6 +67,9 @@ struct dslogic_profile {
 
        const char *usb_manufacturer;
        const char *usb_product;
+
+       /* Memory depth in bits. */
+       uint64_t mem_depth;
 };
 
 struct dev_context {