Changeset 491


Ignore:
Timestamp:
Nov 2, 2009, 10:08:29 PM (10 years ago)
Author:
dingo35
Message:

Add DRECRYPT, card 0x14 not yet working..

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Maketype

    r455 r491  
    3939          $(LIBFILE1)(reader-cryptoworks.o) \
    4040          $(LIBFILE1)(reader-conax.o) \
     41          $(LIBFILE1)(reader-dre.o) \
    4142          $(LIBFILE1)(module-camd33.o) \
    4243          $(LIBFILE1)(module-camd35.o) \
  • trunk/reader-common.c

    r473 r491  
    1818#define SC_VIDEOGUARD2 6
    1919#define SC_NDS 7
     20#define SC_DRE 8
    2021
    2122static int reader_device_type(char *device, int typ)
     
    247248      case SC_NDS:
    248249     nds_card_info(); break;
    249       //default: rc=0;
     250      case SC_DRE:
     251     dre_card_info(); break;
    250252    }
    251253    reader[ridx].online = 1; //do not check on rc, because error in cardinfo should not be fatal
     
    262264  if (videoguard_card_init(atr, atr_size))  reader[ridx].card_system=SC_VIDEOGUARD2;
    263265  if (nds_card_init(atr, atr_size))  reader[ridx].card_system=SC_NDS;
     266  if (dre_card_init(atr, atr_size))  reader[ridx].card_system=SC_DRE;
    264267  if (!reader[ridx].card_system)    cs_ri_log("card system not supported");
    265268  cs_ri_brk(1);
     
    372375    case SC_NDS:
    373376      rc=(nds_do_ecm(er)) ? 1: 0; break;
     377    case SC_DRE:
     378      rc=(dre_do_ecm(er)) ? 1: 0; break;
    374379        default: rc=0;
    375380      }
     
    439444      case SC_NDS:
    440445    rc=nds_do_emm(ep); break;
     446      case SC_DRE:
     447    rc=dre_do_emm(ep); break;
    441448      default: rc=0;
    442449    }
Note: See TracChangeset for help on using the changeset viewer.