~ubuntu-branches/ubuntu/wily/acsccid/wily

« back to all changes in this revision

Viewing changes to src/ccid.c

  • Committer: Package Import Robot
  • Author(s): Godfrey Chung
  • Date: 2013-09-02 11:46:30 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130902114630-lujvp61jp7wacnwv
Tags: 1.0.5-1
* New upstream release.
* Updated Standards-Version to 3.9.4.
* Updated debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    ccid.c: CCID common code
3
3
    Copyright (C) 2003-2005   Ludovic Rousseau
4
 
    Copyright (C) 2009-2012   Advanced Card Systems Ltd.
 
4
    Copyright (C) 2009-2013   Advanced Card Systems Ltd.
5
5
 
6
6
    This library is free software; you can redistribute it and/or
7
7
    modify it under the terms of the GNU Lesser General Public
611
611
                                ccid_descriptor->isSamSlot = 1; // SAM
612
612
                        break;
613
613
 
 
614
                case ACS_ACR1281U_K_DUAL_READER:
 
615
                case ACS_ACR1281U_K_1S_DUAL_READER:
 
616
                case ACS_ACR1281U_K_4S_DUAL_READER:
 
617
                        if (ccid_descriptor->bCurrentSlotIndex == 1)
 
618
                        {
 
619
                                ccid_descriptor->dwFeatures = 0x000204BA;       // ICC
 
620
                                ccid_descriptor->dwMaxDataRate = 600000;
 
621
                        }
 
622
                        else if (ccid_descriptor->bCurrentSlotIndex > 1)
 
623
                        {
 
624
                                ccid_descriptor->dwFeatures = 0x000204BA;       // SAM
 
625
                                ccid_descriptor->dwMaxDataRate = 172043;
 
626
                                ccid_descriptor->isSamSlot = 1;
 
627
                        }
 
628
                        break;
 
629
 
 
630
                case ACS_ACR123_3S_READER:
 
631
                        if (ccid_descriptor->bCurrentSlotIndex > 0)
 
632
                        {
 
633
                                ccid_descriptor->dwFeatures = 0x000204BA;       // SAM
 
634
                                ccid_descriptor->dwMaxDataRate = 125000;
 
635
                                ccid_descriptor->isSamSlot = 1;
 
636
                        }
 
637
                        break;
 
638
 
614
639
                default:
615
640
                        break;
616
641
        }