SASC-NG
DVBSoftCAM

nagra-def.h

Go to the documentation of this file.
00001 /*
00002  * Softcam plugin to VDR (C++)
00003  *
00004  * This code is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This code is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
00018  */
00019 
00020 #ifndef __NAGRA_NAGRA_DEF_H
00021 #define __NAGRA_NAGRA_DEF_H
00022 
00023 // ----------------------------------------------------------------
00024 
00025 #define SYSTEM_NAGRA         0x1800
00026 #define SYSTEM_NAGRA2        0x1801
00027 #define SYSTEM_NAGRA_BEV     0x1234
00028 
00029 // ----------------------------------------------------------------
00030 
00031 // Nagra1 defines
00032 #define DEF_TYPE 0
00033 #define DEF_PK   2
00034 #define DEF_ROM  0
00035 
00036 #define TYPE(keynr)         (((keynr)>>16)&1)
00037 #define PK(keynr)           (((keynr)>>17)&3)
00038 #define ROM(keynr)          (((keynr)>>19)&15)
00039 #define KEYSET(rom,pk,type) ((((rom)&15)<<3)|(((pk)&3)<<1)|((type)&1))
00040 
00041 // Nagra2 defines
00042 #define N2_MAGIC   0x80
00043 #define N2_EMM_G_I 0x02
00044 #define N2_EMM_G_R 0x12
00045 #define N2_EMM_S_I 0x01
00046 #define N2_EMM_S_R 0x11
00047 #define N2_EMM_SEL 0x40
00048 #define N2_EMM_V   0x03
00049 
00050 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines