answer
stringlengths 15
1.25M
|
|---|
#ifndef __PIC12HV752_H__
#define __PIC12HV752_H__
// Register Addresses
#ifndef NO_ADDR_DEFINES
#define INDF_ADDR 0x0000
#define TMR0_ADDR 0x0001
#define PCL_ADDR 0x0002
#define STATUS_ADDR 0x0003
#define FSR_ADDR 0x0004
#define PORTA_ADDR 0x0005
#define IOCAF_ADDR 0x0008
#define PCLATH_ADDR 0x000A
#define INTCON_ADDR 0x000B
#define PIR1_ADDR 0x000C
#define PIR2_ADDR 0x000D
#define TMR1_ADDR 0x000F
#define TMR1L_ADDR 0x000F
#define TMR1H_ADDR 0x0010
#define T1CON_ADDR 0x0011
#define T1GCON_ADDR 0x0012
#define CCPR1_ADDR 0x0013
#define CCPR1L_ADDR 0x0013
#define CCPR1H_ADDR 0x0014
#define CCP1CON_ADDR 0x0015
#define ADRES_ADDR 0x001C
#define ADRESL_ADDR 0x001C
#define ADRESH_ADDR 0x001D
#define ADCON0_ADDR 0x001E
#define ADCON1_ADDR 0x001F
#define OPTION_REG_ADDR 0x0081
#define TRISA_ADDR 0x0085
#define IOCAP_ADDR 0x0088
#define PIE1_ADDR 0x008C
#define PIE2_ADDR 0x008D
#define OSCCON_ADDR 0x008F
#define FVRCON_ADDR 0x0090
#define DACCON0_ADDR 0x0091
#define DACCON1_ADDR 0x0092
#define C2CON0_ADDR 0x009B
#define CM2CON0_ADDR 0x009B
#define C2CON1_ADDR 0x009C
#define CM2CON1_ADDR 0x009C
#define C1CON0_ADDR 0x009D
#define CM1CON0_ADDR 0x009D
#define C1CON1_ADDR 0x009E
#define CM1CON1_ADDR 0x009E
#define CMOUT_ADDR 0x009F
#define MCOUT_ADDR 0x009F
#define LATA_ADDR 0x0105
#define IOCAN_ADDR 0x0108
#define WPUA_ADDR 0x010C
#define SLRCONA_ADDR 0x010D
#define PCON_ADDR 0x010F
#define TMR2_ADDR 0x0110
#define PR2_ADDR 0x0111
#define T2CON_ADDR 0x0112
#define HLTMR1_ADDR 0x0113
#define HLTPR1_ADDR 0x0114
#define HLT1CON0_ADDR 0x0115
#define HLT1CON1_ADDR 0x0116
#define ANSELA_ADDR 0x0185
#define APFCON_ADDR 0x0188
#define OSCTUNE_ADDR 0x0189
#define PMCON1_ADDR 0x018C
#define PMCON2_ADDR 0x018D
#define PMADR_ADDR 0x018E
#define PMADRL_ADDR 0x018E
#define PMADRH_ADDR 0x018F
#define PMDAT_ADDR 0x0190
#define PMDATL_ADDR 0x0190
#define PMDATH_ADDR 0x0191
#define COG1PH_ADDR 0x0192
#define COG1BLK_ADDR 0x0193
#define COG1DB_ADDR 0x0194
#define COG1CON0_ADDR 0x0195
#define COG1CON1_ADDR 0x0196
#define COG1ASD_ADDR 0x0197
#endif // #ifndef NO_ADDR_DEFINES
// Register Definitions
extern __at(0x0000) __sfr INDF;
extern __at(0x0001) __sfr TMR0;
extern __at(0x0002) __sfr PCL;
// STATUS Bits
extern __at(0x0003) __sfr STATUS;
typedef union
{
struct
{
unsigned C : 1;
unsigned DC : 1;
unsigned Z : 1;
unsigned NOT_PD : 1;
unsigned NOT_TO : 1;
unsigned RP0 : 1;
unsigned RP1 : 1;
unsigned IRP : 1;
};
struct
{
unsigned : 5;
unsigned RP : 2;
unsigned : 1;
};
} __STATUSbits_t;
extern __at(0x0003) volatile __STATUSbits_t STATUSbits;
#define _C 0x01
#define _DC 0x02
#define _Z 0x04
#define _NOT_PD 0x08
#define _NOT_TO 0x10
#define _RP0 0x20
#define _RP1 0x40
#define _IRP 0x80
extern __at(0x0004) __sfr FSR;
// PORTA Bits
extern __at(0x0005) __sfr PORTA;
typedef union
{
struct
{
unsigned RA0 : 1;
unsigned RA1 : 1;
unsigned RA2 : 1;
unsigned RA3 : 1;
unsigned RA4 : 1;
unsigned RA5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned RA : 6;
unsigned : 2;
};
} __PORTAbits_t;
extern __at(0x0005) volatile __PORTAbits_t PORTAbits;
#define _RA0 0x01
#define _RA1 0x02
#define _RA2 0x04
#define _RA3 0x08
#define _RA4 0x10
#define _RA5 0x20
// IOCAF Bits
extern __at(0x0008) __sfr IOCAF;
typedef union
{
struct
{
unsigned IOCAF0 : 1;
unsigned IOCAF1 : 1;
unsigned IOCAF2 : 1;
unsigned IOCAF3 : 1;
unsigned IOCAF4 : 1;
unsigned IOCAF5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned IOCAF : 6;
unsigned : 2;
};
} __IOCAFbits_t;
extern __at(0x0008) volatile __IOCAFbits_t IOCAFbits;
#define _IOCAF0 0x01
#define _IOCAF1 0x02
#define _IOCAF2 0x04
#define _IOCAF3 0x08
#define _IOCAF4 0x10
#define _IOCAF5 0x20
extern __at(0x000A) __sfr PCLATH;
// INTCON Bits
extern __at(0x000B) __sfr INTCON;
typedef struct
{
unsigned IOCIF : 1;
unsigned INTF : 1;
unsigned T0IF : 1;
unsigned IOCIE : 1;
unsigned INTE : 1;
unsigned T0IE : 1;
unsigned PEIE : 1;
unsigned GIE : 1;
} __INTCONbits_t;
extern __at(0x000B) volatile __INTCONbits_t INTCONbits;
#define _IOCIF 0x01
#define _INTF 0x02
#define _T0IF 0x04
#define _IOCIE 0x08
#define _INTE 0x10
#define _T0IE 0x20
#define _PEIE 0x40
#define _GIE 0x80
// PIR1 Bits
extern __at(0x000C) __sfr PIR1;
typedef struct
{
unsigned TMR1IF : 1;
unsigned TMR2IF : 1;
unsigned HLTMR1IF : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned ADIF : 1;
unsigned TMR1GIF : 1;
} __PIR1bits_t;
extern __at(0x000C) volatile __PIR1bits_t PIR1bits;
#define _TMR1IF 0x01
#define _TMR2IF 0x02
#define _HLTMR1IF 0x04
#define _ADIF 0x40
#define _TMR1GIF 0x80
// PIR2 Bits
extern __at(0x000D) __sfr PIR2;
typedef struct
{
unsigned CCP1IF : 1;
unsigned : 1;
unsigned COG1IF : 1;
unsigned : 1;
unsigned C1IF : 1;
unsigned C2IF : 1;
unsigned : 1;
unsigned : 1;
} __PIR2bits_t;
extern __at(0x000D) volatile __PIR2bits_t PIR2bits;
#define _CCP1IF 0x01
#define _COG1IF 0x04
#define _C1IF 0x10
#define _C2IF 0x20
extern __at(0x000F) __sfr TMR1;
extern __at(0x000F) __sfr TMR1L;
extern __at(0x0010) __sfr TMR1H;
// T1CON Bits
extern __at(0x0011) __sfr T1CON;
typedef union
{
struct
{
unsigned TMR1ON : 1;
unsigned : 1;
unsigned NOT_T1SYNC : 1;
unsigned : 1;
unsigned T1CKPS0 : 1;
unsigned T1CKPS1 : 1;
unsigned TMR1CS0 : 1;
unsigned TMR1CS1 : 1;
};
struct
{
unsigned : 4;
unsigned T1CKPS : 2;
unsigned : 2;
};
struct
{
unsigned : 6;
unsigned TMR1CS : 2;
};
} __T1CONbits_t;
extern __at(0x0011) volatile __T1CONbits_t T1CONbits;
#define _TMR1ON 0x01
#define _NOT_T1SYNC 0x04
#define _T1CKPS0 0x10
#define _T1CKPS1 0x20
#define _TMR1CS0 0x40
#define _TMR1CS1 0x80
// T1GCON Bits
extern __at(0x0012) __sfr T1GCON;
typedef union
{
struct
{
unsigned T1GSS0 : 1;
unsigned T1GSS1 : 1;
unsigned T1GVAL : 1;
unsigned T1GGO_NOT_DONE : 1;
unsigned T1GSPM : 1;
unsigned T1GTM : 1;
unsigned T1GPOL : 1;
unsigned TMR1GE : 1;
};
struct
{
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned T1GGO : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned T1GSS : 2;
unsigned : 6;
};
} __T1GCONbits_t;
extern __at(0x0012) volatile __T1GCONbits_t T1GCONbits;
#define _T1GSS0 0x01
#define _T1GSS1 0x02
#define _T1GVAL 0x04
#define _T1GGO_NOT_DONE 0x08
#define _T1GGO 0x08
#define _T1GSPM 0x10
#define _T1GTM 0x20
#define _T1GPOL 0x40
#define _TMR1GE 0x80
extern __at(0x0013) __sfr CCPR1;
extern __at(0x0013) __sfr CCPR1L;
extern __at(0x0014) __sfr CCPR1H;
// CCP1CON Bits
extern __at(0x0015) __sfr CCP1CON;
typedef union
{
struct
{
unsigned CCP1M0 : 1;
unsigned CCP1M1 : 1;
unsigned CCP1M2 : 1;
unsigned CCP1M3 : 1;
unsigned DC1B0 : 1;
unsigned DC1B1 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned CCP1M : 4;
unsigned : 4;
};
struct
{
unsigned : 4;
unsigned DC1B : 2;
unsigned : 2;
};
} __CCP1CONbits_t;
extern __at(0x0015) volatile __CCP1CONbits_t CCP1CONbits;
#define _CCP1M0 0x01
#define _CCP1M1 0x02
#define _CCP1M2 0x04
#define _CCP1M3 0x08
#define _DC1B0 0x10
#define _DC1B1 0x20
extern __at(0x001C) __sfr ADRES;
extern __at(0x001C) __sfr ADRESL;
extern __at(0x001D) __sfr ADRESH;
// ADCON0 Bits
extern __at(0x001E) __sfr ADCON0;
typedef union
{
struct
{
unsigned ADON : 1;
unsigned GO_NOT_DONE : 1;
unsigned CHS0 : 1;
unsigned CHS1 : 1;
unsigned CHS2 : 1;
unsigned CHS3 : 1;
unsigned VCFG : 1;
unsigned ADFM : 1;
};
struct
{
unsigned : 2;
unsigned CHS : 4;
unsigned : 2;
};
} __ADCON0bits_t;
extern __at(0x001E) volatile __ADCON0bits_t ADCON0bits;
#define _ADON 0x01
#define _GO_NOT_DONE 0x02
#define _CHS0 0x04
#define _CHS1 0x08
#define _CHS2 0x10
#define _CHS3 0x20
#define _VCFG 0x40
#define _ADFM 0x80
// ADCON1 Bits
extern __at(0x001F) __sfr ADCON1;
typedef union
{
struct
{
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned ADCS0 : 1;
unsigned ADCS1 : 1;
unsigned ADCS2 : 1;
unsigned : 1;
};
struct
{
unsigned : 4;
unsigned ADCS : 3;
unsigned : 1;
};
} __ADCON1bits_t;
extern __at(0x001F) volatile __ADCON1bits_t ADCON1bits;
#define _ADCS0 0x10
#define _ADCS1 0x20
#define _ADCS2 0x40
// OPTION_REG Bits
extern __at(0x0081) __sfr OPTION_REG;
typedef union
{
struct
{
unsigned PS0 : 1;
unsigned PS1 : 1;
unsigned PS2 : 1;
unsigned PSA : 1;
unsigned T0SE : 1;
unsigned T0CS : 1;
unsigned INTEDG : 1;
unsigned NOT_RAPU : 1;
};
struct
{
unsigned PS : 3;
unsigned : 5;
};
} __OPTION_REGbits_t;
extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits;
#define _PS0 0x01
#define _PS1 0x02
#define _PS2 0x04
#define _PSA 0x08
#define _T0SE 0x10
#define _T0CS 0x20
#define _INTEDG 0x40
#define _NOT_RAPU 0x80
// TRISA Bits
extern __at(0x0085) __sfr TRISA;
typedef union
{
struct
{
unsigned TRISA0 : 1;
unsigned TRISA1 : 1;
unsigned TRISA2 : 1;
unsigned TRISA3 : 1;
unsigned TRISA4 : 1;
unsigned TRISA5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned TRISA : 6;
unsigned : 2;
};
} __TRISAbits_t;
extern __at(0x0085) volatile __TRISAbits_t TRISAbits;
#define _TRISA0 0x01
#define _TRISA1 0x02
#define _TRISA2 0x04
#define _TRISA3 0x08
#define _TRISA4 0x10
#define _TRISA5 0x20
// IOCAP Bits
extern __at(0x0088) __sfr IOCAP;
typedef union
{
struct
{
unsigned IOCAP0 : 1;
unsigned IOCAP1 : 1;
unsigned IOCAP2 : 1;
unsigned IOCAP3 : 1;
unsigned IOCAP4 : 1;
unsigned IOCAP5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned IOCAP : 6;
unsigned : 2;
};
} __IOCAPbits_t;
extern __at(0x0088) volatile __IOCAPbits_t IOCAPbits;
#define _IOCAP0 0x01
#define _IOCAP1 0x02
#define _IOCAP2 0x04
#define _IOCAP3 0x08
#define _IOCAP4 0x10
#define _IOCAP5 0x20
// PIE1 Bits
extern __at(0x008C) __sfr PIE1;
typedef struct
{
unsigned TMR1IE : 1;
unsigned TMR2IE : 1;
unsigned HLTMR1IE : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned ADIE : 1;
unsigned TMR1GIE : 1;
} __PIE1bits_t;
extern __at(0x008C) volatile __PIE1bits_t PIE1bits;
#define _TMR1IE 0x01
#define _TMR2IE 0x02
#define _HLTMR1IE 0x04
#define _ADIE 0x40
#define _TMR1GIE 0x80
// PIE2 Bits
extern __at(0x008D) __sfr PIE2;
typedef struct
{
unsigned CCP1IE : 1;
unsigned : 1;
unsigned COG1IE : 1;
unsigned : 1;
unsigned C1IE : 1;
unsigned C2IE : 1;
unsigned : 1;
unsigned : 1;
} __PIE2bits_t;
extern __at(0x008D) volatile __PIE2bits_t PIE2bits;
#define _CCP1IE 0x01
#define _COG1IE 0x04
#define _C1IE 0x10
#define _C2IE 0x20
// OSCCON Bits
extern __at(0x008F) __sfr OSCCON;
typedef union
{
struct
{
unsigned : 1;
unsigned LTS : 1;
unsigned HTS : 1;
unsigned : 1;
unsigned IRCF0 : 1;
unsigned IRCF1 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned : 4;
unsigned IRCF : 2;
unsigned : 2;
};
} __OSCCONbits_t;
extern __at(0x008F) volatile __OSCCONbits_t OSCCONbits;
#define _LTS 0x02
#define _HTS 0x04
#define _IRCF0 0x10
#define _IRCF1 0x20
// FVRCON Bits
extern __at(0x0090) __sfr FVRCON;
typedef struct
{
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned FVRBUFSS : 1;
unsigned FVRBUFEN : 1;
unsigned FVRRDY : 1;
unsigned FVREN : 1;
} __FVRCONbits_t;
extern __at(0x0090) volatile __FVRCONbits_t FVRCONbits;
#define _FVRBUFSS 0x10
#define _FVRBUFEN 0x20
#define _FVRRDY 0x40
#define _FVREN 0x80
// DACCON0 Bits
extern __at(0x0091) __sfr DACCON0;
typedef struct
{
unsigned : 1;
unsigned : 1;
unsigned DACPSS0 : 1;
unsigned : 1;
unsigned : 1;
unsigned DACOE : 1;
unsigned DACRNG : 1;
unsigned DACEN : 1;
} __DACCON0bits_t;
extern __at(0x0091) volatile __DACCON0bits_t DACCON0bits;
#define _DACPSS0 0x04
#define _DACOE 0x20
#define _DACRNG 0x40
#define _DACEN 0x80
// DACCON1 Bits
extern __at(0x0092) __sfr DACCON1;
typedef union
{
struct
{
unsigned DACR0 : 1;
unsigned DACR1 : 1;
unsigned DACR2 : 1;
unsigned DACR3 : 1;
unsigned DACR4 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned DACR : 5;
unsigned : 3;
};
} __DACCON1bits_t;
extern __at(0x0092) volatile __DACCON1bits_t DACCON1bits;
#define _DACR0 0x01
#define _DACR1 0x02
#define _DACR2 0x04
#define _DACR3 0x08
#define _DACR4 0x10
// C2CON0 Bits
extern __at(0x009B) __sfr C2CON0;
typedef struct
{
unsigned C2SYNC : 1;
unsigned C2HYS : 1;
unsigned C2SP : 1;
unsigned C2ZLF : 1;
unsigned C2POL : 1;
unsigned C2OE : 1;
unsigned C2OUT : 1;
unsigned C2ON : 1;
} __C2CON0bits_t;
extern __at(0x009B) volatile __C2CON0bits_t C2CON0bits;
#define _C2SYNC 0x01
#define _C2HYS 0x02
#define _C2SP 0x04
#define _C2ZLF 0x08
#define _C2POL 0x10
#define _C2OE 0x20
#define _C2OUT 0x40
#define _C2ON 0x80
// CM2CON0 Bits
extern __at(0x009B) __sfr CM2CON0;
typedef struct
{
unsigned C2SYNC : 1;
unsigned C2HYS : 1;
unsigned C2SP : 1;
unsigned C2ZLF : 1;
unsigned C2POL : 1;
unsigned C2OE : 1;
unsigned C2OUT : 1;
unsigned C2ON : 1;
} __CM2CON0bits_t;
extern __at(0x009B) volatile __CM2CON0bits_t CM2CON0bits;
#define _CM2CON0_C2SYNC 0x01
#define _CM2CON0_C2HYS 0x02
#define _CM2CON0_C2SP 0x04
#define _CM2CON0_C2ZLF 0x08
#define _CM2CON0_C2POL 0x10
#define _CM2CON0_C2OE 0x20
#define _CM2CON0_C2OUT 0x40
#define _CM2CON0_C2ON 0x80
// C2CON1 Bits
extern __at(0x009C) __sfr C2CON1;
typedef union
{
struct
{
unsigned C2NCH0 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned C2PCH0 : 1;
unsigned C2PCH1 : 1;
unsigned C2INTN : 1;
unsigned C2INTP : 1;
};
struct
{
unsigned : 4;
unsigned C2PCH : 2;
unsigned : 2;
};
} __C2CON1bits_t;
extern __at(0x009C) volatile __C2CON1bits_t C2CON1bits;
#define _C2NCH0 0x01
#define _C2PCH0 0x10
#define _C2PCH1 0x20
#define _C2INTN 0x40
#define _C2INTP 0x80
// CM2CON1 Bits
extern __at(0x009C) __sfr CM2CON1;
typedef union
{
struct
{
unsigned C2NCH0 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned C2PCH0 : 1;
unsigned C2PCH1 : 1;
unsigned C2INTN : 1;
unsigned C2INTP : 1;
};
struct
{
unsigned : 4;
unsigned C2PCH : 2;
unsigned : 2;
};
} __CM2CON1bits_t;
extern __at(0x009C) volatile __CM2CON1bits_t CM2CON1bits;
#define _CM2CON1_C2NCH0 0x01
#define _CM2CON1_C2PCH0 0x10
#define _CM2CON1_C2PCH1 0x20
#define _CM2CON1_C2INTN 0x40
#define _CM2CON1_C2INTP 0x80
// C1CON0 Bits
extern __at(0x009D) __sfr C1CON0;
typedef struct
{
unsigned C1SYNC : 1;
unsigned C1HYS : 1;
unsigned C1SP : 1;
unsigned C1ZLF : 1;
unsigned C1POL : 1;
unsigned C1OE : 1;
unsigned C1OUT : 1;
unsigned C1ON : 1;
} __C1CON0bits_t;
extern __at(0x009D) volatile __C1CON0bits_t C1CON0bits;
#define _C1SYNC 0x01
#define _C1HYS 0x02
#define _C1SP 0x04
#define _C1ZLF 0x08
#define _C1POL 0x10
#define _C1OE 0x20
#define _C1OUT 0x40
#define _C1ON 0x80
// CM1CON0 Bits
extern __at(0x009D) __sfr CM1CON0;
typedef struct
{
unsigned C1SYNC : 1;
unsigned C1HYS : 1;
unsigned C1SP : 1;
unsigned C1ZLF : 1;
unsigned C1POL : 1;
unsigned C1OE : 1;
unsigned C1OUT : 1;
unsigned C1ON : 1;
} __CM1CON0bits_t;
extern __at(0x009D) volatile __CM1CON0bits_t CM1CON0bits;
#define _CM1CON0_C1SYNC 0x01
#define _CM1CON0_C1HYS 0x02
#define _CM1CON0_C1SP 0x04
#define _CM1CON0_C1ZLF 0x08
#define _CM1CON0_C1POL 0x10
#define _CM1CON0_C1OE 0x20
#define _CM1CON0_C1OUT 0x40
#define _CM1CON0_C1ON 0x80
// C1CON1 Bits
extern __at(0x009E) __sfr C1CON1;
typedef union
{
struct
{
unsigned C1NCH0 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned C1PCH0 : 1;
unsigned C1PCH1 : 1;
unsigned C1INTN : 1;
unsigned C1INTP : 1;
};
struct
{
unsigned : 4;
unsigned C1PCH : 2;
unsigned : 2;
};
} __C1CON1bits_t;
extern __at(0x009E) volatile __C1CON1bits_t C1CON1bits;
#define _C1NCH0 0x01
#define _C1PCH0 0x10
#define _C1PCH1 0x20
#define _C1INTN 0x40
#define _C1INTP 0x80
// CM1CON1 Bits
extern __at(0x009E) __sfr CM1CON1;
typedef union
{
struct
{
unsigned C1NCH0 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned C1PCH0 : 1;
unsigned C1PCH1 : 1;
unsigned C1INTN : 1;
unsigned C1INTP : 1;
};
struct
{
unsigned : 4;
unsigned C1PCH : 2;
unsigned : 2;
};
} __CM1CON1bits_t;
extern __at(0x009E) volatile __CM1CON1bits_t CM1CON1bits;
#define _CM1CON1_C1NCH0 0x01
#define _CM1CON1_C1PCH0 0x10
#define _CM1CON1_C1PCH1 0x20
#define _CM1CON1_C1INTN 0x40
#define _CM1CON1_C1INTP 0x80
// CMOUT Bits
extern __at(0x009F) __sfr CMOUT;
typedef struct
{
unsigned MCOUT1 : 1;
unsigned MCOUT2 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __CMOUTbits_t;
extern __at(0x009F) volatile __CMOUTbits_t CMOUTbits;
#define _MCOUT1 0x01
#define _MCOUT2 0x02
// MCOUT Bits
extern __at(0x009F) __sfr MCOUT;
typedef struct
{
unsigned MCOUT1 : 1;
unsigned MCOUT2 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __MCOUTbits_t;
extern __at(0x009F) volatile __MCOUTbits_t MCOUTbits;
#define _MCOUT_MCOUT1 0x01
#define _MCOUT_MCOUT2 0x02
// LATA Bits
extern __at(0x0105) __sfr LATA;
typedef struct
{
unsigned LATA0 : 1;
unsigned LATA1 : 1;
unsigned LATA2 : 1;
unsigned : 1;
unsigned LATA4 : 1;
unsigned LATA5 : 1;
unsigned : 1;
unsigned : 1;
} __LATAbits_t;
extern __at(0x0105) volatile __LATAbits_t LATAbits;
#define _LATA0 0x01
#define _LATA1 0x02
#define _LATA2 0x04
#define _LATA4 0x10
#define _LATA5 0x20
// IOCAN Bits
extern __at(0x0108) __sfr IOCAN;
typedef union
{
struct
{
unsigned IOCAN0 : 1;
unsigned IOCAN1 : 1;
unsigned IOCAN2 : 1;
unsigned IOCAN3 : 1;
unsigned IOCAN4 : 1;
unsigned IOCAN5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned IOCAN : 6;
unsigned : 2;
};
} __IOCANbits_t;
extern __at(0x0108) volatile __IOCANbits_t IOCANbits;
#define _IOCAN0 0x01
#define _IOCAN1 0x02
#define _IOCAN2 0x04
#define _IOCAN3 0x08
#define _IOCAN4 0x10
#define _IOCAN5 0x20
// WPUA Bits
extern __at(0x010C) __sfr WPUA;
typedef union
{
struct
{
unsigned WPUA0 : 1;
unsigned WPUA1 : 1;
unsigned WPUA2 : 1;
unsigned WPUA3 : 1;
unsigned WPUA4 : 1;
unsigned WPUA5 : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned WPUA : 6;
unsigned : 2;
};
} __WPUAbits_t;
extern __at(0x010C) volatile __WPUAbits_t WPUAbits;
#define _WPUA0 0x01
#define _WPUA1 0x02
#define _WPUA2 0x04
#define _WPUA3 0x08
#define _WPUA4 0x10
#define _WPUA5 0x20
// SLRCONA Bits
extern __at(0x010D) __sfr SLRCONA;
typedef struct
{
unsigned SLRA0 : 1;
unsigned : 1;
unsigned SLRA2 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __SLRCONAbits_t;
extern __at(0x010D) volatile __SLRCONAbits_t SLRCONAbits;
#define _SLRA0 0x01
#define _SLRA2 0x04
// PCON Bits
extern __at(0x010F) __sfr PCON;
typedef struct
{
unsigned NOT_BOR : 1;
unsigned NOT_POR : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __PCONbits_t;
extern __at(0x010F) volatile __PCONbits_t PCONbits;
#define _NOT_BOR 0x01
#define _NOT_POR 0x02
extern __at(0x0110) __sfr TMR2;
extern __at(0x0111) __sfr PR2;
// T2CON Bits
extern __at(0x0112) __sfr T2CON;
typedef union
{
struct
{
unsigned T2CKPS0 : 1;
unsigned T2CKPS1 : 1;
unsigned TMR2ON : 1;
unsigned T2OUTPS0 : 1;
unsigned T2OUTPS1 : 1;
unsigned T2OUTPS2 : 1;
unsigned T2OUTPS3 : 1;
unsigned : 1;
};
struct
{
unsigned T2CKPS : 2;
unsigned : 6;
};
struct
{
unsigned : 3;
unsigned T2OUTPS : 4;
unsigned : 1;
};
} __T2CONbits_t;
extern __at(0x0112) volatile __T2CONbits_t T2CONbits;
#define _T2CKPS0 0x01
#define _T2CKPS1 0x02
#define _TMR2ON 0x04
#define _T2OUTPS0 0x08
#define _T2OUTPS1 0x10
#define _T2OUTPS2 0x20
#define _T2OUTPS3 0x40
extern __at(0x0113) __sfr HLTMR1;
extern __at(0x0114) __sfr HLTPR1;
// HLT1CON0 Bits
extern __at(0x0115) __sfr HLT1CON0;
typedef union
{
struct
{
unsigned H1CKPS0 : 1;
unsigned H1CKPS1 : 1;
unsigned H1ON : 1;
unsigned H1OUTPS0 : 1;
unsigned H1OUTPS1 : 1;
unsigned H1OUTPS2 : 1;
unsigned H1OUTPS3 : 1;
unsigned : 1;
};
struct
{
unsigned H1CKPS : 2;
unsigned : 6;
};
struct
{
unsigned : 3;
unsigned H1OUTPS : 4;
unsigned : 1;
};
} __HLT1CON0bits_t;
extern __at(0x0115) volatile __HLT1CON0bits_t HLT1CON0bits;
#define _H1CKPS0 0x01
#define _H1CKPS1 0x02
#define _H1ON 0x04
#define _H1OUTPS0 0x08
#define _H1OUTPS1 0x10
#define _H1OUTPS2 0x20
#define _H1OUTPS3 0x40
// HLT1CON1 Bits
extern __at(0x0116) __sfr HLT1CON1;
typedef union
{
struct
{
unsigned H1REREN : 1;
unsigned H1FEREN : 1;
unsigned H1ERS0 : 1;
unsigned H1ERS1 : 1;
unsigned H1ERS2 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned : 2;
unsigned H1ERS : 3;
unsigned : 3;
};
} __HLT1CON1bits_t;
extern __at(0x0116) volatile __HLT1CON1bits_t HLT1CON1bits;
#define _H1REREN 0x01
#define _H1FEREN 0x02
#define _H1ERS0 0x04
#define _H1ERS1 0x08
#define _H1ERS2 0x10
// ANSELA Bits
extern __at(0x0185) __sfr ANSELA;
typedef struct
{
unsigned ANSA0 : 1;
unsigned ANSA1 : 1;
unsigned ANSA2 : 1;
unsigned : 1;
unsigned ANSA4 : 1;
unsigned ANSA5 : 1;
unsigned : 1;
unsigned : 1;
} __ANSELAbits_t;
extern __at(0x0185) volatile __ANSELAbits_t ANSELAbits;
#define _ANSA0 0x01
#define _ANSA1 0x02
#define _ANSA2 0x04
#define _ANSA4 0x10
#define _ANSA5 0x20
// APFCON Bits
extern __at(0x0188) __sfr APFCON;
typedef struct
{
unsigned COG1O0SEL : 1;
unsigned COG1O1SEL : 1;
unsigned COG1FSEL : 1;
unsigned : 1;
unsigned T1GSEL : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __APFCONbits_t;
extern __at(0x0188) volatile __APFCONbits_t APFCONbits;
#define _COG1O0SEL 0x01
#define _COG1O1SEL 0x02
#define _COG1FSEL 0x04
#define _T1GSEL 0x10
// OSCTUNE Bits
extern __at(0x0189) __sfr OSCTUNE;
typedef union
{
struct
{
unsigned TUN0 : 1;
unsigned TUN1 : 1;
unsigned TUN2 : 1;
unsigned TUN3 : 1;
unsigned TUN4 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned TUN : 5;
unsigned : 3;
};
} __OSCTUNEbits_t;
extern __at(0x0189) volatile __OSCTUNEbits_t OSCTUNEbits;
#define _TUN0 0x01
#define _TUN1 0x02
#define _TUN2 0x04
#define _TUN3 0x08
#define _TUN4 0x10
// PMCON1 Bits
extern __at(0x018C) __sfr PMCON1;
typedef struct
{
unsigned RD : 1;
unsigned WR : 1;
unsigned WREN : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
} __PMCON1bits_t;
extern __at(0x018C) volatile __PMCON1bits_t PMCON1bits;
#define _RD 0x01
#define _WR 0x02
#define _WREN 0x04
extern __at(0x018D) __sfr PMCON2;
extern __at(0x018E) __sfr PMADR;
extern __at(0x018E) __sfr PMADRL;
extern __at(0x018F) __sfr PMADRH;
extern __at(0x0190) __sfr PMDAT;
extern __at(0x0190) __sfr PMDATL;
extern __at(0x0191) __sfr PMDATH;
// COG1PH Bits
extern __at(0x0192) __sfr COG1PH;
typedef union
{
struct
{
unsigned G1PH0 : 1;
unsigned G1PH1 : 1;
unsigned G1PH2 : 1;
unsigned G1PH3 : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
unsigned : 1;
};
struct
{
unsigned G1PH : 4;
unsigned : 4;
};
} __COG1PHbits_t;
extern __at(0x0192) volatile __COG1PHbits_t COG1PHbits;
#define _G1PH0 0x01
#define _G1PH1 0x02
#define _G1PH2 0x04
#define _G1PH3 0x08
// COG1BLK Bits
extern __at(0x0193) __sfr COG1BLK;
typedef union
{
struct
{
unsigned G1BLKF0 : 1;
unsigned G1BLKF1 : 1;
unsigned G1BLKF2 : 1;
unsigned G1BLKF3 : 1;
unsigned G1BLKR0 : 1;
unsigned G1BLKR1 : 1;
unsigned G1BLKR2 : 1;
unsigned G1BLKR3 : 1;
};
struct
{
unsigned G1BLKF : 4;
unsigned : 4;
};
struct
{
unsigned : 4;
unsigned G1BLKR : 4;
};
} __COG1BLKbits_t;
extern __at(0x0193) volatile __COG1BLKbits_t COG1BLKbits;
#define _G1BLKF0 0x01
#define _G1BLKF1 0x02
#define _G1BLKF2 0x04
#define _G1BLKF3 0x08
#define _G1BLKR0 0x10
#define _G1BLKR1 0x20
#define _G1BLKR2 0x40
#define _G1BLKR3 0x80
// COG1DB Bits
extern __at(0x0194) __sfr COG1DB;
typedef union
{
struct
{
unsigned G1DBF0 : 1;
unsigned G1DBF1 : 1;
unsigned G1DBF2 : 1;
unsigned G1DBF3 : 1;
unsigned G1BDR0 : 1;
unsigned G1BDR1 : 1;
unsigned G1BDR2 : 1;
unsigned G1BDR3 : 1;
};
struct
{
unsigned G1DBF : 4;
unsigned : 4;
};
struct
{
unsigned : 4;
unsigned G1BDR : 4;
};
} __COG1DBbits_t;
extern __at(0x0194) volatile __COG1DBbits_t COG1DBbits;
#define _G1DBF0 0x01
#define _G1DBF1 0x02
#define _G1DBF2 0x04
#define _G1DBF3 0x08
#define _G1BDR0 0x10
#define _G1BDR1 0x20
#define _G1BDR2 0x40
#define _G1BDR3 0x80
// COG1CON0 Bits
extern __at(0x0195) __sfr COG1CON0;
typedef union
{
struct
{
unsigned G1CS0 : 1;
unsigned G1CS1 : 1;
unsigned G1LD : 1;
unsigned G1POL0 : 1;
unsigned G1POL1 : 1;
unsigned G1OE0 : 1;
unsigned G1OE1 : 1;
unsigned G1EN : 1;
};
struct
{
unsigned G1CS : 2;
unsigned : 6;
};
struct
{
unsigned : 3;
unsigned G1POL : 2;
unsigned : 3;
};
struct
{
unsigned : 5;
unsigned G1OE : 2;
unsigned : 1;
};
} __COG1CON0bits_t;
extern __at(0x0195) volatile __COG1CON0bits_t COG1CON0bits;
#define _G1CS0 0x01
#define _G1CS1 0x02
#define _G1LD 0x04
#define _G1POL0 0x08
#define _G1POL1 0x10
#define _G1OE0 0x20
#define _G1OE1 0x40
#define _G1EN 0x80
// COG1CON1 Bits
extern __at(0x0196) __sfr COG1CON1;
typedef union
{
struct
{
unsigned G1RS0 : 1;
unsigned G1RS1 : 1;
unsigned G1RS2 : 1;
unsigned G1FS0 : 1;
unsigned G1FS1 : 1;
unsigned G1FS2 : 1;
unsigned G1RSIM : 1;
unsigned G1FSIM : 1;
};
struct
{
unsigned G1RS : 3;
unsigned : 5;
};
struct
{
unsigned : 3;
unsigned G1FS : 3;
unsigned : 2;
};
} __COG1CON1bits_t;
extern __at(0x0196) volatile __COG1CON1bits_t COG1CON1bits;
#define _G1RS0 0x01
#define _G1RS1 0x02
#define _G1RS2 0x04
#define _G1FS0 0x08
#define _G1FS1 0x10
#define _G1FS2 0x20
#define _G1RSIM 0x40
#define _G1FSIM 0x80
// COG1ASD Bits
extern __at(0x0197) __sfr COG1ASD;
typedef union
{
struct
{
unsigned G1ASDSFLT : 1;
unsigned G1ASDSC1 : 1;
unsigned G1ASDSC2 : 1;
unsigned G1ASDSHLT : 1;
unsigned G1ASDL0 : 1;
unsigned G1ASDL1 : 1;
unsigned G1ARSEN : 1;
unsigned G1ASDE : 1;
};
struct
{
unsigned : 4;
unsigned G1ASDL : 2;
unsigned : 2;
};
} __COG1ASDbits_t;
extern __at(0x0197) volatile __COG1ASDbits_t COG1ASDbits;
#define _G1ASDSFLT 0x01
#define _G1ASDSC1 0x02
#define _G1ASDSC2 0x04
#define _G1ASDSHLT 0x08
#define _G1ASDL0 0x10
#define _G1ASDL1 0x20
#define _G1ARSEN 0x40
#define _G1ASDE 0x80
// Configuration Bits
#define _CONFIG 0x2007
#define _FOSC0_INT 0x3FFE // Internal oscillator mode. I/O function on RA5/CLKIN.
#define _FOSC0_EC 0x3FFF // EC oscillator mode. CLKIN function on RA5/CLKIN.
#define _WDTE_OFF 0x3FF7 // Watchdog Timer disabled.
#define _WDTE_ON 0x3FFF // Watchdog Timer enabled.
#define _PWRTE_ON 0x3FEF // Power-up Timer enabled.
#define _PWRTE_OFF 0x3FFF // Power-up Timer disabled.
#define _MCLRE_OFF 0x3FDF // MCLR pin is alternate function.
#define _MCLRE_ON 0x3FFF // MCLR pin is MCLR function with internal weak pullup.
#define _CP_ON 0x3FBF // Program memory code protection is enabled.
#define _CP_OFF 0x3FFF // Program memory code protection is disabled.
#define _BOREN_DIS 0x3CFF // BOR disabled.
#define _BOREN_SLEEP_DIS 0x3EFF // BOR enabled during operation and disabled in Sleep.
#define _BOREN_EN 0x3FFF // BOR enabled.
#define _WRT_ALL 0x33FF // 000h to 3FFh self-write protected.
#define _WRT_HALF 0x37FF // 000h to 1FFh self-write protected.
#define _WRT_FOURTH 0x3BFF // 000h to 0FFh self-write protected.
#define _WRT_OFF 0x3FFF // Flash self-write protection off.
#define _CLKOUTEN_ON 0x2FFF // CLKOUT function enabled. CLKOUT pin is CLKOUT.
#define _CLKOUTEN_OFF 0x3FFF // CLKOUT function disabled. CLKOUT pin acts as I/O.
#define _DEVID1 0x2006
#define _IDLOC0 0x2000
#define _IDLOC1 0x2001
#define _IDLOC2 0x2002
#define _IDLOC3 0x2003
#ifndef NO_BIT_DEFINES
#define ADON ADCON0bits.ADON // bit 0
#define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1
#define CHS0 ADCON0bits.CHS0 // bit 2
#define CHS1 ADCON0bits.CHS1 // bit 3
#define CHS2 ADCON0bits.CHS2 // bit 4
#define CHS3 ADCON0bits.CHS3 // bit 5
#define VCFG ADCON0bits.VCFG // bit 6
#define ADFM ADCON0bits.ADFM // bit 7
#define ADCS0 ADCON1bits.ADCS0 // bit 4
#define ADCS1 ADCON1bits.ADCS1 // bit 5
#define ADCS2 ADCON1bits.ADCS2 // bit 6
#define ANSA0 ANSELAbits.ANSA0 // bit 0
#define ANSA1 ANSELAbits.ANSA1 // bit 1
#define ANSA2 ANSELAbits.ANSA2 // bit 2
#define ANSA4 ANSELAbits.ANSA4 // bit 4
#define ANSA5 ANSELAbits.ANSA5 // bit 5
#define COG1O0SEL APFCONbits.COG1O0SEL // bit 0
#define COG1O1SEL APFCONbits.COG1O1SEL // bit 1
#define COG1FSEL APFCONbits.COG1FSEL // bit 2
#define T1GSEL APFCONbits.T1GSEL // bit 4
#define C1SYNC C1CON0bits.C1SYNC // bit 0
#define C1HYS C1CON0bits.C1HYS // bit 1
#define C1SP C1CON0bits.C1SP // bit 2
#define C1ZLF C1CON0bits.C1ZLF // bit 3
#define C1POL C1CON0bits.C1POL // bit 4
#define C1OE C1CON0bits.C1OE // bit 5
#define C1OUT C1CON0bits.C1OUT // bit 6
#define C1ON C1CON0bits.C1ON // bit 7
#define C1NCH0 C1CON1bits.C1NCH0 // bit 0
#define C1PCH0 C1CON1bits.C1PCH0 // bit 4
#define C1PCH1 C1CON1bits.C1PCH1 // bit 5
#define C1INTN C1CON1bits.C1INTN // bit 6
#define C1INTP C1CON1bits.C1INTP // bit 7
#define C2SYNC C2CON0bits.C2SYNC // bit 0
#define C2HYS C2CON0bits.C2HYS // bit 1
#define C2SP C2CON0bits.C2SP // bit 2
#define C2ZLF C2CON0bits.C2ZLF // bit 3
#define C2POL C2CON0bits.C2POL // bit 4
#define C2OE C2CON0bits.C2OE // bit 5
#define C2OUT C2CON0bits.C2OUT // bit 6
#define C2ON C2CON0bits.C2ON // bit 7
#define C2NCH0 C2CON1bits.C2NCH0 // bit 0
#define C2PCH0 C2CON1bits.C2PCH0 // bit 4
#define C2PCH1 C2CON1bits.C2PCH1 // bit 5
#define C2INTN C2CON1bits.C2INTN // bit 6
#define C2INTP C2CON1bits.C2INTP // bit 7
#define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
#define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
#define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
#define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
#define DC1B0 CCP1CONbits.DC1B0 // bit 4
#define DC1B1 CCP1CONbits.DC1B1 // bit 5
#define MCOUT1 CMOUTbits.MCOUT1 // bit 0
#define MCOUT2 CMOUTbits.MCOUT2 // bit 1
#define G1ASDSFLT COG1ASDbits.G1ASDSFLT // bit 0
#define G1ASDSC1 COG1ASDbits.G1ASDSC1 // bit 1
#define G1ASDSC2 COG1ASDbits.G1ASDSC2 // bit 2
#define G1ASDSHLT COG1ASDbits.G1ASDSHLT // bit 3
#define G1ASDL0 COG1ASDbits.G1ASDL0 // bit 4
#define G1ASDL1 COG1ASDbits.G1ASDL1 // bit 5
#define G1ARSEN COG1ASDbits.G1ARSEN // bit 6
#define G1ASDE COG1ASDbits.G1ASDE // bit 7
#define G1BLKF0 COG1BLKbits.G1BLKF0 // bit 0
#define G1BLKF1 COG1BLKbits.G1BLKF1 // bit 1
#define G1BLKF2 COG1BLKbits.G1BLKF2 // bit 2
#define G1BLKF3 COG1BLKbits.G1BLKF3 // bit 3
#define G1BLKR0 COG1BLKbits.G1BLKR0 // bit 4
#define G1BLKR1 COG1BLKbits.G1BLKR1 // bit 5
#define G1BLKR2 COG1BLKbits.G1BLKR2 // bit 6
#define G1BLKR3 COG1BLKbits.G1BLKR3 // bit 7
#define G1CS0 COG1CON0bits.G1CS0 // bit 0
#define G1CS1 COG1CON0bits.G1CS1 // bit 1
#define G1LD COG1CON0bits.G1LD // bit 2
#define G1POL0 COG1CON0bits.G1POL0 // bit 3
#define G1POL1 COG1CON0bits.G1POL1 // bit 4
#define G1OE0 COG1CON0bits.G1OE0 // bit 5
#define G1OE1 COG1CON0bits.G1OE1 // bit 6
#define G1EN COG1CON0bits.G1EN // bit 7
#define G1RS0 COG1CON1bits.G1RS0 // bit 0
#define G1RS1 COG1CON1bits.G1RS1 // bit 1
#define G1RS2 COG1CON1bits.G1RS2 // bit 2
#define G1FS0 COG1CON1bits.G1FS0 // bit 3
#define G1FS1 COG1CON1bits.G1FS1 // bit 4
#define G1FS2 COG1CON1bits.G1FS2 // bit 5
#define G1RSIM COG1CON1bits.G1RSIM // bit 6
#define G1FSIM COG1CON1bits.G1FSIM // bit 7
#define G1DBF0 COG1DBbits.G1DBF0 // bit 0
#define G1DBF1 COG1DBbits.G1DBF1 // bit 1
#define G1DBF2 COG1DBbits.G1DBF2 // bit 2
#define G1DBF3 COG1DBbits.G1DBF3 // bit 3
#define G1BDR0 COG1DBbits.G1BDR0 // bit 4
#define G1BDR1 COG1DBbits.G1BDR1 // bit 5
#define G1BDR2 COG1DBbits.G1BDR2 // bit 6
#define G1BDR3 COG1DBbits.G1BDR3 // bit 7
#define G1PH0 COG1PHbits.G1PH0 // bit 0
#define G1PH1 COG1PHbits.G1PH1 // bit 1
#define G1PH2 COG1PHbits.G1PH2 // bit 2
#define G1PH3 COG1PHbits.G1PH3 // bit 3
#define DACPSS0 DACCON0bits.DACPSS0 // bit 2
#define DACOE DACCON0bits.DACOE // bit 5
#define DACRNG DACCON0bits.DACRNG // bit 6
#define DACEN DACCON0bits.DACEN // bit 7
#define DACR0 DACCON1bits.DACR0 // bit 0
#define DACR1 DACCON1bits.DACR1 // bit 1
#define DACR2 DACCON1bits.DACR2 // bit 2
#define DACR3 DACCON1bits.DACR3 // bit 3
#define DACR4 DACCON1bits.DACR4 // bit 4
#define FVRBUFSS FVRCONbits.FVRBUFSS // bit 4
#define FVRBUFEN FVRCONbits.FVRBUFEN // bit 5
#define FVRRDY FVRCONbits.FVRRDY // bit 6
#define FVREN FVRCONbits.FVREN // bit 7
#define H1CKPS0 HLT1CON0bits.H1CKPS0 // bit 0
#define H1CKPS1 HLT1CON0bits.H1CKPS1 // bit 1
#define H1ON HLT1CON0bits.H1ON // bit 2
#define H1OUTPS0 HLT1CON0bits.H1OUTPS0 // bit 3
#define H1OUTPS1 HLT1CON0bits.H1OUTPS1 // bit 4
#define H1OUTPS2 HLT1CON0bits.H1OUTPS2 // bit 5
#define H1OUTPS3 HLT1CON0bits.H1OUTPS3 // bit 6
#define H1REREN HLT1CON1bits.H1REREN // bit 0
#define H1FEREN HLT1CON1bits.H1FEREN // bit 1
#define H1ERS0 HLT1CON1bits.H1ERS0 // bit 2
#define H1ERS1 HLT1CON1bits.H1ERS1 // bit 3
#define H1ERS2 HLT1CON1bits.H1ERS2 // bit 4
#define IOCIF INTCONbits.IOCIF // bit 0
#define INTF INTCONbits.INTF // bit 1
#define T0IF INTCONbits.T0IF // bit 2
#define IOCIE INTCONbits.IOCIE // bit 3
#define INTE INTCONbits.INTE // bit 4
#define T0IE INTCONbits.T0IE // bit 5
#define PEIE INTCONbits.PEIE // bit 6
#define GIE INTCONbits.GIE // bit 7
#define IOCAF0 IOCAFbits.IOCAF0 // bit 0
#define IOCAF1 IOCAFbits.IOCAF1 // bit 1
#define IOCAF2 IOCAFbits.IOCAF2 // bit 2
#define IOCAF3 IOCAFbits.IOCAF3 // bit 3
#define IOCAF4 IOCAFbits.IOCAF4 // bit 4
#define IOCAF5 IOCAFbits.IOCAF5 // bit 5
#define IOCAN0 IOCANbits.IOCAN0 // bit 0
#define IOCAN1 IOCANbits.IOCAN1 // bit 1
#define IOCAN2 IOCANbits.IOCAN2 // bit 2
#define IOCAN3 IOCANbits.IOCAN3 // bit 3
#define IOCAN4 IOCANbits.IOCAN4 // bit 4
#define IOCAN5 IOCANbits.IOCAN5 // bit 5
#define IOCAP0 IOCAPbits.IOCAP0 // bit 0
#define IOCAP1 IOCAPbits.IOCAP1 // bit 1
#define IOCAP2 IOCAPbits.IOCAP2 // bit 2
#define IOCAP3 IOCAPbits.IOCAP3 // bit 3
#define IOCAP4 IOCAPbits.IOCAP4 // bit 4
#define IOCAP5 IOCAPbits.IOCAP5 // bit 5
#define LATA0 LATAbits.LATA0 // bit 0
#define LATA1 LATAbits.LATA1 // bit 1
#define LATA2 LATAbits.LATA2 // bit 2
#define LATA4 LATAbits.LATA4 // bit 4
#define LATA5 LATAbits.LATA5 // bit 5
#define PS0 OPTION_REGbits.PS0 // bit 0
#define PS1 OPTION_REGbits.PS1 // bit 1
#define PS2 OPTION_REGbits.PS2 // bit 2
#define PSA OPTION_REGbits.PSA // bit 3
#define T0SE OPTION_REGbits.T0SE // bit 4
#define T0CS OPTION_REGbits.T0CS // bit 5
#define INTEDG OPTION_REGbits.INTEDG // bit 6
#define NOT_RAPU OPTION_REGbits.NOT_RAPU // bit 7
#define LTS OSCCONbits.LTS // bit 1
#define HTS OSCCONbits.HTS // bit 2
#define IRCF0 OSCCONbits.IRCF0 // bit 4
#define IRCF1 OSCCONbits.IRCF1 // bit 5
#define TUN0 OSCTUNEbits.TUN0 // bit 0
#define TUN1 OSCTUNEbits.TUN1 // bit 1
#define TUN2 OSCTUNEbits.TUN2 // bit 2
#define TUN3 OSCTUNEbits.TUN3 // bit 3
#define TUN4 OSCTUNEbits.TUN4 // bit 4
#define NOT_BOR PCONbits.NOT_BOR // bit 0
#define NOT_POR PCONbits.NOT_POR // bit 1
#define TMR1IE PIE1bits.TMR1IE // bit 0
#define TMR2IE PIE1bits.TMR2IE // bit 1
#define HLTMR1IE PIE1bits.HLTMR1IE // bit 2
#define ADIE PIE1bits.ADIE // bit 6
#define TMR1GIE PIE1bits.TMR1GIE // bit 7
#define CCP1IE PIE2bits.CCP1IE // bit 0
#define COG1IE PIE2bits.COG1IE // bit 2
#define C1IE PIE2bits.C1IE // bit 4
#define C2IE PIE2bits.C2IE // bit 5
#define TMR1IF PIR1bits.TMR1IF // bit 0
#define TMR2IF PIR1bits.TMR2IF // bit 1
#define HLTMR1IF PIR1bits.HLTMR1IF // bit 2
#define ADIF PIR1bits.ADIF // bit 6
#define TMR1GIF PIR1bits.TMR1GIF // bit 7
#define CCP1IF PIR2bits.CCP1IF // bit 0
#define COG1IF PIR2bits.COG1IF // bit 2
#define C1IF PIR2bits.C1IF // bit 4
#define C2IF PIR2bits.C2IF // bit 5
#define RD PMCON1bits.RD // bit 0
#define WR PMCON1bits.WR // bit 1
#define WREN PMCON1bits.WREN // bit 2
#define RA0 PORTAbits.RA0 // bit 0
#define RA1 PORTAbits.RA1 // bit 1
#define RA2 PORTAbits.RA2 // bit 2
#define RA3 PORTAbits.RA3 // bit 3
#define RA4 PORTAbits.RA4 // bit 4
#define RA5 PORTAbits.RA5 // bit 5
#define SLRA0 SLRCONAbits.SLRA0 // bit 0
#define SLRA2 SLRCONAbits.SLRA2 // bit 2
#define C STATUSbits.C // bit 0
#define DC STATUSbits.DC // bit 1
#define Z STATUSbits.Z // bit 2
#define NOT_PD STATUSbits.NOT_PD // bit 3
#define NOT_TO STATUSbits.NOT_TO // bit 4
#define RP0 STATUSbits.RP0 // bit 5
#define RP1 STATUSbits.RP1 // bit 6
#define IRP STATUSbits.IRP // bit 7
#define TMR1ON T1CONbits.TMR1ON // bit 0
#define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
#define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
#define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
#define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
#define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
#define T1GSS0 T1GCONbits.T1GSS0 // bit 0
#define T1GSS1 T1GCONbits.T1GSS1 // bit 1
#define T1GVAL T1GCONbits.T1GVAL // bit 2
#define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
#define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
#define T1GSPM T1GCONbits.T1GSPM // bit 4
#define T1GTM T1GCONbits.T1GTM // bit 5
#define T1GPOL T1GCONbits.T1GPOL // bit 6
#define TMR1GE T1GCONbits.TMR1GE // bit 7
#define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
#define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
#define TMR2ON T2CONbits.TMR2ON // bit 2
#define T2OUTPS0 T2CONbits.T2OUTPS0 // bit 3
#define T2OUTPS1 T2CONbits.T2OUTPS1 // bit 4
#define T2OUTPS2 T2CONbits.T2OUTPS2 // bit 5
#define T2OUTPS3 T2CONbits.T2OUTPS3 // bit 6
#define TRISA0 TRISAbits.TRISA0 // bit 0
#define TRISA1 TRISAbits.TRISA1 // bit 1
#define TRISA2 TRISAbits.TRISA2 // bit 2
#define TRISA3 TRISAbits.TRISA3 // bit 3
#define TRISA4 TRISAbits.TRISA4 // bit 4
#define TRISA5 TRISAbits.TRISA5 // bit 5
#define WPUA0 WPUAbits.WPUA0 // bit 0
#define WPUA1 WPUAbits.WPUA1 // bit 1
#define WPUA2 WPUAbits.WPUA2 // bit 2
#define WPUA3 WPUAbits.WPUA3 // bit 3
#define WPUA4 WPUAbits.WPUA4 // bit 4
#define WPUA5 WPUAbits.WPUA5 // bit 5
#endif // #ifndef NO_BIT_DEFINES
#endif // #ifndef __PIC12HV752_H__
|
#pragma once
#include "Emu/RSX/RSXThread.h"
#include <memory>
using draw_context_t = std::shared_ptr<void>;
class GSFrameBase
{
protected:
std::wstring m_title_message;
public:
GSFrameBase() = default;
GSFrameBase(const GSFrameBase&) = delete;
virtual void close() = 0;
virtual bool shown() = 0;
virtual void hide() = 0;
virtual void show() = 0;
draw_context_t new_context();
virtual void set_current(draw_context_t ctx) = 0;
virtual void flip(draw_context_t ctx) = 0;
virtual size2i client_size() = 0;
virtual void* handle() const = 0;
void title_message(const std::wstring&);
protected:
virtual void delete_context(void* ctx) = 0;
virtual void* make_context() = 0;
};
enum class frame_type
{
Null,
OpenGL,
DX12
};
class GSRender : public rsx::thread
{
protected:
GSFrameBase* m_frame;
draw_context_t m_context;
public:
GSRender(frame_type type);
virtual ~GSRender();
void on_init() override;
void on_init_thread() override;
void flip(int buffer) override;
};
|
package org.jpc.emulator.execution.opcodes.vm;
import org.jpc.emulator.execution.*;
import org.jpc.emulator.execution.decoder.*;
import org.jpc.emulator.processor.*;
import org.jpc.emulator.processor.fpu64.*;
import static org.jpc.emulator.processor.Processor.*;
public class rep_outsw_a16 extends Executable
{
public rep_outsw_a16(int blockStart, int eip, int prefices, PeekableInputStream input)
{
super(blockStart, eip);
}
public Branch execute(Processor cpu)
{
if (cpu.<API key>(0xffff & cpu.r_dx.get16()))
StaticOpcodes.rep_outsw_a16(cpu, cpu.es);
else
throw ProcessorException.<API key>;
return Branch.None;
}
public boolean isBranch()
{
return false;
}
public String toString()
{
return this.getClass().getName();
}
}
|
from unittest import TestCase
from katello.client.core.base import Action
from katello.client.i18n_optparse import OptionParser
from katello.client.utils.option_validator import OptionValidator
from katello.tests.test_utils import <API key>
import os
class <API key>(TestCase):
failureException = <API key>
def setup_parser(self, accepted_options):
parser = OptionParser()
for opt in accepted_options:
parser.add_option('--'+opt, dest=opt, action="store_true")
return parser
def setup_validator(self, accepted_options, given_options):
parser = self.setup_parser(accepted_options)
(options, arguments) = parser.parse_args(given_options)
return OptionValidator(parser, options, arguments)
def error_count_msg(self, real_count, expected_count):
return "validator error count was expected to be %s while in fact it was %s"\
% (real_count, real_count)
def return_value_msg(self, method_name, real_value, expected_value):
return "validator method '%s' was expected to return %s while in fact it returned %s"\
% (method_name, expected_value, real_value)
def assert_error_count(self, validator, expected_count):
msg = self.error_count_msg(len(validator.opt_errors), expected_count)
self.assertEquals(len(validator.opt_errors), expected_count, msg=msg)
class ExistsTest(<API key>):
#def exists(self, opt_dest)
def __test_method(self, given_options, tested_option, <API key>):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
returned_value = validator.exists(tested_option)
message = self.return_value_msg("exists", returned_value, <API key>)
self.assertEquals(returned_value, <API key>, msg=message)
def <API key>(self):
self.__test_method(['--test1', '--test2'], 'test1', True)
def <API key>(self):
self.__test_method([], 'test1', False)
def <API key>(self):
self.__test_method(['--test2', '--test3'], 'test1', False)
class AnyExistTest(<API key>):
#def any_exist(self, opt_dests)
def __test_method(self, given_options, tested_options, <API key>):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
returned_value = validator.any_exist(tested_options)
message = self.return_value_msg("any_exist", returned_value, <API key>)
self.assertEquals(returned_value, <API key>, msg=message)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test2'), True)
def <API key>(self):
self.__test_method([], ('test1', 'test2'), False)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test3', 'test4'), False)
class AllExistTest(<API key>):
#def all_exist(self, opt_dests)
def __test_method(self, given_options, tested_options, <API key>):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
returned_value = validator.all_exist(tested_options)
message = self.return_value_msg("all_exist", returned_value, <API key>)
self.assertEquals(returned_value, <API key>, msg=message)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test2'), True)
def <API key>(self):
self.__test_method(['--test1'], ('test1', 'test2'), False)
def <API key>(self):
self.__test_method([], ('test1', 'test2'), False)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test3', 'test4'), False)
class RequireTest(<API key>):
#def require(self, opt_dests, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.require(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method(['--test1', '--test2'], 'test1', 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], 'test3', 1)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test3'), 1)
def <API key>(self):
self.__test_method([], ('test1', 'test3'), 2)
class MutuallyExcludeTest(<API key>):
#def mutually_exclude(self, *opt_dest_tuples)
def __test_method(self, given_options, <API key>, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.mutually_exclude(*<API key>)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method(['--test1', '--test3'], (('test1', ), ('test2', )), 0)
def <API key>(self):
self.__test_method(['--test3', '--test4'], (('test1', ), ('test2', )), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], (('test1', ), ('test2', )), 1)
class RejectTest(<API key>):
#def reject(self, opt_dest, colliding_opts=None, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.reject(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method(['--test1', '--test2'], 'test3', 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test3', 'test4'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], 'test1', 1)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test2'), 1)
class <API key>(<API key>):
#def require_all_or_none(self, opt_dests, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.require_all_or_none(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method([], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2'], ('test3', 'test4'), 0)
def <API key>(self):
self.__test_method(['--test1'], ('test1', 'test2'), 1)
class RequireOneOfTest(<API key>):
#def require_one_of(self, opt_dests, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.require_one_of(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method([], ('test1', 'test2'), 1)
def <API key>(self):
self.__test_method(['--test3'], ('test1', 'test2'), 1)
def <API key>(self):
self.__test_method(['--test1', '--test2', '--test3'], ('test1', 'test2'), 1)
def <API key>(self):
self.__test_method(['--test1'], ('test1', 'test2'), 0)
class <API key>(<API key>):
#def <API key>(self, opt_dests, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.<API key>(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def test_on_no_options(self):
self.__test_method([], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test3'], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1'], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2', '--test3'], ('test1', 'test2'), 1)
class <API key>(<API key>):
#def <API key>(self, opt_dests, message=None)
def __test_method(self, given_options, tested_options, expected_error_cnt):
validator = self.setup_validator(
accepted_options = ('test1', 'test2', 'test3', 'test4'),
given_options = given_options
)
validator.<API key>(tested_options)
self.assert_error_count(validator, expected_error_cnt)
def <API key>(self):
self.__test_method([], ('test1', 'test2'), 1)
def <API key>(self):
self.__test_method(['--test3'], ('test1', 'test2'), 1)
def <API key>(self):
self.__test_method(['--test1'], ('test1', 'test2'), 0)
def <API key>(self):
self.__test_method(['--test1', '--test2', '--test3'], ('test1', 'test2'), 0)
class AddOptionErrorTest(<API key>):
#def add_option_error(self, error_msg)
def <API key>(self):
validator = self.setup_validator(
accepted_options = ('test1', ),
given_options = []
)
self.assertEquals(len(validator.opt_errors), 0)
def test_it_adds_error(self):
validator = self.setup_validator(
accepted_options = ('test1', ),
given_options = []
)
validator.add_option_error("Error!")
self.assertEquals(len(validator.opt_errors), 1)
|
#include "io.h"
#include "fbuf.h"
#include "unix.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <string.h>
static const int five = 5;
static const int six = 6;
extern int PREFIX(fgetc) (const int *, char *, gfc_charlen_type);
export_proto_np(PREFIX(fgetc));
int
PREFIX(fgetc) (const int * unit, char * c, gfc_charlen_type c_len)
{
int ret;
gfc_unit * u = find_unit (*unit);
if (u == NULL)
return -1;
fbuf_reset (u);
if (u->mode == WRITING)
{
sflush (u->s);
u->mode = READING;
}
memset (c, ' ', c_len);
ret = sread (u->s, c, 1);
unlock_unit (u);
if (ret < 0)
return ret;
if (ret != 1)
return -1;
else
return 0;
}
#define FGETC_SUB(kind) \
extern void fgetc_i ## kind ## _sub \
(const int *, char *, GFC_INTEGER_ ## kind *, gfc_charlen_type); \
export_proto(fgetc_i ## kind ## _sub); \
void fgetc_i ## kind ## _sub \
(const int * unit, char * c, GFC_INTEGER_ ## kind * st, gfc_charlen_type c_len) \
{ if (st != NULL) \
*st = PREFIX(fgetc) (unit, c, c_len); \
else \
PREFIX(fgetc) (unit, c, c_len); }
FGETC_SUB(1)
FGETC_SUB(2)
FGETC_SUB(4)
FGETC_SUB(8)
extern int PREFIX(fget) (char *, gfc_charlen_type);
export_proto_np(PREFIX(fget));
int
PREFIX(fget) (char * c, gfc_charlen_type c_len)
{
return PREFIX(fgetc) (&five, c, c_len);
}
#define FGET_SUB(kind) \
extern void fget_i ## kind ## _sub \
(char *, GFC_INTEGER_ ## kind *, gfc_charlen_type); \
export_proto(fget_i ## kind ## _sub); \
void fget_i ## kind ## _sub \
(char * c, GFC_INTEGER_ ## kind * st, gfc_charlen_type c_len) \
{ if (st != NULL) \
*st = PREFIX(fgetc) (&five, c, c_len); \
else \
PREFIX(fgetc) (&five, c, c_len); }
FGET_SUB(1)
FGET_SUB(2)
FGET_SUB(4)
FGET_SUB(8)
extern int PREFIX(fputc) (const int *, char *, gfc_charlen_type);
export_proto_np(PREFIX(fputc));
int
PREFIX(fputc) (const int * unit, char * c,
gfc_charlen_type c_len __attribute__((unused)))
{
ssize_t s;
gfc_unit * u = find_unit (*unit);
if (u == NULL)
return -1;
fbuf_reset (u);
if (u->mode == READING)
{
sflush (u->s);
u->mode = WRITING;
}
s = swrite (u->s, c, 1);
unlock_unit (u);
if (s < 0)
return -1;
return 0;
}
#define FPUTC_SUB(kind) \
extern void fputc_i ## kind ## _sub \
(const int *, char *, GFC_INTEGER_ ## kind *, gfc_charlen_type); \
export_proto(fputc_i ## kind ## _sub); \
void fputc_i ## kind ## _sub \
(const int * unit, char * c, GFC_INTEGER_ ## kind * st, gfc_charlen_type c_len) \
{ if (st != NULL) \
*st = PREFIX(fputc) (unit, c, c_len); \
else \
PREFIX(fputc) (unit, c, c_len); }
FPUTC_SUB(1)
FPUTC_SUB(2)
FPUTC_SUB(4)
FPUTC_SUB(8)
extern int PREFIX(fput) (char *, gfc_charlen_type);
export_proto_np(PREFIX(fput));
int
PREFIX(fput) (char * c, gfc_charlen_type c_len)
{
return PREFIX(fputc) (&six, c, c_len);
}
#define FPUT_SUB(kind) \
extern void fput_i ## kind ## _sub \
(char *, GFC_INTEGER_ ## kind *, gfc_charlen_type); \
export_proto(fput_i ## kind ## _sub); \
void fput_i ## kind ## _sub \
(char * c, GFC_INTEGER_ ## kind * st, gfc_charlen_type c_len) \
{ if (st != NULL) \
*st = PREFIX(fputc) (&six, c, c_len); \
else \
PREFIX(fputc) (&six, c, c_len); }
FPUT_SUB(1)
FPUT_SUB(2)
FPUT_SUB(4)
FPUT_SUB(8)
/* SUBROUTINE FLUSH(UNIT)
INTEGER, INTENT(IN), OPTIONAL :: UNIT */
extern void flush_i4 (GFC_INTEGER_4 *);
export_proto(flush_i4);
void
flush_i4 (GFC_INTEGER_4 *unit)
{
gfc_unit *us;
/* flush all streams */
if (unit == NULL)
flush_all_units ();
else
{
us = find_unit (*unit);
if (us != NULL)
{
sflush (us->s);
unlock_unit (us);
}
}
}
extern void flush_i8 (GFC_INTEGER_8 *);
export_proto(flush_i8);
void
flush_i8 (GFC_INTEGER_8 *unit)
{
gfc_unit *us;
/* flush all streams */
if (unit == NULL)
flush_all_units ();
else
{
us = find_unit (*unit);
if (us != NULL)
{
sflush (us->s);
unlock_unit (us);
}
}
}
/* FSEEK intrinsic */
extern void fseek_sub (int *, GFC_IO_INT *, int *, int *);
export_proto(fseek_sub);
void
fseek_sub (int * unit, GFC_IO_INT * offset, int * whence, int * status)
{
gfc_unit * u = find_unit (*unit);
ssize_t result = -1;
if (u != NULL && is_seekable(u->s))
{
result = sseek(u->s, *offset, *whence);
unlock_unit (u);
}
if (status)
*status = (result < 0 ? -1 : 0);
}
/* FTELL intrinsic */
static gfc_offset
gf_ftell (int unit)
{
gfc_unit * u = find_unit (unit);
if (u == NULL)
return -1;
int pos = fbuf_reset (u);
if (pos != 0)
sseek (u->s, pos, SEEK_CUR);
gfc_offset ret = stell (u->s);
unlock_unit (u);
return ret;
}
extern size_t PREFIX(ftell) (int *);
export_proto_np(PREFIX(ftell));
size_t
PREFIX(ftell) (int * unit)
{
return gf_ftell (*unit);
}
#define FTELL_SUB(kind) \
extern void ftell_i ## kind ## _sub (int *, GFC_INTEGER_ ## kind *); \
export_proto(ftell_i ## kind ## _sub); \
void \
ftell_i ## kind ## _sub (int * unit, GFC_INTEGER_ ## kind * offset) \
{ \
*offset = gf_ftell (*unit); \
}
FTELL_SUB(1)
FTELL_SUB(2)
FTELL_SUB(4)
FTELL_SUB(8)
/* LOGICAL FUNCTION ISATTY(UNIT)
INTEGER, INTENT(IN) :: UNIT */
extern GFC_LOGICAL_4 isatty_l4 (int *);
export_proto(isatty_l4);
GFC_LOGICAL_4
isatty_l4 (int *unit)
{
gfc_unit *u;
GFC_LOGICAL_4 ret = 0;
u = find_unit (*unit);
if (u != NULL)
{
ret = (GFC_LOGICAL_4) stream_isatty (u->s);
unlock_unit (u);
}
return ret;
}
extern GFC_LOGICAL_8 isatty_l8 (int *);
export_proto(isatty_l8);
GFC_LOGICAL_8
isatty_l8 (int *unit)
{
gfc_unit *u;
GFC_LOGICAL_8 ret = 0;
u = find_unit (*unit);
if (u != NULL)
{
ret = (GFC_LOGICAL_8) stream_isatty (u->s);
unlock_unit (u);
}
return ret;
}
/* SUBROUTINE TTYNAM(UNIT,NAME)
INTEGER,SCALAR,INTENT(IN) :: UNIT
CHARACTER,SCALAR,INTENT(OUT) :: NAME */
extern void ttynam_sub (int *, char *, gfc_charlen_type);
export_proto(ttynam_sub);
void
ttynam_sub (int *unit, char * name, gfc_charlen_type name_len)
{
gfc_unit *u;
char * n;
int i;
memset (name, ' ', name_len);
u = find_unit (*unit);
if (u != NULL)
{
n = stream_ttyname (u->s);
if (n != NULL)
{
i = 0;
while (*n && i < name_len)
name[i++] = *(n++);
}
unlock_unit (u);
}
}
extern void ttynam (char **, gfc_charlen_type *, int);
export_proto(ttynam);
void
ttynam (char ** name, gfc_charlen_type * name_len, int unit)
{
gfc_unit *u;
u = find_unit (unit);
if (u != NULL)
{
*name = stream_ttyname (u->s);
if (*name != NULL)
{
*name_len = strlen (*name);
*name = strdup (*name);
unlock_unit (u);
return;
}
unlock_unit (u);
}
*name_len = 0;
*name = NULL;
}
|
#ifndef <API key>
#define <API key>
/*
* s5k5bafx register configuration for combinations of initialization
*/
/* 2M mipi setting-common from PARTRON */
static const u32 s5k5bafx_common[] = {
/* Self-Cam */
0xFCFCD000,
/* ARM Go */
0x0028D000,
0x002A1030,
0x0F120000,
0x002A0014,
0x0F120001,
0xffff0064,
/* Trap and Patch */
0x00287000,
0x002A1668,
0x0F12B5FE, /*70001668*/
0x0F120007, /*7000166A*/
0x0F12683C, /*7000166C*/
0x0F12687E, /*7000166E*/
0x0F121DA5, /*70001670*/
0x0F1288A0, /*70001672*/
0x0F122800, /*70001674*/
0x0F12D00B, /*70001676*/
0x0F1288A8, /*70001678*/
0x0F122800, /*7000167A*/
0x0F12D008, /*7000167C*/
0x0F128820, /*7000167E*/
0x0F128829, /*70001680*/
0x0F124288, /*70001682*/
0x0F12D301, /*70001684*/
0x0F121A40, /*70001686*/
0x0F12E000, /*70001688*/
0x0F121A08, /*7000168A*/
0x0F129001, /*7000168C*/
0x0F12E001, /*7000168E*/
0x0F122019, /*70001690*/
0x0F129001, /*70001692*/
0x0F124916, /*70001694*/
0x0F12466B, /*70001696*/
0x0F128A48, /*70001698*/
0x0F128118, /*7000169A*/
0x0F128A88, /*7000169C*/
0x0F128158, /*7000169E*/
0x0F124814, /*700016A0*/
0x0F128940, /*700016A2*/
0x0F120040, /*700016A4*/
0x0F122103, /*700016A6*/
0x0F12F000, /*700016A8*/
0x0F12F826, /*700016AA*/
0x0F1288A1, /*700016AC*/
0x0F124288, /*700016AE*/
0x0F12D908, /*700016B0*/
0x0F128828, /*700016B2*/
0x0F128030, /*700016B4*/
0x0F128868, /*700016B6*/
0x0F128070, /*700016B8*/
0x0F1288A8, /*700016BA*/
0x0F126038, /*700016BC*/
0x0F12BCFE, /*700016BE*/
0x0F12BC08, /*700016C0*/
0x0F124718, /*700016C2*/
0x0F1288A9, /*700016C4*/
0x0F124288, /*700016C6*/
0x0F12D906, /*700016C8*/
0x0F128820, /*700016CA*/
0x0F128030, /*700016CC*/
0x0F128860, /*700016CE*/
0x0F128070, /*700016D0*/
0x0F1288A0, /*700016D2*/
0x0F126038, /*700016D4*/
0x0F12E7F2, /*700016D6*/
0x0F129801, /*700016D8*/
0x0F12A902, /*700016DA*/
0x0F12F000, /*700016DC*/
0x0F12F812, /*700016DE*/
0x0F120033, /*700016E0*/
0x0F120029, /*700016E2*/
0x0F129A02, /*700016E4*/
0x0F120020, /*700016E6*/
0x0F12F000, /*700016E8*/
0x0F12F814, /*700016EA*/
0x0F126038, /*700016EC*/
0x0F12E7E6, /*700016EE*/
0x0F121A28, /*700016F0*/
0x0F127000, /*700016F2*/
0x0F120D64, /*700016F4*/
0x0F127000, /*700016F6*/
0x0F124778, /*700016F8*/
0x0F1246C0, /*700016FA*/
0x0F12F004, /*700016FC*/
0x0F12E51F, /*700016FE*/
0x0F12A464, /*70001700*/
0x0F120000, /*70001702*/
0x0F124778, /*70001704*/
0x0F1246C0, /*70001706*/
0x0F12C000, /*70001708*/
0x0F12E59F, /*7000170A*/
0x0F12FF1C, /*7000170C*/
0x0F12E12F, /*7000170E*/
0x0F126009, /*70001710*/
0x0F120000, /*70001712*/
0x0F124778, /*70001714*/
0x0F1246C0, /*70001716*/
0x0F12C000, /*70001718*/
0x0F12E59F, /*7000171A*/
0x0F12FF1C, /*7000171C*/
0x0F12E12F, /*7000171E*/
0x0F12622F, /*70001720*/
0x0F120000, /*70001722*/
0x002A2080,
0x0F12B510, /*70002080*/
0x0F12F000, /*70002082*/
0x0F12F8F4, /*70002084*/
0x0F12BC10, /*70002086*/
0x0F12BC08, /*70002088*/
0x0F124718, /*7000208A*/
0x0F12B5F0, /*7000208C*/
0x0F12B08B, /*7000208E*/
0x0F120006, /*70002090*/
0x0F122000, /*70002092*/
0x0F129004, /*70002094*/
0x0F126835, /*70002096*/
0x0F126874, /*70002098*/
0x0F1268B0, /*7000209A*/
0x0F12900A, /*7000209C*/
0x0F1268F0, /*7000209E*/
0x0F129009, /*700020A0*/
0x0F124F7D, /*700020A2*/
0x0F128979, /*700020A4*/
0x0F12084A, /*700020A6*/
0x0F1288A8, /*700020A8*/
0x0F1288A3, /*700020AA*/
0x0F124298, /*700020AC*/
0x0F12D300, /*700020AE*/
0x0F120018, /*700020B0*/
0x0F12F000, /*700020B2*/
0x0F12F907, /*700020B4*/
0x0F129007, /*700020B6*/
0x0F120021, /*700020B8*/
0x0F120028, /*700020BA*/
0x0F12AA04, /*700020BC*/
0x0F12F000, /*700020BE*/
0x0F12F909, /*700020C0*/
0x0F129006, /*700020C2*/
0x0F1288A8, /*700020C4*/
0x0F122800, /*700020C6*/
0x0F12D102, /*700020C8*/
0x0F1227FF, /*700020CA*/
0x0F121C7F, /*700020CC*/
0x0F12E047, /*700020CE*/
0x0F1288A0, /*700020D0*/
0x0F122800, /*700020D2*/
0x0F12D101, /*700020D4*/
0x0F122700, /*700020D6*/
0x0F12E042, /*700020D8*/
0x0F128820, /*700020DA*/
0x0F12466B, /*700020DC*/
0x0F128198, /*700020DE*/
0x0F128860, /*700020E0*/
0x0F1281D8, /*700020E2*/
0x0F128828, /*700020E4*/
0x0F128118, /*700020E6*/
0x0F128868, /*700020E8*/
0x0F128158, /*700020EA*/
0x0F12A802, /*700020EC*/
0x0F12C803, /*700020EE*/
0x0F12F000, /*700020F0*/
0x0F12F8F8, /*700020F2*/
0x0F129008, /*700020F4*/
0x0F128ABA, /*700020F6*/
0x0F129808, /*700020F8*/
0x0F12466B, /*700020FA*/
0x0F124342, /*700020FC*/
0x0F129202, /*700020FE*/
0x0F128820, /*70002100*/
0x0F128198, /*70002102*/
0x0F128860, /*70002104*/
0x0F1281D8, /*70002106*/
0x0F12980A, /*70002108*/
0x0F129903, /*7000210A*/
0x0F12F000, /*7000210C*/
0x0F12F8EA, /*7000210E*/
0x0F129A02, /*70002110*/
0x0F1217D1, /*70002112*/
0x0F120E09, /*70002114*/
0x0F121889, /*70002116*/
0x0F121209, /*70002118*/
0x0F124288, /*7000211A*/
0x0F12DD1F, /*7000211C*/
0x0F128820, /*7000211E*/
0x0F12466B, /*70002120*/
0x0F128198, /*70002122*/
0x0F128860, /*70002124*/
0x0F1281D8, /*70002126*/
0x0F12980A, /*70002128*/
0x0F129903, /*7000212A*/
0x0F12F000, /*7000212C*/
0x0F12F8DA, /*7000212E*/
0x0F129001, /*70002130*/
0x0F128828, /*70002132*/
0x0F12466B, /*70002134*/
0x0F128118, /*70002136*/
0x0F128868, /*70002138*/
0x0F128158, /*7000213A*/
0x0F12980A, /*7000213C*/
0x0F129902, /*7000213E*/
0x0F12F000, /*70002140*/
0x0F12F8D0, /*70002142*/
0x0F128AB9, /*70002144*/
0x0F129A08, /*70002146*/
0x0F124351, /*70002148*/
0x0F1217CA, /*7000214A*/
0x0F120E12, /*7000214C*/
0x0F121851, /*7000214E*/
0x0F12120A, /*70002150*/
0x0F129901, /*70002152*/
0x0F12F000, /*70002154*/
0x0F12F8B6, /*70002156*/
0x0F120407, /*70002158*/
0x0F120C3F, /*7000215A*/
0x0F12E000, /*7000215C*/
0x0F122700, /*7000215E*/
0x0F128820, /*70002160*/
0x0F12466B, /*70002162*/
0x0F12AA05, /*70002164*/
0x0F128198, /*70002166*/
0x0F128860, /*70002168*/
0x0F1281D8, /*7000216A*/
0x0F128828, /*7000216C*/
0x0F128118, /*7000216E*/
0x0F128868, /*70002170*/
0x0F128158, /*70002172*/
0x0F12A802, /*70002174*/
0x0F12C803, /*70002176*/
0x0F12003B, /*70002178*/
0x0F12F000, /*7000217A*/
0x0F12F8BB, /*7000217C*/
0x0F1288A1, /*7000217E*/
0x0F1288A8, /*70002180*/
0x0F12003A, /*70002182*/
0x0F12F000, /*70002184*/
0x0F12F8BE, /*70002186*/
0x0F120004, /*70002188*/
0x0F12A804, /*7000218A*/
0x0F12C803, /*7000218C*/
0x0F129A09, /*7000218E*/
0x0F129B07, /*70002190*/
0x0F12F000, /*70002192*/
0x0F12F8AF, /*70002194*/
0x0F12A806, /*70002196*/
0x0F12C805, /*70002198*/
0x0F120021, /*7000219A*/
0x0F12F000, /*7000219C*/
0x0F12F8B2, /*7000219E*/
0x0F126030, /*700021A0*/
0x0F12B00B, /*700021A2*/
0x0F12BCF0, /*700021A4*/
0x0F12BC08, /*700021A6*/
0x0F124718, /*700021A8*/
0x0F12B5F1, /*700021AA*/
0x0F129900, /*700021AC*/
0x0F12680C, /*700021AE*/
0x0F12493A, /*700021B0*/
0x0F12694B, /*700021B2*/
0x0F12698A, /*700021B4*/
0x0F124694, /*700021B6*/
0x0F1269CD, /*700021B8*/
0x0F126A0E, /*700021BA*/
0x0F124F38, /*700021BC*/
0x0F1242BC, /*700021BE*/
0x0F12D800, /*700021C0*/
0x0F120027, /*700021C2*/
0x0F124937, /*700021C4*/
0x0F126B89, /*700021C6*/
0x0F120409, /*700021C8*/
0x0F120C09, /*700021CA*/
0x0F124A35, /*700021CC*/
0x0F121E92, /*700021CE*/
0x0F126BD2, /*700021D0*/
0x0F120412, /*700021D2*/
0x0F120C12, /*700021D4*/
0x0F12429F, /*700021D6*/
0x0F12D801, /*700021D8*/
0x0F120020, /*700021DA*/
0x0F12E031, /*700021DC*/
0x0F12001F, /*700021DE*/
0x0F12434F, /*700021E0*/
0x0F120A3F, /*700021E2*/
0x0F1242A7, /*700021E4*/
0x0F12D301, /*700021E6*/
0x0F120018, /*700021E8*/
0x0F12E02A, /*700021EA*/
0x0F12002B, /*700021EC*/
0x0F12434B, /*700021EE*/
0x0F120A1B, /*700021F0*/
0x0F1242A3, /*700021F2*/
0x0F12D303, /*700021F4*/
0x0F120220, /*700021F6*/
0x0F12F000, /*700021F8*/
0x0F12F88C, /*700021FA*/
0x0F12E021, /*700021FC*/
0x0F120029, /*700021FE*/
0x0F124351, /*70002200*/
0x0F120A09, /*70002202*/
0x0F1242A1, /*70002204*/
0x0F12D301, /*70002206*/
0x0F120028, /*70002208*/
0x0F12E01A, /*7000220A*/
0x0F120031, /*7000220C*/
0x0F124351, /*7000220E*/
0x0F120A09, /*70002210*/
0x0F1242A1, /*70002212*/
0x0F12D304, /*70002214*/
0x0F120220, /*70002216*/
0x0F120011, /*70002218*/
0x0F12F000, /*7000221A*/
0x0F12F87B, /*7000221C*/
0x0F12E010, /*7000221E*/
0x0F12491E, /*70002220*/
0x0F128C89, /*70002222*/
0x0F12000A, /*70002224*/
0x0F124372, /*70002226*/
0x0F120A12, /*70002228*/
0x0F1242A2, /*7000222A*/
0x0F12D301, /*7000222C*/
0x0F120030, /*7000222E*/
0x0F12E007, /*70002230*/
0x0F124662, /*70002232*/
0x0F12434A, /*70002234*/
0x0F120A12, /*70002236*/
0x0F1242A2, /*70002238*/
0x0F12D302, /*7000223A*/
0x0F120220, /*7000223C*/
0x0F12F000, /*7000223E*/
0x0F12F869, /*70002240*/
0x0F124B16, /*70002242*/
0x0F124D18, /*70002244*/
0x0F128D99, /*70002246*/
0x0F121FCA, /*70002248*/
0x0F123AF9, /*7000224A*/
0x0F12D00A, /*7000224C*/
0x0F122001, /*7000224E*/
0x0F120240, /*70002250*/
0x0F128468, /*70002252*/
0x0F120220, /*70002254*/
0x0F12F000, /*70002256*/
0x0F12F85D, /*70002258*/
0x0F129900, /*7000225A*/
0x0F126008, /*7000225C*/
0x0F12BCF8, /*7000225E*/
0x0F12BC08, /*70002260*/
0x0F124718, /*70002262*/
0x0F128D19, /*70002264*/
0x0F128469, /*70002266*/
0x0F129900, /*70002268*/
0x0F126008, /*7000226A*/
0x0F12E7F7, /*7000226C*/
0x0F12B570, /*7000226E*/
0x0F122200, /*70002270*/
0x0F12490E, /*70002272*/
0x0F12480E, /*70002274*/
0x0F122401, /*70002276*/
0x0F12F000, /*70002278*/
0x0F12F852, /*7000227A*/
0x0F120022, /*7000227C*/
0x0F12490D, /*7000227E*/
0x0F12480D, /*70002280*/
0x0F122502, /*70002282*/
0x0F12F000, /*70002284*/
0x0F12F84C, /*70002286*/
0x0F12490C, /*70002288*/
0x0F12480D, /*7000228A*/
0x0F12002A, /*7000228C*/
0x0F12F000, /*7000228E*/
0x0F12F847, /*70002290*/
0x0F12BC70, /*70002292*/
0x0F12BC08, /*70002294*/
0x0F124718, /*70002296*/
0x0F120D64, /*70002298*/
0x0F127000, /*7000229A*/
0x0F120470, /*7000229C*/
0x0F127000, /*7000229E*/
0x0F12A120, /*700022A0*/
0x0F120007, /*700022A2*/
0x0F120402, /*700022A4*/
0x0F127000, /*700022A6*/
0x0F1214A0, /*700022A8*/
0x0F127000, /*700022AA*/
0x0F12208D, /*700022AC*/
0x0F127000, /*700022AE*/
0x0F12622F, /*700022B0*/
0x0F120000, /*700022B2*/
0x0F121669, /*700022B4*/
0x0F127000, /*700022B6*/
0x0F126445, /*700022B8*/
0x0F120000, /*700022BA*/
0x0F1221AB, /*700022BC*/
0x0F127000, /*700022BE*/
0x0F122AA9, /*700022C0*/
0x0F120000, /*700022C2*/
0x0F124778, /*700022C4*/
0x0F1246C0, /*700022C6*/
0x0F12C000, /*700022C8*/
0x0F12E59F, /*700022CA*/
0x0F12FF1C, /*700022CC*/
0x0F12E12F, /*700022CE*/
0x0F125F49, /*700022D0*/
0x0F120000, /*700022D2*/
0x0F124778, /*700022D4*/
0x0F1246C0, /*700022D6*/
0x0F12C000, /*700022D8*/
0x0F12E59F, /*700022DA*/
0x0F12FF1C, /*700022DC*/
0x0F12E12F, /*700022DE*/
0x0F125FC7, /*700022E0*/
0x0F120000, /*700022E2*/
0x0F124778, /*700022E4*/
0x0F1246C0, /*700022E6*/
0x0F12C000, /*700022E8*/
0x0F12E59F, /*700022EA*/
0x0F12FF1C, /*700022EC*/
0x0F12E12F, /*700022EE*/
0x0F125457, /*700022F0*/
0x0F120000, /*700022F2*/
0x0F124778, /*700022F4*/
0x0F1246C0, /*700022F6*/
0x0F12C000, /*700022F8*/
0x0F12E59F, /*700022FA*/
0x0F12FF1C, /*700022FC*/
0x0F12E12F, /*700022FE*/
0x0F125FA3, /*70002300*/
0x0F120000, /*70002302*/
0x0F124778, /*70002304*/
0x0F1246C0, /*70002306*/
0x0F12C000, /*70002308*/
0x0F12E59F, /*7000230A*/
0x0F12FF1C, /*7000230C*/
0x0F12E12F, /*7000230E*/
0x0F1251F9, /*70002310*/
0x0F120000, /*70002312*/
0x0F124778, /*70002314*/
0x0F1246C0, /*70002316*/
0x0F12F004, /*70002318*/
0x0F12E51F, /*7000231A*/
0x0F12A464, /*7000231C*/
0x0F120000, /*7000231E*/
0x0F124778, /*70002320*/
0x0F1246C0, /*70002322*/
0x0F12C000, /*70002324*/
0x0F12E59F, /*70002326*/
0x0F12FF1C, /*70002328*/
0x0F12E12F, /*7000232A*/
0x0F12A007, /*7000232C*/
0x0F120000, /*7000232E*/
0x0F126546, /*70002330*/
0x0F122062, /*70002332*/
0x0F123120, /*70002334*/
0x0F123220, /*70002336*/
0x0F123130, /*70002338*/
0x0F120030, /*7000233A*/
0x0F12E010, /*7000233C*/
0x0F120208, /*7000233E*/
0x0F120058, /*70002340*/
0x0F120000, /*70002342*/
/* End of Trap and Patch
Total Size 896 (0x0380)*/
0x0028D000,
0x002A1000,
0x0F120001,
0x00287000,
0x002A1662,
0x0F1203B0,
0x0F1203B0,
0x00287000,
0x002A1658,
0x0F129C40,
0x0F120000,
0x0F129C40,
0x0F120000,
0x00287000,
0x002A0ADC,
0x0F120AF0,
0x002A0AE2,
0x0F12222E,
0x002A0B94,
0x0F120580,
0x0F120400,
0x0F1205F0,
0x002A04A0,
0x0F128000,
0x002A049A,
0x0F1200FA,
/* Set CIS/APS/Analog */
0x0028D000,
0x002AF106,
0x0F120001,
0x002AF206,
0x0F120001,
0x002AC202,
0x0F120700,
0x002AF260,
0x0F120001,
0x002AF414,
0x0F120030,
0x002AC204,
0x0F120100,
0x002AF402,
0x0F120092,
0x0F12007F,
0x002AF700,
0x0F120040,
0x002AF708,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120001,
0x0F120015,
0x0F120001,
0x0F120040,
0x002AF48A,
0x0F120048,
0x002AF10A,
0x0F12008B,
0x002AF900,
0x0F120067,
0x002AF406,
0x0F120092,
0x0F12007F,
0x0F120003,
0x0F120003,
0x0F120003,
0x002AF442,
0x0F120000,
0x0F120000,
0x002AF448,
0x0F120000,
0x002AF456,
0x0F120001,
0x0F120010,
0x0F120000,
0x002AF41A,
0x0F1200FF,
0x0F120003,
0x002AF420,
0x0F120030,
0x002AF410,
0x0F120001,
0x0F120000,
0x002AF416,
0x0F120001,
0x002AF424,
0x0F120000,
0x002AF422,
0x0F120000,
0x002AF41E,
0x0F120000,
0x002AF428,
0x0F120000,
0x0F120000,
0x0F120000,
0x002AF430,
0x0F120000,
0x0F120000,
0x0F120008,
0x0F120005,
0x0F12000F,
0x0F120001,
0x0F120040,
0x0F120040,
0x0F120010,
0x002AF4D6,
0x0F120090,
0x0F120000,
0x002AF47C,
0x0F12000C,
0x0F120000,
0x002AF49A,
0x0F120008,
0x0F120000,
0x002AF4A2,
0x0F120008,
0x0F120000,
0x002AF4B2,
0x0F120013,
0x0F120000,
0x0F120013,
0x0F120000,
0x002AF4AA,
0x0F12009B,
0x0F1200FB,
0x0F12009B,
0x0F1200FB,
0x002AF474,
0x0F120017,
0x0F12005F,
0x0F120017,
0x0F12008F,
0x002AF48C,
0x0F120017,
0x0F12009B,
0x002AF4C8,
0x0F120163,
0x0F120193,
0x002AF490,
0x0F120191,
0x002AF418,
0x0F120083,
0x002AF454,
0x0F120001,
0x002AF702,
0x0F120081,
0x002AF4D2,
0x0F120000,
/* For ESD Check */
0x00287000,
0x002A0132,
0x0F12AAAA,
/* Set FPN Gain Input */
0x002A1176,
0x0F120020,
0x0F120040,
0x0F120080,
0x0F120100,
0x0F120014,
0x0F12000A,
0x0F120008,
0x0F120004,
/* CFPN Canceller*/
0x002A116C,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120002,
0x002A0AE8,
0x0F120000,
0x002A10EE,
0x0F120000,
0x002A10F2,
0x0F120000,
0x002A1152,
0x0F120030,
0x0F120028,
0x0F120030,
0x002A1148,
0x0F1200FB,
0x002A1144,
0x0F1200FB,
0x002A1150,
0x0F1201F4,
0x002A1084,
0x0F120000,
0x0F120000,
/* Set AE Target */
0x002A0F4C,
0x0F12003A,
0x002A0478,
0x0F120114,
0x0F1200EB,
/* Set Frame Rate */
0x002A0484,
0x0F12410A,
0x0F120000,
0x002A048C,
0x0F128214,
0x0F120000,
0x0F12A122,
0x0F120000,
0x002A0488,
0x0F12f424,
0x0F120000,
0x002A043A,
0x0F1201D0,
0x0F1201E0,
0x002A0494,
0x0F120300,
0x0F120600,
0x0f120100,
0x002A0F52,
0x0F12000F,
0x002A0E98,
0x0F1202A8,
0x002A0E9E,
0x0F120298,
/*1. Auto Flicker 60Hz Start */
0x002A0B2E,
0x0F120001,
0x002A03F8,
0x0F12007F,
0xffff000a, /* Wait10mSec */
/* Set PLL */
/* External CLOCK (MCLK) */
0x002A01B8,
0x0F125DC0,
0x0F120000,
/* Parallel or MIP Selection */
0x002A01C6,
0x0F120001,
0x0F120001,
0x0F120000,
/* System Clock 0 (System : 24Mhz, PCLK : 48Mhz) */
0x002A01CC,
0x0F121770,
0x0F122EE0,
0x0F122EE0,
/* System Clock 1 (System : 28Mhz, PCLK : 48Mhz)*/
0x002A01D2,
0x0F121B58,
0x0F122EE0,
0x0F122EE0,
0x002A01DE,
0x0F120001,
0x0F120001,
0xffff0064, /* 100ms Delay */
/* Crop */
0x002A01FA,
0x0F120640,
0x0F1204B0,
0x0F120000,
0x0F120000,
/* Set Preview Config */
/* Preview Config 0 (1600x1200 fixed 15fps)*/
0x002A0242,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_0TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120535, /* <API key> */
0x0F12029A, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Preview Config 1 (640x480, Not Fixed 15 ~ 30fps)*/
0x002A0268,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_1TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12014D, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000,
0x002A03F2,
0x0F120001,
0x0F1200C3,
0x0F120001,
/* Apply preview config */
0x002A021C,
0x0F120000,
0x002A0220,
0x0F120001,
0x002A01F8,
0x0F120001,
0x002A021E,
0x0F120001,
0x002A01F0,
0x0F120001,
0x0F120001,
/* Capture Config 0 (1600x1200 fixed 8fps) */
0x002A0302,
0x0F120000,
0x0F120640,
0x0F1204B0,
0x0F120005,
0x0F122EE0,
0x0F122EE0,
0x0F120052,
0x0F120001,
0x0F120002,
0x0F120002,
0x0F120535,
0x0F120535,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
/* Periodic mismatch */
0x002A0780,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A0798,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A07C0,
0x0F120004,
0x0F120004,
0x002A0B94,
0x0F120580,
0x0F120400,
0x0F1205F0,
0x002A04A0,
0x0F128000,
/* Set AE Weights */
0x002A0F5A,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120302,
0x0F120203,
0x0F120101,
0x0F120101,
0x0F120403,
0x0F120304,
0x0F120101,
0x0F120101,
0x0F120403,
0x0F120304,
0x0F120101,
0x0F120101,
0x0F120302,
0x0F120203,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120101,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
/* Set GAS & CCM White Point */
/* param_start TVAR_ash_AwbAshCord*/
0x002A0704,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F1201B0,
0x0F120200,
/* param_start wbt_AwbCcmCord*/
0x002A06F2,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F120190,
0x002A103E,
0x0F120000,
0x0F120009,
0x0F120018,
0x0F120032,
0x0F12004A,
0x0F120051,
0x0F120056,
0x0F12010C,
0x0F12010C,
0x0F120109,
0x0F120105,
0x0F120102,
0x0F1200FB,
0x0F1200F8,
/* TVAR_ash_GASAlpha(Indoor) */
0x002A0712,
0x0F120100, /* TVAR_ash_GASAlpha[0] */
0x0F120100, /* TVAR_ash_GASAlpha[1] */
0x0F120100, /* TVAR_ash_GASAlpha[2] */
0x0F120100, /* TVAR_ash_GASAlpha[3] */
0x0F120100, /* TVAR_ash_GASAlpha[4] */
0x0F120100, /* TVAR_ash_GASAlpha[5] */
0x0F120100, /* TVAR_ash_GASAlpha[6] */
0x0F120100, /* TVAR_ash_GASAlpha[7] */
0x0F120100, /* TVAR_ash_GASAlpha[8] */
0x0F120100, /* TVAR_ash_GASAlpha[9] */
0x0F120100, /* TVAR_ash_GASAlpha[10] */
0x0F120100, /* TVAR_ash_GASAlpha[11] */
0x0F120100, /* TVAR_ash_GASAlpha[12] */
0x0F120100, /* TVAR_ash_GASAlpha[13] */
0x0F120100, /* TVAR_ash_GASAlpha[14] */
0x0F120100, /* TVAR_ash_GASAlpha[15] */
0x0F120100, /* TVAR_ash_GASAlpha[16] */
0x0F120100, /* TVAR_ash_GASAlpha[17] */
0x0F120100, /* TVAR_ash_GASAlpha[18] */
0x0F120100, /* TVAR_ash_GASAlpha[19] */
0x0F120100, /* TVAR_ash_GASAlpha[20] */
0x0F120100, /* TVAR_ash_GASAlpha[21] */
0x0F120100, /* TVAR_ash_GASAlpha[22] */
0x0F120100, /* TVAR_ash_GASAlpha[23] */
0x0F120100, /* TVAR_ash_GASAlpha[24] */
0x0F120100, /* TVAR_ash_GASAlpha[25] */
0x0F120100, /* TVAR_ash_GASAlpha[26] */
0x0F120100, /* TVAR_ash_GASAlpha[27] */
/* TVAR_ash_GASAlpha(Outdoor) */
0x0F120108, /* 100 <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
/* GAS LUT Start Address */
0x002A0754,
0x0F122388,
0x0F127000,
/* param_start TVAR_ash_pGAS */
0x002A2388,
0x0F120160,
0x0F120134,
0x0F1200FF,
0x0F1200D1,
0x0F1200B1,
0x0F12009D,
0x0F120096,
0x0F12009E,
0x0F1200B3,
0x0F1200D3,
0x0F1200FF,
0x0F120131,
0x0F120159,
0x0F12013C,
0x0F120107,
0x0F1200CD,
0x0F1200A1,
0x0F120080,
0x0F12006B,
0x0F120064,
0x0F12006C,
0x0F120080,
0x0F1200A1,
0x0F1200CD,
0x0F120106,
0x0F120139,
0x0F120116,
0x0F1200DC,
0x0F1200A2,
0x0F120073,
0x0F120051,
0x0F12003B,
0x0F120033,
0x0F12003B,
0x0F120050,
0x0F120073,
0x0F1200A2,
0x0F1200DD,
0x0F120115,
0x0F1200FA,
0x0F1200BF,
0x0F120085,
0x0F120055,
0x0F120031,
0x0F12001B,
0x0F120014,
0x0F12001A,
0x0F120031,
0x0F120055,
0x0F120085,
0x0F1200C0,
0x0F1200FB,
0x0F1200EA,
0x0F1200AF,
0x0F120074,
0x0F120045,
0x0F120020,
0x0F12000B,
0x0F120003,
0x0F12000A,
0x0F120020,
0x0F120046,
0x0F120076,
0x0F1200B1,
0x0F1200ED,
0x0F1200E6,
0x0F1200AA,
0x0F120071,
0x0F120041,
0x0F12001D,
0x0F120008,
0x0F120000,
0x0F120007,
0x0F12001E,
0x0F120044,
0x0F120074,
0x0F1200B0,
0x0F1200EC,
0x0F1200EF,
0x0F1200B3,
0x0F12007A,
0x0F12004A,
0x0F120026,
0x0F120011,
0x0F12000A,
0x0F120011,
0x0F120029,
0x0F12004F,
0x0F120080,
0x0F1200BC,
0x0F1200F8,
0x0F120105,
0x0F1200C9,
0x0F12008F,
0x0F120060,
0x0F12003C,
0x0F120026,
0x0F12001F,
0x0F120028,
0x0F120040,
0x0F120066,
0x0F120097,
0x0F1200D4,
0x0F120110,
0x0F120124,
0x0F1200EB,
0x0F1200B1,
0x0F120082,
0x0F12005F,
0x0F12004A,
0x0F120043,
0x0F12004C,
0x0F120064,
0x0F120089,
0x0F1200BA,
0x0F1200F8,
0x0F12012F,
0x0F120147,
0x0F120116,
0x0F1200DE,
0x0F1200AF,
0x0F12008E,
0x0F12007A,
0x0F120072,
0x0F12007A,
0x0F120091,
0x0F1200B6,
0x0F1200E8,
0x0F120121,
0x0F120150,
0x0F120170,
0x0F12013F,
0x0F120110,
0x0F1200E2,
0x0F1200C0,
0x0F1200AB,
0x0F1200A4,
0x0F1200AC,
0x0F1200C3,
0x0F1200E6,
0x0F120117,
0x0F120145,
0x0F120172,
0x0F120127,
0x0F120100,
0x0F1200CF,
0x0F1200A7,
0x0F12008D,
0x0F12007D,
0x0F120077,
0x0F12007A,
0x0F120087,
0x0F12009E,
0x0F1200C0,
0x0F1200EC,
0x0F12010F,
0x0F120108,
0x0F1200D8,
0x0F1200A5,
0x0F120080,
0x0F120066,
0x0F120056,
0x0F12004F,
0x0F120053,
0x0F120061,
0x0F120077,
0x0F120098,
0x0F1200C6,
0x0F1200F3,
0x0F1200E7,
0x0F1200B4,
0x0F120081,
0x0F12005C,
0x0F120041,
0x0F120030,
0x0F120029,
0x0F12002E,
0x0F12003D,
0x0F120055,
0x0F120076,
0x0F1200A5,
0x0F1200D4,
0x0F1200CF,
0x0F12009B,
0x0F12006A,
0x0F120043,
0x0F120027,
0x0F120016,
0x0F12000F,
0x0F120015,
0x0F120025,
0x0F12003E,
0x0F120061,
0x0F12008E,
0x0F1200BF,
0x0F1200C2,
0x0F12008E,
0x0F12005D,
0x0F120037,
0x0F12001A,
0x0F120009,
0x0F120002,
0x0F120007,
0x0F120018,
0x0F120033,
0x0F120057,
0x0F120083,
0x0F1200B3,
0x0F1200BE,
0x0F12008A,
0x0F12005A,
0x0F120034,
0x0F120017,
0x0F120006,
0x0F120000,
0x0F120006,
0x0F120017,
0x0F120033,
0x0F120057,
0x0F120083,
0x0F1200B3,
0x0F1200C5,
0x0F120091,
0x0F120061,
0x0F12003B,
0x0F120020,
0x0F12000F,
0x0F120009,
0x0F120010,
0x0F120021,
0x0F12003D,
0x0F120060,
0x0F12008D,
0x0F1200BE,
0x0F1200D7,
0x0F1200A2,
0x0F120072,
0x0F12004D,
0x0F120032,
0x0F120022,
0x0F12001D,
0x0F120024,
0x0F120035,
0x0F120050,
0x0F120073,
0x0F1200A0,
0x0F1200D2,
0x0F1200F0,
0x0F1200BE,
0x0F12008C,
0x0F120068,
0x0F12004F,
0x0F120040,
0x0F12003B,
0x0F120041,
0x0F120052,
0x0F12006C,
0x0F12008E,
0x0F1200BE,
0x0F1200ED,
0x0F12010C,
0x0F1200E1,
0x0F1200AF,
0x0F12008A,
0x0F120072,
0x0F120064,
0x0F12005F,
0x0F120065,
0x0F120074,
0x0F12008D,
0x0F1200B2,
0x0F1200E0,
0x0F12010A,
0x0F12012F,
0x0F120104,
0x0F1200D9,
0x0F1200B3,
0x0F120099,
0x0F12008B,
0x0F120086,
0x0F12008B,
0x0F12009B,
0x0F1200B5,
0x0F1200DA,
0x0F120101,
0x0F120128,
0x0F12012F,
0x0F120106,
0x0F1200D4,
0x0F1200AA,
0x0F12008E,
0x0F12007D,
0x0F120079,
0x0F120080,
0x0F120093,
0x0F1200B1,
0x0F1200DC,
0x0F12010C,
0x0F120130,
0x0F120112,
0x0F1200E0,
0x0F1200AB,
0x0F120083,
0x0F120067,
0x0F120057,
0x0F120051,
0x0F120059,
0x0F12006B,
0x0F120089,
0x0F1200B2,
0x0F1200E5,
0x0F120114,
0x0F1200F2,
0x0F1200BD,
0x0F120088,
0x0F120061,
0x0F120044,
0x0F120031,
0x0F12002C,
0x0F120033,
0x0F120047,
0x0F120065,
0x0F12008C,
0x0F1200C0,
0x0F1200F3,
0x0F1200DB,
0x0F1200A5,
0x0F120071,
0x0F120049,
0x0F12002A,
0x0F120018,
0x0F120011,
0x0F120018,
0x0F12002C,
0x0F12004B,
0x0F120072,
0x0F1200A3,
0x0F1200D7,
0x0F1200CD,
0x0F120097,
0x0F120065,
0x0F12003C,
0x0F12001D,
0x0F12000A,
0x0F120003,
0x0F120009,
0x0F12001D,
0x0F12003B,
0x0F120063,
0x0F120092,
0x0F1200C4,
0x0F1200CA,
0x0F120094,
0x0F120062,
0x0F12003A,
0x0F12001A,
0x0F120007,
0x0F120000,
0x0F120006,
0x0F120018,
0x0F120036,
0x0F12005C,
0x0F12008A,
0x0F1200BC,
0x0F1200D1,
0x0F12009B,
0x0F120069,
0x0F120042,
0x0F120022,
0x0F12000F,
0x0F120008,
0x0F12000D,
0x0F12001F,
0x0F12003B,
0x0F120060,
0x0F12008D,
0x0F1200BF,
0x0F1200E3,
0x0F1200AC,
0x0F12007A,
0x0F120053,
0x0F120035,
0x0F120022,
0x0F12001B,
0x0F12001F,
0x0F120030,
0x0F12004B,
0x0F12006D,
0x0F12009C,
0x0F1200CE,
0x0F1200FE,
0x0F1200C9,
0x0F120095,
0x0F12006F,
0x0F120052,
0x0F120040,
0x0F120039,
0x0F12003D,
0x0F12004B,
0x0F120063,
0x0F120086,
0x0F1200B5,
0x0F1200E6,
0x0F12011B,
0x0F1200ED,
0x0F1200BA,
0x0F120092,
0x0F120076,
0x0F120065,
0x0F12005D,
0x0F120060,
0x0F12006D,
0x0F120084,
0x0F1200A8,
0x0F1200D6,
0x0F120101,
0x0F120140,
0x0F120112,
0x0F1200E5,
0x0F1200BD,
0x0F12009E,
0x0F12008C,
0x0F120085,
0x0F120087,
0x0F120094,
0x0F1200AC,
0x0F1200D0,
0x0F1200F8,
0x0F120123,
0x0F1200F2,
0x0F1200D1,
0x0F1200A7,
0x0F120087,
0x0F120073,
0x0F120067,
0x0F120064,
0x0F12006B,
0x0F12007C,
0x0F120094,
0x0F1200B7,
0x0F1200E1,
0x0F1200FF,
0x0F1200D6,
0x0F1200AE,
0x0F120085,
0x0F120068,
0x0F120054,
0x0F120048,
0x0F120045,
0x0F12004B,
0x0F12005B,
0x0F120073,
0x0F120093,
0x0F1200BF,
0x0F1200E9,
0x0F1200B8,
0x0F12008E,
0x0F120066,
0x0F120049,
0x0F120035,
0x0F120028,
0x0F120025,
0x0F12002B,
0x0F12003B,
0x0F120053,
0x0F120072,
0x0F12009D,
0x0F1200C8,
0x0F1200A2,
0x0F120078,
0x0F120051,
0x0F120034,
0x0F12001F,
0x0F120012,
0x0F12000E,
0x0F120014,
0x0F120024,
0x0F12003B,
0x0F12005B,
0x0F120083,
0x0F1200AD,
0x0F120095,
0x0F12006C,
0x0F120046,
0x0F12002A,
0x0F120014,
0x0F120007,
0x0F120002,
0x0F120008,
0x0F120016,
0x0F12002D,
0x0F12004C,
0x0F120072,
0x0F12009B,
0x0F120093,
0x0F12006A,
0x0F120045,
0x0F120028,
0x0F120013,
0x0F120005,
0x0F120000,
0x0F120004,
0x0F120012,
0x0F120028,
0x0F120045,
0x0F12006A,
0x0F120093,
0x0F12009B,
0x0F120071,
0x0F12004C,
0x0F120030,
0x0F12001A,
0x0F12000C,
0x0F120007,
0x0F12000B,
0x0F120018,
0x0F12002C,
0x0F120048,
0x0F12006D,
0x0F120097,
0x0F1200AE,
0x0F120083,
0x0F12005C,
0x0F120040,
0x0F12002B,
0x0F12001E,
0x0F120018,
0x0F12001C,
0x0F120027,
0x0F12003A,
0x0F120055,
0x0F12007B,
0x0F1200A6,
0x0F1200CA,
0x0F12009E,
0x0F120076,
0x0F120059,
0x0F120046,
0x0F120039,
0x0F120033,
0x0F120036,
0x0F120040,
0x0F120052,
0x0F12006C,
0x0F120094,
0x0F1200BF,
0x0F1200EB,
0x0F1200C3,
0x0F120099,
0x0F12007A,
0x0F120066,
0x0F12005A,
0x0F120054,
0x0F120056,
0x0F12005F,
0x0F120071,
0x0F12008D,
0x0F1200B6,
0x0F1200DE,
0x0F12010D,
0x0F1200E7,
0x0F1200C1,
0x0F1200A0,
0x0F12008A,
0x0F12007C,
0x0F120076,
0x0F120078,
0x0F120081,
0x0F120093,
0x0F1200B1,
0x0F1200D5,
0x0F1200FD,
/* Gamma */
0x002A04CC,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120016,
0x0F120055,
0x0F1200E6,
0x0F120141,
0x0F120188,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120016,
0x0F120055,
0x0F1200E6,
0x0F120141,
0x0F120188,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120016,
0x0F120055,
0x0F1200E6,
0x0F120141,
0x0F120188,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
/* Set AWB */
0x002A0DA6,
0x0F120000, /* awbb_LowBr_NBzone */
0x0F120000, /* awbb_LowBr0_NBzone */
0x002A0E8C,
0x0F120000, /* <API key> */
0x002A0D6C,
0x0F120040, /* awbb_YMedMoveToYAv */
/* Indoor Gray Zone */
0x002A0B9C,
0x0F12038F, /* <API key> */
0x0F12039B, /* <API key> */
0x0F120373, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F120352, /* <API key> */
0x0F1203B7, /* <API key> */
0x0F120334, /* <API key> */
0x0F1203B5, /* <API key> */
0x0F120318, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F1202FF, /* <API key> */
0x0F12038D, /* <API key> */
0x0F1202E7, /* <API key> */
0x0F120372, /* <API key> */
0x0F1202D0, /* <API key> */
0x0F12035D, /* <API key> */
0x0F1202B5, /* <API key> */
0x0F120345, /* <API key> */
0x0F1202A1, /* <API key> */
0x0F120331, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12031E, /* <API key> */
0x0F120273, /* <API key> */
0x0F120309, /* <API key> */
0x0F12025F, /* <API key> */
0x0F1202F5, /* <API key> */
0x0F120250, /* <API key> */
0x0F1202DB, /* <API key> */
0x0F120241, /* <API key> */
0x0F1202C7, /* <API key> */
0x0F120233, /* <API key> */
0x0F1202B9, /* <API key> */
0x0F120223, /* <API key> */
0x0F1202AB, /* <API key> */
0x0F120217, /* <API key> */
0x0F1202A2, /* <API key> */
0x0F120207, /* <API key> */
0x0F120294, /* <API key> */
0x0F1201FA, /* <API key> */
0x0F120289, /* <API key> */
0x0F1201EA, /* <API key> */
0x0F120281, /* <API key> */
0x0F1201DD, /* <API key> */
0x0F12027B, /* <API key> */
0x0F1201D0, /* <API key> */
0x0F120273, /* <API key> */
0x0F1201C3, /* <API key> */
0x0F12026A, /* <API key> */
0x0F1201B6, /* <API key> */
0x0F120265, /* <API key> */
0x0F1201AB, /* <API key> */
0x0F12025B, /* <API key> */
0x0F1201A1, /* <API key> */
0x0F120254, /* <API key> */
0x0F120198, /* <API key> */
0x0F12024B, /* <API key> */
0x0F120192, /* <API key> */
0x0F120242, /* <API key> */
0x0F120191, /* <API key> */
0x0F12023A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120222, /* <API key> */
0x0F1201C5, /* <API key> */
0x0F1201DF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x002A0C3C,
0x0F120004,
0x0F120000,
0x0F120022,
0x0F120000,
0x0F12010F,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0C50,
0x0F1200E0,
0x0F120000,
/* Outdoor Gray Zone */
0x0F12025E,
0x0F120282,
0x0F120240,
0x0F120298,
0x0F12022A,
0x0F12029A,
0x0F12021A,
0x0F12029A,
0x0F120206,
0x0F120298,
0x0F1201FE,
0x0F12028C,
0x0F1201FA,
0x0F120278,
0x0F1201F8,
0x0F120266,
0x0F120214,
0x0F120238,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
/* param_WRITE 70000CC6 */
0x002A0CB8,
0x0F120004,
0x0F120000,
0x0F120009,
0x0F120000,
0x0F120210,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0CCC,
0x0F1200C0,
0x0F120000,
/* Low Brightness Gray Zone */
0x0F12031F, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202FC, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202D9, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202B6, /* <API key> */
0x0F120495, /* <API key> */
0x0F120293, /* <API key> */
0x0F120495, /* <API key> */
0x0F120270, /* <API key> */
0x0F120495, /* <API key> */
0x0F12024E, /* <API key> */
0x0F120495, /* <API key> */
0x0F12022B, /* <API key> */
0x0F120495, /* <API key> */
0x0F120208, /* <API key> */
0x0F12048A, /* <API key> */
0x0F1201E5, /* <API key> */
0x0F120455, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12041F, /* <API key> */
0x0F12019F, /* <API key> */
0x0F1203EA, /* <API key> */
0x0F12017D, /* <API key> */
0x0F1203B4, /* <API key> */
0x0F12015A, /* <API key> */
0x0F12037F, /* <API key> */
0x0F120137, /* <API key> */
0x0F120349, /* <API key> */
0x0F120130, /* <API key> */
0x0F120314, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202DE, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202B1, /* <API key> */
0x0F12012E, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12012D, /* <API key> */
0x0F120265, /* <API key> */
0x0F12012C, /* <API key> */
0x0F12023F, /* <API key> */
0x0F12012C, /* <API key> */
0x0F120219, /* <API key> */
0x0F12012B, /* <API key> */
0x0F1201F3, /* <API key> */
0x0F12012A, /* <API key> */
0x0F1201CD, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* 42param_end*/
0x0F120005,
0x0F120000,
0x0F120018,
0x0F120000,
0x0F1200AF,
0x0F120000,
0x0F120002,
0x0F120000,
0x002A0D48,
0x0F1200E0,
0x0F120000,
/* Lowtemp circle */
0x0F12032F,
0x0F120000,
0x0F12017A,
0x0F120000,
0x0F127300,
0x0F120000,
0x0F12000A,
0x0F120000,
0x002A0D60,
0x0F1200E0,
0x0F120000,
0x002A0D82,
0x0F120001,
/* Duks add*/
0x002A0D8E,
0x0F120002, /* awbb_GridEnable */
/* Grid coefficients and Contrants */
0x002A0DCE,
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F1202C6, /* awbb_GridConst_1_0_ */
0x0F120335, /* awbb_GridConst_1_1_ */
0x0F1203B3, /* awbb_GridConst_1_2_ */
0x0F121021, /* awbb_GridConst_2_0 */
0x0F12107E, /* awbb_GridConst_2_1 */
0x0F12113E, /* awbb_GridConst_2_2 */
0x0F12117C, /* awbb_GridConst_2_3 */
0x0F1211C2, /* awbb_GridConst_2_4 */
0x0F12120B, /* awbb_GridConst_2_5 */
0x0F1200B3, /* awbb_GridCoeff_R_1 */
0x0F1200B7, /* awbb_GridCoeff_B_1 */
0x0F1200D3, /* awbb_GridCoeff_R_2 */
0x0F120091, /* awbb_GridCoeff_B_2 */
/* White Locus */
0x002A0D66,
0x0F120133,
0x0F12010F,
0x002A0D74,
0x0F12052A,
/* Gamut Thresholds */
0x002A0DAE,
0x0F120036,
0x0F12001C,
0x002A0DAA,
0x0F12071A,
0x0F1203A4,
/* SceneDetection Thresholds */
0x002A0D92,
0x0F120BB8,
0x0F120096,
0x002A0E86,
0x0F120216,
0x0F12029F,
0x002A0D96,
0x0F120BB7,
0x0F120096,
0x002A0DB2,
0x0F1200DA,
0x002A0D9A,
0x0F12000A,
0x002A0DB4,
0x0F120459,
0x002A0DA4,
0x0F12000E,
0x002A0D64,
0x0F120032,
0x002A0DA6,
0x0F12001E,
0x002A0D9C,
0x0F12001B,
0x0F12000E,
0x0F120008,
0x0F120004,
/* AWB Debug.(Outdoor Pink) */
0x002A0E30,
0x0F120000,
0x002A0E84,
0x0F120000,
/* UseInvalidOutdoor option */
0x002A0D88,
0x0F120001,
/* AWB input Y-Filter setting */
0x002A0C48,
0x0F120020,
0x002A0C50,
0x0F1200E0,
0x002A0CC4,
0x0F120020,
0x002A0CCC,
0x0F1200C0,
/* <API key>, default : enable*/
0x002A0DC2,
0x0F120030,
0x0F1200C8,
0x0F12012C,
0x0F120210, /* 258 awbb_GainsMaxMove */
0x0F120003,
/* Set CCM */
/* CCM Start Address */
0x002A06D0,
0x0F122800,
0x0F127000,
0x0F122824,
0x0F127000,
0x0F122848,
0x0F127000,
0x0F12286C,
0x0F127000,
0x0F122890,
0x0F127000,
0x0F1228B4,
0x0F127000,
0x002A06EC,
0x0F1228D8,
0x0F127000,
/* param_start */
0x002A2800,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201FB,
0x0F12FFA9,
0x0F12FFEA,
0x0F12013C,
0x0F120140,
0x0F12FF53,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF39,
0x0F1201D6,
0x0F1200C4,
0x0F12FFC0,
0x0F12FFBF,
0x0F1201CD,
0x0F120182,
0x0F12FF91,
0x0F1201AA,
0x0F1201C5,
0x0F12FF9F,
0x0F12FFE5,
0x0F1200E2,
0x0F12010E,
0x0F12FF62,
0x0F12FF03,
0x0F1201D0,
0x0F12FF3E,
0x0F12FF00,
0x0F1201A6,
0x0F1200BB,
0x0F12FFBF,
0x0F12FFDD,
0x0F1201F6,
0x0F1200CB,
0x0F12FF94,
0x0F12019E,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200E8,
0x0F120126,
0x0F12FF83,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF8A,
0x0F1201F9,
0x0F12005B,
0x0F12FFCA,
0x0F12FFA3,
0x0F1201DA,
0x0F120108,
0x0F12FFB3,
0x0F1201DD,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200F4,
0x0F120139,
0x0F12FF64,
0x0F12FEEC,
0x0F1201FD,
0x0F12FF8E,
0x0F12FEF4,
0x0F1201BD,
0x0F12010A,
0x0F12FFA2,
0x0F12FFDE,
0x0F120208,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
/* Set NB */
0x002A07EA,
0x0F120000,
/* param_start SARR_uNormBrInDoor*/
0x0F12000A,
0x0F120019,
0x0F12007D,
0x0F1202BC,
0x0F1207D0,
/* param_start SARR_uNormBrOutDoor */
0x0F12000A,
0x0F120019,
0x0F12007D,
0x0F1202BC,
0x0F1207D0,
/* Set AFIT */
0x002A0814,
0x0F12082C,
0x0F127000,
0x002A082C,
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F12FFFE, /* SATURATION */
0x0F12FFE2, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120344, /* <API key> */
0x0F12033A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120C0F, /* "<API key>" */
0x0F120C0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12023F, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F12030A, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120011, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F120900, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12000A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F126E14, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120018, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120016, /* 14 <API key> */
0x0F12000E, /* <API key> */
0x0F120072, /* 64 <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120114, /* <API key> */
0x0F12020A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F12050F, /* "<API key>" */
0x0F120A0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12020A, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120305, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12200A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12100A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128030, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120009, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F12000E, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120012, /* 0C <API key> */
0x0F120006, /* <API key> */
0x0F12006E, /* 60 <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122028, /* "<API key>" */
0x0F122028, /* "<API key>" */
0x0F122000, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F12000E, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F12000F, /* 06 <API key> */
0x0F120006, /* <API key> */
0x0F12006C, /* 5A <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122028, /* "<API key>" */
0x0F122028, /* "<API key>" */
0x0F122000, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F12000A, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120014, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F12000F, /* 06 <API key> */
0x0F120006, /* <API key> */
0x0F120068, /* 50 <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120030, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120880, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F126400, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120408, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120608, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128050, /* "<API key>" */
0x0F120140, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F1200FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120800, /* <API key> */
0x0F120600, /* <API key> */
0x0F120000, /* Denoise1_start_x */
0x0F120000, /* Denoise1_start_y */
0x0F120000, /* "<API key> " */
0x0F120300, /* "Denoise1_iWWSharp <API key> " */
0x0F120002, /* "<API key> " */
0x0F120400, /* "<API key> " */
0x0F120106, /* "<API key> " */
0x0F120005, /* "<API key> " */
0x0F120000, /* "<API key> " */
0x0F120703, /* "<API key>" */
0x0F120000, /* <API key> */
0x0F12FFD6,
0x0F1253C1,
0x0F12E1FE,
0x0F120001,
/* Update Changed Registers */
0x002A03FC,
0x0F120001,
0xffff0064, /* ADD 100ms */
0x0028D000,
0x002AB0CC,
0x0F12000B,
/* END of Initial*/
0xffff0032, /* ADD 50ms */
};
/* Set-data based on SKT VT standard ,when using 3G network */
/* 8fps */
static const u32 s5k5bafx_vt_common[] =
{
/* VT-Call */
0xFCFCD000,
/* ARM Go */
0x0028D000,
0x002A1030,
0x0F120000,
0x002A0014,
0x0F120001,
0xffff0064, /* Delay */
/* Trap and Patch 2008-11-18 10:15:41 */
0x00287000,
0x002A1668,
0x0F12B5FE,
0x0F120007,
0x0F12683C,
0x0F12687E,
0x0F121DA5,
0x0F1288A0,
0x0F122800,
0x0F12D00B,
0x0F1288A8,
0x0F122800,
0x0F12D008,
0x0F128820,
0x0F128829,
0x0F124288,
0x0F12D301,
0x0F121A40,
0x0F12E000,
0x0F121A08,
0x0F129001,
0x0F12E001,
0x0F122019,
0x0F129001,
0x0F124916,
0x0F12466B,
0x0F128A48,
0x0F128118,
0x0F128A88,
0x0F128158,
0x0F124814,
0x0F128940,
0x0F120040,
0x0F122103,
0x0F12F000,
0x0F12F826,
0x0F1288A1,
0x0F124288,
0x0F12D908,
0x0F128828,
0x0F128030,
0x0F128868,
0x0F128070,
0x0F1288A8,
0x0F126038,
0x0F12BCFE,
0x0F12BC08,
0x0F124718,
0x0F1288A9,
0x0F124288,
0x0F12D906,
0x0F128820,
0x0F128030,
0x0F128860,
0x0F128070,
0x0F1288A0,
0x0F126038,
0x0F12E7F2,
0x0F129801,
0x0F12A902,
0x0F12F000,
0x0F12F812,
0x0F120033,
0x0F120029,
0x0F129A02,
0x0F120020,
0x0F12F000,
0x0F12F814,
0x0F126038,
0x0F12E7E6,
0x0F121A28,
0x0F127000,
0x0F120D64,
0x0F127000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F126009,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12622F,
0x0F120000,
0x002A2080,
0x0F12B510,
0x0F12F000,
0x0F12F8F4,
0x0F12BC10,
0x0F12BC08,
0x0F124718,
0x0F12B5F0,
0x0F12B08B,
0x0F120006,
0x0F122000,
0x0F129004,
0x0F126835,
0x0F126874,
0x0F1268B0,
0x0F12900A,
0x0F1268F0,
0x0F129009,
0x0F124F7D,
0x0F128979,
0x0F12084A,
0x0F1288A8,
0x0F1288A3,
0x0F124298,
0x0F12D300,
0x0F120018,
0x0F12F000,
0x0F12F907,
0x0F129007,
0x0F120021,
0x0F120028,
0x0F12AA04,
0x0F12F000,
0x0F12F909,
0x0F129006,
0x0F1288A8,
0x0F122800,
0x0F12D102,
0x0F1227FF,
0x0F121C7F,
0x0F12E047,
0x0F1288A0,
0x0F122800,
0x0F12D101,
0x0F122700,
0x0F12E042,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12F000,
0x0F12F8F8,
0x0F129008,
0x0F128ABA,
0x0F129808,
0x0F12466B,
0x0F124342,
0x0F129202,
0x0F128820,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8EA,
0x0F129A02,
0x0F1217D1,
0x0F120E09,
0x0F121889,
0x0F121209,
0x0F124288,
0x0F12DD1F,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8DA,
0x0F129001,
0x0F128828,
0x0F12466B,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12980A,
0x0F129902,
0x0F12F000,
0x0F12F8D0,
0x0F128AB9,
0x0F129A08,
0x0F124351,
0x0F1217CA,
0x0F120E12,
0x0F121851,
0x0F12120A,
0x0F129901,
0x0F12F000,
0x0F12F8B6,
0x0F120407,
0x0F120C3F,
0x0F12E000,
0x0F122700,
0x0F128820,
0x0F12466B,
0x0F12AA05,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12003B,
0x0F12F000,
0x0F12F8BB,
0x0F1288A1,
0x0F1288A8,
0x0F12003A,
0x0F12F000,
0x0F12F8BE,
0x0F120004,
0x0F12A804,
0x0F12C803,
0x0F129A09,
0x0F129B07,
0x0F12F000,
0x0F12F8AF,
0x0F12A806,
0x0F12C805,
0x0F120021,
0x0F12F000,
0x0F12F8B2,
0x0F126030,
0x0F12B00B,
0x0F12BCF0,
0x0F12BC08,
0x0F124718,
0x0F12B5F1,
0x0F129900,
0x0F12680C,
0x0F12493A,
0x0F12694B,
0x0F12698A,
0x0F124694,
0x0F1269CD,
0x0F126A0E,
0x0F124F38,
0x0F1242BC,
0x0F12D800,
0x0F120027,
0x0F124937,
0x0F126B89,
0x0F120409,
0x0F120C09,
0x0F124A35,
0x0F121E92,
0x0F126BD2,
0x0F120412,
0x0F120C12,
0x0F12429F,
0x0F12D801,
0x0F120020,
0x0F12E031,
0x0F12001F,
0x0F12434F,
0x0F120A3F,
0x0F1242A7,
0x0F12D301,
0x0F120018,
0x0F12E02A,
0x0F12002B,
0x0F12434B,
0x0F120A1B,
0x0F1242A3,
0x0F12D303,
0x0F120220,
0x0F12F000,
0x0F12F88C,
0x0F12E021,
0x0F120029,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D301,
0x0F120028,
0x0F12E01A,
0x0F120031,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D304,
0x0F120220,
0x0F120011,
0x0F12F000,
0x0F12F87B,
0x0F12E010,
0x0F12491E,
0x0F128C89,
0x0F12000A,
0x0F124372,
0x0F120A12,
0x0F1242A2,
0x0F12D301,
0x0F120030,
0x0F12E007,
0x0F124662,
0x0F12434A,
0x0F120A12,
0x0F1242A2,
0x0F12D302,
0x0F120220,
0x0F12F000,
0x0F12F869,
0x0F124B16,
0x0F124D18,
0x0F128D99,
0x0F121FCA,
0x0F123AF9,
0x0F12D00A,
0x0F122001,
0x0F120240,
0x0F128468,
0x0F120220,
0x0F12F000,
0x0F12F85D,
0x0F129900,
0x0F126008,
0x0F12BCF8,
0x0F12BC08,
0x0F124718,
0x0F128D19,
0x0F128469,
0x0F129900,
0x0F126008,
0x0F12E7F7,
0x0F12B570,
0x0F122200,
0x0F12490E,
0x0F12480E,
0x0F122401,
0x0F12F000,
0x0F12F852,
0x0F120022,
0x0F12490D,
0x0F12480D,
0x0F122502,
0x0F12F000,
0x0F12F84C,
0x0F12490C,
0x0F12480D,
0x0F12002A,
0x0F12F000,
0x0F12F847,
0x0F12BC70,
0x0F12BC08,
0x0F124718,
0x0F120D64,
0x0F127000,
0x0F120470,
0x0F127000,
0x0F12A120,
0x0F120007,
0x0F120402,
0x0F127000,
0x0F1214A0,
0x0F127000,
0x0F12208D,
0x0F127000,
0x0F12622F,
0x0F120000,
0x0F121669,
0x0F127000,
0x0F126445,
0x0F120000,
0x0F1221AB,
0x0F127000,
0x0F122AA9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125F49,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FC7,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125457,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FA3,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F1251F9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12A007,
0x0F120000,
0x0F126546,
0x0F122062,
0x0F123120,
0x0F123220,
0x0F123130,
0x0F120030,
0x0F12E010,
0x0F120208,
0x0F120058,
0x0F120000,
/* End of Trap and Patch (Last : 70002342h) */
/* Total Size 896 (0x0380) */
0x0028D000,
0x002A1000,
0x0F120001,
0x00287000,
0x002A1662,
0x0F1203B0,
0x0F1203B0,
0x00287000,
0x002A1658,
0x0F129C40,
0x0F120000,
0x0F129C40,
0x0F120000,
0x00287000,
0x002A0ADC,
0x0F120AF0, /* <API key> */
0x002A0AE2,
0x0F12222E, /* <API key> */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
0x002A049A,
0x0F1200FA,
/* Set CIS/APS/Analog */
0x0028D000,
0x002AF106,
0x0F120001,
0x002AF206,
0x0F120001,
0x002AC202,
0x0F120700,
0x002AF260,
0x0F120001,
0x002AF414,
0x0F120030,
0x002AC204,
0x0F120100,
0x002AF402,
0x0F120092,
0x0F12007F,
0x002AF700,
0x0F120040,
0x002AF708,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120001,
0x0F120015,
0x0F120001,
0x0F120040,
0x002AF48A,
0x0F120048,
0x002AF10A,
0x0F12008B,
0x002AF900,
0x0F120067,
0x002AF406,
0x0F120092,
0x0F12007F,
0x0F120003,
0x0F120003,
0x0F120003,
0x002AF442,
0x0F120000,
0x0F120000,
0x002AF448,
0x0F120000,
0x002AF456,
0x0F120001,
0x0F120010,
0x0F120000,
0x002AF41A,
0x0F1200FF,
0x0F120003,
0x002AF420,
0x0F120030,
0x002AF410,
0x0F120001,
0x0F120000,
0x002AF416,
0x0F120001,
0x002AF424,
0x0F120000,
0x002AF422,
0x0F120000,
0x002AF41E,
0x0F120000,
0x002AF428,
0x0F120000,
0x0F120000,
0x0F120000,
0x002AF430,
0x0F120000,
0x0F120000,
0x0F120008,
0x0F120005,
0x0F12000F,
0x0F120001,
0x0F120040,
0x0F120040,
0x0F120010,
0x002AF4D6,
0x0F120090,
0x0F120000,
0x002AF47C,
0x0F12000C,
0x0F120000,
0x002AF49A,
0x0F120008,
0x0F120000,
0x002AF4A2,
0x0F120008,
0x0F120000,
0x002AF4B2,
0x0F120013,
0x0F120000,
0x0F120013,
0x0F120000,
0x002AF4AA,
0x0F12009B,
0x0F1200FB,
0x0F12009B,
0x0F1200FB,
0x002AF474,
0x0F120017,
0x0F12005F,
0x0F120017,
0x0F12008F,
0x002AF48C,
0x0F120017,
0x0F12009B,
0x002AF4C8,
0x0F120163,
0x0F120193,
0x002AF490,
0x0F120191,
0x002AF418,
0x0F120083,
0x002AF454,
0x0F120001,
0x002AF702,
0x0F120081,
0x002AF4D2,
0x0F120000,
/* For ESD Check */
0x00287000,
0x002A0132,
0x0F12AAAA,
/* Set FPN Gain Input */
0x002A1176,
0x0F120020,
0x0F120040,
0x0F120080,
0x0F120100,
0x0F120014,
0x0F12000A,
0x0F120008,
0x0F120004,
/* CFPN Canceller */
0x002A116C,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120002,
0x002A0AE8,
0x0F120000,
/* sensor aig table setting sunkyu start */
0x002A10EE,
0x0F120000,
0x002A10F2,
0x0F120000,
0x002A1152,
0x0F120030,
0x0F120028,
0x0F120030,
0x002A1148,
0x0F1200FB,
0x002A1144,
0x0F1200FB,
0x002A1150,
0x0F1201F4,
0x002A1084,
0x0F120000,
0x0F120000,
/* Set AE Target */
0x002A0F4C,
0x0F12003C, /* 3A TVAR_ae_BrAve */
0x002A0478,
0x0F120114,
0x0F1200EB, /* ae boundary */
/* Set Frame Rate */
0x002A0484,
0x0F12410A, /*uMaxExp1 */
0x0F120000,
0x002A048C,
0x0F128214, /*uMaxExp2 */
0x0F120000,
0x0F12A122, /*uMaxExp3 */
0x0F120000,
0x002A0488,
0x0F12f424, /*uMaxExp4 */
0x0F120000,
0x002A043A,
0x0F1201D0, /*lt_uMaxAnGain0 */
0x0F1201E0, /*lt_uMaxAnGain0_1 */
0x002A0494,
0x0F120300, /*lt_uMaxAnGain1 */
0x0F120C80, /* E00 lt_uMaxAnGain2 */
0x0f120100,
0x002A0F52,
0x0F12000F, /*ae_StatMode */
0x002A0E98, /* <API key> */
0x0F1202B0,
0x002A0E9E, /* <API key> */
0x0F120290,
/* 1. Auto Flicker 60Hz Start */
0x002A0B2E,
0x0F120001, /* AFC_Default60Hz Auto Flicker 60Hz start 0: Auto Flicker 50Hz start */
0x002A03F8,
0x0F12007F, /* <API key> default : 007F */
0xffff000a, /* Wait10mSec */
/* Set PLL */
/* External CLOCK (MCLK) */
0x002A01B8,
0x0F125DC0, /* <API key> */
0x0F120000, /* <API key> */
/* Parallel or MIP Selection */
0x002A01C6,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
/* System Clock 0 (System : 24Mhz, PCLK : 48Mhz) */
0x002A01CC,
0x0F121770, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
/* System Clock 1 (System : 28Mhz, PCLK : 48Mhz) */
0x002A01D2,
0x0F121B58, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x002A01DE,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0064, /* Delay 100ms */
/* Crop */
0x002A01FA,
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set Preview Config */
/* Preview Config 0 (1600x1200 fixed 15fps) */
0x002A0242,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_0TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120002, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* 01 <API key> */
0x0F120000, /* 01 <API key> */
0x0F120000, /* <API key> */
/* Preview Config 1 (640x480, Not Fixed 15 ~ 30fps) */
0x002A0268,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_1TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12014D, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* 01 <API key> */
0x0F120000, /* 01 <API key> */
0x0F120000, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set Capture Config */
/* Capture Config 0 (1600x1200 fixed 8fps) */
0x002A0302,
0x0F120000, /* <API key> */
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120005, /* REG_0TC_CCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120002, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Periodic mismatch */
0x002A0780,
0x0F120000, /* msm_uOffsetNoBin[0][0] */
0x0F120000, /* msm_uOffsetNoBin[0][1] */
0x0F120000, /* msm_uOffsetNoBin[1][0] */
0x0F120000, /* msm_uOffsetNoBin[1][1] */
0x0F120000, /* msm_uOffsetNoBin[2][0] */
0x0F120000, /* msm_uOffsetNoBin[2][1] */
0x0F120000, /* msm_uOffsetNoBin[3][0] */
0x0F120000, /* msm_uOffsetNoBin[3][1] */
0x002A0798,
0x0F120000, /* msm_uOffsetBin[0][0] */
0x0F120000, /* msm_uOffsetBin[0][1] */
0x0F120000, /* msm_uOffsetBin[1][0] */
0x0F120000, /* msm_uOffsetBin[1][1] */
0x002A07C0,
0x0F120004, /* <API key>[2] */
0x0F120004, /* <API key>[3] */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
/* Set AE Weights */
0x002A0F5A,
0x0F120000, /* ae_WeightTbl_16_0_ */
0x0F120000, /* ae_WeightTbl_16_1_ */
0x0F120000, /* ae_WeightTbl_16_2_ */
0x0F120000, /* ae_WeightTbl_16_3_ */
0x0F120100, /* ae_WeightTbl_16_4_ */
0x0F120101, /* ae_WeightTbl_16_5_ */
0x0F120101, /* ae_WeightTbl_16_6_ */
0x0F120001, /* ae_WeightTbl_16_7_ */
0x0F120100, /* ae_WeightTbl_16_8_ */
0x0F120302, /* ae_WeightTbl_16_9_ */
0x0F120203, /* ae_WeightTbl_16_10 */
0x0F120001, /* ae_WeightTbl_16_11 */
0x0F120100, /* ae_WeightTbl_16_12 */
0x0F120403, /* ae_WeightTbl_16_13 */
0x0F120304, /* ae_WeightTbl_16_14 */
0x0F120001, /* ae_WeightTbl_16_15 */
0x0F120100, /* ae_WeightTbl_16_16 */
0x0F120403, /* ae_WeightTbl_16_17 */
0x0F120304, /* ae_WeightTbl_16_18 */
0x0F120001, /* ae_WeightTbl_16_19 */
0x0F120100, /* ae_WeightTbl_16_20 */
0x0F120302, /* ae_WeightTbl_16_21 */
0x0F120203, /* ae_WeightTbl_16_22 */
0x0F120001, /* ae_WeightTbl_16_23 */
0x0F120100, /* ae_WeightTbl_16_24 */
0x0F120101, /* ae_WeightTbl_16_25 */
0x0F120101, /* ae_WeightTbl_16_26 */
0x0F120001, /* ae_WeightTbl_16_27 */
0x0F120000, /* ae_WeightTbl_16_28 */
0x0F120000, /* ae_WeightTbl_16_29 */
0x0F120000, /* ae_WeightTbl_16_30 */
0x0F120000, /* ae_WeightTbl_16_31 */
/* Set GAS & CCM White Point */
/* param_start TVAR_ash_AwbAshCord */
0x002A0704,
0x0F1200B3, /* <API key> */
0x0F1200E5, /* <API key> */
0x0F120120, /* <API key> */
0x0F120136, /* <API key> */
0x0F120180, /* <API key> */
0x0F1201B0, /* <API key> */
0x0F120200, /* <API key> */
/* param_start wbt_AwbCcmCord */
0x002A06F2,
0x0F1200B3, /* SARR_AwbCcmCord_0_ Hor */
0x0F1200E5, /* SARR_AwbCcmCord_1_ IncaA */
0x0F120120, /* SARR_AwbCcmCord_2_ WW */
0x0F120136, /* SARR_AwbCcmCord_3_ CW */
0x0F120180, /* SARR_AwbCcmCord_4_ D50 */
0x0F120190, /* SARR_AwbCcmCord_5_ D65 */
/* Target Brightness Control */
0x002A103E,
0x0F120000, /* SARR_IllumType_0_ */
0x0F120009, /* SARR_IllumType_1_ */
0x0F120018, /* SARR_IllumType_2_ */
0x0F120032, /* SARR_IllumType_3_ */
0x0F12004A, /* SARR_IllumType_4_ */
0x0F120051, /* SARR_IllumType_5_ */
0x0F120056, /* SARR_IllumType_6_ */
0x0F12010C, /* <API key> */
0x0F12010C, /* <API key> */
0x0F120109, /* <API key> */
0x0F120105, /* <API key> */
0x0F120102, /* <API key> */
0x0F1200FB, /* SARR_IllumTypeF_5_ */
0x0F1200F8, /* SARR_IllumTypeF_6_ */
/* TVAR_ash_GASAlpha(Indoor) */
0x002A0712,
0x0F120100, /* TVAR_ash_GASAlpha[0] */
0x0F120100, /* TVAR_ash_GASAlpha[1] */
0x0F120100, /* TVAR_ash_GASAlpha[2] */
0x0F120100, /* TVAR_ash_GASAlpha[3] */
0x0F120100, /* TVAR_ash_GASAlpha[4] */
0x0F120100, /* TVAR_ash_GASAlpha[5] */
0x0F120100, /* TVAR_ash_GASAlpha[6] */
0x0F120100, /* TVAR_ash_GASAlpha[7] */
0x0F120100, /* TVAR_ash_GASAlpha[8] */
0x0F120100, /* TVAR_ash_GASAlpha[9] */
0x0F120100, /* TVAR_ash_GASAlpha[10] */
0x0F120100, /* TVAR_ash_GASAlpha[11] */
0x0F120100, /* TVAR_ash_GASAlpha[12] */
0x0F120100, /* TVAR_ash_GASAlpha[13] */
0x0F120100, /* TVAR_ash_GASAlpha[14] */
0x0F120100, /* TVAR_ash_GASAlpha[15] */
0x0F120100, /* TVAR_ash_GASAlpha[16] */
0x0F120100, /* TVAR_ash_GASAlpha[17] */
0x0F120100, /* TVAR_ash_GASAlpha[18] */
0x0F120100, /* TVAR_ash_GASAlpha[19] */
0x0F120100, /* TVAR_ash_GASAlpha[20] */
0x0F120100, /* TVAR_ash_GASAlpha[21] */
0x0F120100, /* TVAR_ash_GASAlpha[22] */
0x0F120100, /* TVAR_ash_GASAlpha[23] */
0x0F120100, /* TVAR_ash_GASAlpha[24] */
0x0F120100, /* TVAR_ash_GASAlpha[25] */
0x0F120100, /* TVAR_ash_GASAlpha[26] */
0x0F120100, /* TVAR_ash_GASAlpha[27] */
/* TVAR_ash_GASAlpha(Outdoor) */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
/* GAS LUT Start Address */
0x002A0754,
0x0F122388, /* TVAR_ash_pGAS */
0x0F127000, /* TVAR_ash_pGAS */
/* param_start TVAR_ash_pGAS */
0x002A2388,
0x0F120160, /* TVAR_ash_pGAS[0] */
0x0F120134, /* TVAR_ash_pGAS[1] */
0x0F1200FF, /* TVAR_ash_pGAS[2] */
0x0F1200D1, /* TVAR_ash_pGAS[3] */
0x0F1200B1, /* TVAR_ash_pGAS[4] */
0x0F12009D, /* TVAR_ash_pGAS[5] */
0x0F120096, /* TVAR_ash_pGAS[6] */
0x0F12009E, /* TVAR_ash_pGAS[7] */
0x0F1200B3, /* TVAR_ash_pGAS[8] */
0x0F1200D3, /* TVAR_ash_pGAS[9] */
0x0F1200FF, /* TVAR_ash_pGAS[10] */
0x0F120131, /* TVAR_ash_pGAS[11] */
0x0F120159, /* TVAR_ash_pGAS[12] */
0x0F12013C, /* TVAR_ash_pGAS[13] */
0x0F120107, /* TVAR_ash_pGAS[14] */
0x0F1200CD, /* TVAR_ash_pGAS[15] */
0x0F1200A1, /* TVAR_ash_pGAS[16] */
0x0F120080, /* TVAR_ash_pGAS[17] */
0x0F12006B, /* TVAR_ash_pGAS[18] */
0x0F120064, /* TVAR_ash_pGAS[19] */
0x0F12006C, /* TVAR_ash_pGAS[20] */
0x0F120080, /* TVAR_ash_pGAS[21] */
0x0F1200A1, /* TVAR_ash_pGAS[22] */
0x0F1200CD, /* TVAR_ash_pGAS[23] */
0x0F120106, /* TVAR_ash_pGAS[24] */
0x0F120139, /* TVAR_ash_pGAS[25] */
0x0F120116, /* TVAR_ash_pGAS[26] */
0x0F1200DC, /* TVAR_ash_pGAS[27] */
0x0F1200A2, /* TVAR_ash_pGAS[28] */
0x0F120073, /* TVAR_ash_pGAS[29] */
0x0F120051, /* TVAR_ash_pGAS[30] */
0x0F12003B, /* TVAR_ash_pGAS[31] */
0x0F120033, /* TVAR_ash_pGAS[32] */
0x0F12003B, /* TVAR_ash_pGAS[33] */
0x0F120050, /* TVAR_ash_pGAS[34] */
0x0F120073, /* TVAR_ash_pGAS[35] */
0x0F1200A2, /* TVAR_ash_pGAS[36] */
0x0F1200DD, /* TVAR_ash_pGAS[37] */
0x0F120115, /* TVAR_ash_pGAS[38] */
0x0F1200FA, /* TVAR_ash_pGAS[39] */
0x0F1200BF, /* TVAR_ash_pGAS[40] */
0x0F120085, /* TVAR_ash_pGAS[41] */
0x0F120055, /* TVAR_ash_pGAS[42] */
0x0F120031, /* TVAR_ash_pGAS[43] */
0x0F12001B, /* TVAR_ash_pGAS[44] */
0x0F120014, /* TVAR_ash_pGAS[45] */
0x0F12001A, /* TVAR_ash_pGAS[46] */
0x0F120031, /* TVAR_ash_pGAS[47] */
0x0F120055, /* TVAR_ash_pGAS[48] */
0x0F120085, /* TVAR_ash_pGAS[49] */
0x0F1200C0, /* TVAR_ash_pGAS[50] */
0x0F1200FB, /* TVAR_ash_pGAS[51] */
0x0F1200EA, /* TVAR_ash_pGAS[52] */
0x0F1200AF, /* TVAR_ash_pGAS[53] */
0x0F120074, /* TVAR_ash_pGAS[54] */
0x0F120045, /* TVAR_ash_pGAS[55] */
0x0F120020, /* TVAR_ash_pGAS[56] */
0x0F12000B, /* TVAR_ash_pGAS[57] */
0x0F120003, /* TVAR_ash_pGAS[58] */
0x0F12000A, /* TVAR_ash_pGAS[59] */
0x0F120020, /* TVAR_ash_pGAS[60] */
0x0F120046, /* TVAR_ash_pGAS[61] */
0x0F120076, /* TVAR_ash_pGAS[62] */
0x0F1200B1, /* TVAR_ash_pGAS[63] */
0x0F1200ED, /* TVAR_ash_pGAS[64] */
0x0F1200E6, /* TVAR_ash_pGAS[65] */
0x0F1200AA, /* TVAR_ash_pGAS[66] */
0x0F120071, /* TVAR_ash_pGAS[67] */
0x0F120041, /* TVAR_ash_pGAS[68] */
0x0F12001D, /* TVAR_ash_pGAS[69] */
0x0F120008, /* TVAR_ash_pGAS[70] */
0x0F120000, /* TVAR_ash_pGAS[71] */
0x0F120007, /* TVAR_ash_pGAS[72] */
0x0F12001E, /* TVAR_ash_pGAS[73] */
0x0F120044, /* TVAR_ash_pGAS[74] */
0x0F120074, /* TVAR_ash_pGAS[75] */
0x0F1200B0, /* TVAR_ash_pGAS[76] */
0x0F1200EC, /* TVAR_ash_pGAS[77] */
0x0F1200EF, /* TVAR_ash_pGAS[78] */
0x0F1200B3, /* TVAR_ash_pGAS[79] */
0x0F12007A, /* TVAR_ash_pGAS[80] */
0x0F12004A, /* TVAR_ash_pGAS[81] */
0x0F120026, /* TVAR_ash_pGAS[82] */
0x0F120011, /* TVAR_ash_pGAS[83] */
0x0F12000A, /* TVAR_ash_pGAS[84] */
0x0F120011, /* TVAR_ash_pGAS[85] */
0x0F120029, /* TVAR_ash_pGAS[86] */
0x0F12004F, /* TVAR_ash_pGAS[87] */
0x0F120080, /* TVAR_ash_pGAS[88] */
0x0F1200BC, /* TVAR_ash_pGAS[89] */
0x0F1200F8, /* TVAR_ash_pGAS[90] */
0x0F120105, /* TVAR_ash_pGAS[91] */
0x0F1200C9, /* TVAR_ash_pGAS[92] */
0x0F12008F, /* TVAR_ash_pGAS[93] */
0x0F120060, /* TVAR_ash_pGAS[94] */
0x0F12003C, /* TVAR_ash_pGAS[95] */
0x0F120026, /* TVAR_ash_pGAS[96] */
0x0F12001F, /* TVAR_ash_pGAS[97] */
0x0F120028, /* TVAR_ash_pGAS[98] */
0x0F120040, /* TVAR_ash_pGAS[99] */
0x0F120066, /* TVAR_ash_pGAS[100] */
0x0F120097, /* TVAR_ash_pGAS[101] */
0x0F1200D4, /* TVAR_ash_pGAS[102] */
0x0F120110, /* TVAR_ash_pGAS[103] */
0x0F120124, /* TVAR_ash_pGAS[104] */
0x0F1200EB, /* TVAR_ash_pGAS[105] */
0x0F1200B1, /* TVAR_ash_pGAS[106] */
0x0F120082, /* TVAR_ash_pGAS[107] */
0x0F12005F, /* TVAR_ash_pGAS[108] */
0x0F12004A, /* TVAR_ash_pGAS[109] */
0x0F120043, /* TVAR_ash_pGAS[110] */
0x0F12004C, /* TVAR_ash_pGAS[111] */
0x0F120064, /* TVAR_ash_pGAS[112] */
0x0F120089, /* TVAR_ash_pGAS[113] */
0x0F1200BA, /* TVAR_ash_pGAS[114] */
0x0F1200F8, /* TVAR_ash_pGAS[115] */
0x0F12012F, /* TVAR_ash_pGAS[116] */
0x0F120147, /* TVAR_ash_pGAS[117] */
0x0F120116, /* TVAR_ash_pGAS[118] */
0x0F1200DE, /* TVAR_ash_pGAS[119] */
0x0F1200AF, /* TVAR_ash_pGAS[120] */
0x0F12008E, /* TVAR_ash_pGAS[121] */
0x0F12007A, /* TVAR_ash_pGAS[122] */
0x0F120072, /* TVAR_ash_pGAS[123] */
0x0F12007A, /* TVAR_ash_pGAS[124] */
0x0F120091, /* TVAR_ash_pGAS[125] */
0x0F1200B6, /* TVAR_ash_pGAS[126] */
0x0F1200E8, /* TVAR_ash_pGAS[127] */
0x0F120121, /* TVAR_ash_pGAS[128] */
0x0F120150, /* TVAR_ash_pGAS[129] */
0x0F120170, /* TVAR_ash_pGAS[130] */
0x0F12013F, /* TVAR_ash_pGAS[131] */
0x0F120110, /* TVAR_ash_pGAS[132] */
0x0F1200E2, /* TVAR_ash_pGAS[133] */
0x0F1200C0, /* TVAR_ash_pGAS[134] */
0x0F1200AB, /* TVAR_ash_pGAS[135] */
0x0F1200A4, /* TVAR_ash_pGAS[136] */
0x0F1200AC, /* TVAR_ash_pGAS[137] */
0x0F1200C3, /* TVAR_ash_pGAS[138] */
0x0F1200E6, /* TVAR_ash_pGAS[139] */
0x0F120117, /* TVAR_ash_pGAS[140] */
0x0F120145, /* TVAR_ash_pGAS[141] */
0x0F120172, /* TVAR_ash_pGAS[142] */
0x0F120127, /* TVAR_ash_pGAS[143] */
0x0F120100, /* TVAR_ash_pGAS[144] */
0x0F1200CF, /* TVAR_ash_pGAS[145] */
0x0F1200A7, /* TVAR_ash_pGAS[146] */
0x0F12008D, /* TVAR_ash_pGAS[147] */
0x0F12007D, /* TVAR_ash_pGAS[148] */
0x0F120077, /* TVAR_ash_pGAS[149] */
0x0F12007A, /* TVAR_ash_pGAS[150] */
0x0F120087, /* TVAR_ash_pGAS[151] */
0x0F12009E, /* TVAR_ash_pGAS[152] */
0x0F1200C0, /* TVAR_ash_pGAS[153] */
0x0F1200EC, /* TVAR_ash_pGAS[154] */
0x0F12010F, /* TVAR_ash_pGAS[155] */
0x0F120108, /* TVAR_ash_pGAS[156] */
0x0F1200D8, /* TVAR_ash_pGAS[157] */
0x0F1200A5, /* TVAR_ash_pGAS[158] */
0x0F120080, /* TVAR_ash_pGAS[159] */
0x0F120066, /* TVAR_ash_pGAS[160] */
0x0F120056, /* TVAR_ash_pGAS[161] */
0x0F12004F, /* TVAR_ash_pGAS[162] */
0x0F120053, /* TVAR_ash_pGAS[163] */
0x0F120061, /* TVAR_ash_pGAS[164] */
0x0F120077, /* TVAR_ash_pGAS[165] */
0x0F120098, /* TVAR_ash_pGAS[166] */
0x0F1200C6, /* TVAR_ash_pGAS[167] */
0x0F1200F3, /* TVAR_ash_pGAS[168] */
0x0F1200E7, /* TVAR_ash_pGAS[169] */
0x0F1200B4, /* TVAR_ash_pGAS[170] */
0x0F120081, /* TVAR_ash_pGAS[171] */
0x0F12005C, /* TVAR_ash_pGAS[172] */
0x0F120041, /* TVAR_ash_pGAS[173] */
0x0F120030, /* TVAR_ash_pGAS[174] */
0x0F120029, /* TVAR_ash_pGAS[175] */
0x0F12002E, /* TVAR_ash_pGAS[176] */
0x0F12003D, /* TVAR_ash_pGAS[177] */
0x0F120055, /* TVAR_ash_pGAS[178] */
0x0F120076, /* TVAR_ash_pGAS[179] */
0x0F1200A5, /* TVAR_ash_pGAS[180] */
0x0F1200D4, /* TVAR_ash_pGAS[181] */
0x0F1200CF, /* TVAR_ash_pGAS[182] */
0x0F12009B, /* TVAR_ash_pGAS[183] */
0x0F12006A, /* TVAR_ash_pGAS[184] */
0x0F120043, /* TVAR_ash_pGAS[185] */
0x0F120027, /* TVAR_ash_pGAS[186] */
0x0F120016, /* TVAR_ash_pGAS[187] */
0x0F12000F, /* TVAR_ash_pGAS[188] */
0x0F120015, /* TVAR_ash_pGAS[189] */
0x0F120025, /* TVAR_ash_pGAS[190] */
0x0F12003E, /* TVAR_ash_pGAS[191] */
0x0F120061, /* TVAR_ash_pGAS[192] */
0x0F12008E, /* TVAR_ash_pGAS[193] */
0x0F1200BF, /* TVAR_ash_pGAS[194] */
0x0F1200C2, /* TVAR_ash_pGAS[195] */
0x0F12008E, /* TVAR_ash_pGAS[196] */
0x0F12005D, /* TVAR_ash_pGAS[197] */
0x0F120037, /* TVAR_ash_pGAS[198] */
0x0F12001A, /* TVAR_ash_pGAS[199] */
0x0F120009, /* TVAR_ash_pGAS[200] */
0x0F120002, /* TVAR_ash_pGAS[201] */
0x0F120007, /* TVAR_ash_pGAS[202] */
0x0F120018, /* TVAR_ash_pGAS[203] */
0x0F120033, /* TVAR_ash_pGAS[204] */
0x0F120057, /* TVAR_ash_pGAS[205] */
0x0F120083, /* TVAR_ash_pGAS[206] */
0x0F1200B3, /* TVAR_ash_pGAS[207] */
0x0F1200BE, /* TVAR_ash_pGAS[208] */
0x0F12008A, /* TVAR_ash_pGAS[209] */
0x0F12005A, /* TVAR_ash_pGAS[210] */
0x0F120034, /* TVAR_ash_pGAS[211] */
0x0F120017, /* TVAR_ash_pGAS[212] */
0x0F120006, /* TVAR_ash_pGAS[213] */
0x0F120000, /* TVAR_ash_pGAS[214] */
0x0F120006, /* TVAR_ash_pGAS[215] */
0x0F120017, /* TVAR_ash_pGAS[216] */
0x0F120033, /* TVAR_ash_pGAS[217] */
0x0F120057, /* TVAR_ash_pGAS[218] */
0x0F120083, /* TVAR_ash_pGAS[219] */
0x0F1200B3, /* TVAR_ash_pGAS[220] */
0x0F1200C5, /* TVAR_ash_pGAS[221] */
0x0F120091, /* TVAR_ash_pGAS[222] */
0x0F120061, /* TVAR_ash_pGAS[223] */
0x0F12003B, /* TVAR_ash_pGAS[224] */
0x0F120020, /* TVAR_ash_pGAS[225] */
0x0F12000F, /* TVAR_ash_pGAS[226] */
0x0F120009, /* TVAR_ash_pGAS[227] */
0x0F120010, /* TVAR_ash_pGAS[228] */
0x0F120021, /* TVAR_ash_pGAS[229] */
0x0F12003D, /* TVAR_ash_pGAS[230] */
0x0F120060, /* TVAR_ash_pGAS[231] */
0x0F12008D, /* TVAR_ash_pGAS[232] */
0x0F1200BE, /* TVAR_ash_pGAS[233] */
0x0F1200D7, /* TVAR_ash_pGAS[234] */
0x0F1200A2, /* TVAR_ash_pGAS[235] */
0x0F120072, /* TVAR_ash_pGAS[236] */
0x0F12004D, /* TVAR_ash_pGAS[237] */
0x0F120032, /* TVAR_ash_pGAS[238] */
0x0F120022, /* TVAR_ash_pGAS[239] */
0x0F12001D, /* TVAR_ash_pGAS[240] */
0x0F120024, /* TVAR_ash_pGAS[241] */
0x0F120035, /* TVAR_ash_pGAS[242] */
0x0F120050, /* TVAR_ash_pGAS[243] */
0x0F120073, /* TVAR_ash_pGAS[244] */
0x0F1200A0, /* TVAR_ash_pGAS[245] */
0x0F1200D2, /* TVAR_ash_pGAS[246] */
0x0F1200F0, /* TVAR_ash_pGAS[247] */
0x0F1200BE, /* TVAR_ash_pGAS[248] */
0x0F12008C, /* TVAR_ash_pGAS[249] */
0x0F120068, /* TVAR_ash_pGAS[250] */
0x0F12004F, /* TVAR_ash_pGAS[251] */
0x0F120040, /* TVAR_ash_pGAS[252] */
0x0F12003B, /* TVAR_ash_pGAS[253] */
0x0F120041, /* TVAR_ash_pGAS[254] */
0x0F120052, /* TVAR_ash_pGAS[255] */
0x0F12006C, /* TVAR_ash_pGAS[256] */
0x0F12008E, /* TVAR_ash_pGAS[257] */
0x0F1200BE, /* TVAR_ash_pGAS[258] */
0x0F1200ED, /* TVAR_ash_pGAS[259] */
0x0F12010C, /* TVAR_ash_pGAS[260] */
0x0F1200E1, /* TVAR_ash_pGAS[261] */
0x0F1200AF, /* TVAR_ash_pGAS[262] */
0x0F12008A, /* TVAR_ash_pGAS[263] */
0x0F120072, /* TVAR_ash_pGAS[264] */
0x0F120064, /* TVAR_ash_pGAS[265] */
0x0F12005F, /* TVAR_ash_pGAS[266] */
0x0F120065, /* TVAR_ash_pGAS[267] */
0x0F120074, /* TVAR_ash_pGAS[268] */
0x0F12008D, /* TVAR_ash_pGAS[269] */
0x0F1200B2, /* TVAR_ash_pGAS[270] */
0x0F1200E0, /* TVAR_ash_pGAS[271] */
0x0F12010A, /* TVAR_ash_pGAS[272] */
0x0F12012F, /* TVAR_ash_pGAS[273] */
0x0F120104, /* TVAR_ash_pGAS[274] */
0x0F1200D9, /* TVAR_ash_pGAS[275] */
0x0F1200B3, /* TVAR_ash_pGAS[276] */
0x0F120099, /* TVAR_ash_pGAS[277] */
0x0F12008B, /* TVAR_ash_pGAS[278] */
0x0F120086, /* TVAR_ash_pGAS[279] */
0x0F12008B, /* TVAR_ash_pGAS[280] */
0x0F12009B, /* TVAR_ash_pGAS[281] */
0x0F1200B5, /* TVAR_ash_pGAS[282] */
0x0F1200DA, /* TVAR_ash_pGAS[283] */
0x0F120101, /* TVAR_ash_pGAS[284] */
0x0F120128, /* TVAR_ash_pGAS[285] */
0x0F12012F, /* TVAR_ash_pGAS[286] */
0x0F120106, /* TVAR_ash_pGAS[287] */
0x0F1200D4, /* TVAR_ash_pGAS[288] */
0x0F1200AA, /* TVAR_ash_pGAS[289] */
0x0F12008E, /* TVAR_ash_pGAS[290] */
0x0F12007D, /* TVAR_ash_pGAS[291] */
0x0F120079, /* TVAR_ash_pGAS[292] */
0x0F120080, /* TVAR_ash_pGAS[293] */
0x0F120093, /* TVAR_ash_pGAS[294] */
0x0F1200B1, /* TVAR_ash_pGAS[295] */
0x0F1200DC, /* TVAR_ash_pGAS[296] */
0x0F12010C, /* TVAR_ash_pGAS[297] */
0x0F120130, /* TVAR_ash_pGAS[298] */
0x0F120112, /* TVAR_ash_pGAS[299] */
0x0F1200E0, /* TVAR_ash_pGAS[300] */
0x0F1200AB, /* TVAR_ash_pGAS[301] */
0x0F120083, /* TVAR_ash_pGAS[302] */
0x0F120067, /* TVAR_ash_pGAS[303] */
0x0F120057, /* TVAR_ash_pGAS[304] */
0x0F120051, /* TVAR_ash_pGAS[305] */
0x0F120059, /* TVAR_ash_pGAS[306] */
0x0F12006B, /* TVAR_ash_pGAS[307] */
0x0F120089, /* TVAR_ash_pGAS[308] */
0x0F1200B2, /* TVAR_ash_pGAS[309] */
0x0F1200E5, /* TVAR_ash_pGAS[310] */
0x0F120114, /* TVAR_ash_pGAS[311] */
0x0F1200F2, /* TVAR_ash_pGAS[312] */
0x0F1200BD, /* TVAR_ash_pGAS[313] */
0x0F120088, /* TVAR_ash_pGAS[314] */
0x0F120061, /* TVAR_ash_pGAS[315] */
0x0F120044, /* TVAR_ash_pGAS[316] */
0x0F120031, /* TVAR_ash_pGAS[317] */
0x0F12002C, /* TVAR_ash_pGAS[318] */
0x0F120033, /* TVAR_ash_pGAS[319] */
0x0F120047, /* TVAR_ash_pGAS[320] */
0x0F120065, /* TVAR_ash_pGAS[321] */
0x0F12008C, /* TVAR_ash_pGAS[322] */
0x0F1200C0, /* TVAR_ash_pGAS[323] */
0x0F1200F3, /* TVAR_ash_pGAS[324] */
0x0F1200DB, /* TVAR_ash_pGAS[325] */
0x0F1200A5, /* TVAR_ash_pGAS[326] */
0x0F120071, /* TVAR_ash_pGAS[327] */
0x0F120049, /* TVAR_ash_pGAS[328] */
0x0F12002A, /* TVAR_ash_pGAS[329] */
0x0F120018, /* TVAR_ash_pGAS[330] */
0x0F120011, /* TVAR_ash_pGAS[331] */
0x0F120018, /* TVAR_ash_pGAS[332] */
0x0F12002C, /* TVAR_ash_pGAS[333] */
0x0F12004B, /* TVAR_ash_pGAS[334] */
0x0F120072, /* TVAR_ash_pGAS[335] */
0x0F1200A3, /* TVAR_ash_pGAS[336] */
0x0F1200D7, /* TVAR_ash_pGAS[337] */
0x0F1200CD, /* TVAR_ash_pGAS[338] */
0x0F120097, /* TVAR_ash_pGAS[339] */
0x0F120065, /* TVAR_ash_pGAS[340] */
0x0F12003C, /* TVAR_ash_pGAS[341] */
0x0F12001D, /* TVAR_ash_pGAS[342] */
0x0F12000A, /* TVAR_ash_pGAS[343] */
0x0F120003, /* TVAR_ash_pGAS[344] */
0x0F120009, /* TVAR_ash_pGAS[345] */
0x0F12001D, /* TVAR_ash_pGAS[346] */
0x0F12003B, /* TVAR_ash_pGAS[347] */
0x0F120063, /* TVAR_ash_pGAS[348] */
0x0F120092, /* TVAR_ash_pGAS[349] */
0x0F1200C4, /* TVAR_ash_pGAS[350] */
0x0F1200CA, /* TVAR_ash_pGAS[351] */
0x0F120094, /* TVAR_ash_pGAS[352] */
0x0F120062, /* TVAR_ash_pGAS[353] */
0x0F12003A, /* TVAR_ash_pGAS[354] */
0x0F12001A, /* TVAR_ash_pGAS[355] */
0x0F120007, /* TVAR_ash_pGAS[356] */
0x0F120000, /* TVAR_ash_pGAS[357] */
0x0F120006, /* TVAR_ash_pGAS[358] */
0x0F120018, /* TVAR_ash_pGAS[359] */
0x0F120036, /* TVAR_ash_pGAS[360] */
0x0F12005C, /* TVAR_ash_pGAS[361] */
0x0F12008A, /* TVAR_ash_pGAS[362] */
0x0F1200BC, /* TVAR_ash_pGAS[363] */
0x0F1200D1, /* TVAR_ash_pGAS[364] */
0x0F12009B, /* TVAR_ash_pGAS[365] */
0x0F120069, /* TVAR_ash_pGAS[366] */
0x0F120042, /* TVAR_ash_pGAS[367] */
0x0F120022, /* TVAR_ash_pGAS[368] */
0x0F12000F, /* TVAR_ash_pGAS[369] */
0x0F120008, /* TVAR_ash_pGAS[370] */
0x0F12000D, /* TVAR_ash_pGAS[371] */
0x0F12001F, /* TVAR_ash_pGAS[372] */
0x0F12003B, /* TVAR_ash_pGAS[373] */
0x0F120060, /* TVAR_ash_pGAS[374] */
0x0F12008D, /* TVAR_ash_pGAS[375] */
0x0F1200BF, /* TVAR_ash_pGAS[376] */
0x0F1200E3, /* TVAR_ash_pGAS[377] */
0x0F1200AC, /* TVAR_ash_pGAS[378] */
0x0F12007A, /* TVAR_ash_pGAS[379] */
0x0F120053, /* TVAR_ash_pGAS[380] */
0x0F120035, /* TVAR_ash_pGAS[381] */
0x0F120022, /* TVAR_ash_pGAS[382] */
0x0F12001B, /* TVAR_ash_pGAS[383] */
0x0F12001F, /* TVAR_ash_pGAS[384] */
0x0F120030, /* TVAR_ash_pGAS[385] */
0x0F12004B, /* TVAR_ash_pGAS[386] */
0x0F12006D, /* TVAR_ash_pGAS[387] */
0x0F12009C, /* TVAR_ash_pGAS[388] */
0x0F1200CE, /* TVAR_ash_pGAS[389] */
0x0F1200FE, /* TVAR_ash_pGAS[390] */
0x0F1200C9, /* TVAR_ash_pGAS[391] */
0x0F120095, /* TVAR_ash_pGAS[392] */
0x0F12006F, /* TVAR_ash_pGAS[393] */
0x0F120052, /* TVAR_ash_pGAS[394] */
0x0F120040, /* TVAR_ash_pGAS[395] */
0x0F120039, /* TVAR_ash_pGAS[396] */
0x0F12003D, /* TVAR_ash_pGAS[397] */
0x0F12004B, /* TVAR_ash_pGAS[398] */
0x0F120063, /* TVAR_ash_pGAS[399] */
0x0F120086, /* TVAR_ash_pGAS[400] */
0x0F1200B5, /* TVAR_ash_pGAS[401] */
0x0F1200E6, /* TVAR_ash_pGAS[402] */
0x0F12011B, /* TVAR_ash_pGAS[403] */
0x0F1200ED, /* TVAR_ash_pGAS[404] */
0x0F1200BA, /* TVAR_ash_pGAS[405] */
0x0F120092, /* TVAR_ash_pGAS[406] */
0x0F120076, /* TVAR_ash_pGAS[407] */
0x0F120065, /* TVAR_ash_pGAS[408] */
0x0F12005D, /* TVAR_ash_pGAS[409] */
0x0F120060, /* TVAR_ash_pGAS[410] */
0x0F12006D, /* TVAR_ash_pGAS[411] */
0x0F120084, /* TVAR_ash_pGAS[412] */
0x0F1200A8, /* TVAR_ash_pGAS[413] */
0x0F1200D6, /* TVAR_ash_pGAS[414] */
0x0F120101, /* TVAR_ash_pGAS[415] */
0x0F120140, /* TVAR_ash_pGAS[416] */
0x0F120112, /* TVAR_ash_pGAS[417] */
0x0F1200E5, /* TVAR_ash_pGAS[418] */
0x0F1200BD, /* TVAR_ash_pGAS[419] */
0x0F12009E, /* TVAR_ash_pGAS[420] */
0x0F12008C, /* TVAR_ash_pGAS[421] */
0x0F120085, /* TVAR_ash_pGAS[422] */
0x0F120087, /* TVAR_ash_pGAS[423] */
0x0F120094, /* TVAR_ash_pGAS[424] */
0x0F1200AC, /* TVAR_ash_pGAS[425] */
0x0F1200D0, /* TVAR_ash_pGAS[426] */
0x0F1200F8, /* TVAR_ash_pGAS[427] */
0x0F120123, /* TVAR_ash_pGAS[428] */
0x0F1200F2, /* TVAR_ash_pGAS[429] */
0x0F1200D1, /* TVAR_ash_pGAS[430] */
0x0F1200A7, /* TVAR_ash_pGAS[431] */
0x0F120087, /* TVAR_ash_pGAS[432] */
0x0F120073, /* TVAR_ash_pGAS[433] */
0x0F120067, /* TVAR_ash_pGAS[434] */
0x0F120064, /* TVAR_ash_pGAS[435] */
0x0F12006B, /* TVAR_ash_pGAS[436] */
0x0F12007C, /* TVAR_ash_pGAS[437] */
0x0F120094, /* TVAR_ash_pGAS[438] */
0x0F1200B7, /* TVAR_ash_pGAS[439] */
0x0F1200E1, /* TVAR_ash_pGAS[440] */
0x0F1200FF, /* TVAR_ash_pGAS[441] */
0x0F1200D6, /* TVAR_ash_pGAS[442] */
0x0F1200AE, /* TVAR_ash_pGAS[443] */
0x0F120085, /* TVAR_ash_pGAS[444] */
0x0F120068, /* TVAR_ash_pGAS[445] */
0x0F120054, /* TVAR_ash_pGAS[446] */
0x0F120048, /* TVAR_ash_pGAS[447] */
0x0F120045, /* TVAR_ash_pGAS[448] */
0x0F12004B, /* TVAR_ash_pGAS[449] */
0x0F12005B, /* TVAR_ash_pGAS[450] */
0x0F120073, /* TVAR_ash_pGAS[451] */
0x0F120093, /* TVAR_ash_pGAS[452] */
0x0F1200BF, /* TVAR_ash_pGAS[453] */
0x0F1200E9, /* TVAR_ash_pGAS[454] */
0x0F1200B8, /* TVAR_ash_pGAS[455] */
0x0F12008E, /* TVAR_ash_pGAS[456] */
0x0F120066, /* TVAR_ash_pGAS[457] */
0x0F120049, /* TVAR_ash_pGAS[458] */
0x0F120035, /* TVAR_ash_pGAS[459] */
0x0F120028, /* TVAR_ash_pGAS[460] */
0x0F120025, /* TVAR_ash_pGAS[461] */
0x0F12002B, /* TVAR_ash_pGAS[462] */
0x0F12003B, /* TVAR_ash_pGAS[463] */
0x0F120053, /* TVAR_ash_pGAS[464] */
0x0F120072, /* TVAR_ash_pGAS[465] */
0x0F12009D, /* TVAR_ash_pGAS[466] */
0x0F1200C8, /* TVAR_ash_pGAS[467] */
0x0F1200A2, /* TVAR_ash_pGAS[468] */
0x0F120078, /* TVAR_ash_pGAS[469] */
0x0F120051, /* TVAR_ash_pGAS[470] */
0x0F120034, /* TVAR_ash_pGAS[471] */
0x0F12001F, /* TVAR_ash_pGAS[472] */
0x0F120012, /* TVAR_ash_pGAS[473] */
0x0F12000E, /* TVAR_ash_pGAS[474] */
0x0F120014, /* TVAR_ash_pGAS[475] */
0x0F120024, /* TVAR_ash_pGAS[476] */
0x0F12003B, /* TVAR_ash_pGAS[477] */
0x0F12005B, /* TVAR_ash_pGAS[478] */
0x0F120083, /* TVAR_ash_pGAS[479] */
0x0F1200AD, /* TVAR_ash_pGAS[480] */
0x0F120095, /* TVAR_ash_pGAS[481] */
0x0F12006C, /* TVAR_ash_pGAS[482] */
0x0F120046, /* TVAR_ash_pGAS[483] */
0x0F12002A, /* TVAR_ash_pGAS[484] */
0x0F120014, /* TVAR_ash_pGAS[485] */
0x0F120007, /* TVAR_ash_pGAS[486] */
0x0F120002, /* TVAR_ash_pGAS[487] */
0x0F120008, /* TVAR_ash_pGAS[488] */
0x0F120016, /* TVAR_ash_pGAS[489] */
0x0F12002D, /* TVAR_ash_pGAS[490] */
0x0F12004C, /* TVAR_ash_pGAS[491] */
0x0F120072, /* TVAR_ash_pGAS[492] */
0x0F12009B, /* TVAR_ash_pGAS[493] */
0x0F120093, /* TVAR_ash_pGAS[494] */
0x0F12006A, /* TVAR_ash_pGAS[495] */
0x0F120045, /* TVAR_ash_pGAS[496] */
0x0F120028, /* TVAR_ash_pGAS[497] */
0x0F120013, /* TVAR_ash_pGAS[498] */
0x0F120005, /* TVAR_ash_pGAS[499] */
0x0F120000, /* TVAR_ash_pGAS[500] */
0x0F120004, /* TVAR_ash_pGAS[501] */
0x0F120012, /* TVAR_ash_pGAS[502] */
0x0F120028, /* TVAR_ash_pGAS[503] */
0x0F120045, /* TVAR_ash_pGAS[504] */
0x0F12006A, /* TVAR_ash_pGAS[505] */
0x0F120093, /* TVAR_ash_pGAS[506] */
0x0F12009B, /* TVAR_ash_pGAS[507] */
0x0F120071, /* TVAR_ash_pGAS[508] */
0x0F12004C, /* TVAR_ash_pGAS[509] */
0x0F120030, /* TVAR_ash_pGAS[510] */
0x0F12001A, /* TVAR_ash_pGAS[511] */
0x0F12000C, /* TVAR_ash_pGAS[512] */
0x0F120007, /* TVAR_ash_pGAS[513] */
0x0F12000B, /* TVAR_ash_pGAS[514] */
0x0F120018, /* TVAR_ash_pGAS[515] */
0x0F12002C, /* TVAR_ash_pGAS[516] */
0x0F120048, /* TVAR_ash_pGAS[517] */
0x0F12006D, /* TVAR_ash_pGAS[518] */
0x0F120097, /* TVAR_ash_pGAS[519] */
0x0F1200AE, /* TVAR_ash_pGAS[520] */
0x0F120083, /* TVAR_ash_pGAS[521] */
0x0F12005C, /* TVAR_ash_pGAS[522] */
0x0F120040, /* TVAR_ash_pGAS[523] */
0x0F12002B, /* TVAR_ash_pGAS[524] */
0x0F12001E, /* TVAR_ash_pGAS[525] */
0x0F120018, /* TVAR_ash_pGAS[526] */
0x0F12001C, /* TVAR_ash_pGAS[527] */
0x0F120027, /* TVAR_ash_pGAS[528] */
0x0F12003A, /* TVAR_ash_pGAS[529] */
0x0F120055, /* TVAR_ash_pGAS[530] */
0x0F12007B, /* TVAR_ash_pGAS[531] */
0x0F1200A6, /* TVAR_ash_pGAS[532] */
0x0F1200CA, /* TVAR_ash_pGAS[533] */
0x0F12009E, /* TVAR_ash_pGAS[534] */
0x0F120076, /* TVAR_ash_pGAS[535] */
0x0F120059, /* TVAR_ash_pGAS[536] */
0x0F120046, /* TVAR_ash_pGAS[537] */
0x0F120039, /* TVAR_ash_pGAS[538] */
0x0F120033, /* TVAR_ash_pGAS[539] */
0x0F120036, /* TVAR_ash_pGAS[540] */
0x0F120040, /* TVAR_ash_pGAS[541] */
0x0F120052, /* TVAR_ash_pGAS[542] */
0x0F12006C, /* TVAR_ash_pGAS[543] */
0x0F120094, /* TVAR_ash_pGAS[544] */
0x0F1200BF, /* TVAR_ash_pGAS[545] */
0x0F1200EB, /* TVAR_ash_pGAS[546] */
0x0F1200C3, /* TVAR_ash_pGAS[547] */
0x0F120099, /* TVAR_ash_pGAS[548] */
0x0F12007A, /* TVAR_ash_pGAS[549] */
0x0F120066, /* TVAR_ash_pGAS[550] */
0x0F12005A, /* TVAR_ash_pGAS[551] */
0x0F120054, /* TVAR_ash_pGAS[552] */
0x0F120056, /* TVAR_ash_pGAS[553] */
0x0F12005F, /* TVAR_ash_pGAS[554] */
0x0F120071, /* TVAR_ash_pGAS[555] */
0x0F12008D, /* TVAR_ash_pGAS[556] */
0x0F1200B6, /* TVAR_ash_pGAS[557] */
0x0F1200DE, /* TVAR_ash_pGAS[558] */
0x0F12010D, /* TVAR_ash_pGAS[559] */
0x0F1200E7, /* TVAR_ash_pGAS[560] */
0x0F1200C1, /* TVAR_ash_pGAS[561] */
0x0F1200A0, /* TVAR_ash_pGAS[562] */
0x0F12008A, /* TVAR_ash_pGAS[563] */
0x0F12007C, /* TVAR_ash_pGAS[564] */
0x0F120076, /* TVAR_ash_pGAS[565] */
0x0F120078, /* TVAR_ash_pGAS[566] */
0x0F120081, /* TVAR_ash_pGAS[567] */
0x0F120093, /* TVAR_ash_pGAS[568] */
0x0F1200B1, /* TVAR_ash_pGAS[569] */
0x0F1200D5, /* TVAR_ash_pGAS[570] */
0x0F1200FD, /* TVAR_ash_pGAS[571] */
/* Gamma */
0x002A04CC,
0x0F120000, /* <API key>[0][0] */
0x0F120002, /* <API key>[0][1] */
0x0F120008, /* <API key>[0][2] */
0x0F120016, /* <API key>[0][3] */
0x0F120055, /* <API key>[0][4] */
0x0F1200E6, /* <API key>[0][5] */
0x0F120141, /* <API key>[0][6] */
0x0F120188, /* <API key>[0][7] */
0x0F1201E6, /* <API key>[0][8] */
0x0F120236, /* <API key>[0][9] */
0x0F1202BA, /* <API key>[0][10] */
0x0F12032A, /* <API key>[0][11] */
0x0F120385, /* <API key>[0][12] */
0x0F1203C2, /* <API key>[0][13] */
0x0F1203EA, /* <API key>[0][14] */
0x0F1203FF, /* <API key>[0][15] */
0x0F120000, /* <API key>[1][0] */
0x0F120002, /* <API key>[1][1] */
0x0F120008, /* <API key>[1][2] */
0x0F120016, /* <API key>[1][3] */
0x0F120055, /* <API key>[1][4] */
0x0F1200E6, /* <API key>[1][5] */
0x0F120141, /* <API key>[1][6] */
0x0F120188, /* <API key>[1][7] */
0x0F1201E6, /* <API key>[1][8] */
0x0F120236, /* <API key>[1][9] */
0x0F1202BA, /* <API key>[1][10] */
0x0F12032A, /* <API key>[1][11] */
0x0F120385, /* <API key>[1][12] */
0x0F1203C2, /* <API key>[1][13] */
0x0F1203EA, /* <API key>[1][14] */
0x0F1203FF, /* <API key>[1][15] */
0x0F120000, /* <API key>[2][0] */
0x0F120002, /* <API key>[2][1] */
0x0F120008, /* <API key>[2][2] */
0x0F120016, /* <API key>[2][3] */
0x0F120055, /* <API key>[2][4] */
0x0F1200E6, /* <API key>[2][5] */
0x0F120141, /* <API key>[2][6] */
0x0F120188, /* <API key>[2][7] */
0x0F1201E6, /* <API key>[2][8] */
0x0F120236, /* <API key>[2][9] */
0x0F1202BA, /* <API key>[2][10] */
0x0F12032A, /* <API key>[2][11] */
0x0F120385, /* <API key>[2][12] */
0x0F1203C2, /* <API key>[2][13] */
0x0F1203EA, /* <API key>[2][14] */
0x0F1203FF, /* <API key>[2][15] */
/* Set AWB */
0x002A0DA6,
0x0F120000, /* awbb_LowBr_NBzone */
0x0F120000, /* awbb_LowBr0_NBzone */
0x002A0E8C,
0x0F120000, /* <API key> */
0x002A0D6C,
0x0F120040, /* awbb_YMedMoveToYAv */
/* Indoor Gray Zone */
0x002A0B9C,
0x0F12035E, /* <API key> */
0x0F12036A, /* <API key> */
0x0F120348, /* <API key> */
0x0F120380, /* <API key> */
0x0F120334, /* <API key> */
0x0F120384, /* <API key> */
0x0F120318, /* <API key> */
0x0F12037E, /* <API key> */
0x0F1202FE, /* <API key> */
0x0F12037A, /* <API key> */
0x0F1202E6, /* <API key> */
0x0F12036C, /* <API key> */
0x0F1202D0, /* <API key> */
0x0F12035C, /* <API key> */
0x0F1202B4, /* <API key> */
0x0F120344, /* <API key> */
0x0F1202A0, /* <API key> */
0x0F120330, /* <API key> */
0x0F12028A, /* <API key> */
0x0F12031E, /* <API key> */
0x0F120272, /* <API key> */
0x0F120308, /* <API key> */
0x0F12025E, /* <API key> */
0x0F1202F4, /* <API key> */
0x0F120250, /* <API key> */
0x0F1202DA, /* <API key> */
0x0F120240, /* <API key> */
0x0F1202C6, /* <API key> */
0x0F120232, /* <API key> */
0x0F1202B8, /* <API key> */
0x0F120222, /* <API key> */
0x0F1202AA, /* <API key> */
0x0F120216, /* <API key> */
0x0F1202A2, /* <API key> */
0x0F120206, /* <API key> */
0x0F120294, /* <API key> */
0x0F1201FA, /* <API key> */
0x0F120288, /* <API key> */
0x0F1201EA, /* <API key> */
0x0F120280, /* <API key> */
0x0F1201DC, /* <API key> */
0x0F12027A, /* <API key> */
0x0F1201D0, /* <API key> */
0x0F120272, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12026A, /* <API key> */
0x0F1201B6, /* <API key> */
0x0F120264, /* <API key> */
0x0F1201AA, /* <API key> */
0x0F12025A, /* <API key> */
0x0F1201A0, /* <API key> */
0x0F120254, /* <API key> */
0x0F120198, /* <API key> */
0x0F12024A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120242, /* <API key> */
0x0F120190, /* <API key> */
0x0F12023A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120222, /* <API key> */
0x0F1201C4, /* <API key> */
0x0F1201DE, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* param_end <API key> */
0x002A0C3C,
0x0F120004,
0x0F120000,
0x0F12001F,
0x0F120000,
0x0F12011E,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0C50,
0x0F1200E0,
0x0F120000,
/* Outdoor Gray Zone */
0x0F120264,
0x0F120279,
0x0F120250,
0x0F120287,
0x0F120244,
0x0F120287,
0x0F120235,
0x0F120289,
0x0F120225,
0x0F120287,
0x0F120213,
0x0F120286,
0x0F120202,
0x0F12027A,
0x0F1201F3,
0x0F120272,
0x0F1201E9,
0x0F120269,
0x0F1201E2,
0x0F120263,
0x0F1201E0,
0x0F12025A,
0x0F1201E1,
0x0F120256,
0x0F1201EE,
0x0F120251,
0x0F1201F8,
0x0F12024A,
0x0F12020D,
0x0F120231,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
/* param_WRITE 70000CC6 B2end <API key> */
0x002A0CB8,
0x0F120004,
0x0F120000,
0x0F120011,
0x0F120000,
0x0F1201FF,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0CCC,
0x0F1200C0,
0x0F120000,
/* Low Brightness Gray Zone */
0x0F12031F, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202FC, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202D9, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202B6, /* <API key> */
0x0F120495, /* <API key> */
0x0F120293, /* <API key> */
0x0F120495, /* <API key> */
0x0F120270, /* <API key> */
0x0F120495, /* <API key> */
0x0F12024E, /* <API key> */
0x0F120495, /* <API key> */
0x0F12022B, /* <API key> */
0x0F120495, /* <API key> */
0x0F120208, /* <API key> */
0x0F12048A, /* <API key> */
0x0F1201E5, /* <API key> */
0x0F120455, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12041F, /* <API key> */
0x0F12019F, /* <API key> */
0x0F1203EA, /* <API key> */
0x0F12017D, /* <API key> */
0x0F1203B4, /* <API key> */
0x0F12015A, /* <API key> */
0x0F12037F, /* <API key> */
0x0F120137, /* <API key> */
0x0F120349, /* <API key> */
0x0F120130, /* <API key> */
0x0F120314, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202DE, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202B1, /* <API key> */
0x0F12012E, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12012D, /* <API key> */
0x0F120265, /* <API key> */
0x0F12012C, /* <API key> */
0x0F12023F, /* <API key> */
0x0F12012C, /* <API key> */
0x0F120219, /* <API key> */
0x0F12012B, /* <API key> */
0x0F1201F3, /* <API key> */
0x0F12012A, /* <API key> */
0x0F1201CD, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* 42param_end <API key> */
0x0F120005,
0x0F120000,
0x0F120018,
0x0F120000,
0x0F1200AF,
0x0F120000,
0x0F120002,
0x0F120000,
0x002A0D48,
0x0F1200E0,
0x0F120000,
/* Lowtemp circle */
0x0F12032F,
0x0F120000,
0x0F12017A,
0x0F120000,
0x0F127300,
0x0F120000,
0x0F12000A,
0x0F120000,
0x002A0D60,
0x0F1200E0,
0x0F120000,
0x002A0D82,
0x0F120001,
0x002A0D8E,
0x0F120002, /* awbb_GridEnable */
/* Grid coefficients and Contrants */
0x002A0DCE,
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120040, /* <API key> */
0x0F12FFF8, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFD0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120040, /* <API key> */
0x0F12FFF8, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFD0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120040, /* <API key> */
0x0F12FFF8, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFD0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120000, /* <API key> */
0x0F120018, /* <API key> */
0x0F120040, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120000, /* <API key> */
0x0F120018, /* <API key> */
0x0F120040, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120000, /* <API key> */
0x0F120018, /* <API key> */
0x0F120040, /* <API key> */
0x0F1202C6, /* awbb_GridConst_1_0_ */
0x0F120335, /* awbb_GridConst_1_1_ */
0x0F1203B3, /* awbb_GridConst_1_2_ */
0x0F120FD7, /* awbb_GridConst_2_0 */
0x0F1210C5, /* awbb_GridConst_2_1 */
0x0F12116A, /* awbb_GridConst_2_2 */
0x0F12117C, /* awbb_GridConst_2_3 */
0x0F1211C2, /* awbb_GridConst_2_4 */
0x0F12120B, /* awbb_GridConst_2_5 */
0x0F1200B3, /* awbb_GridCoeff_R_1 */
0x0F1200B7, /* awbb_GridCoeff_B_1 */
0x0F1200D3, /* awbb_GridCoeff_R_2 */
0x0F120091, /* awbb_GridCoeff_B_2 */
/* White Locus */
0x002A0D66,
0x0F120133,
0x0F12010F,
0x002A0D74,
0x0F120365, /* 52A awbb_MvEq_RBthresh */
/* Gamut Thresholds */
0x002A0DAE,
0x0F120036,
0x0F12001C,
0x002A0DAA,
0x0F12071A,
0x0F1203A4,
/* SceneDetection Thresholds */
0x002A0D92,
0x0F120BB8,
0x0F120096,
0x002A0E86,
0x0F120216,
0x0F12029F,
0x002A0D96,
0x0F120BB7,
0x0F120096,
0x002A0DB2,
0x0F1200DA,
0x002A0D9A,
0x0F12000A,
0x002A0DB4,
0x0F12041B, /* 459 awbb_LowTempRB */
0x002A0DA4,
0x0F12000E,
0x002A0D64,
0x0F120032,
0x002A0DA6,
0x0F12001E,
0x002A0D9C,
0x0F12001B,
0x0F12000E,
0x0F120008,
0x0F120004,
/* AWB Debug.(Outdoor Pink) */
0x002A0E30,
0x0F120000,
0x002A0E84,
0x0F120000,
/* UseInvalidOutdoor option */
0x002A0D88,
0x0F120001,
/* AWB input Y-Filter setting */
0x002A0C48,
0x0F120020,
0x002A0C50,
0x0F1200E0,
0x002A0CC4,
0x0F120020,
0x002A0CCC,
0x0F1200C0,
/* <API key>, default : enable */
0x002A0DC2,
0x0F120030,
0x0F1200C8,
0x0F12012C,
0x0F120210, /* 258 awbb_GainsMaxMove */
0x0F120003,
/* Set CCM */
/* CCM Start Address */
0x002A06D0,
0x0F122800,
0x0F127000,
0x0F122824,
0x0F127000,
0x0F122848,
0x0F127000,
0x0F12286C,
0x0F127000,
0x0F122890,
0x0F127000,
0x0F1228B4,
0x0F127000,
0x002A06EC,
0x0F1228D8,
0x0F127000,
/* param_start TVAR_wbt_pBaseCcms */
0x002A2800,
0x0F1201E5, /* 01D6 01E1 01FB */
0x0F12FFBF, /* FFC9 FFC4 FF9C */
0x0F12FFF4, /* FFFB FFF8 FFFF */
0x0F1200EE, /* 010A 0101 0137 */
0x0F12019B, /* 0177 014C 0113 */
0x0F12FF1E, /* FF24 FF55 FF6F */
0x0F12FF38, /* FF9C FF5B FF21 */
0x0F12026D, /* 0230 0205 0194 */
0x0F12FEDD, /* FEB1 FF17 FF69 */
0x0F12FF00, /* FEFF FEFE FF14 */
0x0F1201B8, /* 01B7 01B6 0158 */
0x0F120109, /* 0108 0107 015D */
0x0F12FFCC, /* FFEB FFDB FFF2 */
0x0F12FFA4, /* FFB5 FFDB FFF1 */
0x0F120212, /* 01E4 01D1 0179 */
0x0F120136, /* 011E 0163 017C */
0x0F12FFA5, /* FFAD FF9E FFC3 */
0x0F1201CF, /* 01E3 01B3 0197 */
0x0F1201E5, /* 01D6 01E1 01FB */
0x0F12FFBF, /* FFC9 FFC4 FF9C */
0x0F12FFF4, /* FFFB FFF8 FFFF */
0x0F1200EE, /* 010A 0101 0137 */
0x0F12019B, /* 0177 014C 0113 */
0x0F12FF1E, /* FF24 FF55 FF6F */
0x0F12FF38, /* FF9C FF5B FF21 */
0x0F12026D, /* 0230 0205 0194 */
0x0F12FEDD, /* FEB1 FF17 FF69 */
0x0F12FF00, /* FEFF FEFE FF14 */
0x0F1201B8, /* 01B7 01B6 0158 */
0x0F120109, /* 0108 0107 015D */
0x0F12FFCC, /* FFEB FFDB FFF2 */
0x0F12FFA4, /* FFB5 FFDB FFF1 */
0x0F120212, /* 01E4 01D1 0179 */
0x0F120136, /* 011E 0163 017C */
0x0F12FFA5, /* FFAD FF9E FFC3 */
0x0F1201CF, /* 01E3 01B3 0197 */
0x0F1201E1, /* 01FB */
0x0F12FFC4, /* FF9C */
0x0F12FFF8, /* FFFF */
0x0F120101, /* 0137 */
0x0F12014C, /* 0113 */
0x0F12FF55, /* FF6F */
0x0F12FF5B, /* FF21 */
0x0F120205, /* 0194 */
0x0F12FF17, /* FF69 */
0x0F12FEFE, /* FF14 */
0x0F1201B6, /* 0158 */
0x0F120107, /* 015D */
0x0F12FFDB, /* FFF2 */
0x0F12FFDB, /* FFF1 */
0x0F1201D1, /* 0179 */
0x0F120163, /* 017C */
0x0F12FF9E, /* FFC3 */
0x0F1201B3, /* 0197 */
0x0F1201FB, /* 01FB 01FB */
0x0F12FFA9, /* FFA9 FF9C */
0x0F12FFEA, /* FFEA FFFF */
0x0F12013C, /* 0134 0137 */
0x0F120140, /* 0133 0113 */
0x0F12FF53, /* FF5D FF6F */
0x0F12FE7A, /* FE7A FF21 */
0x0F12017D, /* 017D 0194 */
0x0F12FEED, /* FEED FF69 */
0x0F12FF39, /* FF39 FF14 */
0x0F1201D6, /* 01D6 0158 */
0x0F1200C4, /* 00C4 015D */
0x0F12FFC0, /* FFCE FFF2 */
0x0F12FFBF, /* FFCD FFF1 */
0x0F1201CD, /* 01B7 0179 */
0x0F120182, /* 0176 017C */
0x0F12FF91, /* FFBD FFC3 */
0x0F1201AA, /* 0191 0197 */
0x0F1201D2, /* 01C5 01F9 020A */
0x0F12FFC2, /* FF9F FFBC FFB2 */
0x0F12FFFC, /* FFE5 FFF2 FFEB */
0x0F1200E8, /* 00E2 00FA 0134 */
0x0F120126, /* 010E 0157 0133 */
0x0F12FF83, /* FF62 FF81 FF5D */
0x0F12FE7A, /* FF03 FE7A FEFD */
0x0F12017D, /* 01D0 017D 01BF */
0x0F12FEED, /* FF3E FEED FF2A */
0x0F12FF1C, /* FF00 FF8A FF39 */
0x0F120194, /* 01A6 01F9 01D6 */
0x0F12011F, /* 00BB 005B 00C4 */
0x0F12FFEA, /* FFBF FFCA FFCE */
0x0F12FFDE, /* FFDD FFA3 FFCD */
0x0F1201E9, /* 01F6 01DA 01B7 */
0x0F120178, /* 00CB 0108 0176 */
0x0F12FFBF, /* FF94 FFB3 FFBD */
0x0F120193, /* 019E 01DD 0191 */
0x0F1201D2, /* 01F9 020A 01D0 R */
0x0F12FFC2, /* FFBC FFB2 FFB4 */
0x0F12FFFC, /* FFF2 FFEB 000C */
0x0F1200E8, /* 00FA 011E 0122 Y */
0x0F120126, /* 0157 011D 0103 */
0x0F12FF83, /* FF81 FF86 FF9B */
0x0F12FE7A, /* FE7A FEFD FF33 G */
0x0F12017D, /* 017D 01BF 01C5 */
0x0F12FEED, /* FEED FF2A FF33 */
0x0F12FF1C, /* FF8A FF38 FF16 C */
0x0F120194, /* 01F9 01D5 015A */
0x0F12011F, /* 005B 00C3 015F */
0x0F12FFEA, /* FFCA FFCF FFE0 B */
0x0F12FFDE, /* FFA3 FFCE FFDF */
0x0F1201E9, /* 01DA 01B8 0197 */
0x0F120178, /* 0108 0178 0178 M */
0x0F12FFBF, /* FFB3 FFBF FFBF */
0x0F120193, /* 01DD 0193 0193 */
0x0F1201F1, /* outdoor CCM */
0x0F12FFB0,
0x0F12FFEF,
0x0F1200F4,
0x0F120139,
0x0F12FF64,
0x0F12FEEC,
0x0F1201FD,
0x0F12FF8E,
0x0F12FF4E,
0x0F120164,
0x0F12011D,
0x0F12FFEA,
0x0F12FFDE,
0x0F1201E9,
0x0F120178,
0x0F12FFBF,
0x0F120193,
/* Set NB */
0x002A07EA,
0x0F120000, /* afit_bUseNoiseInd 0 : NB 1: Noise Index */
/* param_start SARR_uNormBrInDoor */
0x0F12000A, /* SARR_uNormBrInDoor[0] */
0x0F120019, /* SARR_uNormBrInDoor[1] */
0x0F12007D, /* SARR_uNormBrInDoor[2] */
0x0F1202BC, /* SARR_uNormBrInDoor[3] */
0x0F1207D0, /* SARR_uNormBrInDoor[4] */
/* param_start SARR_uNormBrOutDoor */
0x0F12000A, /* SARR_uNormBrOutDoor[0] */
0x0F120019, /* SARR_uNormBrOutDoor[1] */
0x0F12007D, /* SARR_uNormBrOutDoor[2] */
0x0F1202BC, /* SARR_uNormBrOutDoor[3] */
0x0F1207D0, /* SARR_uNormBrOutDoor[4] */
/* Set AFIT */
/* AFIT Start Address */
0x002A0814,
0x0F12082C, /* TVAR_afit_pBaseVals */
0x0F127000, /* TVAR_afit_pBaseVals */
/* param_start TVAR_afit_pBaseVals */
0x002A082C,
0x0F120003, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F12FFFE, /* SATURATION */
0x0F12FFE2, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120344, /* <API key> */
0x0F12033A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120C0F, /* "<API key>" bin: desparity low */
0x0F120C0F, /* "<API key> <API key>" bin: desparity high */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12023F, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F12030A, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120011, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" ]negati fine */
0x0F120900, /* "<API key>" ]low fine */
0x0F120000, /* "<API key>" ]high fine */
0x0F12980A, /* "<API key>" ]high low thres */
0x0F120005, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12000A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F126E14, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120035, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120014, /* <API key> */
0x0F12000E, /* <API key> */
0x0F120064, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120114, /* <API key> */
0x0F12020A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F12050F, /* "<API key>" bin: desparity low */
0x0F120A0F, /* "<API key> <API key>" bin: desparity high */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12020A, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120305, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" ]negati fine */
0x0F12101E, /* "<API key>" ]low fine */
0x0F12101E, /* "<API key>" ]high fine */
0x0F12980A, /* "<API key>" ]high low thres */
0x0F120005, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12100A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128030, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120008, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F12000C, /* <API key> */
0x0F120006, /* <API key> */
0x0F120060, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" bin: desparity high */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" ]negati fine */
0x0F122020, /* "<API key>" ]low fine */
0x0F122020, /* "<API key>" ]high fine */
0x0F12980A, /* "<API key>" ]high low thres */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F12005A, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" bin: desparity high */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" ]negati fine */
0x0F122020, /* "<API key>" ]low fine */
0x0F122020, /* "<API key>" ]high fine */
0x0F126400, /* "<API key>" ]high low thres */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F12000A, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120030, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" bin: desparity high */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120880, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" ]negati fine */
0x0F122020, /* "<API key>" ]low fine */
0x0F122020, /* "<API key>" ]high fine */
0x0F126400, /* "<API key>" ]high low thres */
0x0F120007, /* "<API key>" */
0x0F120408, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120608, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128050, /* "<API key>" */
0x0F120140, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F1200FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120800, /* <API key> */
0x0F120600, /* <API key> */
0x0F120000, /* Denoise1_start_x */
0x0F120000, /* Denoise1_start_y */
0x0F120000, /* "<API key> " */
0x0F120300, /* "Denoise1_iWWSharp <API key> " */
0x0F120002, /* "<API key> " */
0x0F120400, /* "<API key> " */
0x0F120106, /* "<API key> " */
0x0F120005, /* "<API key> " */
0x0F120000, /* "<API key> " */
0x0F120703, /* "<API key>" */
0x0F120000, /* <API key> */
0x0F12FFD6,
0x0F1253C1,
0x0F12E1FE,
0x0F120001,
/* Update Changed Registers */
0x002A03FC,
0x0F120001, /* <API key> */
0xffff0064, /* ADD 100ms */
0x0028D000,
0x002AB0CC,
0x0F12000B, /* Non contious mode */
/* VT-Call END of Initial */
0xffff0032, //ADD 50ms, kmkim
};
/* Set-data based on Samsung Reliabilty Group standard */
/* ,when using WIFI. 15fps*/
static const u32 <API key>[] =
{
/* Wifi_VT */
0xFCFCD000,
/* ARM Go */
0x0028D000,
0x002A1030,
0x0F120000,
0x002A0014,
0x0F120001,
0xffff0064, /* Delay */
/* Trap and Patch 2008-11-18 10:15:41 */
0x00287000,
0x002A1668,
0x0F12B5FE,
0x0F120007,
0x0F12683C,
0x0F12687E,
0x0F121DA5,
0x0F1288A0,
0x0F122800,
0x0F12D00B,
0x0F1288A8,
0x0F122800,
0x0F12D008,
0x0F128820,
0x0F128829,
0x0F124288,
0x0F12D301,
0x0F121A40,
0x0F12E000,
0x0F121A08,
0x0F129001,
0x0F12E001,
0x0F122019,
0x0F129001,
0x0F124916,
0x0F12466B,
0x0F128A48,
0x0F128118,
0x0F128A88,
0x0F128158,
0x0F124814,
0x0F128940,
0x0F120040,
0x0F122103,
0x0F12F000,
0x0F12F826,
0x0F1288A1,
0x0F124288,
0x0F12D908,
0x0F128828,
0x0F128030,
0x0F128868,
0x0F128070,
0x0F1288A8,
0x0F126038,
0x0F12BCFE,
0x0F12BC08,
0x0F124718,
0x0F1288A9,
0x0F124288,
0x0F12D906,
0x0F128820,
0x0F128030,
0x0F128860,
0x0F128070,
0x0F1288A0,
0x0F126038,
0x0F12E7F2,
0x0F129801,
0x0F12A902,
0x0F12F000,
0x0F12F812,
0x0F120033,
0x0F120029,
0x0F129A02,
0x0F120020,
0x0F12F000,
0x0F12F814,
0x0F126038,
0x0F12E7E6,
0x0F121A28,
0x0F127000,
0x0F120D64,
0x0F127000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F126009,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12622F,
0x0F120000,
0x002A2080,
0x0F12B510,
0x0F12F000,
0x0F12F8F4,
0x0F12BC10,
0x0F12BC08,
0x0F124718,
0x0F12B5F0,
0x0F12B08B,
0x0F120006,
0x0F122000,
0x0F129004,
0x0F126835,
0x0F126874,
0x0F1268B0,
0x0F12900A,
0x0F1268F0,
0x0F129009,
0x0F124F7D,
0x0F128979,
0x0F12084A,
0x0F1288A8,
0x0F1288A3,
0x0F124298,
0x0F12D300,
0x0F120018,
0x0F12F000,
0x0F12F907,
0x0F129007,
0x0F120021,
0x0F120028,
0x0F12AA04,
0x0F12F000,
0x0F12F909,
0x0F129006,
0x0F1288A8,
0x0F122800,
0x0F12D102,
0x0F1227FF,
0x0F121C7F,
0x0F12E047,
0x0F1288A0,
0x0F122800,
0x0F12D101,
0x0F122700,
0x0F12E042,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12F000,
0x0F12F8F8,
0x0F129008,
0x0F128ABA,
0x0F129808,
0x0F12466B,
0x0F124342,
0x0F129202,
0x0F128820,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8EA,
0x0F129A02,
0x0F1217D1,
0x0F120E09,
0x0F121889,
0x0F121209,
0x0F124288,
0x0F12DD1F,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8DA,
0x0F129001,
0x0F128828,
0x0F12466B,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12980A,
0x0F129902,
0x0F12F000,
0x0F12F8D0,
0x0F128AB9,
0x0F129A08,
0x0F124351,
0x0F1217CA,
0x0F120E12,
0x0F121851,
0x0F12120A,
0x0F129901,
0x0F12F000,
0x0F12F8B6,
0x0F120407,
0x0F120C3F,
0x0F12E000,
0x0F122700,
0x0F128820,
0x0F12466B,
0x0F12AA05,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12003B,
0x0F12F000,
0x0F12F8BB,
0x0F1288A1,
0x0F1288A8,
0x0F12003A,
0x0F12F000,
0x0F12F8BE,
0x0F120004,
0x0F12A804,
0x0F12C803,
0x0F129A09,
0x0F129B07,
0x0F12F000,
0x0F12F8AF,
0x0F12A806,
0x0F12C805,
0x0F120021,
0x0F12F000,
0x0F12F8B2,
0x0F126030,
0x0F12B00B,
0x0F12BCF0,
0x0F12BC08,
0x0F124718,
0x0F12B5F1,
0x0F129900,
0x0F12680C,
0x0F12493A,
0x0F12694B,
0x0F12698A,
0x0F124694,
0x0F1269CD,
0x0F126A0E,
0x0F124F38,
0x0F1242BC,
0x0F12D800,
0x0F120027,
0x0F124937,
0x0F126B89,
0x0F120409,
0x0F120C09,
0x0F124A35,
0x0F121E92,
0x0F126BD2,
0x0F120412,
0x0F120C12,
0x0F12429F,
0x0F12D801,
0x0F120020,
0x0F12E031,
0x0F12001F,
0x0F12434F,
0x0F120A3F,
0x0F1242A7,
0x0F12D301,
0x0F120018,
0x0F12E02A,
0x0F12002B,
0x0F12434B,
0x0F120A1B,
0x0F1242A3,
0x0F12D303,
0x0F120220,
0x0F12F000,
0x0F12F88C,
0x0F12E021,
0x0F120029,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D301,
0x0F120028,
0x0F12E01A,
0x0F120031,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D304,
0x0F120220,
0x0F120011,
0x0F12F000,
0x0F12F87B,
0x0F12E010,
0x0F12491E,
0x0F128C89,
0x0F12000A,
0x0F124372,
0x0F120A12,
0x0F1242A2,
0x0F12D301,
0x0F120030,
0x0F12E007,
0x0F124662,
0x0F12434A,
0x0F120A12,
0x0F1242A2,
0x0F12D302,
0x0F120220,
0x0F12F000,
0x0F12F869,
0x0F124B16,
0x0F124D18,
0x0F128D99,
0x0F121FCA,
0x0F123AF9,
0x0F12D00A,
0x0F122001,
0x0F120240,
0x0F128468,
0x0F120220,
0x0F12F000,
0x0F12F85D,
0x0F129900,
0x0F126008,
0x0F12BCF8,
0x0F12BC08,
0x0F124718,
0x0F128D19,
0x0F128469,
0x0F129900,
0x0F126008,
0x0F12E7F7,
0x0F12B570,
0x0F122200,
0x0F12490E,
0x0F12480E,
0x0F122401,
0x0F12F000,
0x0F12F852,
0x0F120022,
0x0F12490D,
0x0F12480D,
0x0F122502,
0x0F12F000,
0x0F12F84C,
0x0F12490C,
0x0F12480D,
0x0F12002A,
0x0F12F000,
0x0F12F847,
0x0F12BC70,
0x0F12BC08,
0x0F124718,
0x0F120D64,
0x0F127000,
0x0F120470,
0x0F127000,
0x0F12A120,
0x0F120007,
0x0F120402,
0x0F127000,
0x0F1214A0,
0x0F127000,
0x0F12208D,
0x0F127000,
0x0F12622F,
0x0F120000,
0x0F121669,
0x0F127000,
0x0F126445,
0x0F120000,
0x0F1221AB,
0x0F127000,
0x0F122AA9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125F49,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FC7,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125457,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FA3,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F1251F9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12A007,
0x0F120000,
0x0F126546,
0x0F122062,
0x0F123120,
0x0F123220,
0x0F123130,
0x0F120030,
0x0F12E010,
0x0F120208,
0x0F120058,
0x0F120000,
/* End of Trap and Patch (Last : 70002342h) */
/* Total Size 896 (0x0380) */
0x0028D000,
0x002A1000,
0x0F120001,
0x00287000,
0x002A1662,
0x0F1203B0,
0x0F1203B0,
0x00287000,
0x002A1658,
0x0F129C40,
0x0F120000,
0x0F129C40,
0x0F120000,
0x00287000,
0x002A0ADC,
0x0F120AF0, /* <API key> */
0x002A0AE2,
0x0F12222E, /* <API key> */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
0x002A049A,
0x0F1200FA,
/* Set CIS/APS/Analog */
0x0028D000,
0x002AF106,
0x0F120001,
0x002AF206,
0x0F120001,
0x002AC202,
0x0F120700,
0x002AF260,
0x0F120001,
0x002AF414,
0x0F120030,
0x002AC204,
0x0F120100,
0x002AF402,
0x0F120092,
0x0F12007F,
0x002AF700,
0x0F120040,
0x002AF708,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120001,
0x0F120015,
0x0F120001,
0x0F120040,
0x002AF48A,
0x0F120048,
0x002AF10A,
0x0F12008B,
0x002AF900,
0x0F120067,
0x002AF406,
0x0F120092,
0x0F12007F,
0x0F120003,
0x0F120003,
0x0F120003,
0x002AF442,
0x0F120000,
0x0F120000,
0x002AF448,
0x0F120000,
0x002AF456,
0x0F120001,
0x0F120010,
0x0F120000,
0x002AF41A,
0x0F1200FF,
0x0F120003,
0x002AF420,
0x0F120030,
0x002AF410,
0x0F120001,
0x0F120000,
0x002AF416,
0x0F120001,
0x002AF424,
0x0F120000,
0x002AF422,
0x0F120000,
0x002AF41E,
0x0F120000,
0x002AF428,
0x0F120000,
0x0F120000,
0x0F120000,
0x002AF430,
0x0F120000,
0x0F120000,
0x0F120008,
0x0F120005,
0x0F12000F,
0x0F120001,
0x0F120040,
0x0F120040,
0x0F120010,
0x002AF4D6,
0x0F120090,
0x0F120000,
0x002AF47C,
0x0F12000C,
0x0F120000,
0x002AF49A,
0x0F120008,
0x0F120000,
0x002AF4A2,
0x0F120008,
0x0F120000,
0x002AF4B2,
0x0F120013,
0x0F120000,
0x0F120013,
0x0F120000,
0x002AF4AA,
0x0F12009B,
0x0F1200FB,
0x0F12009B,
0x0F1200FB,
0x002AF474,
0x0F120017,
0x0F12005F,
0x0F120017,
0x0F12008F,
0x002AF48C,
0x0F120017,
0x0F12009B,
0x002AF4C8,
0x0F120163,
0x0F120193,
0x002AF490,
0x0F120191,
0x002AF418,
0x0F120083,
0x002AF454,
0x0F120001,
0x002AF702,
0x0F120081,
0x002AF4D2,
0x0F120000,
/* For ESD Check */
0x00287000,
0x002A0132,
0x0F12AAAA,
/* Set FPN Gain Input */
0x002A1176,
0x0F120020,
0x0F120040,
0x0F120080,
0x0F120100,
0x0F120014,
0x0F12000A,
0x0F120008,
0x0F120004,
/* CFPN Canceller */
0x002A116C,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120002,
0x002A0AE8,
0x0F120000,
/* sensor aig table setting */
0x002A10EE,
0x0F120000,
0x002A10F2,
0x0F120000,
0x002A1152,
0x0F120030,
0x0F120028,
0x0F120030,
0x002A1148,
0x0F1200FB,
0x002A1144,
0x0F1200FB,
0x002A1150,
0x0F1201F4,
0x002A1084,
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set AE Target */
0x002A0F4C,
0x0F120038, /* 3A TVAR_ae_BrAve */
0x002A0478,
0x0F120114,
0x0F1200EB, /* ae boundary */
/* Set Frame Rate */
0x002A0484,
0x0F12410A,/* uMaxExp1 */
0x0F120000,
0x002A048C,
0x0F128214,/* uMaxExp2 */
0x0F120000,
0x0F12A122,/* uMaxExp3 */
0x0F120000,
0x002A0488,
0x0F12f424,/* uMaxExp4 */
0x0F120000,
0x002A043A,
0x0F1201B0,/* lt_uMaxAnGain0 */
0x0F1201C0,/* lt_uMaxAnGain0_1 */
0x002A0494,
0x0F1202B0,/* lt_uMaxAnGain1 */
0x0F120B00,/* lt_uMaxAnGain2 */
0x0f120100,/* lt_uMaxDigGain */
0x002A0F52,
0x0F12000F,/* ae_StatMode */
/* 1. Auto Flicker 60Hz Start */
0x002A0B2E,
0x0F120001, /* AFC_Default60Hz Auto Flicker 60Hz start 0: Auto Flicker 50Hz start */
0x002A03F8,
0x0F12007F, /* <API key> default : 007F */
0xffff000a, /* Wait10mSec */
/* Set PLL */
/* External CLOCK (MCLK) */
0x002A01B8,
0x0F125DC0, /* <API key> */
0x0F120000, /* <API key> */
/* Parallel or MIP Selection */
0x002A01C6,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
/* System Clock 0 (System : 24Mhz, PCLK : 48Mhz) */
0x002A01CC,
0x0F121770, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
/* System Clock 1 (System : 28Mhz, PCLK : 48Mhz) */
0x002A01D2,
0x0F121B58, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x002A01DE,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0064, /* Delay 100msec */
/* Crop */
0x002A01FA,
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set Preview Config */
/* Preview Config 0 (1600x1200 fixed 15fps) */
0x002A0242,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_0TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120001, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12029A, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* 03 <API key> */
0x0F120000, /* 03 <API key> */
0x0F120000, /* <API key> */
/* Preview Config 1 (640x480, Not Fixed 15 ~ 30fps) */
0x002A0268,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_1TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12014D, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* 03 <API key> */
0x0F120000, /* 03 <API key> */
0x0F120000, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set Capture Config */
/* Capture Config 0 (1600x1200 fixed 15fps) */
0x002A0302,
0x0F120000, /* <API key> */
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120005, /* REG_0TC_CCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120002, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12029A, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Periodic mismatch */
0x002A0780,
0x0F120000, /* msm_uOffsetNoBin[0][0] */
0x0F120000, /* msm_uOffsetNoBin[0][1] */
0x0F120000, /* msm_uOffsetNoBin[1][0] */
0x0F120000, /* msm_uOffsetNoBin[1][1] */
0x0F120000, /* msm_uOffsetNoBin[2][0] */
0x0F120000, /* msm_uOffsetNoBin[2][1] */
0x0F120000, /* msm_uOffsetNoBin[3][0] */
0x0F120000, /* msm_uOffsetNoBin[3][1] */
0x002A0798,
0x0F120000, /* msm_uOffsetBin[0][0] */
0x0F120000, /* msm_uOffsetBin[0][1] */
0x0F120000, /* msm_uOffsetBin[1][0] */
0x0F120000, /* msm_uOffsetBin[1][1] */
0x002A07C0,
0x0F120004, /* <API key>[2] */
0x0F120004, /* <API key>[3] */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
/* Set AE Weights */
0x002A0F5A,
0x0F120000, /* ae_WeightTbl_16_0_ */
0x0F120000, /* ae_WeightTbl_16_1_ */
0x0F120000, /* ae_WeightTbl_16_2_ */
0x0F120000, /* ae_WeightTbl_16_3_ */
0x0F120101, /* ae_WeightTbl_16_4_ */
0x0F120101, /* ae_WeightTbl_16_5_ */
0x0F120101, /* ae_WeightTbl_16_6_ */
0x0F120101, /* ae_WeightTbl_16_7_ */
0x0F120101, /* ae_WeightTbl_16_8_ */
0x0F120302, /* ae_WeightTbl_16_9_ */
0x0F120203, /* ae_WeightTbl_16_10 */
0x0F120101, /* ae_WeightTbl_16_11 */
0x0F120101, /* ae_WeightTbl_16_12 */
0x0F120403, /* ae_WeightTbl_16_13 */
0x0F120304, /* ae_WeightTbl_16_14 */
0x0F120101, /* ae_WeightTbl_16_15 */
0x0F120101, /* ae_WeightTbl_16_16 */
0x0F120403, /* ae_WeightTbl_16_17 */
0x0F120304, /* ae_WeightTbl_16_18 */
0x0F120101, /* ae_WeightTbl_16_19 */
0x0F120101, /* ae_WeightTbl_16_20 */
0x0F120302, /* ae_WeightTbl_16_21 */
0x0F120203, /* ae_WeightTbl_16_22 */
0x0F120101, /* ae_WeightTbl_16_23 */
0x0F120101, /* ae_WeightTbl_16_24 */
0x0F120101, /* ae_WeightTbl_16_25 */
0x0F120101, /* ae_WeightTbl_16_26 */
0x0F120101, /* ae_WeightTbl_16_27 */
0x0F120000, /* ae_WeightTbl_16_28 */
0x0F120000, /* ae_WeightTbl_16_29 */
0x0F120000, /* ae_WeightTbl_16_30 */
0x0F120000, /* ae_WeightTbl_16_31 */
/* Set GAS & CCM White Point */
/* param_start TVAR_ash_AwbAshCord */
0x002A0704,
0x0F1200B3, /* <API key> */
0x0F1200E5, /* <API key> */
0x0F120120, /* <API key> */
0x0F120136, /* <API key> */
0x0F120180, /* <API key> */
0x0F1201B0, /* <API key> */
0x0F120200, /* <API key> */
/* param_start wbt_AwbCcmCord */
0x002A06F2,
0x0F1200B3, /* SARR_AwbCcmCord_0_ Hor */
0x0F1200E5, /* SARR_AwbCcmCord_1_ IncaA */
0x0F120100, /* SARR_AwbCcmCord_2_ WW */
0x0F120116, /* SARR_AwbCcmCord_3_ CW */
0x0F120150, /* SARR_AwbCcmCord_4_ D50 */
0x0F120198, /* SARR_AwbCcmCord_5_ D65 */
/* Target Brightness Control */
0x002A103E,
0x0F120000, /* SARR_IllumType_0_ */
0x0F120009, /* SARR_IllumType_1_ */
0x0F120018, /* SARR_IllumType_2_ */
0x0F120032, /* SARR_IllumType_3_ */
0x0F12004A, /* SARR_IllumType_4_ */
0x0F120051, /* SARR_IllumType_5_ */
0x0F120056, /* SARR_IllumType_6_ */
0x0F12010C, /* <API key> */
0x0F12010C, /* <API key> */
0x0F120109, /* <API key> */
0x0F120105, /* <API key> */
0x0F120102, /* <API key> */
0x0F1200FB, /* SARR_IllumTypeF_5_ */
0x0F1200F8, /* SARR_IllumTypeF_6_ */
/* TVAR_ash_GASAlpha(Indoor) */
0x002A0712,
0x0F120100, /* TVAR_ash_GASAlpha[0] */
0x0F120100, /* TVAR_ash_GASAlpha[1] */
0x0F120100, /* TVAR_ash_GASAlpha[2] */
0x0F120100, /* TVAR_ash_GASAlpha[3] */
0x0F120100, /* TVAR_ash_GASAlpha[4] */
0x0F120100, /* TVAR_ash_GASAlpha[5] */
0x0F120100, /* TVAR_ash_GASAlpha[6] */
0x0F120100, /* TVAR_ash_GASAlpha[7] */
0x0F120100, /* TVAR_ash_GASAlpha[8] */
0x0F120100, /* TVAR_ash_GASAlpha[9] */
0x0F120100, /* TVAR_ash_GASAlpha[10] */
0x0F120100, /* TVAR_ash_GASAlpha[11] */
0x0F120100, /* TVAR_ash_GASAlpha[12] */
0x0F120100, /* TVAR_ash_GASAlpha[13] */
0x0F120100, /* TVAR_ash_GASAlpha[14] */
0x0F120100, /* TVAR_ash_GASAlpha[15] */
0x0F120100, /* TVAR_ash_GASAlpha[16] */
0x0F120100, /* TVAR_ash_GASAlpha[17] */
0x0F120100, /* TVAR_ash_GASAlpha[18] */
0x0F120100, /* TVAR_ash_GASAlpha[19] */
0x0F120100, /* TVAR_ash_GASAlpha[20] */
0x0F120100, /* TVAR_ash_GASAlpha[21] */
0x0F120100, /* TVAR_ash_GASAlpha[22] */
0x0F120100, /* TVAR_ash_GASAlpha[23] */
0x0F120100, /* TVAR_ash_GASAlpha[24] */
0x0F120100, /* TVAR_ash_GASAlpha[25] */
0x0F120100, /* TVAR_ash_GASAlpha[26] */
0x0F120100, /* TVAR_ash_GASAlpha[27] */
/* TVAR_ash_GASAlpha(Outdoor) */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
0x0F120100, /* <API key> */
/* GAS LUT Start Address */
0x002A0754,
0x0F122388, /* TVAR_ash_pGAS */
0x0F127000, /* TVAR_ash_pGAS */
/* param_start TVAR_ash_pGAS */
0x002A2388,
0x0F1201CC, /* TVAR_ash_pGAS[0] */
0x0F120178, /* TVAR_ash_pGAS[1] */
0x0F12013B, /* TVAR_ash_pGAS[2] */
0x0F120108, /* TVAR_ash_pGAS[3] */
0x0F1200E4, /* TVAR_ash_pGAS[4] */
0x0F1200CC, /* TVAR_ash_pGAS[5] */
0x0F1200C5, /* TVAR_ash_pGAS[6] */
0x0F1200CF, /* TVAR_ash_pGAS[7] */
0x0F1200E8, /* TVAR_ash_pGAS[8] */
0x0F120111, /* TVAR_ash_pGAS[9] */
0x0F120142, /* TVAR_ash_pGAS[10] */
0x0F120183, /* TVAR_ash_pGAS[11] */
0x0F1201D9, /* TVAR_ash_pGAS[12] */
0x0F120184, /* TVAR_ash_pGAS[13] */
0x0F120142, /* TVAR_ash_pGAS[14] */
0x0F120101, /* TVAR_ash_pGAS[15] */
0x0F1200CF, /* TVAR_ash_pGAS[16] */
0x0F1200A7, /* TVAR_ash_pGAS[17] */
0x0F120090, /* TVAR_ash_pGAS[18] */
0x0F120088, /* TVAR_ash_pGAS[19] */
0x0F120092, /* TVAR_ash_pGAS[20] */
0x0F1200AC, /* TVAR_ash_pGAS[21] */
0x0F1200D5, /* TVAR_ash_pGAS[22] */
0x0F12010D, /* TVAR_ash_pGAS[23] */
0x0F12014E, /* TVAR_ash_pGAS[24] */
0x0F120190, /* TVAR_ash_pGAS[25] */
0x0F12014E, /* TVAR_ash_pGAS[26] */
0x0F12010D, /* TVAR_ash_pGAS[27] */
0x0F1200CA, /* TVAR_ash_pGAS[28] */
0x0F120094, /* TVAR_ash_pGAS[29] */
0x0F12006D, /* TVAR_ash_pGAS[30] */
0x0F120054, /* TVAR_ash_pGAS[31] */
0x0F12004E, /* TVAR_ash_pGAS[32] */
0x0F120058, /* TVAR_ash_pGAS[33] */
0x0F120073, /* TVAR_ash_pGAS[34] */
0x0F12009D, /* TVAR_ash_pGAS[35] */
0x0F1200D5, /* TVAR_ash_pGAS[36] */
0x0F12011D, /* TVAR_ash_pGAS[37] */
0x0F12015A, /* TVAR_ash_pGAS[38] */
0x0F120129, /* TVAR_ash_pGAS[39] */
0x0F1200E5, /* TVAR_ash_pGAS[40] */
0x0F1200A1, /* TVAR_ash_pGAS[41] */
0x0F12006B, /* TVAR_ash_pGAS[42] */
0x0F120042, /* TVAR_ash_pGAS[43] */
0x0F12002A, /* TVAR_ash_pGAS[44] */
0x0F120022, /* TVAR_ash_pGAS[45] */
0x0F12002D, /* TVAR_ash_pGAS[46] */
0x0F120049, /* TVAR_ash_pGAS[47] */
0x0F120075, /* TVAR_ash_pGAS[48] */
0x0F1200AF, /* TVAR_ash_pGAS[49] */
0x0F1200F8, /* TVAR_ash_pGAS[50] */
0x0F12013A, /* TVAR_ash_pGAS[51] */
0x0F120113, /* TVAR_ash_pGAS[52] */
0x0F1200CE, /* TVAR_ash_pGAS[53] */
0x0F120088, /* TVAR_ash_pGAS[54] */
0x0F120052, /* TVAR_ash_pGAS[55] */
0x0F12002A, /* TVAR_ash_pGAS[56] */
0x0F120010, /* TVAR_ash_pGAS[57] */
0x0F120009, /* TVAR_ash_pGAS[58] */
0x0F120015, /* TVAR_ash_pGAS[59] */
0x0F120032, /* TVAR_ash_pGAS[60] */
0x0F12005E, /* TVAR_ash_pGAS[61] */
0x0F120098, /* TVAR_ash_pGAS[62] */
0x0F1200E3, /* TVAR_ash_pGAS[63] */
0x0F120128, /* TVAR_ash_pGAS[64] */
0x0F12010A, /* TVAR_ash_pGAS[65] */
0x0F1200C4, /* TVAR_ash_pGAS[66] */
0x0F120080, /* TVAR_ash_pGAS[67] */
0x0F120049, /* TVAR_ash_pGAS[68] */
0x0F120020, /* TVAR_ash_pGAS[69] */
0x0F120008, /* TVAR_ash_pGAS[70] */
0x0F120000, /* TVAR_ash_pGAS[71] */
0x0F12000D, /* TVAR_ash_pGAS[72] */
0x0F12002A, /* TVAR_ash_pGAS[73] */
0x0F120058, /* TVAR_ash_pGAS[74] */
0x0F120093, /* TVAR_ash_pGAS[75] */
0x0F1200DD, /* TVAR_ash_pGAS[76] */
0x0F120123, /* TVAR_ash_pGAS[77] */
0x0F12010D, /* TVAR_ash_pGAS[78] */
0x0F1200CA, /* TVAR_ash_pGAS[79] */
0x0F120085, /* TVAR_ash_pGAS[80] */
0x0F12004E, /* TVAR_ash_pGAS[81] */
0x0F120026, /* TVAR_ash_pGAS[82] */
0x0F12000E, /* TVAR_ash_pGAS[83] */
0x0F120007, /* TVAR_ash_pGAS[84] */
0x0F120014, /* TVAR_ash_pGAS[85] */
0x0F120032, /* TVAR_ash_pGAS[86] */
0x0F120061, /* TVAR_ash_pGAS[87] */
0x0F12009C, /* TVAR_ash_pGAS[88] */
0x0F1200E8, /* TVAR_ash_pGAS[89] */
0x0F12012F, /* TVAR_ash_pGAS[90] */
0x0F120121, /* TVAR_ash_pGAS[91] */
0x0F1200DE, /* TVAR_ash_pGAS[92] */
0x0F12009A, /* TVAR_ash_pGAS[93] */
0x0F120063, /* TVAR_ash_pGAS[94] */
0x0F12003B, /* TVAR_ash_pGAS[95] */
0x0F120024, /* TVAR_ash_pGAS[96] */
0x0F12001D, /* TVAR_ash_pGAS[97] */
0x0F12002B, /* TVAR_ash_pGAS[98] */
0x0F120049, /* TVAR_ash_pGAS[99] */
0x0F120079, /* TVAR_ash_pGAS[100] */
0x0F1200B5, /* TVAR_ash_pGAS[101] */
0x0F120100, /* TVAR_ash_pGAS[102] */
0x0F120145, /* TVAR_ash_pGAS[103] */
0x0F12013F, /* TVAR_ash_pGAS[104] */
0x0F120101, /* TVAR_ash_pGAS[105] */
0x0F1200BE, /* TVAR_ash_pGAS[106] */
0x0F120087, /* TVAR_ash_pGAS[107] */
0x0F12005F, /* TVAR_ash_pGAS[108] */
0x0F120048, /* TVAR_ash_pGAS[109] */
0x0F120043, /* TVAR_ash_pGAS[110] */
0x0F120051, /* TVAR_ash_pGAS[111] */
0x0F120070, /* TVAR_ash_pGAS[112] */
0x0F1200A0, /* TVAR_ash_pGAS[113] */
0x0F1200DF, /* TVAR_ash_pGAS[114] */
0x0F120126, /* TVAR_ash_pGAS[115] */
0x0F120168, /* TVAR_ash_pGAS[116] */
0x0F12016D, /* TVAR_ash_pGAS[117] */
0x0F12012F, /* TVAR_ash_pGAS[118] */
0x0F1200EF, /* TVAR_ash_pGAS[119] */
0x0F1200BA, /* TVAR_ash_pGAS[120] */
0x0F120093, /* TVAR_ash_pGAS[121] */
0x0F12007E, /* TVAR_ash_pGAS[122] */
0x0F120079, /* TVAR_ash_pGAS[123] */
0x0F120087, /* TVAR_ash_pGAS[124] */
0x0F1200A6, /* TVAR_ash_pGAS[125] */
0x0F1200D7, /* TVAR_ash_pGAS[126] */
0x0F120114, /* TVAR_ash_pGAS[127] */
0x0F120158, /* TVAR_ash_pGAS[128] */
0x0F120199, /* TVAR_ash_pGAS[129] */
0x0F1201A6, /* TVAR_ash_pGAS[130] */
0x0F12015E, /* TVAR_ash_pGAS[131] */
0x0F120122, /* TVAR_ash_pGAS[132] */
0x0F1200F1, /* TVAR_ash_pGAS[133] */
0x0F1200CB, /* TVAR_ash_pGAS[134] */
0x0F1200B6, /* TVAR_ash_pGAS[135] */
0x0F1200B2, /* TVAR_ash_pGAS[136] */
0x0F1200C0, /* TVAR_ash_pGAS[137] */
0x0F1200DF, /* TVAR_ash_pGAS[138] */
0x0F12010D, /* TVAR_ash_pGAS[139] */
0x0F120145, /* TVAR_ash_pGAS[140] */
0x0F120188, /* TVAR_ash_pGAS[141] */
0x0F1201DF, /* TVAR_ash_pGAS[142] */
0x0F12016C, /* TVAR_ash_pGAS[143] */
0x0F120127, /* TVAR_ash_pGAS[144] */
0x0F1200F2, /* TVAR_ash_pGAS[145] */
0x0F1200CA, /* TVAR_ash_pGAS[146] */
0x0F1200AC, /* TVAR_ash_pGAS[147] */
0x0F12009B, /* TVAR_ash_pGAS[148] */
0x0F120096, /* TVAR_ash_pGAS[149] */
0x0F12009C, /* TVAR_ash_pGAS[150] */
0x0F1200AE, /* TVAR_ash_pGAS[151] */
0x0F1200CC, /* TVAR_ash_pGAS[152] */
0x0F1200F4, /* TVAR_ash_pGAS[153] */
0x0F12012D, /* TVAR_ash_pGAS[154] */
0x0F120179, /* TVAR_ash_pGAS[155] */
0x0F120130, /* TVAR_ash_pGAS[156] */
0x0F1200F6, /* TVAR_ash_pGAS[157] */
0x0F1200C4, /* TVAR_ash_pGAS[158] */
0x0F120099, /* TVAR_ash_pGAS[159] */
0x0F12007C, /* TVAR_ash_pGAS[160] */
0x0F12006C, /* TVAR_ash_pGAS[161] */
0x0F120067, /* TVAR_ash_pGAS[162] */
0x0F12006E, /* TVAR_ash_pGAS[163] */
0x0F12007F, /* TVAR_ash_pGAS[164] */
0x0F12009E, /* TVAR_ash_pGAS[165] */
0x0F1200C8, /* TVAR_ash_pGAS[166] */
0x0F120100, /* TVAR_ash_pGAS[167] */
0x0F120138, /* TVAR_ash_pGAS[168] */
0x0F120107, /* TVAR_ash_pGAS[169] */
0x0F1200CF, /* TVAR_ash_pGAS[170] */
0x0F120097, /* TVAR_ash_pGAS[171] */
0x0F12006D, /* TVAR_ash_pGAS[172] */
0x0F120050, /* TVAR_ash_pGAS[173] */
0x0F120040, /* TVAR_ash_pGAS[174] */
0x0F12003B, /* TVAR_ash_pGAS[175] */
0x0F120042, /* TVAR_ash_pGAS[176] */
0x0F120055, /* TVAR_ash_pGAS[177] */
0x0F120074, /* TVAR_ash_pGAS[178] */
0x0F12009F, /* TVAR_ash_pGAS[179] */
0x0F1200D9, /* TVAR_ash_pGAS[180] */
0x0F120110, /* TVAR_ash_pGAS[181] */
0x0F1200E9, /* TVAR_ash_pGAS[182] */
0x0F1200AE, /* TVAR_ash_pGAS[183] */
0x0F120077, /* TVAR_ash_pGAS[184] */
0x0F12004D, /* TVAR_ash_pGAS[185] */
0x0F12002F, /* TVAR_ash_pGAS[186] */
0x0F12001F, /* TVAR_ash_pGAS[187] */
0x0F12001A, /* TVAR_ash_pGAS[188] */
0x0F120022, /* TVAR_ash_pGAS[189] */
0x0F120036, /* TVAR_ash_pGAS[190] */
0x0F120055, /* TVAR_ash_pGAS[191] */
0x0F120081, /* TVAR_ash_pGAS[192] */
0x0F1200BC, /* TVAR_ash_pGAS[193] */
0x0F1200F5, /* TVAR_ash_pGAS[194] */
0x0F1200D8, /* TVAR_ash_pGAS[195] */
0x0F12009C, /* TVAR_ash_pGAS[196] */
0x0F120064, /* TVAR_ash_pGAS[197] */
0x0F12003A, /* TVAR_ash_pGAS[198] */
0x0F12001C, /* TVAR_ash_pGAS[199] */
0x0F12000B, /* TVAR_ash_pGAS[200] */
0x0F120006, /* TVAR_ash_pGAS[201] */
0x0F12000F, /* TVAR_ash_pGAS[202] */
0x0F120024, /* TVAR_ash_pGAS[203] */
0x0F120044, /* TVAR_ash_pGAS[204] */
0x0F120070, /* TVAR_ash_pGAS[205] */
0x0F1200AD, /* TVAR_ash_pGAS[206] */
0x0F1200E6, /* TVAR_ash_pGAS[207] */
0x0F1200D0, /* TVAR_ash_pGAS[208] */
0x0F120095, /* TVAR_ash_pGAS[209] */
0x0F12005D, /* TVAR_ash_pGAS[210] */
0x0F120033, /* TVAR_ash_pGAS[211] */
0x0F120015, /* TVAR_ash_pGAS[212] */
0x0F120005, /* TVAR_ash_pGAS[213] */
0x0F120000, /* TVAR_ash_pGAS[214] */
0x0F120009, /* TVAR_ash_pGAS[215] */
0x0F12001E, /* TVAR_ash_pGAS[216] */
0x0F120041, /* TVAR_ash_pGAS[217] */
0x0F12006D, /* TVAR_ash_pGAS[218] */
0x0F1200AA, /* TVAR_ash_pGAS[219] */
0x0F1200E4, /* TVAR_ash_pGAS[220] */
0x0F1200D6, /* TVAR_ash_pGAS[221] */
0x0F12009A, /* TVAR_ash_pGAS[222] */
0x0F120062, /* TVAR_ash_pGAS[223] */
0x0F120038, /* TVAR_ash_pGAS[224] */
0x0F12001B, /* TVAR_ash_pGAS[225] */
0x0F12000A, /* TVAR_ash_pGAS[226] */
0x0F120006, /* TVAR_ash_pGAS[227] */
0x0F120010, /* TVAR_ash_pGAS[228] */
0x0F120026, /* TVAR_ash_pGAS[229] */
0x0F120049, /* TVAR_ash_pGAS[230] */
0x0F120076, /* TVAR_ash_pGAS[231] */
0x0F1200B4, /* TVAR_ash_pGAS[232] */
0x0F1200ED, /* TVAR_ash_pGAS[233] */
0x0F1200E4, /* TVAR_ash_pGAS[234] */
0x0F1200AB, /* TVAR_ash_pGAS[235] */
0x0F120072, /* TVAR_ash_pGAS[236] */
0x0F120049, /* TVAR_ash_pGAS[237] */
0x0F12002C, /* TVAR_ash_pGAS[238] */
0x0F12001C, /* TVAR_ash_pGAS[239] */
0x0F120019, /* TVAR_ash_pGAS[240] */
0x0F120023, /* TVAR_ash_pGAS[241] */
0x0F12003A, /* TVAR_ash_pGAS[242] */
0x0F12005D, /* TVAR_ash_pGAS[243] */
0x0F12008B, /* TVAR_ash_pGAS[244] */
0x0F1200C8, /* TVAR_ash_pGAS[245] */
0x0F1200FF, /* TVAR_ash_pGAS[246] */
0x0F1200FF, /* TVAR_ash_pGAS[247] */
0x0F1200C8, /* TVAR_ash_pGAS[248] */
0x0F120090, /* TVAR_ash_pGAS[249] */
0x0F120066, /* TVAR_ash_pGAS[250] */
0x0F12004A, /* TVAR_ash_pGAS[251] */
0x0F12003A, /* TVAR_ash_pGAS[252] */
0x0F120038, /* TVAR_ash_pGAS[253] */
0x0F120042, /* TVAR_ash_pGAS[254] */
0x0F120059, /* TVAR_ash_pGAS[255] */
0x0F12007C, /* TVAR_ash_pGAS[256] */
0x0F1200AB, /* TVAR_ash_pGAS[257] */
0x0F1200E7, /* TVAR_ash_pGAS[258] */
0x0F12011D, /* TVAR_ash_pGAS[259] */
0x0F120123, /* TVAR_ash_pGAS[260] */
0x0F1200EC, /* TVAR_ash_pGAS[261] */
0x0F1200B7, /* TVAR_ash_pGAS[262] */
0x0F12008E, /* TVAR_ash_pGAS[263] */
0x0F120073, /* TVAR_ash_pGAS[264] */
0x0F120064, /* TVAR_ash_pGAS[265] */
0x0F120062, /* TVAR_ash_pGAS[266] */
0x0F12006D, /* TVAR_ash_pGAS[267] */
0x0F120083, /* TVAR_ash_pGAS[268] */
0x0F1200A7, /* TVAR_ash_pGAS[269] */
0x0F1200D4, /* TVAR_ash_pGAS[270] */
0x0F12010B, /* TVAR_ash_pGAS[271] */
0x0F120144, /* TVAR_ash_pGAS[272] */
0x0F120156, /* TVAR_ash_pGAS[273] */
0x0F120114, /* TVAR_ash_pGAS[274] */
0x0F1200E2, /* TVAR_ash_pGAS[275] */
0x0F1200BB, /* TVAR_ash_pGAS[276] */
0x0F12009F, /* TVAR_ash_pGAS[277] */
0x0F120090, /* TVAR_ash_pGAS[278] */
0x0F12008E, /* TVAR_ash_pGAS[279] */
0x0F120099, /* TVAR_ash_pGAS[280] */
0x0F1200B0, /* TVAR_ash_pGAS[281] */
0x0F1200D2, /* TVAR_ash_pGAS[282] */
0x0F1200FE, /* TVAR_ash_pGAS[283] */
0x0F120133, /* TVAR_ash_pGAS[284] */
0x0F12017D, /* TVAR_ash_pGAS[285] */
0x0F120174, /* TVAR_ash_pGAS[286] */
0x0F12012A, /* TVAR_ash_pGAS[287] */
0x0F1200F6, /* TVAR_ash_pGAS[288] */
0x0F1200CC, /* TVAR_ash_pGAS[289] */
0x0F1200AD, /* TVAR_ash_pGAS[290] */
0x0F12009C, /* TVAR_ash_pGAS[291] */
0x0F120099, /* TVAR_ash_pGAS[292] */
0x0F1200A4, /* TVAR_ash_pGAS[293] */
0x0F1200BC, /* TVAR_ash_pGAS[294] */
0x0F1200E0, /* TVAR_ash_pGAS[295] */
0x0F12010E, /* TVAR_ash_pGAS[296] */
0x0F120147, /* TVAR_ash_pGAS[297] */
0x0F120193, /* TVAR_ash_pGAS[298] */
0x0F12013A, /* TVAR_ash_pGAS[299] */
0x0F1200FE, /* TVAR_ash_pGAS[300] */
0x0F1200C9, /* TVAR_ash_pGAS[301] */
0x0F12009E, /* TVAR_ash_pGAS[302] */
0x0F12007E, /* TVAR_ash_pGAS[303] */
0x0F12006E, /* TVAR_ash_pGAS[304] */
0x0F12006B, /* TVAR_ash_pGAS[305] */
0x0F120075, /* TVAR_ash_pGAS[306] */
0x0F12008D, /* TVAR_ash_pGAS[307] */
0x0F1200B2, /* TVAR_ash_pGAS[308] */
0x0F1200E0, /* TVAR_ash_pGAS[309] */
0x0F12011B, /* TVAR_ash_pGAS[310] */
0x0F120152, /* TVAR_ash_pGAS[311] */
0x0F120112, /* TVAR_ash_pGAS[312] */
0x0F1200D8, /* TVAR_ash_pGAS[313] */
0x0F12009F, /* TVAR_ash_pGAS[314] */
0x0F120073, /* TVAR_ash_pGAS[315] */
0x0F120054, /* TVAR_ash_pGAS[316] */
0x0F120042, /* TVAR_ash_pGAS[317] */
0x0F12003F, /* TVAR_ash_pGAS[318] */
0x0F120049, /* TVAR_ash_pGAS[319] */
0x0F120061, /* TVAR_ash_pGAS[320] */
0x0F120085, /* TVAR_ash_pGAS[321] */
0x0F1200B5, /* TVAR_ash_pGAS[322] */
0x0F1200F2, /* TVAR_ash_pGAS[323] */
0x0F120128, /* TVAR_ash_pGAS[324] */
0x0F1200F5, /* TVAR_ash_pGAS[325] */
0x0F1200BA, /* TVAR_ash_pGAS[326] */
0x0F120080, /* TVAR_ash_pGAS[327] */
0x0F120054, /* TVAR_ash_pGAS[328] */
0x0F120034, /* TVAR_ash_pGAS[329] */
0x0F120022, /* TVAR_ash_pGAS[330] */
0x0F12001D, /* TVAR_ash_pGAS[331] */
0x0F120027, /* TVAR_ash_pGAS[332] */
0x0F12003F, /* TVAR_ash_pGAS[333] */
0x0F120064, /* TVAR_ash_pGAS[334] */
0x0F120092, /* TVAR_ash_pGAS[335] */
0x0F1200CF, /* TVAR_ash_pGAS[336] */
0x0F120109, /* TVAR_ash_pGAS[337] */
0x0F1200E4, /* TVAR_ash_pGAS[338] */
0x0F1200A8, /* TVAR_ash_pGAS[339] */
0x0F12006E, /* TVAR_ash_pGAS[340] */
0x0F120041, /* TVAR_ash_pGAS[341] */
0x0F120021, /* TVAR_ash_pGAS[342] */
0x0F12000E, /* TVAR_ash_pGAS[343] */
0x0F120008, /* TVAR_ash_pGAS[344] */
0x0F120012, /* TVAR_ash_pGAS[345] */
0x0F120029, /* TVAR_ash_pGAS[346] */
0x0F12004D, /* TVAR_ash_pGAS[347] */
0x0F12007C, /* TVAR_ash_pGAS[348] */
0x0F1200B8, /* TVAR_ash_pGAS[349] */
0x0F1200F3, /* TVAR_ash_pGAS[350] */
0x0F1200DF, /* TVAR_ash_pGAS[351] */
0x0F1200A2, /* TVAR_ash_pGAS[352] */
0x0F120068, /* TVAR_ash_pGAS[353] */
0x0F12003B, /* TVAR_ash_pGAS[354] */
0x0F12001A, /* TVAR_ash_pGAS[355] */
0x0F120006, /* TVAR_ash_pGAS[356] */
0x0F120000, /* TVAR_ash_pGAS[357] */
0x0F120009, /* TVAR_ash_pGAS[358] */
0x0F12001F, /* TVAR_ash_pGAS[359] */
0x0F120042, /* TVAR_ash_pGAS[360] */
0x0F120071, /* TVAR_ash_pGAS[361] */
0x0F1200AE, /* TVAR_ash_pGAS[362] */
0x0F1200E9, /* TVAR_ash_pGAS[363] */
0x0F1200E4, /* TVAR_ash_pGAS[364] */
0x0F1200A7, /* TVAR_ash_pGAS[365] */
0x0F12006C, /* TVAR_ash_pGAS[366] */
0x0F12003F, /* TVAR_ash_pGAS[367] */
0x0F12001E, /* TVAR_ash_pGAS[368] */
0x0F12000B, /* TVAR_ash_pGAS[369] */
0x0F120004, /* TVAR_ash_pGAS[370] */
0x0F12000D, /* TVAR_ash_pGAS[371] */
0x0F120022, /* TVAR_ash_pGAS[372] */
0x0F120044, /* TVAR_ash_pGAS[373] */
0x0F120072, /* TVAR_ash_pGAS[374] */
0x0F1200AE, /* TVAR_ash_pGAS[375] */
0x0F1200EA, /* TVAR_ash_pGAS[376] */
0x0F1200F5, /* TVAR_ash_pGAS[377] */
0x0F1200B9, /* TVAR_ash_pGAS[378] */
0x0F12007D, /* TVAR_ash_pGAS[379] */
0x0F120051, /* TVAR_ash_pGAS[380] */
0x0F12002F, /* TVAR_ash_pGAS[381] */
0x0F12001C, /* TVAR_ash_pGAS[382] */
0x0F120015, /* TVAR_ash_pGAS[383] */
0x0F12001D, /* TVAR_ash_pGAS[384] */
0x0F120031, /* TVAR_ash_pGAS[385] */
0x0F120053, /* TVAR_ash_pGAS[386] */
0x0F120080, /* TVAR_ash_pGAS[387] */
0x0F1200BC, /* TVAR_ash_pGAS[388] */
0x0F1200F7, /* TVAR_ash_pGAS[389] */
0x0F120111, /* TVAR_ash_pGAS[390] */
0x0F1200D6, /* TVAR_ash_pGAS[391] */
0x0F12009C, /* TVAR_ash_pGAS[392] */
0x0F12006F, /* TVAR_ash_pGAS[393] */
0x0F12004E, /* TVAR_ash_pGAS[394] */
0x0F12003A, /* TVAR_ash_pGAS[395] */
0x0F120033, /* TVAR_ash_pGAS[396] */
0x0F12003A, /* TVAR_ash_pGAS[397] */
0x0F12004E, /* TVAR_ash_pGAS[398] */
0x0F12006E, /* TVAR_ash_pGAS[399] */
0x0F12009B, /* TVAR_ash_pGAS[400] */
0x0F1200D5, /* TVAR_ash_pGAS[401] */
0x0F12010F, /* TVAR_ash_pGAS[402] */
0x0F120139, /* TVAR_ash_pGAS[403] */
0x0F1200FD, /* TVAR_ash_pGAS[404] */
0x0F1200C6, /* TVAR_ash_pGAS[405] */
0x0F120098, /* TVAR_ash_pGAS[406] */
0x0F120077, /* TVAR_ash_pGAS[407] */
0x0F120064, /* TVAR_ash_pGAS[408] */
0x0F12005D, /* TVAR_ash_pGAS[409] */
0x0F120064, /* TVAR_ash_pGAS[410] */
0x0F120076, /* TVAR_ash_pGAS[411] */
0x0F120095, /* TVAR_ash_pGAS[412] */
0x0F1200C2, /* TVAR_ash_pGAS[413] */
0x0F1200F8, /* TVAR_ash_pGAS[414] */
0x0F120135, /* TVAR_ash_pGAS[415] */
0x0F12016C, /* TVAR_ash_pGAS[416] */
0x0F120128, /* TVAR_ash_pGAS[417] */
0x0F1200F2, /* TVAR_ash_pGAS[418] */
0x0F1200C7, /* TVAR_ash_pGAS[419] */
0x0F1200A4, /* TVAR_ash_pGAS[420] */
0x0F120092, /* TVAR_ash_pGAS[421] */
0x0F12008A, /* TVAR_ash_pGAS[422] */
0x0F12008F, /* TVAR_ash_pGAS[423] */
0x0F1200A3, /* TVAR_ash_pGAS[424] */
0x0F1200C0, /* TVAR_ash_pGAS[425] */
0x0F1200EA, /* TVAR_ash_pGAS[426] */
0x0F120121, /* TVAR_ash_pGAS[427] */
0x0F12016F, /* TVAR_ash_pGAS[428] */
0x0F120123, /* TVAR_ash_pGAS[429] */
0x0F1200E7, /* TVAR_ash_pGAS[430] */
0x0F1200BD, /* TVAR_ash_pGAS[431] */
0x0F12009C, /* TVAR_ash_pGAS[432] */
0x0F120087, /* TVAR_ash_pGAS[433] */
0x0F12007C, /* TVAR_ash_pGAS[434] */
0x0F12007B, /* TVAR_ash_pGAS[435] */
0x0F120086, /* TVAR_ash_pGAS[436] */
0x0F120099, /* TVAR_ash_pGAS[437] */
0x0F1200B7, /* TVAR_ash_pGAS[438] */
0x0F1200DC, /* TVAR_ash_pGAS[439] */
0x0F12010E, /* TVAR_ash_pGAS[440] */
0x0F12014A, /* TVAR_ash_pGAS[441] */
0x0F1200F1, /* TVAR_ash_pGAS[442] */
0x0F1200C1, /* TVAR_ash_pGAS[443] */
0x0F120096, /* TVAR_ash_pGAS[444] */
0x0F120077, /* TVAR_ash_pGAS[445] */
0x0F120062, /* TVAR_ash_pGAS[446] */
0x0F120058, /* TVAR_ash_pGAS[447] */
0x0F120057, /* TVAR_ash_pGAS[448] */
0x0F120061, /* TVAR_ash_pGAS[449] */
0x0F120074, /* TVAR_ash_pGAS[450] */
0x0F120090, /* TVAR_ash_pGAS[451] */
0x0F1200B7, /* TVAR_ash_pGAS[452] */
0x0F1200E7, /* TVAR_ash_pGAS[453] */
0x0F120113, /* TVAR_ash_pGAS[454] */
0x0F1200CB, /* TVAR_ash_pGAS[455] */
0x0F12009D, /* TVAR_ash_pGAS[456] */
0x0F120071, /* TVAR_ash_pGAS[457] */
0x0F120052, /* TVAR_ash_pGAS[458] */
0x0F120040, /* TVAR_ash_pGAS[459] */
0x0F120035, /* TVAR_ash_pGAS[460] */
0x0F120034, /* TVAR_ash_pGAS[461] */
0x0F12003D, /* TVAR_ash_pGAS[462] */
0x0F12004F, /* TVAR_ash_pGAS[463] */
0x0F12006B, /* TVAR_ash_pGAS[464] */
0x0F120090, /* TVAR_ash_pGAS[465] */
0x0F1200C2, /* TVAR_ash_pGAS[466] */
0x0F1200EC, /* TVAR_ash_pGAS[467] */
0x0F1200B0, /* TVAR_ash_pGAS[468] */
0x0F120082, /* TVAR_ash_pGAS[469] */
0x0F120057, /* TVAR_ash_pGAS[470] */
0x0F12003A, /* TVAR_ash_pGAS[471] */
0x0F120026, /* TVAR_ash_pGAS[472] */
0x0F12001B, /* TVAR_ash_pGAS[473] */
0x0F120019, /* TVAR_ash_pGAS[474] */
0x0F120021, /* TVAR_ash_pGAS[475] */
0x0F120033, /* TVAR_ash_pGAS[476] */
0x0F12004F, /* TVAR_ash_pGAS[477] */
0x0F120072, /* TVAR_ash_pGAS[478] */
0x0F1200A2, /* TVAR_ash_pGAS[479] */
0x0F1200CF, /* TVAR_ash_pGAS[480] */
0x0F12009F, /* TVAR_ash_pGAS[481] */
0x0F120072, /* TVAR_ash_pGAS[482] */
0x0F120047, /* TVAR_ash_pGAS[483] */
0x0F12002A, /* TVAR_ash_pGAS[484] */
0x0F120016, /* TVAR_ash_pGAS[485] */
0x0F12000A, /* TVAR_ash_pGAS[486] */
0x0F120008, /* TVAR_ash_pGAS[487] */
0x0F12000F, /* TVAR_ash_pGAS[488] */
0x0F120021, /* TVAR_ash_pGAS[489] */
0x0F12003A, /* TVAR_ash_pGAS[490] */
0x0F12005C, /* TVAR_ash_pGAS[491] */
0x0F12008C, /* TVAR_ash_pGAS[492] */
0x0F1200BB, /* TVAR_ash_pGAS[493] */
0x0F12009A, /* TVAR_ash_pGAS[494] */
0x0F12006C, /* TVAR_ash_pGAS[495] */
0x0F120042, /* TVAR_ash_pGAS[496] */
0x0F120024, /* TVAR_ash_pGAS[497] */
0x0F120010, /* TVAR_ash_pGAS[498] */
0x0F120004, /* TVAR_ash_pGAS[499] */
0x0F120000, /* TVAR_ash_pGAS[500] */
0x0F120007, /* TVAR_ash_pGAS[501] */
0x0F120018, /* TVAR_ash_pGAS[502] */
0x0F120030, /* TVAR_ash_pGAS[503] */
0x0F120050, /* TVAR_ash_pGAS[504] */
0x0F120080, /* TVAR_ash_pGAS[505] */
0x0F1200AF, /* TVAR_ash_pGAS[506] */
0x0F12009F, /* TVAR_ash_pGAS[507] */
0x0F120071, /* TVAR_ash_pGAS[508] */
0x0F120046, /* TVAR_ash_pGAS[509] */
0x0F120028, /* TVAR_ash_pGAS[510] */
0x0F120014, /* TVAR_ash_pGAS[511] */
0x0F120006, /* TVAR_ash_pGAS[512] */
0x0F120003, /* TVAR_ash_pGAS[513] */
0x0F120009, /* TVAR_ash_pGAS[514] */
0x0F120019, /* TVAR_ash_pGAS[515] */
0x0F120030, /* TVAR_ash_pGAS[516] */
0x0F120051, /* TVAR_ash_pGAS[517] */
0x0F120080, /* TVAR_ash_pGAS[518] */
0x0F1200B0, /* TVAR_ash_pGAS[519] */
0x0F1200AD, /* TVAR_ash_pGAS[520] */
0x0F120080, /* TVAR_ash_pGAS[521] */
0x0F120055, /* TVAR_ash_pGAS[522] */
0x0F120036, /* TVAR_ash_pGAS[523] */
0x0F120021, /* TVAR_ash_pGAS[524] */
0x0F120015, /* TVAR_ash_pGAS[525] */
0x0F120010, /* TVAR_ash_pGAS[526] */
0x0F120016, /* TVAR_ash_pGAS[527] */
0x0F120024, /* TVAR_ash_pGAS[528] */
0x0F12003A, /* TVAR_ash_pGAS[529] */
0x0F12005B, /* TVAR_ash_pGAS[530] */
0x0F12008B, /* TVAR_ash_pGAS[531] */
0x0F1200BA, /* TVAR_ash_pGAS[532] */
0x0F1200C8, /* TVAR_ash_pGAS[533] */
0x0F120099, /* TVAR_ash_pGAS[534] */
0x0F12006E, /* TVAR_ash_pGAS[535] */
0x0F12004E, /* TVAR_ash_pGAS[536] */
0x0F12003A, /* TVAR_ash_pGAS[537] */
0x0F12002D, /* TVAR_ash_pGAS[538] */
0x0F12002A, /* TVAR_ash_pGAS[539] */
0x0F12002E, /* TVAR_ash_pGAS[540] */
0x0F12003B, /* TVAR_ash_pGAS[541] */
0x0F120051, /* TVAR_ash_pGAS[542] */
0x0F120072, /* TVAR_ash_pGAS[543] */
0x0F1200A1, /* TVAR_ash_pGAS[544] */
0x0F1200D2, /* TVAR_ash_pGAS[545] */
0x0F1200EC, /* TVAR_ash_pGAS[546] */
0x0F1200BE, /* TVAR_ash_pGAS[547] */
0x0F120092, /* TVAR_ash_pGAS[548] */
0x0F120072, /* TVAR_ash_pGAS[549] */
0x0F12005C, /* TVAR_ash_pGAS[550] */
0x0F120050, /* TVAR_ash_pGAS[551] */
0x0F12004D, /* TVAR_ash_pGAS[552] */
0x0F120050, /* TVAR_ash_pGAS[553] */
0x0F12005D, /* TVAR_ash_pGAS[554] */
0x0F120073, /* TVAR_ash_pGAS[555] */
0x0F120094, /* TVAR_ash_pGAS[556] */
0x0F1200C2, /* TVAR_ash_pGAS[557] */
0x0F1200F4, /* TVAR_ash_pGAS[558] */
0x0F12011A, /* TVAR_ash_pGAS[559] */
0x0F1200E3, /* TVAR_ash_pGAS[560] */
0x0F1200B7, /* TVAR_ash_pGAS[561] */
0x0F120097, /* TVAR_ash_pGAS[562] */
0x0F120081, /* TVAR_ash_pGAS[563] */
0x0F120075, /* TVAR_ash_pGAS[564] */
0x0F12006F, /* TVAR_ash_pGAS[565] */
0x0F120074, /* TVAR_ash_pGAS[566] */
0x0F120081, /* TVAR_ash_pGAS[567] */
0x0F120097, /* TVAR_ash_pGAS[568] */
0x0F1200B8, /* TVAR_ash_pGAS[569] */
0x0F1200E7, /* TVAR_ash_pGAS[570] */
0x0F120127, /* TVAR_ash_pGAS[571] */
/* Gamma */
0x002A04CC,
0x0F120000, /* <API key>[0][0] */
0x0F12000D, /* <API key>[0][1] */
0x0F12001B, /* <API key>[0][2] */
0x0F12003C, /* <API key>[0][3] */
0x0F120081, /* <API key>[0][4] */
0x0F1200FE, /* <API key>[0][5] */
0x0F120159, /* <API key>[0][6] */
0x0F1201A1, /* <API key>[0][7] */
0x0F120210, /* <API key>[0][8] */
0x0F120263, /* <API key>[0][9] */
0x0F1202D8, /* <API key>[0][10] */
0x0F120338, /* <API key>[0][11] */
0x0F120384, /* <API key>[0][12] */
0x0F1203BA, /* <API key>[0][13] */
0x0F1203E8, /* <API key>[0][14] */
0x0F120400, /* <API key>[0][15] */
0x0F120000, /* <API key>[1][0] */
0x0F12000D, /* <API key>[1][1] */
0x0F12001B, /* <API key>[1][2] */
0x0F12003C, /* <API key>[1][3] */
0x0F120081, /* <API key>[1][4] */
0x0F1200FE, /* <API key>[1][5] */
0x0F120159, /* <API key>[1][6] */
0x0F1201A1, /* <API key>[1][7] */
0x0F120210, /* <API key>[1][8] */
0x0F120263, /* <API key>[1][9] */
0x0F1202D8, /* <API key>[1][10] */
0x0F120338, /* <API key>[1][11] */
0x0F120384, /* <API key>[1][12] */
0x0F1203BA, /* <API key>[1][13] */
0x0F1203E8, /* <API key>[1][14] */
0x0F120400, /* <API key>[1][15] */
0x0F120000, /* <API key>[2][0] */
0x0F12000D, /* <API key>[2][1] */
0x0F12001B, /* <API key>[2][2] */
0x0F12003C, /* <API key>[2][3] */
0x0F120081, /* <API key>[2][4] */
0x0F1200FE, /* <API key>[2][5] */
0x0F120159, /* <API key>[2][6] */
0x0F1201A1, /* <API key>[2][7] */
0x0F120210, /* <API key>[2][8] */
0x0F120263, /* <API key>[2][9] */
0x0F1202D8, /* <API key>[2][10] */
0x0F120338, /* <API key>[2][11] */
0x0F120384, /* <API key>[2][12] */
0x0F1203BA, /* <API key>[2][13] */
0x0F1203E8, /* <API key>[2][14] */
0x0F120400, /* <API key>[2][15] */
/* Set AWB */
0x002A0DA6,
0x0F120000, /* awbb_LowBr_NBzone */
0x0F120000, /* awbb_LowBr0_NBzone */
0x002A0E8C,
0x0F120000, /* <API key> */
0x002A0D6C,
0x0F120040, /* awbb_YMedMoveToYAv */
/* Indoor Gray Zone */
0x002A0B9C,
0x0F12038F, /* <API key> */
0x0F12039B, /* <API key> */
0x0F120373, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F120352, /* <API key> */
0x0F1203B7, /* <API key> */
0x0F120334, /* <API key> */
0x0F1203B5, /* <API key> */
0x0F120318, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F1202FF, /* <API key> */
0x0F12038D, /* <API key> */
0x0F1202E7, /* <API key> */
0x0F120372, /* <API key> */
0x0F1202D0, /* <API key> */
0x0F12035D, /* <API key> */
0x0F1202B5, /* <API key> */
0x0F120345, /* <API key> */
0x0F1202A1, /* <API key> */
0x0F120331, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12031E, /* <API key> */
0x0F120273, /* <API key> */
0x0F120309, /* <API key> */
0x0F12025F, /* <API key> */
0x0F1202F5, /* <API key> */
0x0F120250, /* <API key> */
0x0F1202DB, /* <API key> */
0x0F120241, /* <API key> */
0x0F1202C7, /* <API key> */
0x0F120233, /* <API key> */
0x0F1202B9, /* <API key> */
0x0F120223, /* <API key> */
0x0F1202AB, /* <API key> */
0x0F120217, /* <API key> */
0x0F1202A2, /* <API key> */
0x0F120207, /* <API key> */
0x0F120294, /* <API key> */
0x0F1201FA, /* <API key> */
0x0F120289, /* <API key> */
0x0F1201EA, /* <API key> */
0x0F120281, /* <API key> */
0x0F1201DD, /* <API key> */
0x0F12027B, /* <API key> */
0x0F1201D0, /* <API key> */
0x0F120273, /* <API key> */
0x0F1201C3, /* <API key> */
0x0F12026A, /* <API key> */
0x0F1201B6, /* <API key> */
0x0F120265, /* <API key> */
0x0F1201AB, /* <API key> */
0x0F12025B, /* <API key> */
0x0F1201A1, /* <API key> */
0x0F120254, /* <API key> */
0x0F120198, /* <API key> */
0x0F12024B, /* <API key> */
0x0F120192, /* <API key> */
0x0F120242, /* <API key> */
0x0F120191, /* <API key> */
0x0F12023A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120222, /* <API key> */
0x0F1201C5, /* <API key> */
0x0F1201DF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* param_end <API key> */
0x002A0C3C,
0x0F120004,
0x0F120000,
0x0F120022,
0x0F120000,
0x0F12010F,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0C50,
0x0F1200E0,
0x0F120000,
/* Outdoor Gray Zone */
0x0F120264,
0x0F120279,
0x0F120250,
0x0F120287,
0x0F120244,
0x0F120287,
0x0F120235,
0x0F120289,
0x0F120225,
0x0F120287,
0x0F120213,
0x0F120286,
0x0F120202,
0x0F12027A,
0x0F1201F3,
0x0F120272,
0x0F1201E9,
0x0F120269,
0x0F1201E2,
0x0F120263,
0x0F1201E0,
0x0F12025A,
0x0F1201E1,
0x0F120256,
0x0F1201EE,
0x0F120251,
0x0F1201F8,
0x0F12024A,
0x0F12020D,
0x0F120231,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
/* param_WRITE 70000CC6 B2end <API key> */
0x002A0CB8,
0x0F120004,
0x0F120000,
0x0F120011,
0x0F120000,
0x0F1201FF,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0CCC,
0x0F1200C0,
0x0F120000,
/* Low Brightness Gray Zone */
0x0F12031F, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202FC, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202D9, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202B6, /* <API key> */
0x0F120495, /* <API key> */
0x0F120293, /* <API key> */
0x0F120495, /* <API key> */
0x0F120270, /* <API key> */
0x0F120495, /* <API key> */
0x0F12024E, /* <API key> */
0x0F120495, /* <API key> */
0x0F12022B, /* <API key> */
0x0F120495, /* <API key> */
0x0F120208, /* <API key> */
0x0F12048A, /* <API key> */
0x0F1201E5, /* <API key> */
0x0F120455, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12041F, /* <API key> */
0x0F12019F, /* <API key> */
0x0F1203EA, /* <API key> */
0x0F12017D, /* <API key> */
0x0F1203B4, /* <API key> */
0x0F12015A, /* <API key> */
0x0F12037F, /* <API key> */
0x0F120137, /* <API key> */
0x0F120349, /* <API key> */
0x0F120130, /* <API key> */
0x0F120314, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202DE, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202B1, /* <API key> */
0x0F12012E, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12012D, /* <API key> */
0x0F120265, /* <API key> */
0x0F12012C, /* <API key> */
0x0F12023F, /* <API key> */
0x0F12012C, /* <API key> */
0x0F120219, /* <API key> */
0x0F12012B, /* <API key> */
0x0F1201F3, /* <API key> */
0x0F12012A, /* <API key> */
0x0F1201CD, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* 42param_end <API key> */
0x0F120005,
0x0F120000,
0x0F120018,
0x0F120000,
0x0F1200AF,
0x0F120000,
0x0F120002,
0x0F120000,
0x002A0D48,
0x0F1200E0,
0x0F120000,
/* Lowtemp circle */
0x0F12032F,
0x0F120000,
0x0F12017A,
0x0F120000,
0x0F127300,
0x0F120000,
0x0F12000A,
0x0F120000,
0x002A0D60,
0x0F1200E0,
0x0F120000,
0x002A0D82,
0x0F120001,
0x002A0D8E,
0x0F120002, /* awbb_GridEnable */
/* Grid coefficients and Contrants */
0x002A0DCE,
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120058, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120058, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120058, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFF0, /* <API key> */
0x0F12FED4, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFF0, /* <API key> */
0x0F12FED4, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFF0, /* <API key> */
0x0F12FED4, /* <API key> */
0x0F1202C6, /* awbb_GridConst_1_0_ */
0x0F120335, /* awbb_GridConst_1_1_ */
0x0F1203B3, /* awbb_GridConst_1_2_ */
0x0F120FD7, /* awbb_GridConst_2_0 */
0x0F1210C5, /* awbb_GridConst_2_1 */
0x0F12116A, /* awbb_GridConst_2_2 */
0x0F12117C, /* awbb_GridConst_2_3 */
0x0F1211C2, /* awbb_GridConst_2_4 */
0x0F12120B, /* awbb_GridConst_2_5 */
0x0F1200B3, /* awbb_GridCoeff_R_1 */
0x0F1200B7, /* awbb_GridCoeff_B_1 */
0x0F1200D3, /* awbb_GridCoeff_R_2 */
0x0F120091, /* awbb_GridCoeff_B_2 */
/* White Locus */
0x002A0D66,
0x0F120133,
0x0F12010F,
0x002A0D74,
0x0F12052A,
/* Gamut Thresholds */
0x002A0DAE,
0x0F120036,
0x0F12001C,
0x002A0DAA,
0x0F12071A,
0x0F1203A4,
/* SceneDetection Thresholds */
0x002A0D92,
0x0F120BB8,
0x0F120096,
0x002A0E86,
0x0F120216,
0x0F12029F,
0x002A0D96,
0x0F120BB7,
0x0F120096,
0x002A0DB2,
0x0F1200DA,
0x002A0D9A,
0x0F12000A,
0x002A0DB4,
0x0F120459,
0x002A0DA4,
0x0F12000E,
0x002A0D64,
0x0F120032,
0x002A0DA6,
0x0F12001E,
0x002A0D9C,
0x0F12001B,
0x0F12000E,
0x0F120008,
0x0F120004,
/* AWB Debug.(Outdoor Pink) */
0x002A0E30,
0x0F120000, /* awbb_OutdoorFltrSz (outdoor WB moving average filtering) */
/* UseInvalidOutdoor option */
0x002A0D88,
0x0F120001,
/* AWB input Y-Filter setting */
0x002A0C48,
0x0F120020,
0x002A0C50,
0x0F1200E0,
0x002A0CC4,
0x0F120020,
0x002A0CCC,
0x0F1200C0,
/* <API key>, default : enable */
0x002A0DC2,
0x0F120030,
0x0F1200C8,
0x0F12012C,
0x0F120210, /* 258 awbb_GainsMaxMove */
0x0F120003,
/* Set CCM */
/* CCM Start Address */
0x002A06D0,
0x0F122800,
0x0F127000,
0x0F122824,
0x0F127000,
0x0F122848,
0x0F127000,
0x0F12286C,
0x0F127000,
0x0F122890,
0x0F127000,
0x0F1228B4,
0x0F127000,
0x002A06EC,
0x0F1228D8,
0x0F127000,
/* param_start TVAR_wbt_pBaseCcms */
0x002A2800,
0x0F1201E1, /* 01FB */
0x0F12FFC4, /* FF9C */
0x0F12FFF8, /* FFFF */
0x0F120101, /* 0137 */
0x0F12014C, /* 0113 */
0x0F12FF55, /* FF6F */
0x0F12FF5B, /* FF21 */
0x0F120205, /* 0194 */
0x0F12FF17, /* FF69 */
0x0F12FEFE, /* FF14 */
0x0F1201B6, /* 0158 */
0x0F120107, /* 015D */
0x0F12FFDB, /* FFF2 */
0x0F12FFDB, /* FFF1 */
0x0F1201D1, /* 0179 */
0x0F120163, /* 017C */
0x0F12FF9E, /* FFC3 */
0x0F1201B3, /* 0197 */
0x0F1201E1, /* 01FB */
0x0F12FFC4, /* FF9C */
0x0F12FFF8, /* FFFF */
0x0F120101, /* 0137 */
0x0F12014C, /* 0113 */
0x0F12FF55, /* FF6F */
0x0F12FF5B, /* FF21 */
0x0F120205, /* 0194 */
0x0F12FF17, /* FF69 */
0x0F12FEFE, /* FF14 */
0x0F1201B6, /* 0158 */
0x0F120107, /* 015D */
0x0F12FFDB, /* FFF2 */
0x0F12FFDB, /* FFF1 */
0x0F1201D1, /* 0179 */
0x0F120163, /* 017C */
0x0F12FF9E, /* FFC3 */
0x0F1201B3, /* 0197 */
0x0F1201E1, /* 01FB */
0x0F12FFC4, /* FF9C */
0x0F12FFF8, /* FFFF */
0x0F120101, /* 0137 */
0x0F12014C, /* 0113 */
0x0F12FF55, /* FF6F */
0x0F12FF5B, /* FF21 */
0x0F120205, /* 0194 */
0x0F12FF17, /* FF69 */
0x0F12FEFE, /* FF14 */
0x0F1201B6, /* 0158 */
0x0F120107, /* 015D */
0x0F12FFDB, /* FFF2 */
0x0F12FFDB, /* FFF1 */
0x0F1201D1, /* 0179 */
0x0F120163, /* 017C */
0x0F12FF9E, /* FFC3 */
0x0F1201B3, /* 0197 */
0x0F1201FB, /* 01FB */
0x0F12FFA9, /* FF9C */
0x0F12FFEA, /* FFFF */
0x0F120134, /* 0137 */
0x0F120133, /* 0113 */
0x0F12FF5D, /* FF6F */
0x0F12FE7A, /* FF21 */
0x0F12017D, /* 0194 */
0x0F12FEED, /* FF69 */
0x0F12FF39, /* FF14 */
0x0F1201D6, /* 0158 */
0x0F1200C4, /* 015D */
0x0F12FFCE, /* FFF2 */
0x0F12FFCD, /* FFF1 */
0x0F1201B7, /* 0179 */
0x0F120176, /* 017C */
0x0F12FFBD, /* FFC3 */
0x0F120191, /* 0197 */
0x0F1201FB, /* 01FB */
0x0F12FFA9, /* FF9C */
0x0F12FFEA, /* FFFF */
0x0F120134, /* 0137 */
0x0F120133, /* 0113 */
0x0F12FF5D, /* FF6F */
0x0F12FE7A, /* FF21 */
0x0F12017D, /* 0194 */
0x0F12FEED, /* FF69 */
0x0F12FF39, /* FF14 */
0x0F1201D6, /* 0158 */
0x0F1200C4, /* 015D */
0x0F12FFCE, /* FFF2 */
0x0F12FFCD, /* FFF1 */
0x0F1201B7, /* 0179 */
0x0F120176, /* 017C */
0x0F12FFBD, /* FFC3 */
0x0F120191, /* 0197 */
0x0F1201D2, /* 01D0 */
0x0F12FFC2, /* FFB4 */
0x0F12FFFC, /* 000C */
0x0F12011E, /* 0122 */
0x0F12011D, /* 0103 */
0x0F12FF86, /* FF9B */
0x0F12FE78, /* FF33 */
0x0F12017B, /* 01C5 */
0x0F12FEEB, /* FF33 */
0x0F12FF38, /* FF16 */
0x0F1201D5, /* 015A */
0x0F1200C3, /* 015F */
0x0F12FFCF, /* FFE0 */
0x0F12FFCE, /* FFDF */
0x0F1201B8, /* 0197 */
0x0F120178, /* 0178 */
0x0F12FFBF, /* FFBF */
0x0F120193, /* 0193 */
0x0F1201E0, /* outdoor CCM */
0x0F12FFBF,
0x0F12FFFD,
0x0F1200F5,
0x0F120139,
0x0F12FF74,
0x0F12FEEC,
0x0F1201FD,
0x0F12FF8E,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
/* Set NB */
0x002A07EA,
0x0F120000, /* afit_bUseNoiseInd 0 : NB 1: Noise Index */
/* param_start SARR_uNormBrInDoor */
0x0F12000A, /* SARR_uNormBrInDoor[0] */
0x0F120019, /* SARR_uNormBrInDoor[1] */
0x0F12007D, /* SARR_uNormBrInDoor[2] */
0x0F1202BC, /* SARR_uNormBrInDoor[3] */
0x0F1207D0, /* SARR_uNormBrInDoor[4] */
/* param_start SARR_uNormBrOutDoor */
0x0F12000A, /* SARR_uNormBrOutDoor[0] */
0x0F120019, /* SARR_uNormBrOutDoor[1] */
0x0F12007D, /* SARR_uNormBrOutDoor[2] */
0x0F1202BC, /* SARR_uNormBrOutDoor[3] */
0x0F1207D0, /* SARR_uNormBrOutDoor[4] */
/* Set AFIT */
/* AFIT Start Address */
0x002A0814,
0x0F12082C, /* TVAR_afit_pBaseVals */
0x0F127000, /* TVAR_afit_pBaseVals */
/* param_start TVAR_afit_pBaseVals */
0x002A082C,
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120030, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F1203ff, /* <API key> */
0x0F120028, /* <API key> */
0x0F1203ff, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120344, /* <API key> */
0x0F12033A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120C0F, /* "<API key>" bin: desparity low */
0x0F120C0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12023F, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F12030A, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12090F, /* "<API key>" */
0x0F120032, /* "<API key>" */
0x0F120A0A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120412, /* "<API key>" */
0x0F12040C, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120805, /* "<API key>" */
0x0F120500, /* "<API key>" */
0x0F121008, /* "<API key>" */
0x0F120164, /* "<API key>" */
0x0F1201AA, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128028, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120032, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120114, /* <API key>*/
0x0F12020A, /* <API key>*/
0x0F1203FF, /* <API key>*/
0x0F1203FF, /* <API key>*/
0x0F120028, /* <API key>*/
0x0F120000, /* <API key>*/
0x0F120014, /* <API key>*/
0x0F120032, /* <API key>*/
0x0F120050, /* <API key>*/
0x0F120032, /* <API key>*/
0x0F120046, /* <API key>*/
0x0F120032, /* <API key>*/
0x0F120106, /* DSMix1_iRGBOffset*/
0x0F12006F, /* DSMix1_iDemClamp*/
0x0F12050F, /* "<API key>" bin: desparity low */
0x0F120A0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12020A, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120305, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12090F, /* "<API key>" */
0x0F120032, /* "<API key>" */
0x0F120A0A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120412, /* "<API key>" */
0x0F12040C, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120805, /* "<API key>" */
0x0F120500, /* "<API key>" */
0x0F121008, /* "<API key>" */
0x0F120164, /* "<API key>" */
0x0F1201A0, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128028, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120015, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120014, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120129, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12100F, /* "<API key>" */
0x0F121032, /* "<API key>" */
0x0F120A0A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120405, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120808, /* "<API key>" */
0x0F120500, /* "<API key>" */
0x0F121008, /* "<API key>" */
0x0F120164, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128028, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120014, /* CONTRAST */
0x0F120002, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122019, /* "<API key>" */
0x0F122032, /* "<API key>" */
0x0F120A0A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120405, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120808, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120014, /* CONTRAST */
0x0F12000A, /* SATURATION */
0x0F120008, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" bin: desparity low */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F121408, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120880, /* "<API key>" */
0x0F120F05, /* "<API key>" */
0x0F120105, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122019, /* "<API key>" */
0x0F122032, /* "<API key>" */
0x0F120A0A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120405, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120808, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12805A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F1200FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120800, /* <API key> */
0x0F120600, /* <API key> */
0x0F120000, /* Denoise1_start_x */
0x0F120000, /* Denoise1_start_y */
0x0F120000, /* "<API key> " */
0x0F120300, /* "Denoise1_iWWSharp <API key> " */
0x0F120002, /* "<API key> " */
0x0F120400, /* "<API key> " */
0x0F120106, /* "<API key> " */
0x0F120005, /* "<API key> " */
0x0F120000, /* "<API key> " */
0x0F120703, /* "<API key>"*/
0x0F120000, /* <API key> */
0x0F12FFD6,
0x0F1253C1,
0x0F12E1FE,
0x0F120001,
/* Update Changed Registers */
0x002A03FC,
0x0F120001, /* <API key> */
0xffff0064, /* ADD 100ms */
0x0028D000,
0x002AB0CC,
0x0F12000B, /* Non contious mode */
/* Wifi VT-Call END of Initial */
};
static const u32 s5k5bafx_preview[] =
{
0xFCFCD000,
0x00287000,
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0096, /* 150ms */
/* MIPI */
0x0028D000,
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_capture[] =
{
0xFCFCD000,
0x00287000,
0x002A0224,
0x0F120000, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A0226,
0x0F120001, /* <API key> */
0x002A01F4,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0096, /* 150ms */
/* MIPI */
0x0028D000,
0x002AB0CC,
0x0F12000B,
};
/* CAMERA_RECORDING WITH 25fps */
static const u32 <API key>[] = {
/* recording 25fps Anti-Flicker 60Hz*/
0xFCFCD000,
/* ARM Go */
0x0028D000,
0x002A1030,
0x0F120000,
0x002A0014,
0x0F120001,
0xffff0064, /* p100 Delay */
/* Trap and Patch 2008-11-18 10:15:41 */
0x00287000,
0x002A1668,
0x0F12B5FE,
0x0F120007,
0x0F12683C,
0x0F12687E,
0x0F121DA5,
0x0F1288A0,
0x0F122800,
0x0F12D00B,
0x0F1288A8,
0x0F122800,
0x0F12D008,
0x0F128820,
0x0F128829,
0x0F124288,
0x0F12D301,
0x0F121A40,
0x0F12E000,
0x0F121A08,
0x0F129001,
0x0F12E001,
0x0F122019,
0x0F129001,
0x0F124916,
0x0F12466B,
0x0F128A48,
0x0F128118,
0x0F128A88,
0x0F128158,
0x0F124814,
0x0F128940,
0x0F120040,
0x0F122103,
0x0F12F000,
0x0F12F826,
0x0F1288A1,
0x0F124288,
0x0F12D908,
0x0F128828,
0x0F128030,
0x0F128868,
0x0F128070,
0x0F1288A8,
0x0F126038,
0x0F12BCFE,
0x0F12BC08,
0x0F124718,
0x0F1288A9,
0x0F124288,
0x0F12D906,
0x0F128820,
0x0F128030,
0x0F128860,
0x0F128070,
0x0F1288A0,
0x0F126038,
0x0F12E7F2,
0x0F129801,
0x0F12A902,
0x0F12F000,
0x0F12F812,
0x0F120033,
0x0F120029,
0x0F129A02,
0x0F120020,
0x0F12F000,
0x0F12F814,
0x0F126038,
0x0F12E7E6,
0x0F121A28,
0x0F127000,
0x0F120D64,
0x0F127000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F126009,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12622F,
0x0F120000,
0x002A2080,
0x0F12B510,
0x0F12F000,
0x0F12F8F4,
0x0F12BC10,
0x0F12BC08,
0x0F124718,
0x0F12B5F0,
0x0F12B08B,
0x0F120006,
0x0F122000,
0x0F129004,
0x0F126835,
0x0F126874,
0x0F1268B0,
0x0F12900A,
0x0F1268F0,
0x0F129009,
0x0F124F7D,
0x0F128979,
0x0F12084A,
0x0F1288A8,
0x0F1288A3,
0x0F124298,
0x0F12D300,
0x0F120018,
0x0F12F000,
0x0F12F907,
0x0F129007,
0x0F120021,
0x0F120028,
0x0F12AA04,
0x0F12F000,
0x0F12F909,
0x0F129006,
0x0F1288A8,
0x0F122800,
0x0F12D102,
0x0F1227FF,
0x0F121C7F,
0x0F12E047,
0x0F1288A0,
0x0F122800,
0x0F12D101,
0x0F122700,
0x0F12E042,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12F000,
0x0F12F8F8,
0x0F129008,
0x0F128ABA,
0x0F129808,
0x0F12466B,
0x0F124342,
0x0F129202,
0x0F128820,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8EA,
0x0F129A02,
0x0F1217D1,
0x0F120E09,
0x0F121889,
0x0F121209,
0x0F124288,
0x0F12DD1F,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8DA,
0x0F129001,
0x0F128828,
0x0F12466B,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12980A,
0x0F129902,
0x0F12F000,
0x0F12F8D0,
0x0F128AB9,
0x0F129A08,
0x0F124351,
0x0F1217CA,
0x0F120E12,
0x0F121851,
0x0F12120A,
0x0F129901,
0x0F12F000,
0x0F12F8B6,
0x0F120407,
0x0F120C3F,
0x0F12E000,
0x0F122700,
0x0F128820,
0x0F12466B,
0x0F12AA05,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12003B,
0x0F12F000,
0x0F12F8BB,
0x0F1288A1,
0x0F1288A8,
0x0F12003A,
0x0F12F000,
0x0F12F8BE,
0x0F120004,
0x0F12A804,
0x0F12C803,
0x0F129A09,
0x0F129B07,
0x0F12F000,
0x0F12F8AF,
0x0F12A806,
0x0F12C805,
0x0F120021,
0x0F12F000,
0x0F12F8B2,
0x0F126030,
0x0F12B00B,
0x0F12BCF0,
0x0F12BC08,
0x0F124718,
0x0F12B5F1,
0x0F129900,
0x0F12680C,
0x0F12493A,
0x0F12694B,
0x0F12698A,
0x0F124694,
0x0F1269CD,
0x0F126A0E,
0x0F124F38,
0x0F1242BC,
0x0F12D800,
0x0F120027,
0x0F124937,
0x0F126B89,
0x0F120409,
0x0F120C09,
0x0F124A35,
0x0F121E92,
0x0F126BD2,
0x0F120412,
0x0F120C12,
0x0F12429F,
0x0F12D801,
0x0F120020,
0x0F12E031,
0x0F12001F,
0x0F12434F,
0x0F120A3F,
0x0F1242A7,
0x0F12D301,
0x0F120018,
0x0F12E02A,
0x0F12002B,
0x0F12434B,
0x0F120A1B,
0x0F1242A3,
0x0F12D303,
0x0F120220,
0x0F12F000,
0x0F12F88C,
0x0F12E021,
0x0F120029,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D301,
0x0F120028,
0x0F12E01A,
0x0F120031,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D304,
0x0F120220,
0x0F120011,
0x0F12F000,
0x0F12F87B,
0x0F12E010,
0x0F12491E,
0x0F128C89,
0x0F12000A,
0x0F124372,
0x0F120A12,
0x0F1242A2,
0x0F12D301,
0x0F120030,
0x0F12E007,
0x0F124662,
0x0F12434A,
0x0F120A12,
0x0F1242A2,
0x0F12D302,
0x0F120220,
0x0F12F000,
0x0F12F869,
0x0F124B16,
0x0F124D18,
0x0F128D99,
0x0F121FCA,
0x0F123AF9,
0x0F12D00A,
0x0F122001,
0x0F120240,
0x0F128468,
0x0F120220,
0x0F12F000,
0x0F12F85D,
0x0F129900,
0x0F126008,
0x0F12BCF8,
0x0F12BC08,
0x0F124718,
0x0F128D19,
0x0F128469,
0x0F129900,
0x0F126008,
0x0F12E7F7,
0x0F12B570,
0x0F122200,
0x0F12490E,
0x0F12480E,
0x0F122401,
0x0F12F000,
0x0F12F852,
0x0F120022,
0x0F12490D,
0x0F12480D,
0x0F122502,
0x0F12F000,
0x0F12F84C,
0x0F12490C,
0x0F12480D,
0x0F12002A,
0x0F12F000,
0x0F12F847,
0x0F12BC70,
0x0F12BC08,
0x0F124718,
0x0F120D64,
0x0F127000,
0x0F120470,
0x0F127000,
0x0F12A120,
0x0F120007,
0x0F120402,
0x0F127000,
0x0F1214A0,
0x0F127000,
0x0F12208D,
0x0F127000,
0x0F12622F,
0x0F120000,
0x0F121669,
0x0F127000,
0x0F126445,
0x0F120000,
0x0F1221AB,
0x0F127000,
0x0F122AA9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125F49,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FC7,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125457,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FA3,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F1251F9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12A007,
0x0F120000,
0x0F126546,
0x0F122062,
0x0F123120,
0x0F123220,
0x0F123130,
0x0F120030,
0x0F12E010,
0x0F120208,
0x0F120058,
0x0F120000,
/* End of Trap and Patch (Last : 70002342h) */
/* Total Size 896 (0x0380) */
0x0028D000,
0x002A1000,
0x0F120001,
0x00287000,
0x002A1662,
0x0F1203B0,
0x0F1203B0,
0x00287000,
0x002A1658,
0x0F129C40,
0x0F120000,
0x0F129C40,
0x0F120000,
0x00287000,
0x002A0ADC,
0x0F120AF0, /* <API key> */
0x002A0AE2,
0x0F12222E, /* <API key> */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
0x002A049A,
0x0F1200FA,
/* Set CIS/APS/Analog */
0x0028D000,
0x002AF106,
0x0F120001,
0x002AF206,
0x0F120001,
0x002AC202,
0x0F120700,
0x002AF260,
0x0F120001,
0x002AF414,
0x0F120030,
0x002AC204,
0x0F120100,
0x002AF402,
0x0F120092,
0x0F12007F,
0x002AF700,
0x0F120040,
0x002AF708,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120001,
0x0F120015,
0x0F120001,
0x0F120040,
0x002AF48A,
0x0F120048,
0x002AF10A,
0x0F12008B,
0x002AF900,
0x0F120067,
0x002AF406,
0x0F120092,
0x0F12007F,
0x0F120003,
0x0F120003,
0x0F120003,
0x002AF442,
0x0F120000,
0x0F120000,
0x002AF448,
0x0F120000,
0x002AF456,
0x0F120001,
0x0F120010,
0x0F120000,
0x002AF41A,
0x0F1200FF,
0x0F120003,
0x002AF420,
0x0F120030,
0x002AF410,
0x0F120001,
0x0F120000,
0x002AF416,
0x0F120001,
0x002AF424,
0x0F120000,
0x002AF422,
0x0F120000,
0x002AF41E,
0x0F120000,
0x002AF428,
0x0F120000,
0x0F120000,
0x0F120000,
0x002AF430,
0x0F120000,
0x0F120000,
0x0F120008,
0x0F120005,
0x0F12000F,
0x0F120001,
0x0F120040,
0x0F120040,
0x0F120010,
0x002AF4D6,
0x0F120090,
0x0F120000,
0x002AF47C,
0x0F12000C,
0x0F120000,
0x002AF49A,
0x0F120008,
0x0F120000,
0x002AF4A2,
0x0F120008,
0x0F120000,
0x002AF4B2,
0x0F120013,
0x0F120000,
0x0F120013,
0x0F120000,
0x002AF4AA,
0x0F12009B,
0x0F1200FB,
0x0F12009B,
0x0F1200FB,
0x002AF474,
0x0F120017,
0x0F12005F,
0x0F120017,
0x0F12008F,
0x002AF48C,
0x0F120017,
0x0F12009B,
0x002AF4C8,
0x0F120163,
0x0F120193,
0x002AF490,
0x0F120191,
0x002AF418,
0x0F120083,
0x002AF454,
0x0F120001,
0x002AF702,
0x0F120081,
0x002AF4D2,
0x0F120000,
/* For ESD Check */
0x00287000,
0x002A0132,
0x0F12AAAA,
/* Set FPN Gain Input */
0x002A1176,
0x0F120020,
0x0F120040,
0x0F120080,
0x0F120100,
0x0F120014,
0x0F12000A,
0x0F120008,
0x0F120004,
/* CFPN Canceller */
0x002A116C,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120002,
0x002A0AE8,
0x0F120000,
/* sensor aig table setting */
0x002A10EE,
0x0F120000,
0x002A10F2,
0x0F120000,
0x002A1152,
0x0F120030,
0x0F120028,
0x0F120030,
0x002A1148,
0x0F1200FB,
0x002A1144,
0x0F1200FB,
0x002A1150,
0x0F1201F4,
0x002A1084,
0x0F120000,
0x0F120000,
/* Set AE Target */
0x002A0F4C,
0x0F12003A, /* TVAR_ae_BrAve */
0x002A0478,
0x0F120114,
0x0F1200EB, /* ae boundary */
/* Set Frame Rate */
0x002A0484,
0x0F12410A, /* uMaxExp1 */
0x0F120000,
0x002A048C,
0x0F128214, /* uMaxExp2 */
0x0F120000,
0x0F12A122, /* uMaxExp3 */
0x0F120000,
0x002A0488,
0x0F12f424, /* uMaxExp4 */
0x0F120000,
0x002A043A,
0x0F1201D0, /* lt_uMaxAnGain0 */
0x0F1201E0, /* lt_uMaxAnGain0_1 */
0x002A0494,
0x0F120300, /* lt_uMaxAnGain1 */
0x0F120650, /* lt_uMaxAnGain2 */
0x0f120100,
0x002A0F52,
0x0F12000F, /* ae_StatMode */
0x002A0E98, /* <API key> */
0x0F1202A8,
0x002A0E9E, /* <API key> */
0x0F120298,
/* 1. Auto Flicker 60Hz Start */
0x002A0B2E,
0x0F120001, /* AFC_Default60Hz Auto Flicker 60Hz start 0: Auto Flicker 50Hz start */
0x002A03F8,
0x0F12005F, /* <API key> default : 007F */
0xffff000a, /* p10 Wait10mSec */
/* Set PLL */
/* External CLOCK (MCLK) */
0x002A01B8,
0x0F125DC0, /* <API key> */
0x0F120000, /* <API key> */
/* Parallel or MIPI Selection */
0x002A01C6,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
/* System Clock 0 (System : 24Mhz, PCLK : 48Mhz) */
0x002A01CC,
0x0F121770, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
/* System Clock 1 (System : 48Mhz, PCLK : 48Mhz) */
0x002A01D2,
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x002A01DE,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0064, /* p100 */
/* Crop */
0x002A01FA,
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set Preview Config */
/* Preview Config 0 (VGA fixed 30fps) */
0x002A0242,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_0TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120001, /* <API key> */
0x0F12018c, /* <API key> */
0x0F12018c, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Preview Config 1 (640x480, Not Fixed 15 ~ 30fps) */
0x002A0268,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_1TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12014D, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set Capture Config */
/* Capture Config 0 (1600x1200 fixed 8fps) */
0x002A0302,
0x0F120000, /* <API key> */
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120005, /* REG_0TC_CCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120002, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Periodic mismatch */
0x002A0780,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A0798,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A07C0,
0x0F120004,
0x0F120004,
0x002A0B94,
0x0F120580,
0x0F120400,
0x0F1205F0,
0x002A04A0,
0x0F128000,
/* Set AE Weights */
0x002A0F5A,
0x0F120000, /* ae_WeightTbl_16_0_ */
0x0F120000, /* ae_WeightTbl_16_1_ */
0x0F120000, /* ae_WeightTbl_16_2_ */
0x0F120000, /* ae_WeightTbl_16_3_ */
0x0F120101, /* ae_WeightTbl_16_4_ */
0x0F120101, /* ae_WeightTbl_16_5_ */
0x0F120101, /* ae_WeightTbl_16_6_ */
0x0F120101, /* ae_WeightTbl_16_7_ */
0x0F120101, /* ae_WeightTbl_16_8_ */
0x0F120302, /* ae_WeightTbl_16_9_ */
0x0F120203, /* ae_WeightTbl_16_10 */
0x0F120101, /* ae_WeightTbl_16_11 */
0x0F120101, /* ae_WeightTbl_16_12 */
0x0F120403, /* ae_WeightTbl_16_13 */
0x0F120304, /* ae_WeightTbl_16_14 */
0x0F120101, /* ae_WeightTbl_16_15 */
0x0F120101, /* ae_WeightTbl_16_16 */
0x0F120403, /* ae_WeightTbl_16_17 */
0x0F120304, /* ae_WeightTbl_16_18 */
0x0F120101, /* ae_WeightTbl_16_19 */
0x0F120101, /* ae_WeightTbl_16_20 */
0x0F120302, /* ae_WeightTbl_16_21 */
0x0F120203, /* ae_WeightTbl_16_22 */
0x0F120101, /* ae_WeightTbl_16_23 */
0x0F120101, /* ae_WeightTbl_16_24 */
0x0F120101, /* ae_WeightTbl_16_25 */
0x0F120101, /* ae_WeightTbl_16_26 */
0x0F120101, /* ae_WeightTbl_16_27 */
0x0F120000, /* ae_WeightTbl_16_28 */
0x0F120000, /* ae_WeightTbl_16_29 */
0x0F120000, /* ae_WeightTbl_16_30 */
0x0F120000, /* ae_WeightTbl_16_31 */
/* Set GAS & CCM White Point */
/* param_start TVAR_ash_AwbAshCord */
0x002A0704,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F1201B0,
0x0F120200,
/* param_start wbt_AwbCcmCord */
0x002A06F2,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F120190,
/* Target Brightness Control */
0x002A103E,
0x0F120000,
0x0F120009,
0x0F120018,
0x0F120032,
0x0F12004A,
0x0F120051,
0x0F120056,
0x0F12010C,
0x0F12010C,
0x0F120109,
0x0F120105,
0x0F120102,
0x0F1200FB,
0x0F1200F8,
/* TVAR_ash_GASAlpha(Indoor) */
0x002A0712,
0x0F120100, /* TVAR_ash_GASAlpha[0] */
0x0F120100, /* TVAR_ash_GASAlpha[1] */
0x0F120100, /* TVAR_ash_GASAlpha[2] */
0x0F120100, /* TVAR_ash_GASAlpha[3] */
0x0F120100, /* TVAR_ash_GASAlpha[4] */
0x0F120100, /* TVAR_ash_GASAlpha[5] */
0x0F120100, /* TVAR_ash_GASAlpha[6] */
0x0F120100, /* TVAR_ash_GASAlpha[7] */
0x0F120100, /* TVAR_ash_GASAlpha[8] */
0x0F120100, /* TVAR_ash_GASAlpha[9] */
0x0F120100, /* TVAR_ash_GASAlpha[10] */
0x0F120100, /* TVAR_ash_GASAlpha[11] */
0x0F120100, /* TVAR_ash_GASAlpha[12] */
0x0F120100, /* TVAR_ash_GASAlpha[13] */
0x0F120100, /* TVAR_ash_GASAlpha[14] */
0x0F120100, /* TVAR_ash_GASAlpha[15] */
0x0F120100, /* TVAR_ash_GASAlpha[16] */
0x0F120100, /* TVAR_ash_GASAlpha[17] */
0x0F120100, /* TVAR_ash_GASAlpha[18] */
0x0F120100, /* TVAR_ash_GASAlpha[19] */
0x0F120100, /* TVAR_ash_GASAlpha[20] */
0x0F120100, /* TVAR_ash_GASAlpha[21] */
0x0F120100, /* TVAR_ash_GASAlpha[22] */
0x0F120100, /* TVAR_ash_GASAlpha[23] */
0x0F120100, /* TVAR_ash_GASAlpha[24] */
0x0F120100, /* TVAR_ash_GASAlpha[25] */
0x0F120100, /* TVAR_ash_GASAlpha[26] */
0x0F120100, /* TVAR_ash_GASAlpha[27] */
/* TVAR_ash_GASAlpha(Outdoor) */
0x0F120108, /* 100 <API key>*/
0x0F120100, /* <API key>*/
0x0F120100, /* <API key>*/
0x0F120100, /* <API key>*/
/* GAS LUT Start Address */
0x002A0754,
0x0F122388,
0x0F127000,
/* param_start TVAR_ash_pGAS */
0x002A2388,
0x0F120160, /* TVAR_ash_pGAS[0] */
0x0F120134, /* TVAR_ash_pGAS[1] */
0x0F1200FF, /* TVAR_ash_pGAS[2] */
0x0F1200D1, /* TVAR_ash_pGAS[3] */
0x0F1200B1, /* TVAR_ash_pGAS[4] */
0x0F12009D, /* TVAR_ash_pGAS[5] */
0x0F120096, /* TVAR_ash_pGAS[6] */
0x0F12009E, /* TVAR_ash_pGAS[7] */
0x0F1200B3, /* TVAR_ash_pGAS[8] */
0x0F1200D3, /* TVAR_ash_pGAS[9] */
0x0F1200FF, /* TVAR_ash_pGAS[10] */
0x0F120131, /* TVAR_ash_pGAS[11] */
0x0F120159, /* TVAR_ash_pGAS[12] */
0x0F12013C, /* TVAR_ash_pGAS[13] */
0x0F120107, /* TVAR_ash_pGAS[14] */
0x0F1200CD, /* TVAR_ash_pGAS[15] */
0x0F1200A1, /* TVAR_ash_pGAS[16] */
0x0F120080, /* TVAR_ash_pGAS[17] */
0x0F12006B, /* TVAR_ash_pGAS[18] */
0x0F120064, /* TVAR_ash_pGAS[19] */
0x0F12006C, /* TVAR_ash_pGAS[20] */
0x0F120080, /* TVAR_ash_pGAS[21] */
0x0F1200A1, /* TVAR_ash_pGAS[22] */
0x0F1200CD, /* TVAR_ash_pGAS[23] */
0x0F120106, /* TVAR_ash_pGAS[24] */
0x0F120139, /* TVAR_ash_pGAS[25] */
0x0F120116, /* TVAR_ash_pGAS[26] */
0x0F1200DC, /* TVAR_ash_pGAS[27] */
0x0F1200A2, /* TVAR_ash_pGAS[28] */
0x0F120073, /* TVAR_ash_pGAS[29] */
0x0F120051, /* TVAR_ash_pGAS[30] */
0x0F12003B, /* TVAR_ash_pGAS[31] */
0x0F120033, /* TVAR_ash_pGAS[32] */
0x0F12003B, /* TVAR_ash_pGAS[33] */
0x0F120050, /* TVAR_ash_pGAS[34] */
0x0F120073, /* TVAR_ash_pGAS[35] */
0x0F1200A2, /* TVAR_ash_pGAS[36] */
0x0F1200DD, /* TVAR_ash_pGAS[37] */
0x0F120115, /* TVAR_ash_pGAS[38] */
0x0F1200FA, /* TVAR_ash_pGAS[39] */
0x0F1200BF, /* TVAR_ash_pGAS[40] */
0x0F120085, /* TVAR_ash_pGAS[41] */
0x0F120055, /* TVAR_ash_pGAS[42] */
0x0F120031, /* TVAR_ash_pGAS[43] */
0x0F12001B, /* TVAR_ash_pGAS[44] */
0x0F120014, /* TVAR_ash_pGAS[45] */
0x0F12001A, /* TVAR_ash_pGAS[46] */
0x0F120031, /* TVAR_ash_pGAS[47] */
0x0F120055, /* TVAR_ash_pGAS[48] */
0x0F120085, /* TVAR_ash_pGAS[49] */
0x0F1200C0, /* TVAR_ash_pGAS[50] */
0x0F1200FB, /* TVAR_ash_pGAS[51] */
0x0F1200EA, /* TVAR_ash_pGAS[52] */
0x0F1200AF, /* TVAR_ash_pGAS[53] */
0x0F120074, /* TVAR_ash_pGAS[54] */
0x0F120045, /* TVAR_ash_pGAS[55] */
0x0F120020, /* TVAR_ash_pGAS[56] */
0x0F12000B, /* TVAR_ash_pGAS[57] */
0x0F120003, /* TVAR_ash_pGAS[58] */
0x0F12000A, /* TVAR_ash_pGAS[59] */
0x0F120020, /* TVAR_ash_pGAS[60] */
0x0F120046, /* TVAR_ash_pGAS[61] */
0x0F120076, /* TVAR_ash_pGAS[62] */
0x0F1200B1, /* TVAR_ash_pGAS[63] */
0x0F1200ED, /* TVAR_ash_pGAS[64] */
0x0F1200E6, /* TVAR_ash_pGAS[65] */
0x0F1200AA, /* TVAR_ash_pGAS[66] */
0x0F120071, /* TVAR_ash_pGAS[67] */
0x0F120041, /* TVAR_ash_pGAS[68] */
0x0F12001D, /* TVAR_ash_pGAS[69] */
0x0F120008, /* TVAR_ash_pGAS[70] */
0x0F120000, /* TVAR_ash_pGAS[71] */
0x0F120007, /* TVAR_ash_pGAS[72] */
0x0F12001E, /* TVAR_ash_pGAS[73] */
0x0F120044, /* TVAR_ash_pGAS[74] */
0x0F120074, /* TVAR_ash_pGAS[75] */
0x0F1200B0, /* TVAR_ash_pGAS[76] */
0x0F1200EC, /* TVAR_ash_pGAS[77] */
0x0F1200EF, /* TVAR_ash_pGAS[78] */
0x0F1200B3, /* TVAR_ash_pGAS[79] */
0x0F12007A, /* TVAR_ash_pGAS[80] */
0x0F12004A, /* TVAR_ash_pGAS[81] */
0x0F120026, /* TVAR_ash_pGAS[82] */
0x0F120011, /* TVAR_ash_pGAS[83] */
0x0F12000A, /* TVAR_ash_pGAS[84] */
0x0F120011, /* TVAR_ash_pGAS[85] */
0x0F120029, /* TVAR_ash_pGAS[86] */
0x0F12004F, /* TVAR_ash_pGAS[87] */
0x0F120080, /* TVAR_ash_pGAS[88] */
0x0F1200BC, /* TVAR_ash_pGAS[89] */
0x0F1200F8, /* TVAR_ash_pGAS[90] */
0x0F120105, /* TVAR_ash_pGAS[91] */
0x0F1200C9, /* TVAR_ash_pGAS[92] */
0x0F12008F, /* TVAR_ash_pGAS[93] */
0x0F120060, /* TVAR_ash_pGAS[94] */
0x0F12003C, /* TVAR_ash_pGAS[95] */
0x0F120026, /* TVAR_ash_pGAS[96] */
0x0F12001F, /* TVAR_ash_pGAS[97] */
0x0F120028, /* TVAR_ash_pGAS[98] */
0x0F120040, /* TVAR_ash_pGAS[99] */
0x0F120066, /* TVAR_ash_pGAS[100] */
0x0F120097, /* TVAR_ash_pGAS[101] */
0x0F1200D4, /* TVAR_ash_pGAS[102] */
0x0F120110, /* TVAR_ash_pGAS[103] */
0x0F120124, /* TVAR_ash_pGAS[104] */
0x0F1200EB, /* TVAR_ash_pGAS[105] */
0x0F1200B1, /* TVAR_ash_pGAS[106] */
0x0F120082, /* TVAR_ash_pGAS[107] */
0x0F12005F, /* TVAR_ash_pGAS[108] */
0x0F12004A, /* TVAR_ash_pGAS[109] */
0x0F120043, /* TVAR_ash_pGAS[110] */
0x0F12004C, /* TVAR_ash_pGAS[111] */
0x0F120064, /* TVAR_ash_pGAS[112] */
0x0F120089, /* TVAR_ash_pGAS[113] */
0x0F1200BA, /* TVAR_ash_pGAS[114] */
0x0F1200F8, /* TVAR_ash_pGAS[115] */
0x0F12012F, /* TVAR_ash_pGAS[116] */
0x0F120147, /* TVAR_ash_pGAS[117] */
0x0F120116, /* TVAR_ash_pGAS[118] */
0x0F1200DE, /* TVAR_ash_pGAS[119] */
0x0F1200AF, /* TVAR_ash_pGAS[120] */
0x0F12008E, /* TVAR_ash_pGAS[121] */
0x0F12007A, /* TVAR_ash_pGAS[122] */
0x0F120072, /* TVAR_ash_pGAS[123] */
0x0F12007A, /* TVAR_ash_pGAS[124] */
0x0F120091, /* TVAR_ash_pGAS[125] */
0x0F1200B6, /* TVAR_ash_pGAS[126] */
0x0F1200E8, /* TVAR_ash_pGAS[127] */
0x0F120121, /* TVAR_ash_pGAS[128] */
0x0F120150, /* TVAR_ash_pGAS[129] */
0x0F120170, /* TVAR_ash_pGAS[130] */
0x0F12013F, /* TVAR_ash_pGAS[131] */
0x0F120110, /* TVAR_ash_pGAS[132] */
0x0F1200E2, /* TVAR_ash_pGAS[133] */
0x0F1200C0, /* TVAR_ash_pGAS[134] */
0x0F1200AB, /* TVAR_ash_pGAS[135] */
0x0F1200A4, /* TVAR_ash_pGAS[136] */
0x0F1200AC, /* TVAR_ash_pGAS[137] */
0x0F1200C3, /* TVAR_ash_pGAS[138] */
0x0F1200E6, /* TVAR_ash_pGAS[139] */
0x0F120117, /* TVAR_ash_pGAS[140] */
0x0F120145, /* TVAR_ash_pGAS[141] */
0x0F120172, /* TVAR_ash_pGAS[142] */
0x0F120127, /* TVAR_ash_pGAS[143] */
0x0F120100, /* TVAR_ash_pGAS[144] */
0x0F1200CF, /* TVAR_ash_pGAS[145] */
0x0F1200A7, /* TVAR_ash_pGAS[146] */
0x0F12008D, /* TVAR_ash_pGAS[147] */
0x0F12007D, /* TVAR_ash_pGAS[148] */
0x0F120077, /* TVAR_ash_pGAS[149] */
0x0F12007A, /* TVAR_ash_pGAS[150] */
0x0F120087, /* TVAR_ash_pGAS[151] */
0x0F12009E, /* TVAR_ash_pGAS[152] */
0x0F1200C0, /* TVAR_ash_pGAS[153] */
0x0F1200EC, /* TVAR_ash_pGAS[154] */
0x0F12010F, /* TVAR_ash_pGAS[155] */
0x0F120108, /* TVAR_ash_pGAS[156] */
0x0F1200D8, /* TVAR_ash_pGAS[157] */
0x0F1200A5, /* TVAR_ash_pGAS[158] */
0x0F120080, /* TVAR_ash_pGAS[159] */
0x0F120066, /* TVAR_ash_pGAS[160] */
0x0F120056, /* TVAR_ash_pGAS[161] */
0x0F12004F, /* TVAR_ash_pGAS[162] */
0x0F120053, /* TVAR_ash_pGAS[163] */
0x0F120061, /* TVAR_ash_pGAS[164] */
0x0F120077, /* TVAR_ash_pGAS[165] */
0x0F120098, /* TVAR_ash_pGAS[166] */
0x0F1200C6, /* TVAR_ash_pGAS[167] */
0x0F1200F3, /* TVAR_ash_pGAS[168] */
0x0F1200E7, /* TVAR_ash_pGAS[169] */
0x0F1200B4, /* TVAR_ash_pGAS[170] */
0x0F120081, /* TVAR_ash_pGAS[171] */
0x0F12005C, /* TVAR_ash_pGAS[172] */
0x0F120041, /* TVAR_ash_pGAS[173] */
0x0F120030, /* TVAR_ash_pGAS[174] */
0x0F120029, /* TVAR_ash_pGAS[175] */
0x0F12002E, /* TVAR_ash_pGAS[176] */
0x0F12003D, /* TVAR_ash_pGAS[177] */
0x0F120055, /* TVAR_ash_pGAS[178] */
0x0F120076, /* TVAR_ash_pGAS[179] */
0x0F1200A5, /* TVAR_ash_pGAS[180] */
0x0F1200D4, /* TVAR_ash_pGAS[181] */
0x0F1200CF, /* TVAR_ash_pGAS[182] */
0x0F12009B, /* TVAR_ash_pGAS[183] */
0x0F12006A, /* TVAR_ash_pGAS[184] */
0x0F120043, /* TVAR_ash_pGAS[185] */
0x0F120027, /* TVAR_ash_pGAS[186] */
0x0F120016, /* TVAR_ash_pGAS[187] */
0x0F12000F, /* TVAR_ash_pGAS[188] */
0x0F120015, /* TVAR_ash_pGAS[189] */
0x0F120025, /* TVAR_ash_pGAS[190] */
0x0F12003E, /* TVAR_ash_pGAS[191] */
0x0F120061, /* TVAR_ash_pGAS[192] */
0x0F12008E, /* TVAR_ash_pGAS[193] */
0x0F1200BF, /* TVAR_ash_pGAS[194] */
0x0F1200C2, /* TVAR_ash_pGAS[195] */
0x0F12008E, /* TVAR_ash_pGAS[196] */
0x0F12005D, /* TVAR_ash_pGAS[197] */
0x0F120037, /* TVAR_ash_pGAS[198] */
0x0F12001A, /* TVAR_ash_pGAS[199] */
0x0F120009, /* TVAR_ash_pGAS[200] */
0x0F120002, /* TVAR_ash_pGAS[201] */
0x0F120007, /* TVAR_ash_pGAS[202] */
0x0F120018, /* TVAR_ash_pGAS[203] */
0x0F120033, /* TVAR_ash_pGAS[204] */
0x0F120057, /* TVAR_ash_pGAS[205] */
0x0F120083, /* TVAR_ash_pGAS[206] */
0x0F1200B3, /* TVAR_ash_pGAS[207] */
0x0F1200BE, /* TVAR_ash_pGAS[208] */
0x0F12008A, /* TVAR_ash_pGAS[209] */
0x0F12005A, /* TVAR_ash_pGAS[210] */
0x0F120034, /* TVAR_ash_pGAS[211] */
0x0F120017, /* TVAR_ash_pGAS[212] */
0x0F120006, /* TVAR_ash_pGAS[213] */
0x0F120000, /* TVAR_ash_pGAS[214] */
0x0F120006, /* TVAR_ash_pGAS[215] */
0x0F120017, /* TVAR_ash_pGAS[216] */
0x0F120033, /* TVAR_ash_pGAS[217] */
0x0F120057, /* TVAR_ash_pGAS[218] */
0x0F120083, /* TVAR_ash_pGAS[219] */
0x0F1200B3, /* TVAR_ash_pGAS[220] */
0x0F1200C5, /* TVAR_ash_pGAS[221] */
0x0F120091, /* TVAR_ash_pGAS[222] */
0x0F120061, /* TVAR_ash_pGAS[223] */
0x0F12003B, /* TVAR_ash_pGAS[224] */
0x0F120020, /* TVAR_ash_pGAS[225] */
0x0F12000F, /* TVAR_ash_pGAS[226] */
0x0F120009, /* TVAR_ash_pGAS[227] */
0x0F120010, /* TVAR_ash_pGAS[228] */
0x0F120021, /* TVAR_ash_pGAS[229] */
0x0F12003D, /* TVAR_ash_pGAS[230] */
0x0F120060, /* TVAR_ash_pGAS[231] */
0x0F12008D, /* TVAR_ash_pGAS[232] */
0x0F1200BE, /* TVAR_ash_pGAS[233] */
0x0F1200D7, /* TVAR_ash_pGAS[234] */
0x0F1200A2, /* TVAR_ash_pGAS[235] */
0x0F120072, /* TVAR_ash_pGAS[236] */
0x0F12004D, /* TVAR_ash_pGAS[237] */
0x0F120032, /* TVAR_ash_pGAS[238] */
0x0F120022, /* TVAR_ash_pGAS[239] */
0x0F12001D, /* TVAR_ash_pGAS[240] */
0x0F120024, /* TVAR_ash_pGAS[241] */
0x0F120035, /* TVAR_ash_pGAS[242] */
0x0F120050, /* TVAR_ash_pGAS[243] */
0x0F120073, /* TVAR_ash_pGAS[244] */
0x0F1200A0, /* TVAR_ash_pGAS[245] */
0x0F1200D2, /* TVAR_ash_pGAS[246] */
0x0F1200F0, /* TVAR_ash_pGAS[247] */
0x0F1200BE, /* TVAR_ash_pGAS[248] */
0x0F12008C, /* TVAR_ash_pGAS[249] */
0x0F120068, /* TVAR_ash_pGAS[250] */
0x0F12004F, /* TVAR_ash_pGAS[251] */
0x0F120040, /* TVAR_ash_pGAS[252] */
0x0F12003B, /* TVAR_ash_pGAS[253] */
0x0F120041, /* TVAR_ash_pGAS[254] */
0x0F120052, /* TVAR_ash_pGAS[255] */
0x0F12006C, /* TVAR_ash_pGAS[256] */
0x0F12008E, /* TVAR_ash_pGAS[257] */
0x0F1200BE, /* TVAR_ash_pGAS[258] */
0x0F1200ED, /* TVAR_ash_pGAS[259] */
0x0F12010C, /* TVAR_ash_pGAS[260] */
0x0F1200E1, /* TVAR_ash_pGAS[261] */
0x0F1200AF, /* TVAR_ash_pGAS[262] */
0x0F12008A, /* TVAR_ash_pGAS[263] */
0x0F120072, /* TVAR_ash_pGAS[264] */
0x0F120064, /* TVAR_ash_pGAS[265] */
0x0F12005F, /* TVAR_ash_pGAS[266] */
0x0F120065, /* TVAR_ash_pGAS[267] */
0x0F120074, /* TVAR_ash_pGAS[268] */
0x0F12008D, /* TVAR_ash_pGAS[269] */
0x0F1200B2, /* TVAR_ash_pGAS[270] */
0x0F1200E0, /* TVAR_ash_pGAS[271] */
0x0F12010A, /* TVAR_ash_pGAS[272] */
0x0F12012F, /* TVAR_ash_pGAS[273] */
0x0F120104, /* TVAR_ash_pGAS[274] */
0x0F1200D9, /* TVAR_ash_pGAS[275] */
0x0F1200B3, /* TVAR_ash_pGAS[276] */
0x0F120099, /* TVAR_ash_pGAS[277] */
0x0F12008B, /* TVAR_ash_pGAS[278] */
0x0F120086, /* TVAR_ash_pGAS[279] */
0x0F12008B, /* TVAR_ash_pGAS[280] */
0x0F12009B, /* TVAR_ash_pGAS[281] */
0x0F1200B5, /* TVAR_ash_pGAS[282] */
0x0F1200DA, /* TVAR_ash_pGAS[283] */
0x0F120101, /* TVAR_ash_pGAS[284] */
0x0F120128, /* TVAR_ash_pGAS[285] */
0x0F12012F, /* TVAR_ash_pGAS[286] */
0x0F120106, /* TVAR_ash_pGAS[287] */
0x0F1200D4, /* TVAR_ash_pGAS[288] */
0x0F1200AA, /* TVAR_ash_pGAS[289] */
0x0F12008E, /* TVAR_ash_pGAS[290] */
0x0F12007D, /* TVAR_ash_pGAS[291] */
0x0F120079, /* TVAR_ash_pGAS[292] */
0x0F120080, /* TVAR_ash_pGAS[293] */
0x0F120093, /* TVAR_ash_pGAS[294] */
0x0F1200B1, /* TVAR_ash_pGAS[295] */
0x0F1200DC, /* TVAR_ash_pGAS[296] */
0x0F12010C, /* TVAR_ash_pGAS[297] */
0x0F120130, /* TVAR_ash_pGAS[298] */
0x0F120112, /* TVAR_ash_pGAS[299] */
0x0F1200E0, /* TVAR_ash_pGAS[300] */
0x0F1200AB, /* TVAR_ash_pGAS[301] */
0x0F120083, /* TVAR_ash_pGAS[302] */
0x0F120067, /* TVAR_ash_pGAS[303] */
0x0F120057, /* TVAR_ash_pGAS[304] */
0x0F120051, /* TVAR_ash_pGAS[305] */
0x0F120059, /* TVAR_ash_pGAS[306] */
0x0F12006B, /* TVAR_ash_pGAS[307] */
0x0F120089, /* TVAR_ash_pGAS[308] */
0x0F1200B2, /* TVAR_ash_pGAS[309] */
0x0F1200E5, /* TVAR_ash_pGAS[310] */
0x0F120114, /* TVAR_ash_pGAS[311] */
0x0F1200F2, /* TVAR_ash_pGAS[312] */
0x0F1200BD, /* TVAR_ash_pGAS[313] */
0x0F120088, /* TVAR_ash_pGAS[314] */
0x0F120061, /* TVAR_ash_pGAS[315] */
0x0F120044, /* TVAR_ash_pGAS[316] */
0x0F120031, /* TVAR_ash_pGAS[317] */
0x0F12002C, /* TVAR_ash_pGAS[318] */
0x0F120033, /* TVAR_ash_pGAS[319] */
0x0F120047, /* TVAR_ash_pGAS[320] */
0x0F120065, /* TVAR_ash_pGAS[321] */
0x0F12008C, /* TVAR_ash_pGAS[322] */
0x0F1200C0, /* TVAR_ash_pGAS[323] */
0x0F1200F3, /* TVAR_ash_pGAS[324] */
0x0F1200DB, /* TVAR_ash_pGAS[325] */
0x0F1200A5, /* TVAR_ash_pGAS[326] */
0x0F120071, /* TVAR_ash_pGAS[327] */
0x0F120049, /* TVAR_ash_pGAS[328] */
0x0F12002A, /* TVAR_ash_pGAS[329] */
0x0F120018, /* TVAR_ash_pGAS[330] */
0x0F120011, /* TVAR_ash_pGAS[331] */
0x0F120018, /* TVAR_ash_pGAS[332] */
0x0F12002C, /* TVAR_ash_pGAS[333] */
0x0F12004B, /* TVAR_ash_pGAS[334] */
0x0F120072, /* TVAR_ash_pGAS[335] */
0x0F1200A3, /* TVAR_ash_pGAS[336] */
0x0F1200D7, /* TVAR_ash_pGAS[337] */
0x0F1200CD, /* TVAR_ash_pGAS[338] */
0x0F120097, /* TVAR_ash_pGAS[339] */
0x0F120065, /* TVAR_ash_pGAS[340] */
0x0F12003C, /* TVAR_ash_pGAS[341] */
0x0F12001D, /* TVAR_ash_pGAS[342] */
0x0F12000A, /* TVAR_ash_pGAS[343] */
0x0F120003, /* TVAR_ash_pGAS[344] */
0x0F120009, /* TVAR_ash_pGAS[345] */
0x0F12001D, /* TVAR_ash_pGAS[346] */
0x0F12003B, /* TVAR_ash_pGAS[347] */
0x0F120063, /* TVAR_ash_pGAS[348] */
0x0F120092, /* TVAR_ash_pGAS[349] */
0x0F1200C4, /* TVAR_ash_pGAS[350] */
0x0F1200CA, /* TVAR_ash_pGAS[351] */
0x0F120094, /* TVAR_ash_pGAS[352] */
0x0F120062, /* TVAR_ash_pGAS[353] */
0x0F12003A, /* TVAR_ash_pGAS[354] */
0x0F12001A, /* TVAR_ash_pGAS[355] */
0x0F120007, /* TVAR_ash_pGAS[356] */
0x0F120000, /* TVAR_ash_pGAS[357] */
0x0F120006, /* TVAR_ash_pGAS[358] */
0x0F120018, /* TVAR_ash_pGAS[359] */
0x0F120036, /* TVAR_ash_pGAS[360] */
0x0F12005C, /* TVAR_ash_pGAS[361] */
0x0F12008A, /* TVAR_ash_pGAS[362] */
0x0F1200BC, /* TVAR_ash_pGAS[363] */
0x0F1200D1, /* TVAR_ash_pGAS[364] */
0x0F12009B, /* TVAR_ash_pGAS[365] */
0x0F120069, /* TVAR_ash_pGAS[366] */
0x0F120042, /* TVAR_ash_pGAS[367] */
0x0F120022, /* TVAR_ash_pGAS[368] */
0x0F12000F, /* TVAR_ash_pGAS[369] */
0x0F120008, /* TVAR_ash_pGAS[370] */
0x0F12000D, /* TVAR_ash_pGAS[371] */
0x0F12001F, /* TVAR_ash_pGAS[372] */
0x0F12003B, /* TVAR_ash_pGAS[373] */
0x0F120060, /* TVAR_ash_pGAS[374] */
0x0F12008D, /* TVAR_ash_pGAS[375] */
0x0F1200BF, /* TVAR_ash_pGAS[376] */
0x0F1200E3, /* TVAR_ash_pGAS[377] */
0x0F1200AC, /* TVAR_ash_pGAS[378] */
0x0F12007A, /* TVAR_ash_pGAS[379] */
0x0F120053, /* TVAR_ash_pGAS[380] */
0x0F120035, /* TVAR_ash_pGAS[381] */
0x0F120022, /* TVAR_ash_pGAS[382] */
0x0F12001B, /* TVAR_ash_pGAS[383] */
0x0F12001F, /* TVAR_ash_pGAS[384] */
0x0F120030, /* TVAR_ash_pGAS[385] */
0x0F12004B, /* TVAR_ash_pGAS[386] */
0x0F12006D, /* TVAR_ash_pGAS[387] */
0x0F12009C, /* TVAR_ash_pGAS[388] */
0x0F1200CE, /* TVAR_ash_pGAS[389] */
0x0F1200FE, /* TVAR_ash_pGAS[390] */
0x0F1200C9, /* TVAR_ash_pGAS[391] */
0x0F120095, /* TVAR_ash_pGAS[392] */
0x0F12006F, /* TVAR_ash_pGAS[393] */
0x0F120052, /* TVAR_ash_pGAS[394] */
0x0F120040, /* TVAR_ash_pGAS[395] */
0x0F120039, /* TVAR_ash_pGAS[396] */
0x0F12003D, /* TVAR_ash_pGAS[397] */
0x0F12004B, /* TVAR_ash_pGAS[398] */
0x0F120063, /* TVAR_ash_pGAS[399] */
0x0F120086, /* TVAR_ash_pGAS[400] */
0x0F1200B5, /* TVAR_ash_pGAS[401] */
0x0F1200E6, /* TVAR_ash_pGAS[402] */
0x0F12011B, /* TVAR_ash_pGAS[403] */
0x0F1200ED, /* TVAR_ash_pGAS[404] */
0x0F1200BA, /* TVAR_ash_pGAS[405] */
0x0F120092, /* TVAR_ash_pGAS[406] */
0x0F120076, /* TVAR_ash_pGAS[407] */
0x0F120065, /* TVAR_ash_pGAS[408] */
0x0F12005D, /* TVAR_ash_pGAS[409] */
0x0F120060, /* TVAR_ash_pGAS[410] */
0x0F12006D, /* TVAR_ash_pGAS[411] */
0x0F120084, /* TVAR_ash_pGAS[412] */
0x0F1200A8, /* TVAR_ash_pGAS[413] */
0x0F1200D6, /* TVAR_ash_pGAS[414] */
0x0F120101, /* TVAR_ash_pGAS[415] */
0x0F120140, /* TVAR_ash_pGAS[416] */
0x0F120112, /* TVAR_ash_pGAS[417] */
0x0F1200E5, /* TVAR_ash_pGAS[418] */
0x0F1200BD, /* TVAR_ash_pGAS[419] */
0x0F12009E, /* TVAR_ash_pGAS[420] */
0x0F12008C, /* TVAR_ash_pGAS[421] */
0x0F120085, /* TVAR_ash_pGAS[422] */
0x0F120087, /* TVAR_ash_pGAS[423] */
0x0F120094, /* TVAR_ash_pGAS[424] */
0x0F1200AC, /* TVAR_ash_pGAS[425] */
0x0F1200D0, /* TVAR_ash_pGAS[426] */
0x0F1200F8, /* TVAR_ash_pGAS[427] */
0x0F120123, /* TVAR_ash_pGAS[428] */
0x0F1200F2, /* TVAR_ash_pGAS[429] */
0x0F1200D1, /* TVAR_ash_pGAS[430] */
0x0F1200A7, /* TVAR_ash_pGAS[431] */
0x0F120087, /* TVAR_ash_pGAS[432] */
0x0F120073, /* TVAR_ash_pGAS[433] */
0x0F120067, /* TVAR_ash_pGAS[434] */
0x0F120064, /* TVAR_ash_pGAS[435] */
0x0F12006B, /* TVAR_ash_pGAS[436] */
0x0F12007C, /* TVAR_ash_pGAS[437] */
0x0F120094, /* TVAR_ash_pGAS[438] */
0x0F1200B7, /* TVAR_ash_pGAS[439] */
0x0F1200E1, /* TVAR_ash_pGAS[440] */
0x0F1200FF, /* TVAR_ash_pGAS[441] */
0x0F1200D6, /* TVAR_ash_pGAS[442] */
0x0F1200AE, /* TVAR_ash_pGAS[443] */
0x0F120085, /* TVAR_ash_pGAS[444] */
0x0F120068, /* TVAR_ash_pGAS[445] */
0x0F120054, /* TVAR_ash_pGAS[446] */
0x0F120048, /* TVAR_ash_pGAS[447] */
0x0F120045, /* TVAR_ash_pGAS[448] */
0x0F12004B, /* TVAR_ash_pGAS[449] */
0x0F12005B, /* TVAR_ash_pGAS[450] */
0x0F120073, /* TVAR_ash_pGAS[451] */
0x0F120093, /* TVAR_ash_pGAS[452] */
0x0F1200BF, /* TVAR_ash_pGAS[453] */
0x0F1200E9, /* TVAR_ash_pGAS[454] */
0x0F1200B8, /* TVAR_ash_pGAS[455] */
0x0F12008E, /* TVAR_ash_pGAS[456] */
0x0F120066, /* TVAR_ash_pGAS[457] */
0x0F120049, /* TVAR_ash_pGAS[458] */
0x0F120035, /* TVAR_ash_pGAS[459] */
0x0F120028, /* TVAR_ash_pGAS[460] */
0x0F120025, /* TVAR_ash_pGAS[461] */
0x0F12002B, /* TVAR_ash_pGAS[462] */
0x0F12003B, /* TVAR_ash_pGAS[463] */
0x0F120053, /* TVAR_ash_pGAS[464] */
0x0F120072, /* TVAR_ash_pGAS[465] */
0x0F12009D, /* TVAR_ash_pGAS[466] */
0x0F1200C8, /* TVAR_ash_pGAS[467] */
0x0F1200A2, /* TVAR_ash_pGAS[468] */
0x0F120078, /* TVAR_ash_pGAS[469] */
0x0F120051, /* TVAR_ash_pGAS[470] */
0x0F120034, /* TVAR_ash_pGAS[471] */
0x0F12001F, /* TVAR_ash_pGAS[472] */
0x0F120012, /* TVAR_ash_pGAS[473] */
0x0F12000E, /* TVAR_ash_pGAS[474] */
0x0F120014, /* TVAR_ash_pGAS[475] */
0x0F120024, /* TVAR_ash_pGAS[476] */
0x0F12003B, /* TVAR_ash_pGAS[477] */
0x0F12005B, /* TVAR_ash_pGAS[478] */
0x0F120083, /* TVAR_ash_pGAS[479] */
0x0F1200AD, /* TVAR_ash_pGAS[480] */
0x0F120095, /* TVAR_ash_pGAS[481] */
0x0F12006C, /* TVAR_ash_pGAS[482] */
0x0F120046, /* TVAR_ash_pGAS[483] */
0x0F12002A, /* TVAR_ash_pGAS[484] */
0x0F120014, /* TVAR_ash_pGAS[485] */
0x0F120007, /* TVAR_ash_pGAS[486] */
0x0F120002, /* TVAR_ash_pGAS[487] */
0x0F120008, /* TVAR_ash_pGAS[488] */
0x0F120016, /* TVAR_ash_pGAS[489] */
0x0F12002D, /* TVAR_ash_pGAS[490] */
0x0F12004C, /* TVAR_ash_pGAS[491] */
0x0F120072, /* TVAR_ash_pGAS[492] */
0x0F12009B, /* TVAR_ash_pGAS[493] */
0x0F120093, /* TVAR_ash_pGAS[494] */
0x0F12006A, /* TVAR_ash_pGAS[495] */
0x0F120045, /* TVAR_ash_pGAS[496] */
0x0F120028, /* TVAR_ash_pGAS[497] */
0x0F120013, /* TVAR_ash_pGAS[498] */
0x0F120005, /* TVAR_ash_pGAS[499] */
0x0F120000, /* TVAR_ash_pGAS[500] */
0x0F120004, /* TVAR_ash_pGAS[501] */
0x0F120012, /* TVAR_ash_pGAS[502] */
0x0F120028, /* TVAR_ash_pGAS[503] */
0x0F120045, /* TVAR_ash_pGAS[504] */
0x0F12006A, /* TVAR_ash_pGAS[505] */
0x0F120093, /* TVAR_ash_pGAS[506] */
0x0F12009B, /* TVAR_ash_pGAS[507] */
0x0F120071, /* TVAR_ash_pGAS[508] */
0x0F12004C, /* TVAR_ash_pGAS[509] */
0x0F120030, /* TVAR_ash_pGAS[510] */
0x0F12001A, /* TVAR_ash_pGAS[511] */
0x0F12000C, /* TVAR_ash_pGAS[512] */
0x0F120007, /* TVAR_ash_pGAS[513] */
0x0F12000B, /* TVAR_ash_pGAS[514] */
0x0F120018, /* TVAR_ash_pGAS[515] */
0x0F12002C, /* TVAR_ash_pGAS[516] */
0x0F120048, /* TVAR_ash_pGAS[517] */
0x0F12006D, /* TVAR_ash_pGAS[518] */
0x0F120097, /* TVAR_ash_pGAS[519] */
0x0F1200AE, /* TVAR_ash_pGAS[520] */
0x0F120083, /* TVAR_ash_pGAS[521] */
0x0F12005C, /* TVAR_ash_pGAS[522] */
0x0F120040, /* TVAR_ash_pGAS[523] */
0x0F12002B, /* TVAR_ash_pGAS[524] */
0x0F12001E, /* TVAR_ash_pGAS[525] */
0x0F120018, /* TVAR_ash_pGAS[526] */
0x0F12001C, /* TVAR_ash_pGAS[527] */
0x0F120027, /* TVAR_ash_pGAS[528] */
0x0F12003A, /* TVAR_ash_pGAS[529] */
0x0F120055, /* TVAR_ash_pGAS[530] */
0x0F12007B, /* TVAR_ash_pGAS[531] */
0x0F1200A6, /* TVAR_ash_pGAS[532] */
0x0F1200CA, /* TVAR_ash_pGAS[533] */
0x0F12009E, /* TVAR_ash_pGAS[534] */
0x0F120076, /* TVAR_ash_pGAS[535] */
0x0F120059, /* TVAR_ash_pGAS[536] */
0x0F120046, /* TVAR_ash_pGAS[537] */
0x0F120039, /* TVAR_ash_pGAS[538] */
0x0F120033, /* TVAR_ash_pGAS[539] */
0x0F120036, /* TVAR_ash_pGAS[540] */
0x0F120040, /* TVAR_ash_pGAS[541] */
0x0F120052, /* TVAR_ash_pGAS[542] */
0x0F12006C, /* TVAR_ash_pGAS[543] */
0x0F120094, /* TVAR_ash_pGAS[544] */
0x0F1200BF, /* TVAR_ash_pGAS[545] */
0x0F1200EB, /* TVAR_ash_pGAS[546] */
0x0F1200C3, /* TVAR_ash_pGAS[547] */
0x0F120099, /* TVAR_ash_pGAS[548] */
0x0F12007A, /* TVAR_ash_pGAS[549] */
0x0F120066, /* TVAR_ash_pGAS[550] */
0x0F12005A, /* TVAR_ash_pGAS[551] */
0x0F120054, /* TVAR_ash_pGAS[552] */
0x0F120056, /* TVAR_ash_pGAS[553] */
0x0F12005F, /* TVAR_ash_pGAS[554] */
0x0F120071, /* TVAR_ash_pGAS[555] */
0x0F12008D, /* TVAR_ash_pGAS[556] */
0x0F1200B6, /* TVAR_ash_pGAS[557] */
0x0F1200DE, /* TVAR_ash_pGAS[558] */
0x0F12010D, /* TVAR_ash_pGAS[559] */
0x0F1200E7, /* TVAR_ash_pGAS[560] */
0x0F1200C1, /* TVAR_ash_pGAS[561] */
0x0F1200A0, /* TVAR_ash_pGAS[562] */
0x0F12008A, /* TVAR_ash_pGAS[563] */
0x0F12007C, /* TVAR_ash_pGAS[564] */
0x0F120076, /* TVAR_ash_pGAS[565] */
0x0F120078, /* TVAR_ash_pGAS[566] */
0x0F120081, /* TVAR_ash_pGAS[567] */
0x0F120093, /* TVAR_ash_pGAS[568] */
0x0F1200B1, /* TVAR_ash_pGAS[569] */
0x0F1200D5, /* TVAR_ash_pGAS[570] */
0x0F1200FD, /* TVAR_ash_pGAS[571] */
/* Gamma */
0x002A04CC,
0x0F120000, /* 0000 <API key>[0][0] */
0x0F120002, /* 0002 <API key>[0][1] */
0x0F120008, /* 0008 <API key>[0][2] */
0x0F120016, /* 0018 <API key>[0][3] */
0x0F120055, /* 005A <API key>[0][4] */
0x0F1200E6, /* 00DF <API key>[0][5] */
0x0F120141, /* 013F <API key>[0][6] */
0x0F120188, /* 0186 <API key>[0][7] */
0x0F1201E6, /* 01E6 <API key>[0][8] */
0x0F120236, /* 0236 <API key>[0][9] */
0x0F1202BA, /* 02BA <API key>[0][10] */
0x0F12032A, /* 032A <API key>[0][11] */
0x0F120385, /* 0385 <API key>[0][12] */
0x0F1203C2, /* 03C2 <API key>[0][13] */
0x0F1203EA, /* 03EA <API key>[0][14] */
0x0F1203FF, /* 03FF <API key>[0][15] */
0x0F120000, /* 0000 <API key>[1][0] */
0x0F120002, /* 0002 <API key>[1][1] */
0x0F120008, /* 0008 <API key>[1][2] */
0x0F120016, /* 0018 <API key>[1][3] */
0x0F120055, /* 005A <API key>[1][4] */
0x0F1200E6, /* 00DF <API key>[1][5] */
0x0F120141, /* 013F <API key>[1][6] */
0x0F120188, /* 0186 <API key>[1][7] */
0x0F1201E6, /* 01E6 <API key>[1][8] */
0x0F120236, /* 0236 <API key>[1][9] */
0x0F1202BA, /* 02BA <API key>[1][10] */
0x0F12032A, /* 032A <API key>[1][11] */
0x0F120385, /* 0385 <API key>[1][12] */
0x0F1203C2, /* 03C2 <API key>[1][13] */
0x0F1203EA, /* 03EA <API key>[1][14] */
0x0F1203FF, /* 03FF <API key>[1][15] */
0x0F120000, /* 0000 <API key>[2][0] */
0x0F120002, /* 0002 <API key>[2][1] */
0x0F120008, /* 0008 <API key>[2][2] */
0x0F120016, /* 0018 <API key>[2][3] */
0x0F120055, /* 005A <API key>[2][4] */
0x0F1200E6, /* 00DF <API key>[2][5] */
0x0F120141, /* 013F <API key>[2][6] */
0x0F120188, /* 0186 <API key>[2][7] */
0x0F1201E6, /* 01E6 <API key>[2][8] */
0x0F120236, /* 0236 <API key>[2][9] */
0x0F1202BA, /* 02BA <API key>[2][10] */
0x0F12032A, /* 032A <API key>[2][11] */
0x0F120385, /* 0385 <API key>[2][12] */
0x0F1203C2, /* 03C2 <API key>[2][13] */
0x0F1203EA, /* 03EA <API key>[2][14] */
0x0F1203FF, /* 03FF <API key>[2][15] */
/* Set AWB */
0x002A0DA6,
0x0F120000,
0x0F120000,
0x002A0E8C,
0x0F120000,
0x002A0D6C,
0x0F120040,
/* Indoor Gray Zone */
0x002A0B9C,
0x0F12038F, /* <API key> */
0x0F12039B, /* <API key> */
0x0F120373, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F120352, /* <API key> */
0x0F1203B7, /* <API key> */
0x0F120334, /* <API key> */
0x0F1203B5, /* <API key> */
0x0F120318, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F1202FF, /* <API key> */
0x0F12038D, /* <API key> */
0x0F1202E7, /* <API key> */
0x0F120372, /* <API key> */
0x0F1202D0, /* <API key> */
0x0F12035D, /* <API key> */
0x0F1202B5, /* <API key> */
0x0F120345, /* <API key> */
0x0F1202A1, /* <API key> */
0x0F120331, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12031E, /* <API key> */
0x0F120273, /* <API key> */
0x0F120309, /* <API key> */
0x0F12025F, /* <API key> */
0x0F1202F5, /* <API key> */
0x0F120250, /* <API key> */
0x0F1202DB, /* <API key> */
0x0F120241, /* <API key> */
0x0F1202C7, /* <API key> */
0x0F120233, /* <API key> */
0x0F1202B9, /* <API key> */
0x0F120223, /* <API key> */
0x0F1202AB, /* <API key> */
0x0F120217, /* <API key> */
0x0F1202A2, /* <API key> */
0x0F120207, /* <API key> */
0x0F120294, /* <API key> */
0x0F1201FA, /* <API key> */
0x0F120289, /* <API key> */
0x0F1201EA, /* <API key> */
0x0F120281, /* <API key> */
0x0F1201DD, /* <API key> */
0x0F12027B, /* <API key> */
0x0F1201D0, /* <API key> */
0x0F120273, /* <API key> */
0x0F1201C3, /* <API key> */
0x0F12026A, /* <API key> */
0x0F1201B6, /* <API key> */
0x0F120265, /* <API key> */
0x0F1201AB, /* <API key> */
0x0F12025B, /* <API key> */
0x0F1201A1, /* <API key> */
0x0F120254, /* <API key> */
0x0F120198, /* <API key> */
0x0F12024B, /* <API key> */
0x0F120192, /* <API key> */
0x0F120242, /* <API key> */
0x0F120191, /* <API key> */
0x0F12023A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120222, /* <API key> */
0x0F1201C5, /* <API key> */
0x0F1201DF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* param_end <API key> */
0x002A0C3C,
0x0F120004,
0x0F120000,
0x0F120022,
0x0F120000,
0x0F12010F,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0C50,
0x0F1200E0,
0x0F120000,
/* Outdoor Gray Zone */
0x0F12025E, /* 0264 <API key> */
0x0F120282, /* 0279 <API key> */
0x0F120240, /* 0250 <API key> */
0x0F120298, /* 0287 <API key> */
0x0F12022A, /* 0244 <API key> */
0x0F12029A, /* 0287 <API key> */
0x0F12021A, /* 0235 <API key> */
0x0F12029A, /* 0289 <API key> */
0x0F120206, /* 0225 <API key> */
0x0F120298, /* 0287 <API key> */
0x0F1201FE, /* 0213 <API key> */
0x0F12028C, /* 0286 <API key> */
0x0F1201FA, /* 0202 <API key> */
0x0F120278, /* 027A <API key> */
0x0F1201F8, /* 01F3 <API key> */
0x0F120266, /* 0272 <API key> */
0x0F120214, /* 01E9 <API key> */
0x0F120238, /* 0269 <API key> */
0x0F120000, /* 01E2 <API key> */
0x0F120000, /* 0263 <API key> */
0x0F120000, /* 01E0 <API key> */
0x0F120000, /* 025A <API key> */
0x0F120000, /* 01E1 <API key> */
0x0F120000, /* 0256 <API key> */
0x0F120000, /* 01EE <API key> */
0x0F120000, /* 0251 <API key> */
0x0F120000, /* 01F8 <API key>(26) */
0x0F120000, /* 024A <API key>(27) */
0x0F120000, /* 020D <API key>(28) */
0x0F120000, /* 0231 <API key>(29) */
0x0F120000, /* 0000 <API key>(30) */
0x0F120000, /* 0000 <API key>(31) */
0x0F120000, /* 0000 <API key>(32) */
0x0F120000, /* 0000 <API key>(33) */
/* param_WRITE 70000CC6 B2end <API key> */
0x002A0CB8,
0x0F120004,
0x0F120000,
0x0F120009,
0x0F120000,
0x0F120210,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0CCC,
0x0F1200C0,
0x0F120000,
/* 7-3. Low Br grey zone */
/* param_ C4start <API key> */
0x0F12031F, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202FC, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202D9, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202B6, /* <API key> */
0x0F120495, /* <API key> */
0x0F120293, /* <API key> */
0x0F120495, /* <API key> */
0x0F120270, /* <API key> */
0x0F120495, /* <API key> */
0x0F12024E, /* <API key> */
0x0F120495, /* <API key> */
0x0F12022B, /* <API key> */
0x0F120495, /* <API key> */
0x0F120208, /* <API key> */
0x0F12048A, /* <API key> */
0x0F1201E5, /* <API key> */
0x0F120455, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12041F, /* <API key> */
0x0F12019F, /* <API key> */
0x0F1203EA, /* <API key> */
0x0F12017D, /* <API key> */
0x0F1203B4, /* <API key> */
0x0F12015A, /* <API key> */
0x0F12037F, /* <API key> */
0x0F120137, /* <API key> */
0x0F120349, /* <API key> */
0x0F120130, /* <API key> */
0x0F120314, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202DE, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202B1, /* <API key> */
0x0F12012E, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12012D, /* <API key> */
0x0F120265, /* <API key> */
0x0F12012C, /* <API key> */
0x0F12023F, /* <API key> */
0x0F12012C, /* <API key> */
0x0F120219, /* <API key> */
0x0F12012B, /* <API key> */
0x0F1201F3, /* <API key> */
0x0F12012A, /* <API key> */
0x0F1201CD, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* 42param_end <API key> */
0x0F120005,
0x0F120000,
0x0F120018,
0x0F120000,
0x0F1200AF,
0x0F120000,
0x0F120002,
0x0F120000,
0x002A0D48,
0x0F1200E0,
0x0F120000,
/* Lowtemp circle */
0x0F12032F,
0x0F120000,
0x0F12017A,
0x0F120000,
0x0F127300,
0x0F120000,
0x0F12000A,
0x0F120000,
0x002A0D60,
0x0F1200E0,
0x0F120000,
0x002A0D82,
0x0F120001,
0x002A0D8E,
0x0F120002, /* awbb_GridEnable */
/* Grid coefficients and Contrants */
0x002A0DCE,
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F1202C6,
0x0F120335,
0x0F1203B3,
0x0F121021,
0x0F12107E,
0x0F12113E,
0x0F12117C,
0x0F1211C2,
0x0F12120B,
0x0F1200B3,
0x0F1200B7,
0x0F1200D3,
0x0F120091,
/* White Locus */
0x002A0D66,
0x0F120133,
0x0F12010F,
0x002A0D74,
0x0F12052A,
/* Gamut Thresholds */
0x002A0DAE,
0x0F120036,
0x0F12001C,
0x002A0DAA,
0x0F12071A,
0x0F1203A4,
/* SceneDetection Thresholds */
0x002A0D92,
0x0F120BB8,
0x0F120096,
0x002A0E86,
0x0F120216,
0x0F12029F,
0x002A0D96,
0x0F120BB7,
0x0F120096,
0x002A0DB2,
0x0F1200DA,
0x002A0D9A,
0x0F12000A,
0x002A0DB4,
0x0F120459,
0x002A0DA4,
0x0F12000E,
0x002A0D64,
0x0F120032,
0x002A0DA6,
0x0F12001E,
0x002A0D9C,
0x0F12001B,
0x0F12000E,
0x0F120008,
0x0F120004,
/* AWB Debug.(Outdoor Pink) */
0x002A0E30,
0x0F120000,
0x002A0E84,
0x0F120000,
/* UseInvalidOutdoor option */
0x002A0D88,
0x0F120001,
/* AWB input Y-Filter setting */
0x002A0C48,
0x0F120020,
0x002A0C50,
0x0F1200E0,
0x002A0CC4,
0x0F120020,
0x002A0CCC,
0x0F1200C0,
0x002A0DC2,
0x0F120030,
0x0F1200C8,
0x0F12012C,
0x0F120210, /* 258 awbb_GainsMaxMove */
0x0F120003,
/* Set CCM */
/* CCM Start Address */
0x002A06D0,
0x0F122800,
0x0F127000,
0x0F122824,
0x0F127000,
0x0F122848,
0x0F127000,
0x0F12286C,
0x0F127000,
0x0F122890,
0x0F127000,
0x0F1228B4,
0x0F127000,
0x002A06EC,
0x0F1228D8,
0x0F127000,
/* CCM */
0x002A2800,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201FB,
0x0F12FFA9,
0x0F12FFEA,
0x0F12013C,
0x0F120140,
0x0F12FF53,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF39,
0x0F1201D6,
0x0F1200C4,
0x0F12FFC0,
0x0F12FFBF,
0x0F1201CD,
0x0F120182,
0x0F12FF91,
0x0F1201AA,
0x0F1201C5,
0x0F12FF9F,
0x0F12FFE5,
0x0F1200E2,
0x0F12010E,
0x0F12FF62,
0x0F12FF03,
0x0F1201D0,
0x0F12FF3E,
0x0F12FF00,
0x0F1201A6,
0x0F1200BB,
0x0F12FFBF,
0x0F12FFDD,
0x0F1201F6,
0x0F1200CB,
0x0F12FF94,
0x0F12019E,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200E8,
0x0F120126,
0x0F12FF83,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF8A,
0x0F1201F9,
0x0F12005B,
0x0F12FFCA,
0x0F12FFA3,
0x0F1201DA,
0x0F120108,
0x0F12FFB3,
0x0F1201DD,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200F4,
0x0F120139,
0x0F12FF64,
0x0F12FEEC,
0x0F1201FD,
0x0F12FF8E,
0x0F12FEF4,
0x0F1201BD,
0x0F12010A,
0x0F12FFA2,
0x0F12FFDE,
0x0F120208,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
/* Set NB */
0x002A07EA,
0x0F120000, /*afit_bUseNoiseInd 0 : NB 1: Noise Index */
/* param_start SARR_uNormBrInDoor */
0x0F12000A, /* SARR_uNormBrInDoor[0] */
0x0F120019, /* SARR_uNormBrInDoor[1] */
0x0F12007D, /* SARR_uNormBrInDoor[2] */
0x0F1202BC, /* SARR_uNormBrInDoor[3] */
0x0F1207D0, /* SARR_uNormBrInDoor[4] */
/* param_start SARR_uNormBrOutDoor */
0x0F12000A, /* SARR_uNormBrOutDoor[0] */
0x0F120019, /* SARR_uNormBrOutDoor[1] */
0x0F12007D, /* SARR_uNormBrOutDoor[2] */
0x0F1202BC, /* SARR_uNormBrOutDoor[3] */
0x0F1207D0, /* SARR_uNormBrOutDoor[4] */
/* Set AFIT */
0x002A0814,
0x0F12082C,
0x0F127000,
0x002A082C,
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120010, /* SATURATION */
0x0F12FFE2, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120344, /* <API key> */
0x0F12033A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120C0F, /* "<API key>" */
0x0F120C0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12023F, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F12030A, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120011, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F120900, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12000A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F126E14, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120008, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120014, /* <API key> */
0x0F12000E, /* <API key> */
0x0F120064, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120114, /* <API key> */
0x0F12020A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F12050F, /* "<API key>" */
0x0F120A0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12020A, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120305, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12100A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128030, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F12000C, /* <API key> */
0x0F120006, /* <API key> */
0x0F120060, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F12005A, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F12000A, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120030, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120880, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120408, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120608, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128050, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F1200FF,
0x0F1200FF,
0x0F120800,
0x0F120600,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120300,
0x0F120002,
0x0F120400,
0x0F120106,
0x0F120005,
0x0F120000,
0x0F120703,
0x0F120000,
0x0F12FFD6,
0x0F1253C1,
0x0F12E1FE,
0x0F120001,
/* Update Changed Registers */
0x002A03FC,
0x0F120001, /* <API key> */
0xffff0064, /* ADD 100ms */
0x0028D000,
0x002AB0CC,
0x0F12000B, /* Non contious mode */
/* Recording 25fps Anti-Flicker 60Hz END of Initial */
};
static const u32 <API key>[] = {
/* recording 25fps Anti-Flicker 50Hz*/
0xFCFCD000,
/* ARM Go */
0x0028D000,
0x002A1030,
0x0F120000,
0x002A0014,
0x0F120001,
0xffff0064, /* p100 Delay */
/* Trap and Patch 2008-11-18 10:15:41 */
0x00287000,
0x002A1668,
0x0F12B5FE,
0x0F120007,
0x0F12683C,
0x0F12687E,
0x0F121DA5,
0x0F1288A0,
0x0F122800,
0x0F12D00B,
0x0F1288A8,
0x0F122800,
0x0F12D008,
0x0F128820,
0x0F128829,
0x0F124288,
0x0F12D301,
0x0F121A40,
0x0F12E000,
0x0F121A08,
0x0F129001,
0x0F12E001,
0x0F122019,
0x0F129001,
0x0F124916,
0x0F12466B,
0x0F128A48,
0x0F128118,
0x0F128A88,
0x0F128158,
0x0F124814,
0x0F128940,
0x0F120040,
0x0F122103,
0x0F12F000,
0x0F12F826,
0x0F1288A1,
0x0F124288,
0x0F12D908,
0x0F128828,
0x0F128030,
0x0F128868,
0x0F128070,
0x0F1288A8,
0x0F126038,
0x0F12BCFE,
0x0F12BC08,
0x0F124718,
0x0F1288A9,
0x0F124288,
0x0F12D906,
0x0F128820,
0x0F128030,
0x0F128860,
0x0F128070,
0x0F1288A0,
0x0F126038,
0x0F12E7F2,
0x0F129801,
0x0F12A902,
0x0F12F000,
0x0F12F812,
0x0F120033,
0x0F120029,
0x0F129A02,
0x0F120020,
0x0F12F000,
0x0F12F814,
0x0F126038,
0x0F12E7E6,
0x0F121A28,
0x0F127000,
0x0F120D64,
0x0F127000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F126009,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12622F,
0x0F120000,
0x002A2080,
0x0F12B510,
0x0F12F000,
0x0F12F8F4,
0x0F12BC10,
0x0F12BC08,
0x0F124718,
0x0F12B5F0,
0x0F12B08B,
0x0F120006,
0x0F122000,
0x0F129004,
0x0F126835,
0x0F126874,
0x0F1268B0,
0x0F12900A,
0x0F1268F0,
0x0F129009,
0x0F124F7D,
0x0F128979,
0x0F12084A,
0x0F1288A8,
0x0F1288A3,
0x0F124298,
0x0F12D300,
0x0F120018,
0x0F12F000,
0x0F12F907,
0x0F129007,
0x0F120021,
0x0F120028,
0x0F12AA04,
0x0F12F000,
0x0F12F909,
0x0F129006,
0x0F1288A8,
0x0F122800,
0x0F12D102,
0x0F1227FF,
0x0F121C7F,
0x0F12E047,
0x0F1288A0,
0x0F122800,
0x0F12D101,
0x0F122700,
0x0F12E042,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12F000,
0x0F12F8F8,
0x0F129008,
0x0F128ABA,
0x0F129808,
0x0F12466B,
0x0F124342,
0x0F129202,
0x0F128820,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8EA,
0x0F129A02,
0x0F1217D1,
0x0F120E09,
0x0F121889,
0x0F121209,
0x0F124288,
0x0F12DD1F,
0x0F128820,
0x0F12466B,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F12980A,
0x0F129903,
0x0F12F000,
0x0F12F8DA,
0x0F129001,
0x0F128828,
0x0F12466B,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12980A,
0x0F129902,
0x0F12F000,
0x0F12F8D0,
0x0F128AB9,
0x0F129A08,
0x0F124351,
0x0F1217CA,
0x0F120E12,
0x0F121851,
0x0F12120A,
0x0F129901,
0x0F12F000,
0x0F12F8B6,
0x0F120407,
0x0F120C3F,
0x0F12E000,
0x0F122700,
0x0F128820,
0x0F12466B,
0x0F12AA05,
0x0F128198,
0x0F128860,
0x0F1281D8,
0x0F128828,
0x0F128118,
0x0F128868,
0x0F128158,
0x0F12A802,
0x0F12C803,
0x0F12003B,
0x0F12F000,
0x0F12F8BB,
0x0F1288A1,
0x0F1288A8,
0x0F12003A,
0x0F12F000,
0x0F12F8BE,
0x0F120004,
0x0F12A804,
0x0F12C803,
0x0F129A09,
0x0F129B07,
0x0F12F000,
0x0F12F8AF,
0x0F12A806,
0x0F12C805,
0x0F120021,
0x0F12F000,
0x0F12F8B2,
0x0F126030,
0x0F12B00B,
0x0F12BCF0,
0x0F12BC08,
0x0F124718,
0x0F12B5F1,
0x0F129900,
0x0F12680C,
0x0F12493A,
0x0F12694B,
0x0F12698A,
0x0F124694,
0x0F1269CD,
0x0F126A0E,
0x0F124F38,
0x0F1242BC,
0x0F12D800,
0x0F120027,
0x0F124937,
0x0F126B89,
0x0F120409,
0x0F120C09,
0x0F124A35,
0x0F121E92,
0x0F126BD2,
0x0F120412,
0x0F120C12,
0x0F12429F,
0x0F12D801,
0x0F120020,
0x0F12E031,
0x0F12001F,
0x0F12434F,
0x0F120A3F,
0x0F1242A7,
0x0F12D301,
0x0F120018,
0x0F12E02A,
0x0F12002B,
0x0F12434B,
0x0F120A1B,
0x0F1242A3,
0x0F12D303,
0x0F120220,
0x0F12F000,
0x0F12F88C,
0x0F12E021,
0x0F120029,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D301,
0x0F120028,
0x0F12E01A,
0x0F120031,
0x0F124351,
0x0F120A09,
0x0F1242A1,
0x0F12D304,
0x0F120220,
0x0F120011,
0x0F12F000,
0x0F12F87B,
0x0F12E010,
0x0F12491E,
0x0F128C89,
0x0F12000A,
0x0F124372,
0x0F120A12,
0x0F1242A2,
0x0F12D301,
0x0F120030,
0x0F12E007,
0x0F124662,
0x0F12434A,
0x0F120A12,
0x0F1242A2,
0x0F12D302,
0x0F120220,
0x0F12F000,
0x0F12F869,
0x0F124B16,
0x0F124D18,
0x0F128D99,
0x0F121FCA,
0x0F123AF9,
0x0F12D00A,
0x0F122001,
0x0F120240,
0x0F128468,
0x0F120220,
0x0F12F000,
0x0F12F85D,
0x0F129900,
0x0F126008,
0x0F12BCF8,
0x0F12BC08,
0x0F124718,
0x0F128D19,
0x0F128469,
0x0F129900,
0x0F126008,
0x0F12E7F7,
0x0F12B570,
0x0F122200,
0x0F12490E,
0x0F12480E,
0x0F122401,
0x0F12F000,
0x0F12F852,
0x0F120022,
0x0F12490D,
0x0F12480D,
0x0F122502,
0x0F12F000,
0x0F12F84C,
0x0F12490C,
0x0F12480D,
0x0F12002A,
0x0F12F000,
0x0F12F847,
0x0F12BC70,
0x0F12BC08,
0x0F124718,
0x0F120D64,
0x0F127000,
0x0F120470,
0x0F127000,
0x0F12A120,
0x0F120007,
0x0F120402,
0x0F127000,
0x0F1214A0,
0x0F127000,
0x0F12208D,
0x0F127000,
0x0F12622F,
0x0F120000,
0x0F121669,
0x0F127000,
0x0F126445,
0x0F120000,
0x0F1221AB,
0x0F127000,
0x0F122AA9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125F49,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FC7,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125457,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F125FA3,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F1251F9,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12F004,
0x0F12E51F,
0x0F12A464,
0x0F120000,
0x0F124778,
0x0F1246C0,
0x0F12C000,
0x0F12E59F,
0x0F12FF1C,
0x0F12E12F,
0x0F12A007,
0x0F120000,
0x0F126546,
0x0F122062,
0x0F123120,
0x0F123220,
0x0F123130,
0x0F120030,
0x0F12E010,
0x0F120208,
0x0F120058,
0x0F120000,
/* End of Trap and Patch (Last : 70002342h) */
/* Total Size 896 (0x0380) */
0x0028D000,
0x002A1000,
0x0F120001,
0x00287000,
0x002A1662,
0x0F1203B0,
0x0F1203B0,
0x00287000,
0x002A1658,
0x0F129C40,
0x0F120000,
0x0F129C40,
0x0F120000,
0x00287000,
0x002A0ADC,
0x0F120AF0, /* <API key> */
0x002A0AE2,
0x0F12222E, /* <API key> */
0x002A0B94,
0x0F120580, /* awbb_GainsInit_0_:R */
0x0F120400, /* awbb_GainsInit_1_:G */
0x0F1205F0, /* awbb_GainsInit_2_:B */
0x002A04A0,
0x0F128000, /* lt_uLeiInit:AE start */
0x002A049A,
0x0F1200FA,
/* Set CIS/APS/Analog */
0x0028D000,
0x002AF106,
0x0F120001,
0x002AF206,
0x0F120001,
0x002AC202,
0x0F120700,
0x002AF260,
0x0F120001,
0x002AF414,
0x0F120030,
0x002AC204,
0x0F120100,
0x002AF402,
0x0F120092,
0x0F12007F,
0x002AF700,
0x0F120040,
0x002AF708,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120040,
0x0F120001,
0x0F120015,
0x0F120001,
0x0F120040,
0x002AF48A,
0x0F120048,
0x002AF10A,
0x0F12008B,
0x002AF900,
0x0F120067,
0x002AF406,
0x0F120092,
0x0F12007F,
0x0F120003,
0x0F120003,
0x0F120003,
0x002AF442,
0x0F120000,
0x0F120000,
0x002AF448,
0x0F120000,
0x002AF456,
0x0F120001,
0x0F120010,
0x0F120000,
0x002AF41A,
0x0F1200FF,
0x0F120003,
0x002AF420,
0x0F120030,
0x002AF410,
0x0F120001,
0x0F120000,
0x002AF416,
0x0F120001,
0x002AF424,
0x0F120000,
0x002AF422,
0x0F120000,
0x002AF41E,
0x0F120000,
0x002AF428,
0x0F120000,
0x0F120000,
0x0F120000,
0x002AF430,
0x0F120000,
0x0F120000,
0x0F120008,
0x0F120005,
0x0F12000F,
0x0F120001,
0x0F120040,
0x0F120040,
0x0F120010,
0x002AF4D6,
0x0F120090,
0x0F120000,
0x002AF47C,
0x0F12000C,
0x0F120000,
0x002AF49A,
0x0F120008,
0x0F120000,
0x002AF4A2,
0x0F120008,
0x0F120000,
0x002AF4B2,
0x0F120013,
0x0F120000,
0x0F120013,
0x0F120000,
0x002AF4AA,
0x0F12009B,
0x0F1200FB,
0x0F12009B,
0x0F1200FB,
0x002AF474,
0x0F120017,
0x0F12005F,
0x0F120017,
0x0F12008F,
0x002AF48C,
0x0F120017,
0x0F12009B,
0x002AF4C8,
0x0F120163,
0x0F120193,
0x002AF490,
0x0F120191,
0x002AF418,
0x0F120083,
0x002AF454,
0x0F120001,
0x002AF702,
0x0F120081,
0x002AF4D2,
0x0F120000,
/* For ESD Check */
0x00287000,
0x002A0132,
0x0F12AAAA,
/* Set FPN Gain Input */
0x002A1176,
0x0F120020,
0x0F120040,
0x0F120080,
0x0F120100,
0x0F120014,
0x0F12000A,
0x0F120008,
0x0F120004,
/* CFPN Canceller */
0x002A116C,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120002,
0x002A0AE8,
0x0F120000,
/* sensor aig table setting */
0x002A10EE,
0x0F120000,
0x002A10F2,
0x0F120000,
0x002A1152,
0x0F120030,
0x0F120028,
0x0F120030,
0x002A1148,
0x0F1200FB,
0x002A1144,
0x0F1200FB,
0x002A1150,
0x0F1201F4,
0x002A1084,
0x0F120000,
0x0F120000,
/* Set AE Target */
0x002A0F4C,
0x0F12003A, /* TVAR_ae_BrAve */
0x002A0478,
0x0F120114,
0x0F1200EB, /* ae boundary */
/* Set Frame Rate */
0x002A0484,
0x0F12410A, /* uMaxExp1 */
0x0F120000,
0x002A048C,
0x0F128214, /* uMaxExp2 */
0x0F120000,
0x0F12A122, /* uMaxExp3 */
0x0F120000,
0x002A0488,
0x0F12f424, /* uMaxExp4 */
0x0F120000,
0x002A043A,
0x0F1201D0, /* lt_uMaxAnGain0 */
0x0F1201E0, /* lt_uMaxAnGain0_1 */
0x002A0494,
0x0F120300, /* lt_uMaxAnGain1 */
0x0F120650, /* lt_uMaxAnGain2 */
0x0f120100,
0x002A0F52,
0x0F12000F, /* ae_StatMode */
0x002A0E98, /* <API key> */
0x0F1202A8,
0x002A0E9E, /* <API key> */
0x0F120298,
/* 1. Auto Flicker 50Hz Start */
0x002A0B2E,
0x0F120000, /* AFC_Default60Hz Auto Flicker 60Hz start 0: Auto Flicker 50Hz start */
0x002A03F8,
0x0F12005F, /* <API key> default : 007F */
0xffff000a, /* p10 Wait10mSec */
/* Set PLL */
/* External CLOCK (MCLK) */
0x002A01B8,
0x0F125DC0, /* <API key> */
0x0F120000, /* <API key> */
/* Parallel or MIPI Selection */
0x002A01C6,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
/* System Clock 0 (System : 24Mhz, PCLK : 48Mhz) */
0x002A01CC,
0x0F121770, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
/* System Clock 1 (System : 48Mhz, PCLK : 48Mhz) */
0x002A01D2,
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x002A01DE,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0064, /* p100 */
/* Crop */
0x002A01FA,
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set Preview Config */
/* Preview Config 0 (VGA fixed 30fps) */
0x002A0242,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_0TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120001, /* <API key> */
0x0F12018c, /* <API key> */
0x0F12018c, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Preview Config 1 (640x480, Not Fixed 15 ~ 30fps) */
0x002A0268,
0x0F120280, /* <API key> */
0x0F1201E0, /* <API key> */
0x0F120005, /* REG_1TC_PCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12029A, /* <API key> */
0x0F12014D, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set Capture Config */
/* Capture Config 0 (1600x1200 fixed 8fps) */
0x002A0302,
0x0F120000, /* <API key> */
0x0F120640, /* <API key> */
0x0F1204B0, /* <API key> */
0x0F120005, /* REG_0TC_CCFG_Format */
0x0F122EE0, /* <API key> */
0x0F122EE0, /* <API key> */
0x0F120052, /* <API key> */
0x0F120001, /* <API key> */
0x0F120002, /* <API key> */
0x0F120002, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F1204E2, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* Periodic mismatch */
0x002A0780,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A0798,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120000,
0x002A07C0,
0x0F120004,
0x0F120004,
0x002A0B94,
0x0F120580,
0x0F120400,
0x0F1205F0,
0x002A04A0,
0x0F128000,
/* Set AE Weights */
0x002A0F5A,
0x0F120000, /* ae_WeightTbl_16_0_ */
0x0F120000, /* ae_WeightTbl_16_1_ */
0x0F120000, /* ae_WeightTbl_16_2_ */
0x0F120000, /* ae_WeightTbl_16_3_ */
0x0F120101, /* ae_WeightTbl_16_4_ */
0x0F120101, /* ae_WeightTbl_16_5_ */
0x0F120101, /* ae_WeightTbl_16_6_ */
0x0F120101, /* ae_WeightTbl_16_7_ */
0x0F120101, /* ae_WeightTbl_16_8_ */
0x0F120302, /* ae_WeightTbl_16_9_ */
0x0F120203, /* ae_WeightTbl_16_10 */
0x0F120101, /* ae_WeightTbl_16_11 */
0x0F120101, /* ae_WeightTbl_16_12 */
0x0F120403, /* ae_WeightTbl_16_13 */
0x0F120304, /* ae_WeightTbl_16_14 */
0x0F120101, /* ae_WeightTbl_16_15 */
0x0F120101, /* ae_WeightTbl_16_16 */
0x0F120403, /* ae_WeightTbl_16_17 */
0x0F120304, /* ae_WeightTbl_16_18 */
0x0F120101, /* ae_WeightTbl_16_19 */
0x0F120101, /* ae_WeightTbl_16_20 */
0x0F120302, /* ae_WeightTbl_16_21 */
0x0F120203, /* ae_WeightTbl_16_22 */
0x0F120101, /* ae_WeightTbl_16_23 */
0x0F120101, /* ae_WeightTbl_16_24 */
0x0F120101, /* ae_WeightTbl_16_25 */
0x0F120101, /* ae_WeightTbl_16_26 */
0x0F120101, /* ae_WeightTbl_16_27 */
0x0F120000, /* ae_WeightTbl_16_28 */
0x0F120000, /* ae_WeightTbl_16_29 */
0x0F120000, /* ae_WeightTbl_16_30 */
0x0F120000, /* ae_WeightTbl_16_31 */
/* Set GAS & CCM White Point */
/* param_start TVAR_ash_AwbAshCord */
0x002A0704,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F1201B0,
0x0F120200,
/* param_start wbt_AwbCcmCord */
0x002A06F2,
0x0F1200B3,
0x0F1200E5,
0x0F120120,
0x0F120136,
0x0F120180,
0x0F120190,
/* Target Brightness Control */
0x002A103E,
0x0F120000,
0x0F120009,
0x0F120018,
0x0F120032,
0x0F12004A,
0x0F120051,
0x0F120056,
0x0F12010C,
0x0F12010C,
0x0F120109,
0x0F120105,
0x0F120102,
0x0F1200FB,
0x0F1200F8,
/* TVAR_ash_GASAlpha(Indoor) */
0x002A0712,
0x0F120100, /* TVAR_ash_GASAlpha[0] */
0x0F120100, /* TVAR_ash_GASAlpha[1] */
0x0F120100, /* TVAR_ash_GASAlpha[2] */
0x0F120100, /* TVAR_ash_GASAlpha[3] */
0x0F120100, /* TVAR_ash_GASAlpha[4] */
0x0F120100, /* TVAR_ash_GASAlpha[5] */
0x0F120100, /* TVAR_ash_GASAlpha[6] */
0x0F120100, /* TVAR_ash_GASAlpha[7] */
0x0F120100, /* TVAR_ash_GASAlpha[8] */
0x0F120100, /* TVAR_ash_GASAlpha[9] */
0x0F120100, /* TVAR_ash_GASAlpha[10] */
0x0F120100, /* TVAR_ash_GASAlpha[11] */
0x0F120100, /* TVAR_ash_GASAlpha[12] */
0x0F120100, /* TVAR_ash_GASAlpha[13] */
0x0F120100, /* TVAR_ash_GASAlpha[14] */
0x0F120100, /* TVAR_ash_GASAlpha[15] */
0x0F120100, /* TVAR_ash_GASAlpha[16] */
0x0F120100, /* TVAR_ash_GASAlpha[17] */
0x0F120100, /* TVAR_ash_GASAlpha[18] */
0x0F120100, /* TVAR_ash_GASAlpha[19] */
0x0F120100, /* TVAR_ash_GASAlpha[20] */
0x0F120100, /* TVAR_ash_GASAlpha[21] */
0x0F120100, /* TVAR_ash_GASAlpha[22] */
0x0F120100, /* TVAR_ash_GASAlpha[23] */
0x0F120100, /* TVAR_ash_GASAlpha[24] */
0x0F120100, /* TVAR_ash_GASAlpha[25] */
0x0F120100, /* TVAR_ash_GASAlpha[26] */
0x0F120100, /* TVAR_ash_GASAlpha[27] */
/* TVAR_ash_GASAlpha(Outdoor) */
0x0F120108, /* 100 <API key>*/
0x0F120100, /* <API key>*/
0x0F120100, /* <API key>*/
0x0F120100, /* <API key>*/
/* GAS LUT Start Address */
0x002A0754,
0x0F122388,
0x0F127000,
/* param_start TVAR_ash_pGAS */
0x002A2388,
0x0F120160, /* TVAR_ash_pGAS[0] */
0x0F120134, /* TVAR_ash_pGAS[1] */
0x0F1200FF, /* TVAR_ash_pGAS[2] */
0x0F1200D1, /* TVAR_ash_pGAS[3] */
0x0F1200B1, /* TVAR_ash_pGAS[4] */
0x0F12009D, /* TVAR_ash_pGAS[5] */
0x0F120096, /* TVAR_ash_pGAS[6] */
0x0F12009E, /* TVAR_ash_pGAS[7] */
0x0F1200B3, /* TVAR_ash_pGAS[8] */
0x0F1200D3, /* TVAR_ash_pGAS[9] */
0x0F1200FF, /* TVAR_ash_pGAS[10] */
0x0F120131, /* TVAR_ash_pGAS[11] */
0x0F120159, /* TVAR_ash_pGAS[12] */
0x0F12013C, /* TVAR_ash_pGAS[13] */
0x0F120107, /* TVAR_ash_pGAS[14] */
0x0F1200CD, /* TVAR_ash_pGAS[15] */
0x0F1200A1, /* TVAR_ash_pGAS[16] */
0x0F120080, /* TVAR_ash_pGAS[17] */
0x0F12006B, /* TVAR_ash_pGAS[18] */
0x0F120064, /* TVAR_ash_pGAS[19] */
0x0F12006C, /* TVAR_ash_pGAS[20] */
0x0F120080, /* TVAR_ash_pGAS[21] */
0x0F1200A1, /* TVAR_ash_pGAS[22] */
0x0F1200CD, /* TVAR_ash_pGAS[23] */
0x0F120106, /* TVAR_ash_pGAS[24] */
0x0F120139, /* TVAR_ash_pGAS[25] */
0x0F120116, /* TVAR_ash_pGAS[26] */
0x0F1200DC, /* TVAR_ash_pGAS[27] */
0x0F1200A2, /* TVAR_ash_pGAS[28] */
0x0F120073, /* TVAR_ash_pGAS[29] */
0x0F120051, /* TVAR_ash_pGAS[30] */
0x0F12003B, /* TVAR_ash_pGAS[31] */
0x0F120033, /* TVAR_ash_pGAS[32] */
0x0F12003B, /* TVAR_ash_pGAS[33] */
0x0F120050, /* TVAR_ash_pGAS[34] */
0x0F120073, /* TVAR_ash_pGAS[35] */
0x0F1200A2, /* TVAR_ash_pGAS[36] */
0x0F1200DD, /* TVAR_ash_pGAS[37] */
0x0F120115, /* TVAR_ash_pGAS[38] */
0x0F1200FA, /* TVAR_ash_pGAS[39] */
0x0F1200BF, /* TVAR_ash_pGAS[40] */
0x0F120085, /* TVAR_ash_pGAS[41] */
0x0F120055, /* TVAR_ash_pGAS[42] */
0x0F120031, /* TVAR_ash_pGAS[43] */
0x0F12001B, /* TVAR_ash_pGAS[44] */
0x0F120014, /* TVAR_ash_pGAS[45] */
0x0F12001A, /* TVAR_ash_pGAS[46] */
0x0F120031, /* TVAR_ash_pGAS[47] */
0x0F120055, /* TVAR_ash_pGAS[48] */
0x0F120085, /* TVAR_ash_pGAS[49] */
0x0F1200C0, /* TVAR_ash_pGAS[50] */
0x0F1200FB, /* TVAR_ash_pGAS[51] */
0x0F1200EA, /* TVAR_ash_pGAS[52] */
0x0F1200AF, /* TVAR_ash_pGAS[53] */
0x0F120074, /* TVAR_ash_pGAS[54] */
0x0F120045, /* TVAR_ash_pGAS[55] */
0x0F120020, /* TVAR_ash_pGAS[56] */
0x0F12000B, /* TVAR_ash_pGAS[57] */
0x0F120003, /* TVAR_ash_pGAS[58] */
0x0F12000A, /* TVAR_ash_pGAS[59] */
0x0F120020, /* TVAR_ash_pGAS[60] */
0x0F120046, /* TVAR_ash_pGAS[61] */
0x0F120076, /* TVAR_ash_pGAS[62] */
0x0F1200B1, /* TVAR_ash_pGAS[63] */
0x0F1200ED, /* TVAR_ash_pGAS[64] */
0x0F1200E6, /* TVAR_ash_pGAS[65] */
0x0F1200AA, /* TVAR_ash_pGAS[66] */
0x0F120071, /* TVAR_ash_pGAS[67] */
0x0F120041, /* TVAR_ash_pGAS[68] */
0x0F12001D, /* TVAR_ash_pGAS[69] */
0x0F120008, /* TVAR_ash_pGAS[70] */
0x0F120000, /* TVAR_ash_pGAS[71] */
0x0F120007, /* TVAR_ash_pGAS[72] */
0x0F12001E, /* TVAR_ash_pGAS[73] */
0x0F120044, /* TVAR_ash_pGAS[74] */
0x0F120074, /* TVAR_ash_pGAS[75] */
0x0F1200B0, /* TVAR_ash_pGAS[76] */
0x0F1200EC, /* TVAR_ash_pGAS[77] */
0x0F1200EF, /* TVAR_ash_pGAS[78] */
0x0F1200B3, /* TVAR_ash_pGAS[79] */
0x0F12007A, /* TVAR_ash_pGAS[80] */
0x0F12004A, /* TVAR_ash_pGAS[81] */
0x0F120026, /* TVAR_ash_pGAS[82] */
0x0F120011, /* TVAR_ash_pGAS[83] */
0x0F12000A, /* TVAR_ash_pGAS[84] */
0x0F120011, /* TVAR_ash_pGAS[85] */
0x0F120029, /* TVAR_ash_pGAS[86] */
0x0F12004F, /* TVAR_ash_pGAS[87] */
0x0F120080, /* TVAR_ash_pGAS[88] */
0x0F1200BC, /* TVAR_ash_pGAS[89] */
0x0F1200F8, /* TVAR_ash_pGAS[90] */
0x0F120105, /* TVAR_ash_pGAS[91] */
0x0F1200C9, /* TVAR_ash_pGAS[92] */
0x0F12008F, /* TVAR_ash_pGAS[93] */
0x0F120060, /* TVAR_ash_pGAS[94] */
0x0F12003C, /* TVAR_ash_pGAS[95] */
0x0F120026, /* TVAR_ash_pGAS[96] */
0x0F12001F, /* TVAR_ash_pGAS[97] */
0x0F120028, /* TVAR_ash_pGAS[98] */
0x0F120040, /* TVAR_ash_pGAS[99] */
0x0F120066, /* TVAR_ash_pGAS[100] */
0x0F120097, /* TVAR_ash_pGAS[101] */
0x0F1200D4, /* TVAR_ash_pGAS[102] */
0x0F120110, /* TVAR_ash_pGAS[103] */
0x0F120124, /* TVAR_ash_pGAS[104] */
0x0F1200EB, /* TVAR_ash_pGAS[105] */
0x0F1200B1, /* TVAR_ash_pGAS[106] */
0x0F120082, /* TVAR_ash_pGAS[107] */
0x0F12005F, /* TVAR_ash_pGAS[108] */
0x0F12004A, /* TVAR_ash_pGAS[109] */
0x0F120043, /* TVAR_ash_pGAS[110] */
0x0F12004C, /* TVAR_ash_pGAS[111] */
0x0F120064, /* TVAR_ash_pGAS[112] */
0x0F120089, /* TVAR_ash_pGAS[113] */
0x0F1200BA, /* TVAR_ash_pGAS[114] */
0x0F1200F8, /* TVAR_ash_pGAS[115] */
0x0F12012F, /* TVAR_ash_pGAS[116] */
0x0F120147, /* TVAR_ash_pGAS[117] */
0x0F120116, /* TVAR_ash_pGAS[118] */
0x0F1200DE, /* TVAR_ash_pGAS[119] */
0x0F1200AF, /* TVAR_ash_pGAS[120] */
0x0F12008E, /* TVAR_ash_pGAS[121] */
0x0F12007A, /* TVAR_ash_pGAS[122] */
0x0F120072, /* TVAR_ash_pGAS[123] */
0x0F12007A, /* TVAR_ash_pGAS[124] */
0x0F120091, /* TVAR_ash_pGAS[125] */
0x0F1200B6, /* TVAR_ash_pGAS[126] */
0x0F1200E8, /* TVAR_ash_pGAS[127] */
0x0F120121, /* TVAR_ash_pGAS[128] */
0x0F120150, /* TVAR_ash_pGAS[129] */
0x0F120170, /* TVAR_ash_pGAS[130] */
0x0F12013F, /* TVAR_ash_pGAS[131] */
0x0F120110, /* TVAR_ash_pGAS[132] */
0x0F1200E2, /* TVAR_ash_pGAS[133] */
0x0F1200C0, /* TVAR_ash_pGAS[134] */
0x0F1200AB, /* TVAR_ash_pGAS[135] */
0x0F1200A4, /* TVAR_ash_pGAS[136] */
0x0F1200AC, /* TVAR_ash_pGAS[137] */
0x0F1200C3, /* TVAR_ash_pGAS[138] */
0x0F1200E6, /* TVAR_ash_pGAS[139] */
0x0F120117, /* TVAR_ash_pGAS[140] */
0x0F120145, /* TVAR_ash_pGAS[141] */
0x0F120172, /* TVAR_ash_pGAS[142] */
0x0F120127, /* TVAR_ash_pGAS[143] */
0x0F120100, /* TVAR_ash_pGAS[144] */
0x0F1200CF, /* TVAR_ash_pGAS[145] */
0x0F1200A7, /* TVAR_ash_pGAS[146] */
0x0F12008D, /* TVAR_ash_pGAS[147] */
0x0F12007D, /* TVAR_ash_pGAS[148] */
0x0F120077, /* TVAR_ash_pGAS[149] */
0x0F12007A, /* TVAR_ash_pGAS[150] */
0x0F120087, /* TVAR_ash_pGAS[151] */
0x0F12009E, /* TVAR_ash_pGAS[152] */
0x0F1200C0, /* TVAR_ash_pGAS[153] */
0x0F1200EC, /* TVAR_ash_pGAS[154] */
0x0F12010F, /* TVAR_ash_pGAS[155] */
0x0F120108, /* TVAR_ash_pGAS[156] */
0x0F1200D8, /* TVAR_ash_pGAS[157] */
0x0F1200A5, /* TVAR_ash_pGAS[158] */
0x0F120080, /* TVAR_ash_pGAS[159] */
0x0F120066, /* TVAR_ash_pGAS[160] */
0x0F120056, /* TVAR_ash_pGAS[161] */
0x0F12004F, /* TVAR_ash_pGAS[162] */
0x0F120053, /* TVAR_ash_pGAS[163] */
0x0F120061, /* TVAR_ash_pGAS[164] */
0x0F120077, /* TVAR_ash_pGAS[165] */
0x0F120098, /* TVAR_ash_pGAS[166] */
0x0F1200C6, /* TVAR_ash_pGAS[167] */
0x0F1200F3, /* TVAR_ash_pGAS[168] */
0x0F1200E7, /* TVAR_ash_pGAS[169] */
0x0F1200B4, /* TVAR_ash_pGAS[170] */
0x0F120081, /* TVAR_ash_pGAS[171] */
0x0F12005C, /* TVAR_ash_pGAS[172] */
0x0F120041, /* TVAR_ash_pGAS[173] */
0x0F120030, /* TVAR_ash_pGAS[174] */
0x0F120029, /* TVAR_ash_pGAS[175] */
0x0F12002E, /* TVAR_ash_pGAS[176] */
0x0F12003D, /* TVAR_ash_pGAS[177] */
0x0F120055, /* TVAR_ash_pGAS[178] */
0x0F120076, /* TVAR_ash_pGAS[179] */
0x0F1200A5, /* TVAR_ash_pGAS[180] */
0x0F1200D4, /* TVAR_ash_pGAS[181] */
0x0F1200CF, /* TVAR_ash_pGAS[182] */
0x0F12009B, /* TVAR_ash_pGAS[183] */
0x0F12006A, /* TVAR_ash_pGAS[184] */
0x0F120043, /* TVAR_ash_pGAS[185] */
0x0F120027, /* TVAR_ash_pGAS[186] */
0x0F120016, /* TVAR_ash_pGAS[187] */
0x0F12000F, /* TVAR_ash_pGAS[188] */
0x0F120015, /* TVAR_ash_pGAS[189] */
0x0F120025, /* TVAR_ash_pGAS[190] */
0x0F12003E, /* TVAR_ash_pGAS[191] */
0x0F120061, /* TVAR_ash_pGAS[192] */
0x0F12008E, /* TVAR_ash_pGAS[193] */
0x0F1200BF, /* TVAR_ash_pGAS[194] */
0x0F1200C2, /* TVAR_ash_pGAS[195] */
0x0F12008E, /* TVAR_ash_pGAS[196] */
0x0F12005D, /* TVAR_ash_pGAS[197] */
0x0F120037, /* TVAR_ash_pGAS[198] */
0x0F12001A, /* TVAR_ash_pGAS[199] */
0x0F120009, /* TVAR_ash_pGAS[200] */
0x0F120002, /* TVAR_ash_pGAS[201] */
0x0F120007, /* TVAR_ash_pGAS[202] */
0x0F120018, /* TVAR_ash_pGAS[203] */
0x0F120033, /* TVAR_ash_pGAS[204] */
0x0F120057, /* TVAR_ash_pGAS[205] */
0x0F120083, /* TVAR_ash_pGAS[206] */
0x0F1200B3, /* TVAR_ash_pGAS[207] */
0x0F1200BE, /* TVAR_ash_pGAS[208] */
0x0F12008A, /* TVAR_ash_pGAS[209] */
0x0F12005A, /* TVAR_ash_pGAS[210] */
0x0F120034, /* TVAR_ash_pGAS[211] */
0x0F120017, /* TVAR_ash_pGAS[212] */
0x0F120006, /* TVAR_ash_pGAS[213] */
0x0F120000, /* TVAR_ash_pGAS[214] */
0x0F120006, /* TVAR_ash_pGAS[215] */
0x0F120017, /* TVAR_ash_pGAS[216] */
0x0F120033, /* TVAR_ash_pGAS[217] */
0x0F120057, /* TVAR_ash_pGAS[218] */
0x0F120083, /* TVAR_ash_pGAS[219] */
0x0F1200B3, /* TVAR_ash_pGAS[220] */
0x0F1200C5, /* TVAR_ash_pGAS[221] */
0x0F120091, /* TVAR_ash_pGAS[222] */
0x0F120061, /* TVAR_ash_pGAS[223] */
0x0F12003B, /* TVAR_ash_pGAS[224] */
0x0F120020, /* TVAR_ash_pGAS[225] */
0x0F12000F, /* TVAR_ash_pGAS[226] */
0x0F120009, /* TVAR_ash_pGAS[227] */
0x0F120010, /* TVAR_ash_pGAS[228] */
0x0F120021, /* TVAR_ash_pGAS[229] */
0x0F12003D, /* TVAR_ash_pGAS[230] */
0x0F120060, /* TVAR_ash_pGAS[231] */
0x0F12008D, /* TVAR_ash_pGAS[232] */
0x0F1200BE, /* TVAR_ash_pGAS[233] */
0x0F1200D7, /* TVAR_ash_pGAS[234] */
0x0F1200A2, /* TVAR_ash_pGAS[235] */
0x0F120072, /* TVAR_ash_pGAS[236] */
0x0F12004D, /* TVAR_ash_pGAS[237] */
0x0F120032, /* TVAR_ash_pGAS[238] */
0x0F120022, /* TVAR_ash_pGAS[239] */
0x0F12001D, /* TVAR_ash_pGAS[240] */
0x0F120024, /* TVAR_ash_pGAS[241] */
0x0F120035, /* TVAR_ash_pGAS[242] */
0x0F120050, /* TVAR_ash_pGAS[243] */
0x0F120073, /* TVAR_ash_pGAS[244] */
0x0F1200A0, /* TVAR_ash_pGAS[245] */
0x0F1200D2, /* TVAR_ash_pGAS[246] */
0x0F1200F0, /* TVAR_ash_pGAS[247] */
0x0F1200BE, /* TVAR_ash_pGAS[248] */
0x0F12008C, /* TVAR_ash_pGAS[249] */
0x0F120068, /* TVAR_ash_pGAS[250] */
0x0F12004F, /* TVAR_ash_pGAS[251] */
0x0F120040, /* TVAR_ash_pGAS[252] */
0x0F12003B, /* TVAR_ash_pGAS[253] */
0x0F120041, /* TVAR_ash_pGAS[254] */
0x0F120052, /* TVAR_ash_pGAS[255] */
0x0F12006C, /* TVAR_ash_pGAS[256] */
0x0F12008E, /* TVAR_ash_pGAS[257] */
0x0F1200BE, /* TVAR_ash_pGAS[258] */
0x0F1200ED, /* TVAR_ash_pGAS[259] */
0x0F12010C, /* TVAR_ash_pGAS[260] */
0x0F1200E1, /* TVAR_ash_pGAS[261] */
0x0F1200AF, /* TVAR_ash_pGAS[262] */
0x0F12008A, /* TVAR_ash_pGAS[263] */
0x0F120072, /* TVAR_ash_pGAS[264] */
0x0F120064, /* TVAR_ash_pGAS[265] */
0x0F12005F, /* TVAR_ash_pGAS[266] */
0x0F120065, /* TVAR_ash_pGAS[267] */
0x0F120074, /* TVAR_ash_pGAS[268] */
0x0F12008D, /* TVAR_ash_pGAS[269] */
0x0F1200B2, /* TVAR_ash_pGAS[270] */
0x0F1200E0, /* TVAR_ash_pGAS[271] */
0x0F12010A, /* TVAR_ash_pGAS[272] */
0x0F12012F, /* TVAR_ash_pGAS[273] */
0x0F120104, /* TVAR_ash_pGAS[274] */
0x0F1200D9, /* TVAR_ash_pGAS[275] */
0x0F1200B3, /* TVAR_ash_pGAS[276] */
0x0F120099, /* TVAR_ash_pGAS[277] */
0x0F12008B, /* TVAR_ash_pGAS[278] */
0x0F120086, /* TVAR_ash_pGAS[279] */
0x0F12008B, /* TVAR_ash_pGAS[280] */
0x0F12009B, /* TVAR_ash_pGAS[281] */
0x0F1200B5, /* TVAR_ash_pGAS[282] */
0x0F1200DA, /* TVAR_ash_pGAS[283] */
0x0F120101, /* TVAR_ash_pGAS[284] */
0x0F120128, /* TVAR_ash_pGAS[285] */
0x0F12012F, /* TVAR_ash_pGAS[286] */
0x0F120106, /* TVAR_ash_pGAS[287] */
0x0F1200D4, /* TVAR_ash_pGAS[288] */
0x0F1200AA, /* TVAR_ash_pGAS[289] */
0x0F12008E, /* TVAR_ash_pGAS[290] */
0x0F12007D, /* TVAR_ash_pGAS[291] */
0x0F120079, /* TVAR_ash_pGAS[292] */
0x0F120080, /* TVAR_ash_pGAS[293] */
0x0F120093, /* TVAR_ash_pGAS[294] */
0x0F1200B1, /* TVAR_ash_pGAS[295] */
0x0F1200DC, /* TVAR_ash_pGAS[296] */
0x0F12010C, /* TVAR_ash_pGAS[297] */
0x0F120130, /* TVAR_ash_pGAS[298] */
0x0F120112, /* TVAR_ash_pGAS[299] */
0x0F1200E0, /* TVAR_ash_pGAS[300] */
0x0F1200AB, /* TVAR_ash_pGAS[301] */
0x0F120083, /* TVAR_ash_pGAS[302] */
0x0F120067, /* TVAR_ash_pGAS[303] */
0x0F120057, /* TVAR_ash_pGAS[304] */
0x0F120051, /* TVAR_ash_pGAS[305] */
0x0F120059, /* TVAR_ash_pGAS[306] */
0x0F12006B, /* TVAR_ash_pGAS[307] */
0x0F120089, /* TVAR_ash_pGAS[308] */
0x0F1200B2, /* TVAR_ash_pGAS[309] */
0x0F1200E5, /* TVAR_ash_pGAS[310] */
0x0F120114, /* TVAR_ash_pGAS[311] */
0x0F1200F2, /* TVAR_ash_pGAS[312] */
0x0F1200BD, /* TVAR_ash_pGAS[313] */
0x0F120088, /* TVAR_ash_pGAS[314] */
0x0F120061, /* TVAR_ash_pGAS[315] */
0x0F120044, /* TVAR_ash_pGAS[316] */
0x0F120031, /* TVAR_ash_pGAS[317] */
0x0F12002C, /* TVAR_ash_pGAS[318] */
0x0F120033, /* TVAR_ash_pGAS[319] */
0x0F120047, /* TVAR_ash_pGAS[320] */
0x0F120065, /* TVAR_ash_pGAS[321] */
0x0F12008C, /* TVAR_ash_pGAS[322] */
0x0F1200C0, /* TVAR_ash_pGAS[323] */
0x0F1200F3, /* TVAR_ash_pGAS[324] */
0x0F1200DB, /* TVAR_ash_pGAS[325] */
0x0F1200A5, /* TVAR_ash_pGAS[326] */
0x0F120071, /* TVAR_ash_pGAS[327] */
0x0F120049, /* TVAR_ash_pGAS[328] */
0x0F12002A, /* TVAR_ash_pGAS[329] */
0x0F120018, /* TVAR_ash_pGAS[330] */
0x0F120011, /* TVAR_ash_pGAS[331] */
0x0F120018, /* TVAR_ash_pGAS[332] */
0x0F12002C, /* TVAR_ash_pGAS[333] */
0x0F12004B, /* TVAR_ash_pGAS[334] */
0x0F120072, /* TVAR_ash_pGAS[335] */
0x0F1200A3, /* TVAR_ash_pGAS[336] */
0x0F1200D7, /* TVAR_ash_pGAS[337] */
0x0F1200CD, /* TVAR_ash_pGAS[338] */
0x0F120097, /* TVAR_ash_pGAS[339] */
0x0F120065, /* TVAR_ash_pGAS[340] */
0x0F12003C, /* TVAR_ash_pGAS[341] */
0x0F12001D, /* TVAR_ash_pGAS[342] */
0x0F12000A, /* TVAR_ash_pGAS[343] */
0x0F120003, /* TVAR_ash_pGAS[344] */
0x0F120009, /* TVAR_ash_pGAS[345] */
0x0F12001D, /* TVAR_ash_pGAS[346] */
0x0F12003B, /* TVAR_ash_pGAS[347] */
0x0F120063, /* TVAR_ash_pGAS[348] */
0x0F120092, /* TVAR_ash_pGAS[349] */
0x0F1200C4, /* TVAR_ash_pGAS[350] */
0x0F1200CA, /* TVAR_ash_pGAS[351] */
0x0F120094, /* TVAR_ash_pGAS[352] */
0x0F120062, /* TVAR_ash_pGAS[353] */
0x0F12003A, /* TVAR_ash_pGAS[354] */
0x0F12001A, /* TVAR_ash_pGAS[355] */
0x0F120007, /* TVAR_ash_pGAS[356] */
0x0F120000, /* TVAR_ash_pGAS[357] */
0x0F120006, /* TVAR_ash_pGAS[358] */
0x0F120018, /* TVAR_ash_pGAS[359] */
0x0F120036, /* TVAR_ash_pGAS[360] */
0x0F12005C, /* TVAR_ash_pGAS[361] */
0x0F12008A, /* TVAR_ash_pGAS[362] */
0x0F1200BC, /* TVAR_ash_pGAS[363] */
0x0F1200D1, /* TVAR_ash_pGAS[364] */
0x0F12009B, /* TVAR_ash_pGAS[365] */
0x0F120069, /* TVAR_ash_pGAS[366] */
0x0F120042, /* TVAR_ash_pGAS[367] */
0x0F120022, /* TVAR_ash_pGAS[368] */
0x0F12000F, /* TVAR_ash_pGAS[369] */
0x0F120008, /* TVAR_ash_pGAS[370] */
0x0F12000D, /* TVAR_ash_pGAS[371] */
0x0F12001F, /* TVAR_ash_pGAS[372] */
0x0F12003B, /* TVAR_ash_pGAS[373] */
0x0F120060, /* TVAR_ash_pGAS[374] */
0x0F12008D, /* TVAR_ash_pGAS[375] */
0x0F1200BF, /* TVAR_ash_pGAS[376] */
0x0F1200E3, /* TVAR_ash_pGAS[377] */
0x0F1200AC, /* TVAR_ash_pGAS[378] */
0x0F12007A, /* TVAR_ash_pGAS[379] */
0x0F120053, /* TVAR_ash_pGAS[380] */
0x0F120035, /* TVAR_ash_pGAS[381] */
0x0F120022, /* TVAR_ash_pGAS[382] */
0x0F12001B, /* TVAR_ash_pGAS[383] */
0x0F12001F, /* TVAR_ash_pGAS[384] */
0x0F120030, /* TVAR_ash_pGAS[385] */
0x0F12004B, /* TVAR_ash_pGAS[386] */
0x0F12006D, /* TVAR_ash_pGAS[387] */
0x0F12009C, /* TVAR_ash_pGAS[388] */
0x0F1200CE, /* TVAR_ash_pGAS[389] */
0x0F1200FE, /* TVAR_ash_pGAS[390] */
0x0F1200C9, /* TVAR_ash_pGAS[391] */
0x0F120095, /* TVAR_ash_pGAS[392] */
0x0F12006F, /* TVAR_ash_pGAS[393] */
0x0F120052, /* TVAR_ash_pGAS[394] */
0x0F120040, /* TVAR_ash_pGAS[395] */
0x0F120039, /* TVAR_ash_pGAS[396] */
0x0F12003D, /* TVAR_ash_pGAS[397] */
0x0F12004B, /* TVAR_ash_pGAS[398] */
0x0F120063, /* TVAR_ash_pGAS[399] */
0x0F120086, /* TVAR_ash_pGAS[400] */
0x0F1200B5, /* TVAR_ash_pGAS[401] */
0x0F1200E6, /* TVAR_ash_pGAS[402] */
0x0F12011B, /* TVAR_ash_pGAS[403] */
0x0F1200ED, /* TVAR_ash_pGAS[404] */
0x0F1200BA, /* TVAR_ash_pGAS[405] */
0x0F120092, /* TVAR_ash_pGAS[406] */
0x0F120076, /* TVAR_ash_pGAS[407] */
0x0F120065, /* TVAR_ash_pGAS[408] */
0x0F12005D, /* TVAR_ash_pGAS[409] */
0x0F120060, /* TVAR_ash_pGAS[410] */
0x0F12006D, /* TVAR_ash_pGAS[411] */
0x0F120084, /* TVAR_ash_pGAS[412] */
0x0F1200A8, /* TVAR_ash_pGAS[413] */
0x0F1200D6, /* TVAR_ash_pGAS[414] */
0x0F120101, /* TVAR_ash_pGAS[415] */
0x0F120140, /* TVAR_ash_pGAS[416] */
0x0F120112, /* TVAR_ash_pGAS[417] */
0x0F1200E5, /* TVAR_ash_pGAS[418] */
0x0F1200BD, /* TVAR_ash_pGAS[419] */
0x0F12009E, /* TVAR_ash_pGAS[420] */
0x0F12008C, /* TVAR_ash_pGAS[421] */
0x0F120085, /* TVAR_ash_pGAS[422] */
0x0F120087, /* TVAR_ash_pGAS[423] */
0x0F120094, /* TVAR_ash_pGAS[424] */
0x0F1200AC, /* TVAR_ash_pGAS[425] */
0x0F1200D0, /* TVAR_ash_pGAS[426] */
0x0F1200F8, /* TVAR_ash_pGAS[427] */
0x0F120123, /* TVAR_ash_pGAS[428] */
0x0F1200F2, /* TVAR_ash_pGAS[429] */
0x0F1200D1, /* TVAR_ash_pGAS[430] */
0x0F1200A7, /* TVAR_ash_pGAS[431] */
0x0F120087, /* TVAR_ash_pGAS[432] */
0x0F120073, /* TVAR_ash_pGAS[433] */
0x0F120067, /* TVAR_ash_pGAS[434] */
0x0F120064, /* TVAR_ash_pGAS[435] */
0x0F12006B, /* TVAR_ash_pGAS[436] */
0x0F12007C, /* TVAR_ash_pGAS[437] */
0x0F120094, /* TVAR_ash_pGAS[438] */
0x0F1200B7, /* TVAR_ash_pGAS[439] */
0x0F1200E1, /* TVAR_ash_pGAS[440] */
0x0F1200FF, /* TVAR_ash_pGAS[441] */
0x0F1200D6, /* TVAR_ash_pGAS[442] */
0x0F1200AE, /* TVAR_ash_pGAS[443] */
0x0F120085, /* TVAR_ash_pGAS[444] */
0x0F120068, /* TVAR_ash_pGAS[445] */
0x0F120054, /* TVAR_ash_pGAS[446] */
0x0F120048, /* TVAR_ash_pGAS[447] */
0x0F120045, /* TVAR_ash_pGAS[448] */
0x0F12004B, /* TVAR_ash_pGAS[449] */
0x0F12005B, /* TVAR_ash_pGAS[450] */
0x0F120073, /* TVAR_ash_pGAS[451] */
0x0F120093, /* TVAR_ash_pGAS[452] */
0x0F1200BF, /* TVAR_ash_pGAS[453] */
0x0F1200E9, /* TVAR_ash_pGAS[454] */
0x0F1200B8, /* TVAR_ash_pGAS[455] */
0x0F12008E, /* TVAR_ash_pGAS[456] */
0x0F120066, /* TVAR_ash_pGAS[457] */
0x0F120049, /* TVAR_ash_pGAS[458] */
0x0F120035, /* TVAR_ash_pGAS[459] */
0x0F120028, /* TVAR_ash_pGAS[460] */
0x0F120025, /* TVAR_ash_pGAS[461] */
0x0F12002B, /* TVAR_ash_pGAS[462] */
0x0F12003B, /* TVAR_ash_pGAS[463] */
0x0F120053, /* TVAR_ash_pGAS[464] */
0x0F120072, /* TVAR_ash_pGAS[465] */
0x0F12009D, /* TVAR_ash_pGAS[466] */
0x0F1200C8, /* TVAR_ash_pGAS[467] */
0x0F1200A2, /* TVAR_ash_pGAS[468] */
0x0F120078, /* TVAR_ash_pGAS[469] */
0x0F120051, /* TVAR_ash_pGAS[470] */
0x0F120034, /* TVAR_ash_pGAS[471] */
0x0F12001F, /* TVAR_ash_pGAS[472] */
0x0F120012, /* TVAR_ash_pGAS[473] */
0x0F12000E, /* TVAR_ash_pGAS[474] */
0x0F120014, /* TVAR_ash_pGAS[475] */
0x0F120024, /* TVAR_ash_pGAS[476] */
0x0F12003B, /* TVAR_ash_pGAS[477] */
0x0F12005B, /* TVAR_ash_pGAS[478] */
0x0F120083, /* TVAR_ash_pGAS[479] */
0x0F1200AD, /* TVAR_ash_pGAS[480] */
0x0F120095, /* TVAR_ash_pGAS[481] */
0x0F12006C, /* TVAR_ash_pGAS[482] */
0x0F120046, /* TVAR_ash_pGAS[483] */
0x0F12002A, /* TVAR_ash_pGAS[484] */
0x0F120014, /* TVAR_ash_pGAS[485] */
0x0F120007, /* TVAR_ash_pGAS[486] */
0x0F120002, /* TVAR_ash_pGAS[487] */
0x0F120008, /* TVAR_ash_pGAS[488] */
0x0F120016, /* TVAR_ash_pGAS[489] */
0x0F12002D, /* TVAR_ash_pGAS[490] */
0x0F12004C, /* TVAR_ash_pGAS[491] */
0x0F120072, /* TVAR_ash_pGAS[492] */
0x0F12009B, /* TVAR_ash_pGAS[493] */
0x0F120093, /* TVAR_ash_pGAS[494] */
0x0F12006A, /* TVAR_ash_pGAS[495] */
0x0F120045, /* TVAR_ash_pGAS[496] */
0x0F120028, /* TVAR_ash_pGAS[497] */
0x0F120013, /* TVAR_ash_pGAS[498] */
0x0F120005, /* TVAR_ash_pGAS[499] */
0x0F120000, /* TVAR_ash_pGAS[500] */
0x0F120004, /* TVAR_ash_pGAS[501] */
0x0F120012, /* TVAR_ash_pGAS[502] */
0x0F120028, /* TVAR_ash_pGAS[503] */
0x0F120045, /* TVAR_ash_pGAS[504] */
0x0F12006A, /* TVAR_ash_pGAS[505] */
0x0F120093, /* TVAR_ash_pGAS[506] */
0x0F12009B, /* TVAR_ash_pGAS[507] */
0x0F120071, /* TVAR_ash_pGAS[508] */
0x0F12004C, /* TVAR_ash_pGAS[509] */
0x0F120030, /* TVAR_ash_pGAS[510] */
0x0F12001A, /* TVAR_ash_pGAS[511] */
0x0F12000C, /* TVAR_ash_pGAS[512] */
0x0F120007, /* TVAR_ash_pGAS[513] */
0x0F12000B, /* TVAR_ash_pGAS[514] */
0x0F120018, /* TVAR_ash_pGAS[515] */
0x0F12002C, /* TVAR_ash_pGAS[516] */
0x0F120048, /* TVAR_ash_pGAS[517] */
0x0F12006D, /* TVAR_ash_pGAS[518] */
0x0F120097, /* TVAR_ash_pGAS[519] */
0x0F1200AE, /* TVAR_ash_pGAS[520] */
0x0F120083, /* TVAR_ash_pGAS[521] */
0x0F12005C, /* TVAR_ash_pGAS[522] */
0x0F120040, /* TVAR_ash_pGAS[523] */
0x0F12002B, /* TVAR_ash_pGAS[524] */
0x0F12001E, /* TVAR_ash_pGAS[525] */
0x0F120018, /* TVAR_ash_pGAS[526] */
0x0F12001C, /* TVAR_ash_pGAS[527] */
0x0F120027, /* TVAR_ash_pGAS[528] */
0x0F12003A, /* TVAR_ash_pGAS[529] */
0x0F120055, /* TVAR_ash_pGAS[530] */
0x0F12007B, /* TVAR_ash_pGAS[531] */
0x0F1200A6, /* TVAR_ash_pGAS[532] */
0x0F1200CA, /* TVAR_ash_pGAS[533] */
0x0F12009E, /* TVAR_ash_pGAS[534] */
0x0F120076, /* TVAR_ash_pGAS[535] */
0x0F120059, /* TVAR_ash_pGAS[536] */
0x0F120046, /* TVAR_ash_pGAS[537] */
0x0F120039, /* TVAR_ash_pGAS[538] */
0x0F120033, /* TVAR_ash_pGAS[539] */
0x0F120036, /* TVAR_ash_pGAS[540] */
0x0F120040, /* TVAR_ash_pGAS[541] */
0x0F120052, /* TVAR_ash_pGAS[542] */
0x0F12006C, /* TVAR_ash_pGAS[543] */
0x0F120094, /* TVAR_ash_pGAS[544] */
0x0F1200BF, /* TVAR_ash_pGAS[545] */
0x0F1200EB, /* TVAR_ash_pGAS[546] */
0x0F1200C3, /* TVAR_ash_pGAS[547] */
0x0F120099, /* TVAR_ash_pGAS[548] */
0x0F12007A, /* TVAR_ash_pGAS[549] */
0x0F120066, /* TVAR_ash_pGAS[550] */
0x0F12005A, /* TVAR_ash_pGAS[551] */
0x0F120054, /* TVAR_ash_pGAS[552] */
0x0F120056, /* TVAR_ash_pGAS[553] */
0x0F12005F, /* TVAR_ash_pGAS[554] */
0x0F120071, /* TVAR_ash_pGAS[555] */
0x0F12008D, /* TVAR_ash_pGAS[556] */
0x0F1200B6, /* TVAR_ash_pGAS[557] */
0x0F1200DE, /* TVAR_ash_pGAS[558] */
0x0F12010D, /* TVAR_ash_pGAS[559] */
0x0F1200E7, /* TVAR_ash_pGAS[560] */
0x0F1200C1, /* TVAR_ash_pGAS[561] */
0x0F1200A0, /* TVAR_ash_pGAS[562] */
0x0F12008A, /* TVAR_ash_pGAS[563] */
0x0F12007C, /* TVAR_ash_pGAS[564] */
0x0F120076, /* TVAR_ash_pGAS[565] */
0x0F120078, /* TVAR_ash_pGAS[566] */
0x0F120081, /* TVAR_ash_pGAS[567] */
0x0F120093, /* TVAR_ash_pGAS[568] */
0x0F1200B1, /* TVAR_ash_pGAS[569] */
0x0F1200D5, /* TVAR_ash_pGAS[570] */
0x0F1200FD, /* TVAR_ash_pGAS[571] */
/* Gamma */
0x002A04CC,
0x0F120000, /* 0000 <API key>[0][0] */
0x0F120002, /* 0002 <API key>[0][1] */
0x0F120008, /* 0008 <API key>[0][2] */
0x0F120016, /* 0018 <API key>[0][3] */
0x0F120055, /* 005A <API key>[0][4] */
0x0F1200E6, /* 00DF <API key>[0][5] */
0x0F120141, /* 013F <API key>[0][6] */
0x0F120188, /* 0186 <API key>[0][7] */
0x0F1201E6, /* 01E6 <API key>[0][8] */
0x0F120236, /* 0236 <API key>[0][9] */
0x0F1202BA, /* 02BA <API key>[0][10] */
0x0F12032A, /* 032A <API key>[0][11] */
0x0F120385, /* 0385 <API key>[0][12] */
0x0F1203C2, /* 03C2 <API key>[0][13] */
0x0F1203EA, /* 03EA <API key>[0][14] */
0x0F1203FF, /* 03FF <API key>[0][15] */
0x0F120000, /* 0000 <API key>[1][0] */
0x0F120002, /* 0002 <API key>[1][1] */
0x0F120008, /* 0008 <API key>[1][2] */
0x0F120016, /* 0018 <API key>[1][3] */
0x0F120055, /* 005A <API key>[1][4] */
0x0F1200E6, /* 00DF <API key>[1][5] */
0x0F120141, /* 013F <API key>[1][6] */
0x0F120188, /* 0186 <API key>[1][7] */
0x0F1201E6, /* 01E6 <API key>[1][8] */
0x0F120236, /* 0236 <API key>[1][9] */
0x0F1202BA, /* 02BA <API key>[1][10] */
0x0F12032A, /* 032A <API key>[1][11] */
0x0F120385, /* 0385 <API key>[1][12] */
0x0F1203C2, /* 03C2 <API key>[1][13] */
0x0F1203EA, /* 03EA <API key>[1][14] */
0x0F1203FF, /* 03FF <API key>[1][15] */
0x0F120000, /* 0000 <API key>[2][0] */
0x0F120002, /* 0002 <API key>[2][1] */
0x0F120008, /* 0008 <API key>[2][2] */
0x0F120016, /* 0018 <API key>[2][3] */
0x0F120055, /* 005A <API key>[2][4] */
0x0F1200E6, /* 00DF <API key>[2][5] */
0x0F120141, /* 013F <API key>[2][6] */
0x0F120188, /* 0186 <API key>[2][7] */
0x0F1201E6, /* 01E6 <API key>[2][8] */
0x0F120236, /* 0236 <API key>[2][9] */
0x0F1202BA, /* 02BA <API key>[2][10] */
0x0F12032A, /* 032A <API key>[2][11] */
0x0F120385, /* 0385 <API key>[2][12] */
0x0F1203C2, /* 03C2 <API key>[2][13] */
0x0F1203EA, /* 03EA <API key>[2][14] */
0x0F1203FF, /* 03FF <API key>[2][15] */
/* Set AWB */
0x002A0DA6,
0x0F120000,
0x0F120000,
0x002A0E8C,
0x0F120000,
0x002A0D6C,
0x0F120040,
/* Indoor Gray Zone */
0x002A0B9C,
0x0F12038F, /* <API key> */
0x0F12039B, /* <API key> */
0x0F120373, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F120352, /* <API key> */
0x0F1203B7, /* <API key> */
0x0F120334, /* <API key> */
0x0F1203B5, /* <API key> */
0x0F120318, /* <API key> */
0x0F1203B0, /* <API key> */
0x0F1202FF, /* <API key> */
0x0F12038D, /* <API key> */
0x0F1202E7, /* <API key> */
0x0F120372, /* <API key> */
0x0F1202D0, /* <API key> */
0x0F12035D, /* <API key> */
0x0F1202B5, /* <API key> */
0x0F120345, /* <API key> */
0x0F1202A1, /* <API key> */
0x0F120331, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12031E, /* <API key> */
0x0F120273, /* <API key> */
0x0F120309, /* <API key> */
0x0F12025F, /* <API key> */
0x0F1202F5, /* <API key> */
0x0F120250, /* <API key> */
0x0F1202DB, /* <API key> */
0x0F120241, /* <API key> */
0x0F1202C7, /* <API key> */
0x0F120233, /* <API key> */
0x0F1202B9, /* <API key> */
0x0F120223, /* <API key> */
0x0F1202AB, /* <API key> */
0x0F120217, /* <API key> */
0x0F1202A2, /* <API key> */
0x0F120207, /* <API key> */
0x0F120294, /* <API key> */
0x0F1201FA, /* <API key> */
0x0F120289, /* <API key> */
0x0F1201EA, /* <API key> */
0x0F120281, /* <API key> */
0x0F1201DD, /* <API key> */
0x0F12027B, /* <API key> */
0x0F1201D0, /* <API key> */
0x0F120273, /* <API key> */
0x0F1201C3, /* <API key> */
0x0F12026A, /* <API key> */
0x0F1201B6, /* <API key> */
0x0F120265, /* <API key> */
0x0F1201AB, /* <API key> */
0x0F12025B, /* <API key> */
0x0F1201A1, /* <API key> */
0x0F120254, /* <API key> */
0x0F120198, /* <API key> */
0x0F12024B, /* <API key> */
0x0F120192, /* <API key> */
0x0F120242, /* <API key> */
0x0F120191, /* <API key> */
0x0F12023A, /* <API key> */
0x0F120192, /* <API key> */
0x0F120222, /* <API key> */
0x0F1201C5, /* <API key> */
0x0F1201DF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* param_end <API key> */
0x002A0C3C,
0x0F120004,
0x0F120000,
0x0F120022,
0x0F120000,
0x0F12010F,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0C50,
0x0F1200E0,
0x0F120000,
/* Outdoor Gray Zone */
0x0F12025E, /* 0264 <API key> */
0x0F120282, /* 0279 <API key> */
0x0F120240, /* 0250 <API key> */
0x0F120298, /* 0287 <API key> */
0x0F12022A, /* 0244 <API key> */
0x0F12029A, /* 0287 <API key> */
0x0F12021A, /* 0235 <API key> */
0x0F12029A, /* 0289 <API key> */
0x0F120206, /* 0225 <API key> */
0x0F120298, /* 0287 <API key> */
0x0F1201FE, /* 0213 <API key> */
0x0F12028C, /* 0286 <API key> */
0x0F1201FA, /* 0202 <API key> */
0x0F120278, /* 027A <API key> */
0x0F1201F8, /* 01F3 <API key> */
0x0F120266, /* 0272 <API key> */
0x0F120214, /* 01E9 <API key> */
0x0F120238, /* 0269 <API key> */
0x0F120000, /* 01E2 <API key> */
0x0F120000, /* 0263 <API key> */
0x0F120000, /* 01E0 <API key> */
0x0F120000, /* 025A <API key> */
0x0F120000, /* 01E1 <API key> */
0x0F120000, /* 0256 <API key> */
0x0F120000, /* 01EE <API key> */
0x0F120000, /* 0251 <API key> */
0x0F120000, /* 01F8 <API key>(26) */
0x0F120000, /* 024A <API key>(27) */
0x0F120000, /* 020D <API key>(28) */
0x0F120000, /* 0231 <API key>(29) */
0x0F120000, /* 0000 <API key>(30) */
0x0F120000, /* 0000 <API key>(31) */
0x0F120000, /* 0000 <API key>(32) */
0x0F120000, /* 0000 <API key>(33) */
/* param_WRITE 70000CC6 B2end <API key> */
0x002A0CB8,
0x0F120004,
0x0F120000,
0x0F120009,
0x0F120000,
0x0F120210,
0x0F120000,
0x0F120020,
0x0F120000,
0x002A0CCC,
0x0F1200C0,
0x0F120000,
/* 7-3. Low Br grey zone */
/* param_ C4start <API key> */
0x0F12031F, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202FC, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202D9, /* <API key> */
0x0F120495, /* <API key> */
0x0F1202B6, /* <API key> */
0x0F120495, /* <API key> */
0x0F120293, /* <API key> */
0x0F120495, /* <API key> */
0x0F120270, /* <API key> */
0x0F120495, /* <API key> */
0x0F12024E, /* <API key> */
0x0F120495, /* <API key> */
0x0F12022B, /* <API key> */
0x0F120495, /* <API key> */
0x0F120208, /* <API key> */
0x0F12048A, /* <API key> */
0x0F1201E5, /* <API key> */
0x0F120455, /* <API key> */
0x0F1201C2, /* <API key> */
0x0F12041F, /* <API key> */
0x0F12019F, /* <API key> */
0x0F1203EA, /* <API key> */
0x0F12017D, /* <API key> */
0x0F1203B4, /* <API key> */
0x0F12015A, /* <API key> */
0x0F12037F, /* <API key> */
0x0F120137, /* <API key> */
0x0F120349, /* <API key> */
0x0F120130, /* <API key> */
0x0F120314, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202DE, /* <API key> */
0x0F12012F, /* <API key> */
0x0F1202B1, /* <API key> */
0x0F12012E, /* <API key> */
0x0F12028B, /* <API key> */
0x0F12012D, /* <API key> */
0x0F120265, /* <API key> */
0x0F12012C, /* <API key> */
0x0F12023F, /* <API key> */
0x0F12012C, /* <API key> */
0x0F120219, /* <API key> */
0x0F12012B, /* <API key> */
0x0F1201F3, /* <API key> */
0x0F12012A, /* <API key> */
0x0F1201CD, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
/* 42param_end <API key> */
0x0F120005,
0x0F120000,
0x0F120018,
0x0F120000,
0x0F1200AF,
0x0F120000,
0x0F120002,
0x0F120000,
0x002A0D48,
0x0F1200E0,
0x0F120000,
/* Lowtemp circle */
0x0F12032F,
0x0F120000,
0x0F12017A,
0x0F120000,
0x0F127300,
0x0F120000,
0x0F12000A,
0x0F120000,
0x002A0D60,
0x0F1200E0,
0x0F120000,
0x002A0D82,
0x0F120001,
0x002A0D8E,
0x0F120002, /* awbb_GridEnable */
/* Grid coefficients and Contrants */
0x002A0DCE,
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F12FFE0, /* <API key> */
0x0F12FFE0, /* D8 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120030, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F120004, /* 08 <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F12FFC0, /* <API key> */
0x0F12FFB0, /* <API key> */
0x0F12FF30, /* <API key> */
0x0F1202C6,
0x0F120335,
0x0F1203B3,
0x0F121021,
0x0F12107E,
0x0F12113E,
0x0F12117C,
0x0F1211C2,
0x0F12120B,
0x0F1200B3,
0x0F1200B7,
0x0F1200D3,
0x0F120091,
/* White Locus */
0x002A0D66,
0x0F120133,
0x0F12010F,
0x002A0D74,
0x0F12052A,
/* Gamut Thresholds */
0x002A0DAE,
0x0F120036,
0x0F12001C,
0x002A0DAA,
0x0F12071A,
0x0F1203A4,
/* SceneDetection Thresholds */
0x002A0D92,
0x0F120BB8,
0x0F120096,
0x002A0E86,
0x0F120216,
0x0F12029F,
0x002A0D96,
0x0F120BB7,
0x0F120096,
0x002A0DB2,
0x0F1200DA,
0x002A0D9A,
0x0F12000A,
0x002A0DB4,
0x0F120459,
0x002A0DA4,
0x0F12000E,
0x002A0D64,
0x0F120032,
0x002A0DA6,
0x0F12001E,
0x002A0D9C,
0x0F12001B,
0x0F12000E,
0x0F120008,
0x0F120004,
/* AWB Debug.(Outdoor Pink) */
0x002A0E30,
0x0F120000,
0x002A0E84,
0x0F120000,
/* UseInvalidOutdoor option */
0x002A0D88,
0x0F120001,
/* AWB input Y-Filter setting */
0x002A0C48,
0x0F120020,
0x002A0C50,
0x0F1200E0,
0x002A0CC4,
0x0F120020,
0x002A0CCC,
0x0F1200C0,
0x002A0DC2,
0x0F120030,
0x0F1200C8,
0x0F12012C,
0x0F120210, /* 258 awbb_GainsMaxMove */
0x0F120003,
/* Set CCM */
/* CCM Start Address */
0x002A06D0,
0x0F122800,
0x0F127000,
0x0F122824,
0x0F127000,
0x0F122848,
0x0F127000,
0x0F12286C,
0x0F127000,
0x0F122890,
0x0F127000,
0x0F1228B4,
0x0F127000,
0x002A06EC,
0x0F1228D8,
0x0F127000,
/* CCM */
0x002A2800,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201E1,
0x0F12FFC4,
0x0F12FFF8,
0x0F120101,
0x0F12014C,
0x0F12FF55,
0x0F12FF5B,
0x0F120205,
0x0F12FF17,
0x0F12FEFE,
0x0F1201B6,
0x0F120107,
0x0F12FFDB,
0x0F12FFDB,
0x0F1201D1,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
0x0F1201FB,
0x0F12FFA9,
0x0F12FFEA,
0x0F12013C,
0x0F120140,
0x0F12FF53,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF39,
0x0F1201D6,
0x0F1200C4,
0x0F12FFC0,
0x0F12FFBF,
0x0F1201CD,
0x0F120182,
0x0F12FF91,
0x0F1201AA,
0x0F1201C5,
0x0F12FF9F,
0x0F12FFE5,
0x0F1200E2,
0x0F12010E,
0x0F12FF62,
0x0F12FF03,
0x0F1201D0,
0x0F12FF3E,
0x0F12FF00,
0x0F1201A6,
0x0F1200BB,
0x0F12FFBF,
0x0F12FFDD,
0x0F1201F6,
0x0F1200CB,
0x0F12FF94,
0x0F12019E,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200E8,
0x0F120126,
0x0F12FF83,
0x0F12FE7A,
0x0F12017D,
0x0F12FEED,
0x0F12FF8A,
0x0F1201F9,
0x0F12005B,
0x0F12FFCA,
0x0F12FFA3,
0x0F1201DA,
0x0F120108,
0x0F12FFB3,
0x0F1201DD,
0x0F1201D2,
0x0F12FFC2,
0x0F12FFFC,
0x0F1200F4,
0x0F120139,
0x0F12FF64,
0x0F12FEEC,
0x0F1201FD,
0x0F12FF8E,
0x0F12FEF4,
0x0F1201BD,
0x0F12010A,
0x0F12FFA2,
0x0F12FFDE,
0x0F120208,
0x0F120163,
0x0F12FF9E,
0x0F1201B3,
/* Set NB */
0x002A07EA,
0x0F120000, /*afit_bUseNoiseInd 0 : NB 1: Noise Index */
/* param_start SARR_uNormBrInDoor */
0x0F12000A, /* SARR_uNormBrInDoor[0] */
0x0F120019, /* SARR_uNormBrInDoor[1] */
0x0F12007D, /* SARR_uNormBrInDoor[2] */
0x0F1202BC, /* SARR_uNormBrInDoor[3] */
0x0F1207D0, /* SARR_uNormBrInDoor[4] */
/* param_start SARR_uNormBrOutDoor */
0x0F12000A, /* SARR_uNormBrOutDoor[0] */
0x0F120019, /* SARR_uNormBrOutDoor[1] */
0x0F12007D, /* SARR_uNormBrOutDoor[2] */
0x0F1202BC, /* SARR_uNormBrOutDoor[3] */
0x0F1207D0, /* SARR_uNormBrOutDoor[4] */
/* Set AFIT */
0x002A0814,
0x0F12082C,
0x0F127000,
0x002A082C,
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120010, /* SATURATION */
0x0F12FFE2, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120344, /* <API key> */
0x0F12033A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120C0F, /* "<API key>" */
0x0F120C0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12023F, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F12030A, /* "<API key>" */
0x0F120003, /* "<API key>" */
0x0F120011, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F120900, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12000A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F126E14, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120008, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120014, /* <API key> */
0x0F12000E, /* <API key> */
0x0F120064, /* <API key> */
0x0F1200FF, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120114, /* <API key> */
0x0F12020A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120046, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F12050F, /* "<API key>" */
0x0F120A0F, /* "<API key> <API key>" */
0x0F120303, /* "<API key>" */
0x0F120303, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F12020A, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120305, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12101E, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120400, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120A00, /* "<API key>" */
0x0F12100A, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128030, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F12000C, /* <API key> */
0x0F120006, /* <API key> */
0x0F120060, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F120000, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F12005A, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120014, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120014, /* <API key> */
0x0F120032, /* <API key> */
0x0F120050, /* <API key> */
0x0F120032, /* <API key> */
0x0F120010, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120480, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120403, /* "<API key>" */
0x0F120402, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120203, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F12803C, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F120000, /* BRIGHTNESS */
0x0F12000A, /* CONTRAST */
0x0F120000, /* SATURATION */
0x0F120000, /* SHARP_BLUR */
0x0F120000, /* GLAMOUR */
0x0F1203FF, /* Disparity_iSatSat */
0x0F120006, /* <API key> */
0x0F120006, /* <API key> */
0x0F120050, /* <API key> */
0x0F120050, /* <API key> */
0x0F120002, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F12000A, /* <API key> */
0x0F1203FF, /* Denoise1_iSatSat */
0x0F1203FF, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F120000, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F1203FF, /* <API key> */
0x0F120028, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120030, /* <API key> */
0x0F120032, /* <API key> */
0x0F120000, /* <API key> */
0x0F120032, /* <API key> */
0x0F120106, /* DSMix1_iRGBOffset */
0x0F12006F, /* DSMix1_iDemClamp */
0x0F120202, /* "<API key>" */
0x0F120502, /* "<API key> <API key>" */
0x0F120202, /* "<API key>" */
0x0F120202, /* <API key> */
0x0F12140A, /* "<API key>" */
0x0F12140A, /* "<API key>" */
0x0F122828, /* "<API key>" */
0x0F120606, /* "<API key>" */
0x0F120205, /* "<API key>" */
0x0F120880, /* "<API key>" */
0x0F12000F, /* "<API key>" */
0x0F120005, /* "<API key>" */
0x0F122803, /* "<API key>" */
0x0F122811, /* "<API key>" */
0x0F120A0F, /* "<API key>" */
0x0F12050A, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F122020, /* "<API key>" */
0x0F12980A, /* "<API key>" */
0x0F120007, /* "<API key>" */
0x0F120408, /* "<API key>" */
0x0F120406, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F120608, /* "<API key>" */
0x0F120000, /* "<API key>" */
0x0F121006, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120100, /* "<API key>" */
0x0F128050, /* "<API key>" */
0x0F120180, /* "<API key>" */
0x0F120000, /* RGB2YUV_iYOffset */
0x0F1200FF,
0x0F1200FF,
0x0F120800,
0x0F120600,
0x0F120000,
0x0F120000,
0x0F120000,
0x0F120300,
0x0F120002,
0x0F120400,
0x0F120106,
0x0F120005,
0x0F120000,
0x0F120703,
0x0F120000,
0x0F12FFD6,
0x0F1253C1,
0x0F12E1FE,
0x0F120001,
/* Update Changed Registers */
0x002A03FC,
0x0F120001, /* <API key> */
0x0028D000,
0x002AB0CC,
0x0F12000B, /* Non contious mode */
/* Recording 25fps Anti-Flicker 50Hz END of Initial */
};
static const u32 <API key>[] =
{
0xFCFCD000,
/*00287000*/
/*002A01F0*/
/*0F120000*/ /* <API key> */
/*0F120001*/ /* <API key>*/
/*0xffff0096, 150ms*/
};
static const u32 s5k5bafx_bright_m4[] =
{
/* Brightness -4 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F12FF80, /* <API key> */
};
static const u32 s5k5bafx_bright_m3[] =
{
/* Brightness -3 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F12FFBC, /* <API key>*/
};
static const u32 s5k5bafx_bright_m2[] =
{
/* Brightness -2 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F12FFDC, /* <API key> */
};
static const u32 s5k5bafx_bright_m1[] =
{
/* Brightness -1 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F12FFF2, /* <API key> */
};
static const u32 <API key>[] =
{
/* Brightness 0 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F120000, /* <API key> */
};
static const u32 s5k5bafx_bright_p1[] =
{
/* Brightness +1 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F120020, /* <API key> */
};
static const u32 s5k5bafx_bright_p2[] =
{
/* Brightness +2 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F120040, /* <API key> */
};
static const u32 s5k5bafx_bright_p3[] =
{
/* Brightness +3 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F120060, /* <API key> */
};
static const u32 s5k5bafx_bright_p4[] =
{
/* Brightness +4 */
0xFCFCD000,
0x00287000,
0x002A01E4,
0x0F120080, /* <API key> */
};
static const u32 <API key>[] =
{
/* 0xffff000A, */
0xFCFCD000,
0x00287000,
0x002A04CC,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120018,
0x0F12005A,
0x0F1200DF,
0x0F12013F,
0x0F120186,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120018,
0x0F12005A,
0x0F1200DF,
0x0F12013F,
0x0F120186,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
0x0F120000,
0x0F120002,
0x0F120008,
0x0F120018,
0x0F12005A,
0x0F1200DF,
0x0F12013F,
0x0F120186,
0x0F1201E6,
0x0F120236,
0x0F1202BA,
0x0F12032A,
0x0F120385,
0x0F1203C2,
0x0F1203EA,
0x0F1203FF,
};
static const u32 <API key>[] =
{
/*0xffff000A,*/
0xFCFCD000,
0x00287000,
0x002A04CC,
0x0F120000,
0x0F12000D,
0x0F12001B,
0x0F120046,
0x0F1200AA,
0x0F120120,
0x0F120190,
0x0F1201E0,
0x0F120250,
0x0F1202A5,
0x0F120320,
0x0F120370,
0x0F1203B0,
0x0F1203D8,
0x0F1203F2,
0x0F120400,
0x0F120000,
0x0F12000D,
0x0F12001B,
0x0F120046,
0x0F1200AA,
0x0F120120,
0x0F120190,
0x0F1201E0,
0x0F120250,
0x0F1202A5,
0x0F120320,
0x0F120370,
0x0F1203B0,
0x0F1203D8,
0x0F1203F2,
0x0F120400,
0x0F120000,
0x0F12000D,
0x0F12001B,
0x0F120046,
0x0F1200AA,
0x0F120120,
0x0F120190,
0x0F1201E0,
0x0F120250,
0x0F1202A5,
0x0F120320,
0x0F120370,
0x0F1203B0,
0x0F1203D8,
0x0F1203F2,
0x0F120400,
};
static const u32 <API key>[] =
{
/* 0xffff000A, */
0xFCFCD000,
0x00287000,
0x002A04CC,
0x0F120000, /* 0000 */
0x0F12000D, /* 000D */
0x0F12001B, /* 001B */
0x0F120055, /* 0050 */
0x0F1200C0, /* 00B4 */
0x0F120164, /* 0154 */
0x0F1201C0, /* 01B8 */
0x0F120220, /* 0212 */
0x0F1202A0, /* 0294 */
0x0F1202F0, /* 02E4 */
0x0F120365, /* 0352 */
0x0F1203A0, /* 0398 */
0x0F1203D4, /* 03D4 */
0x0F1203E8, /* 03E8 */
0x0F1203F7, /* 03F7 */
0x0F120400, /* 0400 */
0x0F120000, /* 0000 */
0x0F12000D, /* 000D */
0x0F12001B, /* 001B */
0x0F120055, /* 0050 */
0x0F1200C0, /* 00B4 */
0x0F120164, /* 0154 */
0x0F1201C0, /* 01B8 */
0x0F120220, /* 0212 */
0x0F1202A0, /* 0294 */
0x0F1202F0, /* 02E4 */
0x0F120365, /* 0352 */
0x0F1203A0, /* 0398 */
0x0F1203D4, /* 03D4 */
0x0F1203E8, /* 03E8 */
0x0F1203F7, /* 03F7 */
0x0F120400, /* 0400 */
0x0F120000, /* 0000 */
0x0F12000D, /* 000D */
0x0F12001B, /* 001B */
0x0F120055, /* 0050 */
0x0F1200C0, /* 00B4 */
0x0F120164, /* 0154 */
0x0F1201C0, /* 01B8 */
0x0F120220, /* 0212 */
0x0F1202A0, /* 0294 */
0x0F1202F0, /* 02E4 */
0x0F120365, /* 0352 */
0x0F1203A0, /* 0398 */
0x0F1203D4, /* 03D4 */
0x0F1203E8, /* 03E8 */
0x0F1203F7, /* 03F7 */
0x0F120400, /* 0400 */
};
static const u32 <API key>[] =
{
/* 0xffff000A, */
0xFCFCD000,
0x00287000,
0x002A04CC,
0x0F120000, /* 0000, 0000, */
0x0F12000D, /* 000D, 000D, */
0x0F12001B, /* 001B, 001B, */
0x0F120064, /* 0064, 0064, */
0x0F1200E5, /* 00E5, 00DC, */
0x0F120190, /* 95, 0195, 0186, */
0x0F1201F5, /* 01F5, 01EA, */
0x0F120260, /* 0265, 024E, */
0x0F1202E5, /* 02F0, 02DA, */
0x0F12032A, /* 30, 0335, 0320, */
0x0F12038A, /* 90, 0395, 038E, */
0x0F1203C5, /* CA, 03D0, 03CA, / */
0x0F1203E0, /* E5, 03E8, 03E8, */
0x0F1203EC, /* F0, 03F2, 03F2, */
0x0F1203F7, /* 03F7, 03F7, */
0x0F120400, /* 0400, 0400, */
0x0F120000, /* 0000, 0000, 0000, */
0x0F12000D, /* 000D, 000D, 000D, */
0x0F12001B, /* 001B, 001B, 001B, */
0x0F120064, /* 0064, 0064, 0064, */
0x0F1200E5, /* 00E5, 00E5, 00DC, */
0x0F120190, /* 0195, 0195, 0186, */
0x0F1201F5, /* 01F5, 01F5, 01EA, */
0x0F120260, /* 0260, 0265, 024E, */
0x0F1202E5, /* 02E5, 02F0, 02DA, */
0x0F12032A, /* 0330, 0335, 0320, */
0x0F12038A, /* 0390, 0395, 038E, */
0x0F1203C5, /* 03CA, 03D0, 03CA, */
0x0F1203E0, /* 03E5, 03E8, 03E8, */
0x0F1203EC, /* 03F0, 03F2, 03F2, */
0x0F1203F7, /* 03F7, 03F7, 03F7, */
0x0F120400, /* 0400, 0400, 0400, */
0x0F120000, /* 0000, 0000, 0000, */
0x0F12000D, /* 000D, 000D, 000D, */
0x0F12001B, /* 001B, 001B, 001B, */
0x0F120064, /* 0064, 0064, 0064, */
0x0F1200E5, /* 00E5, 00E5, 00DC, */
0x0F120190, /* 0195, 0195, 0186, */
0x0F1201F5, /* 01F5, 01F5, 01EA, */
0x0F120260, /* 0260, 0265, 024E, */
0x0F1202E5, /* 02E5, 02F0, 02DA, */
0x0F12032A, /* 0330, 0335, 0320, */
0x0F12038A, /* 0390, 0395, 038E, */
0x0F1203C5, /* 03CA, 03D0, 03CA, */
0x0F1203E0, /* 03E5, 03E8, 03E8, */
0x0F1203EC, /* 03F0, 03F2, 03F2, */
0x0F1203F7, /* 03F7, 03F7, 03F7, */
0x0F120400, /* 0400, 0400, 0400, */
};
static const u32 s5k5bafx_vt_7fps[] =
{
/* Fixed 7fps Mode */
0xFCFCD000,
0x00287000,
0x002A0252,
0x0F120000, /* FrRateQualityType */
0x002A0250,
0x0F120002, /* usFrTimeType */
0x002A0254,
0x0F120535, /* 7fps */
0x0F120000,
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0096, /* delay 150ms */
0x0028D000, /* mipi */
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_vt_10fps[] =
{
/* Fixed 10fps Mode */
0xFCFCD000,
0x00287000,
0x002A0252,
0x0F120000, /* FrRateQualityType */
0x002A0250,
0x0F120002, /* usFrTimeType */
0x002A0254,
0x0F1203E8, /* 10fps */
0x0F120000,
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0096, /* delay 150ms */
0x0028D000, /* mipi */
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_vt_12fps[] =
{
/* Fixed 12fps Mode */
0xFCFCD000,
0x00287000,
0x002A0252,
0x0F120000, /* FrRateQualityType */
0x002A0250,
0x0F120002, /* usFrTimeType */
0x002A0254,
0x0F120341, /* 12fps */
0x0F120000,
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0096, /* delay 150ms */
0x0028D000, /* mipi */
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_vt_15fps[] =
{
/* Fixed 15fps Mode */
0xFCFCD000,
0x00287000,
0x002A0252,
0x0F120000, /* FrRateQualityType */
0x002A0250,
0x0F120002, /* usFrTimeType */
0x002A0254,
0x0F12029A, /* 15fps*/
0x0F120000,
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
0xffff0064, /* delay 100ms */
0x0028D000, /*mipi */
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_pattern_on[] = {
0xffff01f4, /* Delay 500ms*/
0xfcfcd000,
0x00287000,
0x002A07EC,
0x0F12FFF0, /* SARR_uNormBrInDoor[0] */
0x0F12FFF1, /* SARR_uNormBrInDoor[1] */
0x0F12FFF2, /* SARR_uNormBrInDoor[2] */
0x0F12FFF3, /* SARR_uNormBrInDoor[3] */
0x0F12FFF4, /* SARR_uNormBrInDoor[4] */
0x002A07F6,
0x0F12FFF0, /* SARR_uNormBrOutDoor[0] */
0x0F12FFF1, /* SARR_uNormBrOutDoor[1] */
0x0F12FFF2, /* SARR_uNormBrOutDoor[2] */
0x0F12FFF3, /* SARR_uNormBrOutDoor[3] */
0x0F12FFF4, /* SARR_uNormBrOutDoor[4] */
0xfcfcd000,
0x0028d000,
0x002a4100,
0x0f1208a3, /* gas bypass */
0x002a6600,
0x0f120001, /* ccm bypass */
0x002a6800,
0x0f120001, /* gamma bypass */
0x002a4400,
0x0f120001, /* awb bypass */
0x00287000,
0x002A03b6,
0x0F120001,
0x002A03ba,
0x0F120001, /* LEI control */
0x0028D000,
0x002A3118,
0x0F120320, /* Colorbar pattern x size */
0x0F120258, /* Colorbar pattern y size */
0x0F120000,
0x002A3100,
0x0F120002, /* Colorbar pattern */
0xffff0032, /* Delay 50msec */
};
static const u32 <API key>[] = {
0xfcfcd000,
0x00287000,
0x002A07EC,
0x0F12000A, /* SARR_uNormBrInDoor[0] */
0x0F120019, /* SARR_uNormBrInDoor[1] */
0x0F12007D, /* SARR_uNormBrInDoor[2] */
0x0F1202BC, /* SARR_uNormBrInDoor[3] */
0x0F1207D0, /* SARR_uNormBrInDoor[4] */
0x002A07F6,
0x0F12000A, /* SARR_uNormBrOutDoor[0] */
0x0F120019, /* SARR_uNormBrOutDoor[1] */
0x0F12007D, /* SARR_uNormBrOutDoor[2] */
0x0F1202BC, /* SARR_uNormBrOutDoor[3] */
0x0F1207D0, /* SARR_uNormBrOutDoor[4] */
0xfcfcd000,
0x0028d000,
0x002a4100,
0x0f1208a2, /* gas bypass */
0x002a6600,
0x0f120000, /* ccm bypass */
0x002a6800,
0x0f120000, /* gamma bypass */
0x002a4400,
0x0f120000, /* awb bypass */
0x00287000,
0x002A03F8,
0x0F120079,
0xffff012c, /* Delay 300ms */
0x002A03F8,
0x0F12007F,
0x0028D000,
0x002A3118,
0x0F120320, /* Colorbar pattern x size */
0x0F120258, /* Colorbar pattern y size */
0x0F120000,
0x002A3100,
0x0F120000, /* Colorbar pattern */
};
static const u32 s5k5bafx_vflip[] = {
/* Mirror: x-flip Setting */
0xFFFF000A, /* Delay 10msec */
0xFCFCD000,
0x00287000,
0x002A0262,
0x0F120001, /* <API key> [1]x [2]y [3]xy */
0x0F120001, /* <API key> [1]x [2]y [3]xy */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* MIPI */
0x0028D000,
0x002AB0CC,
0x0F12000B,
};
static const u32 s5k5bafx_vflip_off[] = {
/* Mirror: Default Setting */
0xFFFF000A, /* Delay 10msec */
0xFCFCD000,
0x00287000,
0x002A0262,
0x0F120000, /* <API key> [1]x [2]y [3]xy */
0x0F120000, /* <API key> [1]x [2]y [3]xy */
/* Apply preview config */
0x002A021C,
0x0F120000, /* <API key> */
0x002A0220,
0x0F120001, /* <API key> */
0x002A01F8,
0x0F120001, /* <API key> */
0x002A021E,
0x0F120001, /* <API key> */
0x002A01F0,
0x0F120001, /* <API key> */
0x0F120001, /* <API key> */
/* Set MIPI */
0x002A03AC,
0x0F120000, /* REG_TC_FLS_Mode */
0x002A03F2,
0x0F120001, /* <API key> */
0x0F1200C3, /* <API key> */
0x0F120001, /* <API key> */
/* MIPI */
0x0028D000,
0x002AB0CC,
0x0F12000B,
};
#endif /* <API key> */
|
#include <stdlib.h>
#include <unistd.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <limits.h>
#include "types.h"
#include "fs.h"
#include "logger.h"
#include "vzerror.h"
/* Check if CT private area is mounted
* Returns:
* 1: mounted
* 0: not mounted
* -1: error getting status
*/
int vps_is_mounted(const char *root, const char *private)
{
struct stat st1, st2;
char parent[PATH_MAX];
if (!root || !private)
return -1;
if (stat(root, &st1)) {
logger(-1, errno, "stat(%s)", root);
return -1;
}
snprintf(parent, sizeof(parent), "%s/..", root);
if (stat(parent, &st2)) {
logger(-1, errno, "stat(%s)", parent);
return -1;
}
/* Check for real mount (simfs or ploop) */
if (st1.st_dev != st2.st_dev)
return 1;
/* Check for bind mount (upstream case) */
if (stat(private, &st2)) {
/* return false when private area does not exist */
if (errno == ENOENT)
return 0;
logger(-1, errno, "stat(%s)", private);
return -1;
}
return (st1.st_dev == st2.st_dev) && (st1.st_ino == st2.st_ino);
}
static char *fs_name = "simfs";
const char *vz_fs_get_name()
{
return fs_name;
}
int vz_mount(fs_param *fs, int flags)
{
int mntopt = fs->flags | flags;
const int remount = flags & MS_REMOUNT;
logger(2, 0, "Mounting root: %s %s", fs->root, fs->private);
if (mount(fs->private, fs->root, "simfs", mntopt,
remount ? "" : fs->private) < 0)
{
logger(-1, errno, "Can't mount: %s %s", fs->root, fs->private);
if (errno == ENODEV)
logger(-1, 0, "Kernel lacks simfs support. Please "
"compile it in, or load simfs module.");
return VZ_FS_CANTMOUNT;
}
return 0;
}
|
<?php
$type='TrueTypeUnicode';
$name='FreeSansOblique';
$desc=array('Ascent'=>900,'Descent'=>-300,'CapHeight'=>22,'Flags'=>96,'FontBBox'=>'[-620 -431 1459 1141]','ItalicAngle'=>-12,'StemV'=>70,'MissingWidth'=>600);
$up=-176;
$ut=50;
$dw=600;
$cw=array(
32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,
42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,
52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,
62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,
72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778,80=>667,81=>778,
82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,
92=>278,93=>278,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500,100=>556,101=>556,
102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>833,110=>556,111=>556,
112=>556,113=>556,114=>333,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,
122=>500,123=>334,124=>260,125=>334,126=>584,8364=>556,8218=>222,402=>278,8222=>333,8230=>1000,
8224=>556,8225=>556,710=>333,8240=>1000,352=>667,8249=>333,338=>1000,381=>611,8216=>222,8217=>222,
8220=>333,8221=>333,8226=>350,8211=>556,8212=>1000,732=>333,8482=>1000,353=>500,8250=>333,339=>944,
382=>500,376=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,
168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>606,177=>584,
178=>352,179=>352,180=>333,181=>556,182=>537,183=>278,184=>333,185=>250,186=>365,187=>556,
188=>947,189=>947,190=>947,191=>611,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,
198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,
208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,
218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,
228=>556,229=>556,230=>889,231=>500,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,
238=>278,239=>278,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,
248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>556,255=>500,256=>667,257=>556,
258=>667,259=>556,260=>667,261=>556,262=>722,263=>500,264=>722,265=>500,266=>722,267=>500,
268=>722,269=>500,270=>722,271=>722,272=>722,273=>556,274=>667,275=>556,276=>667,277=>556,
278=>667,279=>556,280=>667,281=>556,282=>667,283=>556,284=>778,285=>556,286=>778,287=>556,
288=>778,289=>556,290=>778,291=>527,292=>722,293=>556,294=>722,295=>556,296=>278,297=>278,
298=>278,299=>278,300=>278,301=>278,302=>278,303=>222,304=>278,305=>278,306=>742,307=>362,
308=>500,309=>222,310=>667,311=>500,312=>510,313=>556,314=>222,315=>556,316=>222,317=>556,
318=>387,319=>556,320=>500,321=>556,322=>222,323=>722,324=>556,325=>722,326=>556,327=>722,
328=>556,329=>722,330=>722,331=>556,332=>778,333=>556,334=>778,335=>556,336=>778,337=>556,
340=>722,341=>333,342=>722,343=>333,344=>722,345=>333,346=>667,347=>500,348=>667,349=>500,
350=>667,351=>500,354=>611,355=>278,356=>611,357=>443,358=>611,359=>278,360=>722,361=>556,
362=>722,363=>556,364=>722,365=>556,366=>722,367=>556,368=>722,369=>556,370=>722,371=>556,
372=>944,373=>722,374=>667,375=>500,377=>611,378=>500,379=>611,380=>500,383=>278,384=>556,
385=>854,386=>667,387=>556,388=>667,389=>556,390=>722,391=>722,392=>500,393=>722,394=>899,
395=>667,396=>556,397=>556,398=>667,399=>778,400=>667,401=>611,403=>778,404=>667,405=>889,
406=>278,407=>333,408=>741,409=>500,410=>333,411=>560,412=>833,413=>722,414=>556,415=>778,
416=>778,417=>556,420=>842,421=>556,423=>667,424=>500,425=>611,426=>333,427=>278,428=>611,
429=>278,430=>611,431=>722,432=>556,433=>720,435=>788,436=>616,437=>611,438=>500,439=>611,
440=>611,441=>500,448=>260,449=>520,450=>584,451=>278,452=>1311,453=>1208,454=>1056,455=>1056,
456=>778,457=>444,458=>1158,459=>944,460=>778,461=>667,462=>556,463=>278,464=>278,465=>778,
466=>556,467=>722,468=>556,469=>722,470=>556,471=>722,472=>556,473=>722,474=>556,475=>722,
476=>556,477=>556,478=>667,479=>556,480=>667,481=>556,482=>1000,483=>889,486=>778,487=>556,
488=>667,489=>500,490=>778,491=>556,492=>778,493=>556,494=>611,495=>500,496=>222,497=>1333,
498=>1222,499=>1056,500=>778,501=>556,504=>722,505=>556,506=>667,507=>556,508=>1000,509=>889,
510=>778,511=>611,512=>667,513=>556,514=>667,515=>556,516=>667,517=>556,518=>667,519=>556,
520=>278,521=>278,522=>278,523=>278,524=>778,525=>556,526=>778,527=>556,528=>722,529=>333,
530=>722,531=>333,532=>722,533=>556,534=>722,535=>556,536=>667,537=>500,538=>611,539=>278,
542=>722,543=>556,550=>667,551=>556,552=>667,553=>556,554=>778,555=>556,556=>778,557=>556,
558=>778,559=>556,560=>778,561=>556,562=>667,563=>500,592=>556,593=>556,594=>659,595=>556,
596=>500,598=>556,599=>556,600=>556,601=>556,603=>500,604=>500,606=>500,607=>222,608=>556,
609=>556,610=>546,611=>621,613=>556,614=>556,615=>556,616=>222,617=>222,618=>278,620=>1000,
621=>222,622=>1000,623=>833,624=>833,625=>833,626=>556,627=>556,628=>560,629=>556,630=>778,
632=>741,633=>333,634=>333,635=>333,636=>333,637=>333,638=>384,639=>369,640=>546,641=>546,
642=>500,643=>278,644=>278,645=>278,647=>278,648=>278,649=>556,650=>626,651=>539,652=>500,
653=>722,654=>500,656=>500,658=>500,660=>556,661=>556,662=>556,664=>556,665=>522,667=>546,
668=>500,670=>500,671=>430,672=>556,711=>333,713=>333,714=>333,715=>333,728=>333,729=>333,
730=>333,731=>333,733=>333,768=>0,769=>0,770=>0,771=>0,772=>0,774=>0,775=>0,
776=>0,778=>0,779=>0,783=>0,785=>0,787=>0,788=>0,884=>199,885=>199,890=>332,
894=>278,900=>291,901=>624,902=>659,903=>358,904=>870,905=>870,906=>315,908=>876,910=>903,
911=>882,912=>286,913=>684,914=>628,915=>582,916=>684,917=>650,918=>628,919=>683,920=>750,
921=>236,922=>684,923=>684,924=>800,925=>654,926=>630,927=>750,928=>721,929=>638,931=>628,
932=>628,933=>684,934=>717,935=>723,936=>745,937=>720,938=>236,939=>684,940=>593,941=>519,
942=>595,943=>271,944=>515,945=>596,946=>516,947=>531,948=>560,949=>510,950=>462,951=>526,
952=>526,953=>286,954=>516,955=>560,956=>607,957=>504,958=>470,959=>550,960=>661,961=>566,
962=>535,963=>616,964=>532,965=>515,966=>741,967=>572,968=>662,969=>740,970=>286,971=>515,
972=>535,973=>503,974=>725,981=>741,1024=>667,1025=>667,1026=>766,1027=>611,1028=>722,1029=>667,
1030=>278,1031=>278,1032=>500,1033=>968,1034=>1173,1035=>766,1036=>664,1037=>731,1038=>530,1039=>722,
1040=>667,1041=>639,1042=>667,1043=>611,1044=>816,1045=>667,1046=>897,1047=>652,1048=>731,1049=>731,
1050=>664,1051=>646,1052=>833,1053=>722,1054=>778,1055=>722,1056=>667,1057=>722,1058=>611,1059=>530,
1060=>891,1061=>667,1062=>722,1063=>642,1064=>836,1065=>837,1066=>866,1067=>886,1068=>698,1069=>717,
1070=>1079,1071=>691,1072=>556,1073=>556,1074=>538,1075=>430,1076=>640,1077=>556,1078=>818,1079=>495,
1080=>560,1081=>560,1082=>510,1083=>556,1084=>621,1085=>561,1086=>556,1087=>560,1088=>556,1089=>500,
1090=>400,1091=>500,1092=>916,1093=>500,1094=>560,1095=>497,1096=>695,1097=>695,1098=>640,1099=>734,
1100=>523,1101=>534,1102=>788,1103=>564,1104=>556,1105=>556,1106=>568,1107=>430,1108=>500,1109=>500,
1110=>222,1111=>278,1112=>222,1113=>840,1114=>850,1115=>568,1116=>510,1117=>560,1118=>500,1119=>560,
1164=>698,1165=>523,1166=>667,1167=>556,1168=>611,1169=>430,1170=>611,1171=>430,1172=>611,1173=>430,
1174=>897,1175=>818,1176=>652,1177=>495,1178=>664,1179=>510,1180=>664,1181=>510,1182=>664,1183=>510,
1184=>704,1185=>618,1186=>722,1187=>561,1188=>1010,1189=>753,1190=>1061,1191=>803,1194=>722,1195=>500,
1196=>611,1197=>400,1198=>667,1199=>667,1200=>667,1201=>667,1202=>665,1203=>496,1204=>879,1205=>629,
1206=>642,1207=>497,1208=>642,1209=>497,1210=>642,1211=>497,1212=>722,1213=>605,1214=>722,1215=>605,
1216=>278,1217=>897,1218=>818,1219=>664,1220=>510,1223=>722,1224=>561,1227=>642,1228=>497,1232=>667,
1233=>556,1234=>667,1235=>556,1236=>1000,1237=>889,1238=>667,1239=>556,1240=>722,1241=>495,1242=>722,
1243=>495,1244=>897,1245=>818,1246=>652,1247=>495,1248=>652,1249=>495,1250=>731,1251=>560,1252=>731,
1253=>560,1254=>778,1255=>556,1256=>780,1257=>554,1258=>780,1259=>554,1260=>717,1261=>534,1262=>530,
1263=>500,1264=>530,1265=>500,1266=>530,1267=>500,1268=>642,1269=>497,1272=>886,1273=>734,1329=>722,
1330=>705,1331=>774,1332=>754,1333=>722,1334=>751,1335=>485,1336=>722,1337=>782,1338=>655,1339=>699,
1340=>417,1341=>853,1342=>791,1343=>711,1344=>588,1345=>663,1346=>665,1347=>665,1348=>756,1349=>623,
1350=>773,1351=>603,1352=>722,1353=>648,1354=>722,1355=>751,1356=>750,1357=>722,1358=>748,1359=>667,
1360=>699,1361=>623,1362=>417,1363=>785,1364=>638,1365=>778,1366=>716,1370=>222,1371=>133,1372=>325,
1373=>333,1374=>344,1377=>833,1378=>556,1379=>572,1380=>581,1381=>550,1382=>588,1383=>448,1384=>556,
1385=>568,1386=>582,1387=>545,1388=>301,1389=>799,1390=>556,1391=>554,1392=>533,1393=>548,1394=>552,
1395=>552,1396=>544,1397=>222,1398=>544,1399=>456,1400=>556,1401=>390,1402=>833,1403=>509,1404=>547,
1405=>533,1406=>610,1407=>887,1408=>556,1409=>545,1410=>352,1411=>853,1412=>588,1413=>579,1414=>690,
1415=>545,1417=>278,1418=>367,1456=>70,1457=>335,1458=>329,1459=>329,1460=>70,1461=>200,1462=>200,
1463=>188,1464=>188,1465=>70,1467=>329,1468=>70,1469=>70,1470=>488,1471=>200,1472=>212,1473=>0,
1474=>0,1475=>278,1476=>70,1488=>640,1489=>591,1490=>466,1491=>598,1492=>622,1493=>212,1494=>351,
1495=>623,1496=>608,1497=>200,1498=>526,1499=>550,1500=>600,1501=>623,1502=>621,1503=>212,1504=>378,
1505=>607,1506=>587,1507=>575,1508=>568,1509=>540,1510=>590,1511=>606,1512=>547,1513=>776,1514=>687,
1520=>424,1521=>412,1522=>400,1523=>184,1524=>344,2433=>0,2434=>300,2435=>264,2437=>594,2438=>790,
2439=>469,2440=>513,2441=>520,2442=>549,2443=>594,2444=>481,2447=>580,2448=>627,2451=>540,2452=>613,
2453=>570,2454=>467,2455=>471,2456=>428,2457=>483,2458=>408,2459=>509,2460=>591,2461=>563,2462=>771,
2463=>381,2464=>404,2465=>522,2466=>408,2467=>450,2468=>543,2469=>477,2470=>418,2471=>433,2472=>445,
2474=>499,2475=>584,2476=>377,2477=>555,2478=>448,2479=>423,2480=>390,2482=>498,2486=>498,2487=>425,
2488=>495,2489=>440,2492=>22,2493=>440,2494=>193,2495=>189,2496=>180,2497=>0,2498=>0,2499=>0,
2500=>0,2503=>252,2504=>243,2507=>889,2508=>865,2509=>0,2510=>356,2519=>219,2524=>523,2525=>408,
2527=>428,2528=>594,2529=>481,2530=>0,2531=>-199,2534=>500,2535=>437,2536=>479,2537=>530,2538=>497,
2539=>500,2540=>482,2541=>503,2542=>517,2543=>481,2544=>377,2545=>377,2546=>429,2547=>383,2548=>429,
2549=>478,2550=>545,2551=>158,2552=>365,2553=>280,2554=>357,4256=>587,4257=>620,4258=>642,4259=>815,
4260=>600,4261=>595,4262=>799,4263=>893,4264=>622,4265=>597,4266=>939,4267=>602,4268=>603,4269=>790,
4270=>587,4271=>623,4272=>799,4273=>601,4274=>792,4275=>724,4276=>847,4277=>599,4278=>812,4279=>603,
4280=>653,4281=>590,4282=>754,4283=>596,4284=>653,4285=>651,4286=>596,4287=>888,4288=>593,4304=>436,
4305=>491,4306=>528,4307=>692,4308=>447,4309=>447,4310=>628,4311=>734,4312=>449,4313=>445,4314=>843,
4315=>449,4316=>449,4317=>682,4318=>449,4319=>480,4320=>682,4321=>468,4322=>710,4323=>623,4324=>697,
4325=>447,4326=>702,4327=>447,4328=>470,4329=>440,4330=>632,4331=>449,4332=>470,4333=>536,4334=>449,
4335=>656,4336=>474,4337=>630,4338=>394,4339=>419,4340=>422,4341=>436,7936=>596,7937=>596,7938=>596,
7939=>596,7940=>596,7941=>596,7942=>596,7943=>596,7944=>684,7945=>684,7946=>684,7947=>684,7948=>684,
7949=>684,7950=>684,7951=>684,7952=>510,7953=>510,7954=>510,7955=>510,7956=>510,7957=>510,7960=>650,
7961=>650,7962=>650,7963=>650,7964=>650,7965=>650,7968=>526,7969=>526,7970=>526,7971=>526,7972=>526,
7973=>526,7974=>526,7975=>526,7976=>683,7977=>683,7978=>683,7979=>683,7980=>683,7981=>683,7982=>683,
7983=>683,7984=>286,7985=>286,7986=>286,7987=>286,7988=>286,7989=>286,7990=>286,7991=>286,7992=>236,
7993=>236,7994=>236,7995=>236,7996=>236,7997=>236,7998=>236,7999=>236,8000=>550,8001=>550,8002=>550,
8003=>550,8004=>550,8005=>550,8008=>750,8009=>750,8010=>750,8011=>750,8012=>750,8013=>750,8016=>515,
8017=>515,8018=>515,8019=>515,8020=>515,8021=>515,8022=>515,8023=>515,8025=>684,8027=>684,8029=>684,
8031=>684,8032=>740,8033=>740,8034=>740,8035=>740,8036=>740,8037=>740,8038=>740,8039=>740,8040=>720,
8041=>720,8042=>720,8043=>720,8044=>720,8045=>720,8046=>720,8047=>720,8048=>596,8049=>596,8050=>510,
8051=>510,8052=>526,8053=>526,8054=>286,8055=>286,8056=>550,8057=>550,8058=>515,8059=>515,8060=>740,
8061=>740,8064=>596,8065=>596,8066=>596,8067=>596,8068=>596,8069=>596,8070=>596,8071=>596,8072=>900,
8073=>900,8074=>900,8075=>900,8076=>900,8077=>900,8078=>900,8079=>900,8080=>526,8081=>526,8082=>526,
8083=>526,8084=>526,8085=>526,8086=>526,8087=>526,8088=>899,8089=>899,8090=>899,8091=>899,8092=>899,
8093=>899,8094=>899,8095=>899,8096=>740,8097=>740,8098=>740,8099=>740,8100=>740,8101=>740,8102=>740,
8103=>740,8104=>936,8105=>936,8106=>936,8107=>936,8108=>936,8109=>936,8110=>936,8111=>936,8112=>596,
8113=>596,8114=>596,8115=>596,8116=>593,8118=>596,8119=>596,8120=>684,8121=>684,8122=>684,8123=>684,
8124=>900,8125=>278,8126=>201,8127=>147,8128=>278,8129=>333,8130=>526,8131=>526,8132=>595,8134=>526,
8135=>526,8136=>650,8137=>650,8138=>683,8139=>683,8140=>899,8141=>602,8142=>601,8143=>333,8144=>286,
8145=>286,8146=>286,8147=>286,8150=>286,8151=>286,8152=>236,8153=>236,8154=>236,8155=>236,8157=>434,
8158=>433,8159=>333,8160=>515,8161=>515,8162=>515,8163=>515,8164=>566,8165=>566,8166=>515,8167=>515,
8168=>684,8169=>684,8170=>684,8171=>684,8172=>638,8173=>333,8174=>624,8175=>303,8178=>740,8179=>740,
8180=>725,8182=>740,8183=>740,8184=>750,8185=>750,8186=>720,8187=>720,8188=>936,8189=>333,8190=>159,
8204=>0,8205=>0,8208=>333,8209=>333,8210=>556,8213=>1000,8260=>167,8304=>351,8305=>351,8308=>351,
8309=>351,8310=>351,8311=>351,8312=>351,8313=>351,8320=>351,8321=>251,8322=>351,8323=>351,8324=>351,
8325=>353,8326=>351,8327=>351,8328=>351,8329=>351,8359=>1445,8360=>1222,8362=>869,8373=>640,8486=>720,
8531=>869,8532=>869,8533=>869,8534=>869,8535=>869,8536=>869,8537=>869,8538=>869,8539=>869,8540=>869,
8541=>869,8542=>869,8543=>869,8592=>987,8593=>603,8594=>987,8595=>603,8596=>1042,8597=>1042,8706=>490,
8710=>712,8721=>711,8722=>584,8725=>947,8730=>542,8800=>584,8804=>584,8805=>584,9674=>489,9834=>555,
63033=>556,63034=>556,63035=>556,63036=>556,63037=>556,63038=>556,63039=>556,63040=>556,63041=>556,63166=>222,
63171=>333,63196=>556,64256=>556,64257=>500,64258=>500,64259=>778,64260=>778,64261=>556,64262=>778,64285=>200,
64286=>305,64287=>400,64288=>587,64289=>890,64290=>848,64291=>872,64292=>800,64293=>850,64294=>873,64295=>797,
64296=>937,64297=>584,64298=>776,64299=>776,64300=>776,64301=>776,64302=>640,64303=>640,64304=>640,64305=>591,
64306=>466,64307=>598,64308=>622,64309=>262,64310=>351,64312=>608,64313=>270,64314=>526,64315=>550,64316=>600,
64318=>621,64320=>378,64321=>607,64323=>575,64324=>568,64326=>590,64327=>606,64328=>547,64329=>776,64330=>687,
64331=>212,64332=>591,64333=>550,64334=>568,64335=>640,65533=>788);
$enc='';
$diff='';
$file='freesansi.z';
$ctg='freesansi.ctg.z';
$originalsize=248072;
?>
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/kmemleak.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/smp.h>
#include <linux/llist.h>
#include <linux/list_sort.h>
#include <linux/cpu.h>
#include <linux/cache.h>
#include <linux/sched/sysctl.h>
#include <linux/sched/topology.h>
#include <linux/sched/signal.h>
#include <linux/delay.h>
#include <linux/crash_dump.h>
#include <linux/prefetch.h>
#include <trace/events/block.h>
#include <linux/blk-mq.h>
#include "blk.h"
#include "blk-mq.h"
#include "blk-mq-tag.h"
#include "blk-stat.h"
#include "blk-wbt.h"
#include "blk-mq-sched.h"
static DEFINE_MUTEX(all_q_mutex);
static LIST_HEAD(all_q_list);
/*
* Check if any of the ctx's have pending work in this hardware queue
*/
bool <API key>(struct blk_mq_hw_ctx *hctx)
{
return sbitmap_any_bit_set(&hctx->ctx_map) ||
!list_empty_careful(&hctx->dispatch) ||
<API key>(hctx);
}
/*
* Mark this ctx as having pending work in this hardware queue
*/
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct blk_mq_ctx *ctx)
{
if (!sbitmap_test_bit(&hctx->ctx_map, ctx->index_hw))
sbitmap_set_bit(&hctx->ctx_map, ctx->index_hw);
}
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct blk_mq_ctx *ctx)
{
sbitmap_clear_bit(&hctx->ctx_map, ctx->index_hw);
}
void <API key>(struct request_queue *q)
{
int freeze_depth;
freeze_depth = atomic_inc_return(&q->mq_freeze_depth);
if (freeze_depth == 1) {
percpu_ref_kill(&q->q_usage_counter);
<API key>(q, false);
}
}
EXPORT_SYMBOL_GPL(<API key>);
void <API key>(struct request_queue *q)
{
wait_event(q->mq_freeze_wq, percpu_ref_is_zero(&q->q_usage_counter));
}
EXPORT_SYMBOL_GPL(<API key>);
int <API key>(struct request_queue *q,
unsigned long timeout)
{
return wait_event_timeout(q->mq_freeze_wq,
percpu_ref_is_zero(&q->q_usage_counter),
timeout);
}
EXPORT_SYMBOL_GPL(<API key>);
/*
* Guarantee no request is in use, so we can change any data structure of
* the queue afterward.
*/
void blk_freeze_queue(struct request_queue *q)
{
/*
* In the !blk_mq case we are only calling this to kill the
* q_usage_counter, otherwise this increases the freeze depth
* and waits for it to return to zero. For this reason there is
* no blk_unfreeze_queue(), and blk_freeze_queue() is not
* exported to drivers as the only user for unfreeze is blk_mq.
*/
<API key>(q);
<API key>(q);
}
void blk_mq_freeze_queue(struct request_queue *q)
{
/*
* ...just an alias to keep freeze and unfreeze actions balanced
* in the blk_mq_* namespace
*/
blk_freeze_queue(q);
}
EXPORT_SYMBOL_GPL(blk_mq_freeze_queue);
void <API key>(struct request_queue *q)
{
int freeze_depth;
freeze_depth = atomic_dec_return(&q->mq_freeze_depth);
WARN_ON_ONCE(freeze_depth < 0);
if (!freeze_depth) {
percpu_ref_reinit(&q->q_usage_counter);
wake_up_all(&q->mq_freeze_wq);
}
}
EXPORT_SYMBOL_GPL(<API key>);
/**
* <API key>() - wait until all ongoing queue_rq calls have finished
* @q: request queue.
*
* Note: this function does not prevent that the struct request end_io()
* callback function is invoked. Additionally, it is not prevented that
* new queue_rq() calls occur unless the queue has been stopped first.
*/
void <API key>(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
unsigned int i;
bool rcu = false;
<API key>(q);
<API key>(q, hctx, i) {
if (hctx->flags & BLK_MQ_F_BLOCKING)
synchronize_srcu(&hctx->queue_rq_srcu);
else
rcu = true;
}
if (rcu)
synchronize_rcu();
}
EXPORT_SYMBOL_GPL(<API key>);
void blk_mq_wake_waiters(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
unsigned int i;
<API key>(q, hctx, i)
if (<API key>(hctx))
<API key>(hctx->tags, true);
/*
* If we are called because the queue has now been marked as
* dying, we need to ensure that processes currently waiting on
* the queue are notified as well.
*/
wake_up_all(&q->mq_freeze_wq);
}
bool blk_mq_can_queue(struct blk_mq_hw_ctx *hctx)
{
return <API key>(hctx->tags);
}
EXPORT_SYMBOL(blk_mq_can_queue);
void blk_mq_rq_ctx_init(struct request_queue *q, struct blk_mq_ctx *ctx,
struct request *rq, unsigned int op)
{
INIT_LIST_HEAD(&rq->queuelist);
/* csd/requeue_work/fifo_time is initialized before use */
rq->q = q;
rq->mq_ctx = ctx;
rq->cmd_flags = op;
if (blk_queue_io_stat(q))
rq->rq_flags |= RQF_IO_STAT;
/* do not touch atomic flags, it needs atomic ops against the timer */
rq->cpu = -1;
INIT_HLIST_NODE(&rq->hash);
RB_CLEAR_NODE(&rq->rb_node);
rq->rq_disk = NULL;
rq->part = NULL;
rq->start_time = jiffies;
#ifdef CONFIG_BLK_CGROUP
rq->rl = NULL;
set_start_time_ns(rq);
rq->io_start_time_ns = 0;
#endif
rq->nr_phys_segments = 0;
#if defined(<API key>)
rq-><API key> = 0;
#endif
rq->special = NULL;
/* tag was already set */
rq->errors = 0;
rq->extra_len = 0;
INIT_LIST_HEAD(&rq->timeout_list);
rq->timeout = 0;
rq->end_io = NULL;
rq->end_io_data = NULL;
rq->next_rq = NULL;
ctx->rq_dispatched[op_is_sync(op)]++;
}
EXPORT_SYMBOL_GPL(blk_mq_rq_ctx_init);
struct request *<API key>(struct blk_mq_alloc_data *data,
unsigned int op)
{
struct request *rq;
unsigned int tag;
tag = blk_mq_get_tag(data);
if (tag != BLK_MQ_TAG_FAIL) {
struct blk_mq_tags *tags = <API key>(data);
rq = tags->static_rqs[tag];
if (data->flags & BLK_MQ_REQ_INTERNAL) {
rq->tag = -1;
rq->internal_tag = tag;
} else {
if (blk_mq_tag_busy(data->hctx)) {
rq->rq_flags = RQF_MQ_INFLIGHT;
atomic_inc(&data->hctx->nr_active);
}
rq->tag = tag;
rq->internal_tag = -1;
data->hctx->tags->rqs[rq->tag] = rq;
}
blk_mq_rq_ctx_init(data->q, data->ctx, rq, op);
return rq;
}
return NULL;
}
EXPORT_SYMBOL_GPL(<API key>);
struct request *<API key>(struct request_queue *q, int rw,
unsigned int flags)
{
struct blk_mq_alloc_data alloc_data = { .flags = flags };
struct request *rq;
int ret;
ret = blk_queue_enter(q, flags & BLK_MQ_REQ_NOWAIT);
if (ret)
return ERR_PTR(ret);
rq = <API key>(q, NULL, rw, &alloc_data);
blk_mq_put_ctx(alloc_data.ctx);
blk_queue_exit(q);
if (!rq)
return ERR_PTR(-EWOULDBLOCK);
rq->__data_len = 0;
rq->__sector = (sector_t) -1;
rq->bio = rq->biotail = NULL;
return rq;
}
EXPORT_SYMBOL(<API key>);
struct request *<API key>(struct request_queue *q, int rw,
unsigned int flags, unsigned int hctx_idx)
{
struct blk_mq_alloc_data alloc_data = { .flags = flags };
struct request *rq;
unsigned int cpu;
int ret;
/*
* If the tag allocator sleeps we could get an allocation for a
* different hardware context. No need to complicate the low level
* allocator for this for the rare use case of a command tied to
* a specific queue.
*/
if (WARN_ON_ONCE(!(flags & BLK_MQ_REQ_NOWAIT)))
return ERR_PTR(-EINVAL);
if (hctx_idx >= q->nr_hw_queues)
return ERR_PTR(-EIO);
ret = blk_queue_enter(q, true);
if (ret)
return ERR_PTR(ret);
/*
* Check if the hardware context is actually mapped to anything.
* If not tell the caller that it should skip this queue.
*/
alloc_data.hctx = q->queue_hw_ctx[hctx_idx];
if (!<API key>(alloc_data.hctx)) {
blk_queue_exit(q);
return ERR_PTR(-EXDEV);
}
cpu = cpumask_first(alloc_data.hctx->cpumask);
alloc_data.ctx = __blk_mq_get_ctx(q, cpu);
rq = <API key>(q, NULL, rw, &alloc_data);
blk_mq_put_ctx(alloc_data.ctx);
blk_queue_exit(q);
if (!rq)
return ERR_PTR(-EWOULDBLOCK);
return rq;
}
EXPORT_SYMBOL_GPL(<API key>);
void <API key>(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx,
struct request *rq)
{
const int sched_tag = rq->internal_tag;
struct request_queue *q = rq->q;
if (rq->rq_flags & RQF_MQ_INFLIGHT)
atomic_dec(&hctx->nr_active);
wbt_done(q->rq_wb, &rq->issue_stat);
rq->rq_flags = 0;
clear_bit(REQ_ATOM_STARTED, &rq->atomic_flags);
clear_bit(REQ_ATOM_POLL_SLEPT, &rq->atomic_flags);
if (rq->tag != -1)
blk_mq_put_tag(hctx, hctx->tags, ctx, rq->tag);
if (sched_tag != -1)
<API key>(hctx, rq);
<API key>(hctx);
blk_queue_exit(q);
}
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct request *rq)
{
struct blk_mq_ctx *ctx = rq->mq_ctx;
ctx->rq_completed[rq_is_sync(rq)]++;
<API key>(hctx, ctx, rq);
}
void <API key>(struct request *rq)
{
<API key>(blk_mq_map_queue(rq->q, rq->mq_ctx->cpu), rq);
}
void blk_mq_free_request(struct request *rq)
{
<API key>(rq);
}
EXPORT_SYMBOL_GPL(blk_mq_free_request);
inline void <API key>(struct request *rq, int error)
{
blk_account_io_done(rq);
if (rq->end_io) {
wbt_done(rq->q->rq_wb, &rq->issue_stat);
rq->end_io(rq, error);
} else {
if (unlikely(blk_bidi_rq(rq)))
blk_mq_free_request(rq->next_rq);
blk_mq_free_request(rq);
}
}
EXPORT_SYMBOL(<API key>);
void blk_mq_end_request(struct request *rq, int error)
{
if (blk_update_request(rq, error, blk_rq_bytes(rq)))
BUG();
<API key>(rq, error);
}
EXPORT_SYMBOL(blk_mq_end_request);
static void <API key>(void *data)
{
struct request *rq = data;
rq->q->softirq_done_fn(rq);
}
static void <API key>(struct request *rq)
{
struct blk_mq_ctx *ctx = rq->mq_ctx;
bool shared = false;
int cpu;
if (!test_bit(<API key>, &rq->q->queue_flags)) {
rq->q->softirq_done_fn(rq);
return;
}
cpu = get_cpu();
if (!test_bit(<API key>, &rq->q->queue_flags))
shared = cpus_share_cache(cpu, ctx->cpu);
if (cpu != ctx->cpu && !shared && cpu_online(ctx->cpu)) {
rq->csd.func = <API key>;
rq->csd.info = rq;
rq->csd.flags = 0;
<API key>(ctx->cpu, &rq->csd);
} else {
rq->q->softirq_done_fn(rq);
}
put_cpu();
}
static void blk_mq_stat_add(struct request *rq)
{
if (rq->rq_flags & RQF_STATS) {
/*
* We could rq->mq_ctx here, but there's less of a risk
* of races if we have the completion event add the stats
* to the local software queue.
*/
struct blk_mq_ctx *ctx;
ctx = __blk_mq_get_ctx(rq->q, <API key>());
blk_stat_add(&ctx->stat[rq_data_dir(rq)], rq);
}
}
static void <API key>(struct request *rq)
{
struct request_queue *q = rq->q;
blk_mq_stat_add(rq);
if (!q->softirq_done_fn)
blk_mq_end_request(rq, rq->errors);
else
<API key>(rq);
}
/**
* <API key> - end I/O on a request
* @rq: the request being processed
*
* Description:
* Ends all I/O on a request. It does not handle partial completions.
* The actual completion happens out-of-order, through a IPI handler.
**/
void <API key>(struct request *rq, int error)
{
struct request_queue *q = rq->q;
if (unlikely(<API key>(q)))
return;
if (!<API key>(rq)) {
rq->errors = error;
<API key>(rq);
}
}
EXPORT_SYMBOL(<API key>);
int <API key>(struct request *rq)
{
return test_bit(REQ_ATOM_STARTED, &rq->atomic_flags);
}
EXPORT_SYMBOL_GPL(<API key>);
void <API key>(struct request *rq)
{
struct request_queue *q = rq->q;
<API key>(rq);
<API key>(q, rq);
if (test_bit(QUEUE_FLAG_STATS, &q->queue_flags)) {
<API key>(&rq->issue_stat);
rq->rq_flags |= RQF_STATS;
wbt_issue(q->rq_wb, &rq->issue_stat);
}
blk_add_timer(rq);
/*
* Ensure that ->deadline is visible before set the started
* flag and clear the completed flag.
*/
<API key>();
/*
* Mark us as started and clear complete. Complete might have been
* set if requeue raced with timeout, which then marked it as
* complete. So be sure to clear complete again when we start
* the request, otherwise we'll ignore the completion event.
*/
if (!test_bit(REQ_ATOM_STARTED, &rq->atomic_flags))
set_bit(REQ_ATOM_STARTED, &rq->atomic_flags);
if (test_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags))
clear_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags);
if (q->dma_drain_size && blk_rq_bytes(rq)) {
/*
* Make sure space for the drain appears. We know we can do
* this because max_hw_segments has been adjusted to be one
* fewer than the device can handle.
*/
rq->nr_phys_segments++;
}
}
EXPORT_SYMBOL(<API key>);
static void <API key>(struct request *rq)
{
struct request_queue *q = rq->q;
<API key>(q, rq);
wbt_requeue(q->rq_wb, &rq->issue_stat);
<API key>(rq);
if (test_and_clear_bit(REQ_ATOM_STARTED, &rq->atomic_flags)) {
if (q->dma_drain_size && blk_rq_bytes(rq))
rq->nr_phys_segments
}
}
void <API key>(struct request *rq, bool kick_requeue_list)
{
<API key>(rq);
BUG_ON(blk_queued_rq(rq));
<API key>(rq, true, kick_requeue_list);
}
EXPORT_SYMBOL(<API key>);
static void blk_mq_requeue_work(struct work_struct *work)
{
struct request_queue *q =
container_of(work, struct request_queue, requeue_work.work);
LIST_HEAD(rq_list);
struct request *rq, *next;
unsigned long flags;
spin_lock_irqsave(&q->requeue_lock, flags);
list_splice_init(&q->requeue_list, &rq_list);
<API key>(&q->requeue_lock, flags);
<API key>(rq, next, &rq_list, queuelist) {
if (!(rq->rq_flags & RQF_SOFTBARRIER))
continue;
rq->rq_flags &= ~RQF_SOFTBARRIER;
list_del_init(&rq->queuelist);
<API key>(rq, true, false, false, true);
}
while (!list_empty(&rq_list)) {
rq = list_entry(rq_list.next, struct request, queuelist);
list_del_init(&rq->queuelist);
<API key>(rq, false, false, false, true);
}
<API key>(q, false);
}
void <API key>(struct request *rq, bool at_head,
bool kick_requeue_list)
{
struct request_queue *q = rq->q;
unsigned long flags;
/*
* We abuse this flag that is otherwise used by the I/O scheduler to
* request head insertation from the workqueue.
*/
BUG_ON(rq->rq_flags & RQF_SOFTBARRIER);
spin_lock_irqsave(&q->requeue_lock, flags);
if (at_head) {
rq->rq_flags |= RQF_SOFTBARRIER;
list_add(&rq->queuelist, &q->requeue_list);
} else {
list_add_tail(&rq->queuelist, &q->requeue_list);
}
<API key>(&q->requeue_lock, flags);
if (kick_requeue_list)
<API key>(q);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct request_queue *q)
{
<API key>(&q->requeue_work, 0);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct request_queue *q,
unsigned long msecs)
{
<API key>(&q->requeue_work,
msecs_to_jiffies(msecs));
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct request_queue *q)
{
unsigned long flags;
LIST_HEAD(rq_list);
spin_lock_irqsave(&q->requeue_lock, flags);
list_splice_init(&q->requeue_list, &rq_list);
<API key>(&q->requeue_lock, flags);
while (!list_empty(&rq_list)) {
struct request *rq;
rq = list_first_entry(&rq_list, struct request, queuelist);
list_del_init(&rq->queuelist);
rq->errors = -EIO;
blk_mq_end_request(rq, rq->errors);
}
}
EXPORT_SYMBOL(<API key>);
struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag)
{
if (tag < tags->nr_tags) {
prefetch(tags->rqs[tag]);
return tags->rqs[tag];
}
return NULL;
}
EXPORT_SYMBOL(blk_mq_tag_to_rq);
struct blk_mq_timeout_data {
unsigned long next;
unsigned int next_set;
};
void blk_mq_rq_timed_out(struct request *req, bool reserved)
{
const struct blk_mq_ops *ops = req->q->mq_ops;
enum blk_eh_timer_return ret = BLK_EH_RESET_TIMER;
/*
* We know that complete is set at this point. If STARTED isn't set
* anymore, then the request isn't active and the "timeout" should
* just be ignored. This can happen due to the bitflag ordering.
* Timeout first checks if STARTED is set, and if it is, assumes
* the request is active. But if we race with completion, then
* we both flags will get cleared. So check here again, and ignore
* a timeout event with a request that isn't active.
*/
if (!test_bit(REQ_ATOM_STARTED, &req->atomic_flags))
return;
if (ops->timeout)
ret = ops->timeout(req, reserved);
switch (ret) {
case BLK_EH_HANDLED:
<API key>(req);
break;
case BLK_EH_RESET_TIMER:
blk_add_timer(req);
<API key>(req);
break;
case BLK_EH_NOT_HANDLED:
break;
default:
printk(KERN_ERR "block: bad eh return: %d\n", ret);
break;
}
}
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct request *rq, void *priv, bool reserved)
{
struct blk_mq_timeout_data *data = priv;
if (!test_bit(REQ_ATOM_STARTED, &rq->atomic_flags)) {
/*
* If a request wasn't started before the queue was
* marked dying, kill it here or it'll go unnoticed.
*/
if (unlikely(blk_queue_dying(rq->q))) {
rq->errors = -EIO;
blk_mq_end_request(rq, rq->errors);
}
return;
}
if (time_after_eq(jiffies, rq->deadline)) {
if (!<API key>(rq))
blk_mq_rq_timed_out(rq, reserved);
} else if (!data->next_set || time_after(data->next, rq->deadline)) {
data->next = rq->deadline;
data->next_set = 1;
}
}
static void blk_mq_timeout_work(struct work_struct *work)
{
struct request_queue *q =
container_of(work, struct request_queue, timeout_work);
struct blk_mq_timeout_data data = {
.next = 0,
.next_set = 0,
};
int i;
/* A deadlock might occur if a request is stuck requiring a
* timeout at the same time a queue freeze is waiting
* completion, since the timeout code would not be able to
* acquire the queue reference here.
*
* That's why we don't use blk_queue_enter here; instead, we use
* percpu_ref_tryget directly, because we need to be able to
* obtain a reference even in the short window between the queue
* starting to freeze, by dropping the first reference in
* <API key>, and the moment the last request is
* consumed, marked by the instant q_usage_counter reaches
* zero.
*/
if (!percpu_ref_tryget(&q->q_usage_counter))
return;
<API key>(q, <API key>, &data);
if (data.next_set) {
data.next = blk_rq_timeout(round_jiffies_up(data.next));
mod_timer(&q->timeout, data.next);
} else {
struct blk_mq_hw_ctx *hctx;
<API key>(q, hctx, i) {
/* the hctx may be unmapped, so check it here */
if (<API key>(hctx))
blk_mq_tag_idle(hctx);
}
}
blk_queue_exit(q);
}
/*
* Reverse check our software queue for entries that we could potentially
* merge with. Currently includes a hand-wavy stop count of 8, to not spend
* too much time checking for merges.
*/
static bool <API key>(struct request_queue *q,
struct blk_mq_ctx *ctx, struct bio *bio)
{
struct request *rq;
int checked = 8;
<API key>(rq, &ctx->rq_list, queuelist) {
bool merged = false;
if (!checked
break;
if (!blk_rq_merge_ok(rq, bio))
continue;
switch (blk_try_merge(rq, bio)) {
case ELEVATOR_BACK_MERGE:
if (<API key>(q, rq, bio))
merged = <API key>(q, rq, bio);
break;
case <API key>:
if (<API key>(q, rq, bio))
merged = <API key>(q, rq, bio);
break;
case <API key>:
merged = <API key>(q, rq, bio);
break;
default:
continue;
}
if (merged)
ctx->rq_merged++;
return merged;
}
return false;
}
struct flush_busy_ctx_data {
struct blk_mq_hw_ctx *hctx;
struct list_head *list;
};
static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data)
{
struct flush_busy_ctx_data *flush_data = data;
struct blk_mq_hw_ctx *hctx = flush_data->hctx;
struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
sbitmap_clear_bit(sb, bitnr);
spin_lock(&ctx->lock);
<API key>(&ctx->rq_list, flush_data->list);
spin_unlock(&ctx->lock);
return true;
}
/*
* Process software queues that have been marked busy, splicing them
* to the for-dispatch
*/
void <API key>(struct blk_mq_hw_ctx *hctx, struct list_head *list)
{
struct flush_busy_ctx_data data = {
.hctx = hctx,
.list = list,
};
<API key>(&hctx->ctx_map, flush_busy_ctx, &data);
}
EXPORT_SYMBOL_GPL(<API key>);
static inline unsigned int queued_to_index(unsigned int queued)
{
if (!queued)
return 0;
return min(<API key> - 1, ilog2(queued) + 1);
}
bool <API key>(struct request *rq, struct blk_mq_hw_ctx **hctx,
bool wait)
{
struct blk_mq_alloc_data data = {
.q = rq->q,
.hctx = blk_mq_map_queue(rq->q, rq->mq_ctx->cpu),
.flags = wait ? 0 : BLK_MQ_REQ_NOWAIT,
};
if (rq->tag != -1) {
done:
if (hctx)
*hctx = data.hctx;
return true;
}
if (<API key>(data.hctx->sched_tags, rq->internal_tag))
data.flags |= BLK_MQ_REQ_RESERVED;
rq->tag = blk_mq_get_tag(&data);
if (rq->tag >= 0) {
if (blk_mq_tag_busy(data.hctx)) {
rq->rq_flags |= RQF_MQ_INFLIGHT;
atomic_inc(&data.hctx->nr_active);
}
data.hctx->tags->rqs[rq->tag] = rq;
goto done;
}
return false;
}
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct request *rq)
{
blk_mq_put_tag(hctx, hctx->tags, rq->mq_ctx, rq->tag);
rq->tag = -1;
if (rq->rq_flags & RQF_MQ_INFLIGHT) {
rq->rq_flags &= ~RQF_MQ_INFLIGHT;
atomic_dec(&hctx->nr_active);
}
}
static void <API key>(struct blk_mq_hw_ctx *hctx,
struct request *rq)
{
if (rq->tag == -1 || rq->internal_tag == -1)
return;
<API key>(hctx, rq);
}
static void <API key>(struct request *rq)
{
struct blk_mq_hw_ctx *hctx;
if (rq->tag == -1 || rq->internal_tag == -1)
return;
hctx = blk_mq_map_queue(rq->q, rq->mq_ctx->cpu);
<API key>(hctx, rq);
}
/*
* If we fail getting a driver tag because all the driver tags are already
* assigned and on the dispatch list, BUT the first entry does not have a
* tag, then we could deadlock. For that case, move entries with assigned
* driver tags to the front, leaving the set of tagged requests in the
* same order, and the untagged set in the same order.
*/
static bool <API key>(struct list_head *list)
{
struct request *rq, *tmp, *first = NULL;
<API key>(rq, tmp, list, queuelist) {
if (rq == first)
break;
if (rq->tag != -1) {
list_move(&rq->queuelist, list);
if (!first)
first = rq;
}
}
return first != NULL;
}
static int <API key>(wait_queue_t *wait, unsigned mode, int flags,
void *key)
{
struct blk_mq_hw_ctx *hctx;
hctx = container_of(wait, struct blk_mq_hw_ctx, dispatch_wait);
list_del(&wait->task_list);
clear_bit_unlock(<API key>, &hctx->state);
blk_mq_run_hw_queue(hctx, true);
return 1;
}
static bool <API key>(struct blk_mq_hw_ctx *hctx)
{
struct sbq_wait_state *ws;
/*
* The TAG_WAITING bit serves as a lock protecting hctx->dispatch_wait.
* The thread which wins the race to grab this bit adds the hardware
* queue to the wait queue.
*/
if (test_bit(<API key>, &hctx->state) ||
<API key>(<API key>, &hctx->state))
return false;
<API key>(&hctx->dispatch_wait, <API key>);
ws = bt_wait_ptr(&hctx->tags->bitmap_tags, hctx);
/*
* As soon as this returns, it's no longer safe to fiddle with
* hctx->dispatch_wait, since a completion can wake up the wait queue
* and unlock the bit.
*/
add_wait_queue(&ws->wait, &hctx->dispatch_wait);
return true;
}
bool <API key>(struct blk_mq_hw_ctx *hctx, struct list_head *list)
{
struct request_queue *q = hctx->queue;
struct request *rq;
LIST_HEAD(driver_list);
struct list_head *dptr;
int queued, ret = BLK_MQ_RQ_QUEUE_OK;
/*
* Start off with dptr being NULL, so we start the first request
* immediately, even if we have more pending.
*/
dptr = NULL;
/*
* Now process all the entries, sending them to the driver.
*/
queued = 0;
while (!list_empty(list)) {
struct blk_mq_queue_data bd;
rq = list_first_entry(list, struct request, queuelist);
if (!<API key>(rq, &hctx, false)) {
if (!queued && <API key>(list))
continue;
/*
* The initial allocation attempt failed, so we need to
* rerun the hardware queue when a tag is freed.
*/
if (<API key>(hctx)) {
/*
* It's possible that a tag was freed in the
* window between the allocation failure and
* adding the hardware queue to the wait queue.
*/
if (!<API key>(rq, &hctx, false))
break;
} else {
break;
}
}
list_del_init(&rq->queuelist);
bd.rq = rq;
bd.list = dptr;
/*
* Flag last if we have no more requests, or if we have more
* but can't assign a driver tag to it.
*/
if (list_empty(list))
bd.last = true;
else {
struct request *nxt;
nxt = list_first_entry(list, struct request, queuelist);
bd.last = !<API key>(nxt, NULL, false);
}
ret = q->mq_ops->queue_rq(hctx, &bd);
switch (ret) {
case BLK_MQ_RQ_QUEUE_OK:
queued++;
break;
case <API key>:
<API key>(hctx, rq);
list_add(&rq->queuelist, list);
<API key>(rq);
break;
default:
pr_err("blk-mq: bad return on queue: %d\n", ret);
case <API key>:
rq->errors = -EIO;
blk_mq_end_request(rq, rq->errors);
break;
}
if (ret == <API key>)
break;
/*
* We've done the first request. If we have more than 1
* left in the list, set dptr to defer issue.
*/
if (!dptr && list->next != list->prev)
dptr = &driver_list;
}
hctx->dispatched[queued_to_index(queued)]++;
/*
* Any items that need requeuing? Stuff them into hctx->dispatch,
* that is where we will continue on next queue run.
*/
if (!list_empty(list)) {
/*
* If we got a driver tag for the next request already,
* free it again.
*/
rq = list_first_entry(list, struct request, queuelist);
<API key>(rq);
spin_lock(&hctx->lock);
list_splice_init(list, &hctx->dispatch);
spin_unlock(&hctx->lock);
/*
* the queue is expected stopped with <API key>, but
* it's possible the queue is stopped and restarted again
* before this. Queue restart will dispatch requests. And since
* requests in rq_list aren't added into hctx->dispatch yet,
* the requests in rq_list might get lost.
*
* blk_mq_run_hw_queue() already checks the STOPPED bit
*
* If RESTART or TAG_WAITING is set, then let completion restart
* the queue instead of potentially looping here.
*/
if (!<API key>(hctx) &&
!test_bit(<API key>, &hctx->state))
blk_mq_run_hw_queue(hctx, true);
}
return queued != 0;
}
static void <API key>(struct blk_mq_hw_ctx *hctx)
{
int srcu_idx;
WARN_ON(!cpumask_test_cpu(<API key>(), hctx->cpumask) &&
cpu_online(hctx->next_cpu));
if (!(hctx->flags & BLK_MQ_F_BLOCKING)) {
rcu_read_lock();
<API key>(hctx);
rcu_read_unlock();
} else {
srcu_idx = srcu_read_lock(&hctx->queue_rq_srcu);
<API key>(hctx);
srcu_read_unlock(&hctx->queue_rq_srcu, srcu_idx);
}
}
/*
* It'd be great if the workqueue API had a way to pass
* in a mask and had some smarts for more clever placement.
* For now we just round-robin here, switching for every
* <API key> queued items.
*/
static int <API key>(struct blk_mq_hw_ctx *hctx)
{
if (hctx->queue->nr_hw_queues == 1)
return WORK_CPU_UNBOUND;
if (--hctx->next_cpu_batch <= 0) {
int next_cpu;
next_cpu = cpumask_next(hctx->next_cpu, hctx->cpumask);
if (next_cpu >= nr_cpu_ids)
next_cpu = cpumask_first(hctx->cpumask);
hctx->next_cpu = next_cpu;
hctx->next_cpu_batch = <API key>;
}
return hctx->next_cpu;
}
void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async)
{
if (unlikely(blk_mq_hctx_stopped(hctx) ||
!<API key>(hctx)))
return;
if (!async && !(hctx->flags & BLK_MQ_F_BLOCKING)) {
int cpu = get_cpu();
if (cpumask_test_cpu(cpu, hctx->cpumask)) {
<API key>(hctx);
put_cpu();
return;
}
put_cpu();
}
<API key>(<API key>(hctx), &hctx->run_work);
}
void <API key>(struct request_queue *q, bool async)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i) {
if (!<API key>(hctx) ||
blk_mq_hctx_stopped(hctx))
continue;
blk_mq_run_hw_queue(hctx, async);
}
}
EXPORT_SYMBOL(<API key>);
/**
* <API key>() - check whether one or more hctxs have been stopped
* @q: request queue.
*
* The caller is responsible for serializing this function against
* blk_mq_{start,stop}_hw_queue().
*/
bool <API key>(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i)
if (blk_mq_hctx_stopped(hctx))
return true;
return false;
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct blk_mq_hw_ctx *hctx)
{
cancel_work(&hctx->run_work);
cancel_delayed_work(&hctx->delay_work);
set_bit(BLK_MQ_S_STOPPED, &hctx->state);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i)
<API key>(hctx);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct blk_mq_hw_ctx *hctx)
{
clear_bit(BLK_MQ_S_STOPPED, &hctx->state);
blk_mq_run_hw_queue(hctx, false);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i)
<API key>(hctx);
}
EXPORT_SYMBOL(<API key>);
void <API key>(struct blk_mq_hw_ctx *hctx, bool async)
{
if (!blk_mq_hctx_stopped(hctx))
return;
clear_bit(BLK_MQ_S_STOPPED, &hctx->state);
blk_mq_run_hw_queue(hctx, async);
}
EXPORT_SYMBOL_GPL(<API key>);
void <API key>(struct request_queue *q, bool async)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i)
<API key>(hctx, async);
}
EXPORT_SYMBOL(<API key>);
static void blk_mq_run_work_fn(struct work_struct *work)
{
struct blk_mq_hw_ctx *hctx;
hctx = container_of(work, struct blk_mq_hw_ctx, run_work);
<API key>(hctx);
}
static void <API key>(struct work_struct *work)
{
struct blk_mq_hw_ctx *hctx;
hctx = container_of(work, struct blk_mq_hw_ctx, delay_work.work);
if (test_and_clear_bit(BLK_MQ_S_STOPPED, &hctx->state))
<API key>(hctx);
}
void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs)
{
if (unlikely(!<API key>(hctx)))
return;
<API key>(hctx);
<API key>(<API key>(hctx),
&hctx->delay_work, msecs_to_jiffies(msecs));
}
EXPORT_SYMBOL(blk_mq_delay_queue);
static inline void <API key>(struct blk_mq_hw_ctx *hctx,
struct request *rq,
bool at_head)
{
struct blk_mq_ctx *ctx = rq->mq_ctx;
<API key>(hctx->queue, rq);
if (at_head)
list_add(&rq->queuelist, &ctx->rq_list);
else
list_add_tail(&rq->queuelist, &ctx->rq_list);
}
void <API key>(struct blk_mq_hw_ctx *hctx, struct request *rq,
bool at_head)
{
struct blk_mq_ctx *ctx = rq->mq_ctx;
<API key>(hctx, rq, at_head);
<API key>(hctx, ctx);
}
void <API key>(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx,
struct list_head *list)
{
/*
* preemption doesn't flush plug list, so it's possible ctx->cpu is
* offline now
*/
spin_lock(&ctx->lock);
while (!list_empty(list)) {
struct request *rq;
rq = list_first_entry(list, struct request, queuelist);
BUG_ON(rq->mq_ctx != ctx);
list_del_init(&rq->queuelist);
<API key>(hctx, rq, false);
}
<API key>(hctx, ctx);
spin_unlock(&ctx->lock);
}
static int plug_ctx_cmp(void *priv, struct list_head *a, struct list_head *b)
{
struct request *rqa = container_of(a, struct request, queuelist);
struct request *rqb = container_of(b, struct request, queuelist);
return !(rqa->mq_ctx < rqb->mq_ctx ||
(rqa->mq_ctx == rqb->mq_ctx &&
blk_rq_pos(rqa) < blk_rq_pos(rqb)));
}
void <API key>(struct blk_plug *plug, bool from_schedule)
{
struct blk_mq_ctx *this_ctx;
struct request_queue *this_q;
struct request *rq;
LIST_HEAD(list);
LIST_HEAD(ctx_list);
unsigned int depth;
list_splice_init(&plug->mq_list, &list);
list_sort(NULL, &list, plug_ctx_cmp);
this_q = NULL;
this_ctx = NULL;
depth = 0;
while (!list_empty(&list)) {
rq = list_entry_rq(list.next);
list_del_init(&rq->queuelist);
BUG_ON(!rq->q);
if (rq->mq_ctx != this_ctx) {
if (this_ctx) {
trace_block_unplug(this_q, depth, from_schedule);
<API key>(this_q, this_ctx,
&ctx_list,
from_schedule);
}
this_ctx = rq->mq_ctx;
this_q = rq->q;
depth = 0;
}
depth++;
list_add_tail(&rq->queuelist, &ctx_list);
}
/*
* If 'this_ctx' is set, we know we have entries to complete
* on 'ctx_list'. Do those.
*/
if (this_ctx) {
trace_block_unplug(this_q, depth, from_schedule);
<API key>(this_q, this_ctx, &ctx_list,
from_schedule);
}
}
static void <API key>(struct request *rq, struct bio *bio)
{
<API key>(rq, bio);
<API key>(rq, true);
}
static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx)
{
return (hctx->flags & <API key>) &&
!blk_queue_nomerges(hctx->queue);
}
static inline bool <API key>(struct blk_mq_hw_ctx *hctx,
struct blk_mq_ctx *ctx,
struct request *rq, struct bio *bio)
{
if (!hctx_allow_merges(hctx) || !bio_mergeable(bio)) {
<API key>(rq, bio);
spin_lock(&ctx->lock);
insert_rq:
<API key>(hctx, rq, false);
spin_unlock(&ctx->lock);
return false;
} else {
struct request_queue *q = hctx->queue;
spin_lock(&ctx->lock);
if (!<API key>(q, ctx, bio)) {
<API key>(rq, bio);
goto insert_rq;
}
spin_unlock(&ctx->lock);
<API key>(hctx, ctx, rq);
return true;
}
}
static blk_qc_t request_to_qc_t(struct blk_mq_hw_ctx *hctx, struct request *rq)
{
if (rq->tag != -1)
return blk_tag_to_qc_t(rq->tag, hctx->queue_num, false);
return blk_tag_to_qc_t(rq->internal_tag, hctx->queue_num, true);
}
static void <API key>(struct request *rq, blk_qc_t *cookie,
bool may_sleep)
{
struct request_queue *q = rq->q;
struct blk_mq_queue_data bd = {
.rq = rq,
.list = NULL,
.last = 1
};
struct blk_mq_hw_ctx *hctx;
blk_qc_t new_cookie;
int ret;
if (q->elevator)
goto insert;
if (!<API key>(rq, &hctx, false))
goto insert;
new_cookie = request_to_qc_t(hctx, rq);
/*
* For OK queue, we are done. For error, kill it. Any other
* error (busy), just add it to our list as we previously
* would have done
*/
ret = q->mq_ops->queue_rq(hctx, &bd);
if (ret == BLK_MQ_RQ_QUEUE_OK) {
*cookie = new_cookie;
return;
}
<API key>(rq);
if (ret == <API key>) {
*cookie = BLK_QC_T_NONE;
rq->errors = -EIO;
blk_mq_end_request(rq, rq->errors);
return;
}
insert:
<API key>(rq, false, true, false, may_sleep);
}
/*
* Multiple hardware queue variant. This will not use per-process plugs,
* but will attempt to bypass the hctx queueing if we can go straight to
* hardware for SYNC IO.
*/
static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio)
{
const int is_sync = op_is_sync(bio->bi_opf);
const int is_flush_fua = op_is_flush(bio->bi_opf);
struct blk_mq_alloc_data data = { .flags = 0 };
struct request *rq;
unsigned int request_count = 0, srcu_idx;
struct blk_plug *plug;
struct request *same_queue_rq = NULL;
blk_qc_t cookie;
unsigned int wb_acct;
blk_queue_bounce(q, &bio);
if (<API key>(bio) && bio_integrity_prep(bio)) {
bio_io_error(bio);
return BLK_QC_T_NONE;
}
blk_queue_split(q, &bio, q->bio_split);
if (!is_flush_fua && !blk_queue_nomerges(q) &&
<API key>(q, bio, &request_count, &same_queue_rq))
return BLK_QC_T_NONE;
if (<API key>(q, bio))
return BLK_QC_T_NONE;
wb_acct = wbt_wait(q->rq_wb, bio, NULL);
trace_block_getrq(q, bio, bio->bi_opf);
rq = <API key>(q, bio, bio->bi_opf, &data);
if (unlikely(!rq)) {
__wbt_done(q->rq_wb, wb_acct);
return BLK_QC_T_NONE;
}
wbt_track(&rq->issue_stat, wb_acct);
cookie = request_to_qc_t(data.hctx, rq);
if (unlikely(is_flush_fua)) {
if (q->elevator)
goto elv_insert;
<API key>(rq, bio);
blk_insert_flush(rq);
goto run_queue;
}
plug = current->plug;
/*
* If the driver supports defer issued based on 'last', then
* queue it up like normal since we can potentially save some
* CPU this way.
*/
if (((plug && !blk_queue_nomerges(q)) || is_sync) &&
!(data.hctx->flags & <API key>)) {
struct request *old_rq = NULL;
<API key>(rq, bio);
/*
* We do limited plugging. If the bio can be merged, do that.
* Otherwise the existing request in the plug list will be
* issued. So the plug list will have one request at most
*/
if (plug) {
/*
* The plug list might get flushed before this. If that
* happens, same_queue_rq is invalid and plug list is
* empty
*/
if (same_queue_rq && !list_empty(&plug->mq_list)) {
old_rq = same_queue_rq;
list_del_init(&old_rq->queuelist);
}
list_add_tail(&rq->queuelist, &plug->mq_list);
} else /* is_sync */
old_rq = rq;
blk_mq_put_ctx(data.ctx);
if (!old_rq)
goto done;
if (!(data.hctx->flags & BLK_MQ_F_BLOCKING)) {
rcu_read_lock();
<API key>(old_rq, &cookie, false);
rcu_read_unlock();
} else {
srcu_idx = srcu_read_lock(&data.hctx->queue_rq_srcu);
<API key>(old_rq, &cookie, true);
srcu_read_unlock(&data.hctx->queue_rq_srcu, srcu_idx);
}
goto done;
}
if (q->elevator) {
elv_insert:
blk_mq_put_ctx(data.ctx);
<API key>(rq, bio);
<API key>(rq, false, true,
!is_sync || is_flush_fua, true);
goto done;
}
if (!<API key>(data.hctx, data.ctx, rq, bio)) {
/*
* For a SYNC request, send it to the hardware immediately. For
* an ASYNC request, just ensure that we run it later on. The
* latter allows for merging opportunities and more efficient
* dispatching.
*/
run_queue:
blk_mq_run_hw_queue(data.hctx, !is_sync || is_flush_fua);
}
blk_mq_put_ctx(data.ctx);
done:
return cookie;
}
/*
* Single hardware queue variant. This will attempt to use any per-process
* plug for merging and IO deferral.
*/
static blk_qc_t blk_sq_make_request(struct request_queue *q, struct bio *bio)
{
const int is_sync = op_is_sync(bio->bi_opf);
const int is_flush_fua = op_is_flush(bio->bi_opf);
struct blk_plug *plug;
unsigned int request_count = 0;
struct blk_mq_alloc_data data = { .flags = 0 };
struct request *rq;
blk_qc_t cookie;
unsigned int wb_acct;
blk_queue_bounce(q, &bio);
if (<API key>(bio) && bio_integrity_prep(bio)) {
bio_io_error(bio);
return BLK_QC_T_NONE;
}
blk_queue_split(q, &bio, q->bio_split);
if (!is_flush_fua && !blk_queue_nomerges(q)) {
if (<API key>(q, bio, &request_count, NULL))
return BLK_QC_T_NONE;
} else
request_count = <API key>(q);
if (<API key>(q, bio))
return BLK_QC_T_NONE;
wb_acct = wbt_wait(q->rq_wb, bio, NULL);
trace_block_getrq(q, bio, bio->bi_opf);
rq = <API key>(q, bio, bio->bi_opf, &data);
if (unlikely(!rq)) {
__wbt_done(q->rq_wb, wb_acct);
return BLK_QC_T_NONE;
}
wbt_track(&rq->issue_stat, wb_acct);
cookie = request_to_qc_t(data.hctx, rq);
if (unlikely(is_flush_fua)) {
if (q->elevator)
goto elv_insert;
<API key>(rq, bio);
blk_insert_flush(rq);
goto run_queue;
}
/*
* A task plug currently exists. Since this is completely lockless,
* utilize that to temporarily store requests until the task is
* either done or scheduled away.
*/
plug = current->plug;
if (plug) {
struct request *last = NULL;
<API key>(rq, bio);
/*
* @request_count may become stale because of schedule
* out, so check the list again.
*/
if (list_empty(&plug->mq_list))
request_count = 0;
if (!request_count)
trace_block_plug(q);
else
last = list_entry_rq(plug->mq_list.prev);
blk_mq_put_ctx(data.ctx);
if (request_count >= <API key> || (last &&
blk_rq_bytes(last) >= BLK_PLUG_FLUSH_SIZE)) {
blk_flush_plug_list(plug, false);
trace_block_plug(q);
}
list_add_tail(&rq->queuelist, &plug->mq_list);
return cookie;
}
if (q->elevator) {
elv_insert:
blk_mq_put_ctx(data.ctx);
<API key>(rq, bio);
<API key>(rq, false, true,
!is_sync || is_flush_fua, true);
goto done;
}
if (!<API key>(data.hctx, data.ctx, rq, bio)) {
/*
* For a SYNC request, send it to the hardware immediately. For
* an ASYNC request, just ensure that we run it later on. The
* latter allows for merging opportunities and more efficient
* dispatching.
*/
run_queue:
blk_mq_run_hw_queue(data.hctx, !is_sync || is_flush_fua);
}
blk_mq_put_ctx(data.ctx);
done:
return cookie;
}
void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
unsigned int hctx_idx)
{
struct page *page;
if (tags->rqs && set->ops->exit_request) {
int i;
for (i = 0; i < tags->nr_tags; i++) {
struct request *rq = tags->static_rqs[i];
if (!rq)
continue;
set->ops->exit_request(set->driver_data, rq,
hctx_idx, i);
tags->static_rqs[i] = NULL;
}
}
while (!list_empty(&tags->page_list)) {
page = list_first_entry(&tags->page_list, struct page, lru);
list_del_init(&page->lru);
/*
* Remove kmemleak object previously allocated in
* blk_mq_init_rq_map().
*/
kmemleak_free(page_address(page));
__free_pages(page, page->private);
}
}
void blk_mq_free_rq_map(struct blk_mq_tags *tags)
{
kfree(tags->rqs);
tags->rqs = NULL;
kfree(tags->static_rqs);
tags->static_rqs = NULL;
blk_mq_free_tags(tags);
}
struct blk_mq_tags *blk_mq_alloc_rq_map(struct blk_mq_tag_set *set,
unsigned int hctx_idx,
unsigned int nr_tags,
unsigned int reserved_tags)
{
struct blk_mq_tags *tags;
int node;
node = <API key>(set->mq_map, hctx_idx);
if (node == NUMA_NO_NODE)
node = set->numa_node;
tags = blk_mq_init_tags(nr_tags, reserved_tags, node,
<API key>(set->flags));
if (!tags)
return NULL;
tags->rqs = kzalloc_node(nr_tags * sizeof(struct request *),
GFP_NOIO | __GFP_NOWARN | __GFP_NORETRY,
node);
if (!tags->rqs) {
blk_mq_free_tags(tags);
return NULL;
}
tags->static_rqs = kzalloc_node(nr_tags * sizeof(struct request *),
GFP_NOIO | __GFP_NOWARN | __GFP_NORETRY,
node);
if (!tags->static_rqs) {
kfree(tags->rqs);
blk_mq_free_tags(tags);
return NULL;
}
return tags;
}
static size_t order_to_size(unsigned int order)
{
return (size_t)PAGE_SIZE << order;
}
int blk_mq_alloc_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
unsigned int hctx_idx, unsigned int depth)
{
unsigned int i, j, entries_per_page, max_order = 4;
size_t rq_size, left;
int node;
node = <API key>(set->mq_map, hctx_idx);
if (node == NUMA_NO_NODE)
node = set->numa_node;
INIT_LIST_HEAD(&tags->page_list);
/*
* rq_size is the size of the request plus driver payload, rounded
* to the cacheline size
*/
rq_size = round_up(sizeof(struct request) + set->cmd_size,
cache_line_size());
left = rq_size * depth;
for (i = 0; i < depth; ) {
int this_order = max_order;
struct page *page;
int to_do;
void *p;
while (this_order && left < order_to_size(this_order - 1))
this_order
do {
page = alloc_pages_node(node,
GFP_NOIO | __GFP_NOWARN | __GFP_NORETRY | __GFP_ZERO,
this_order);
if (page)
break;
if (!this_order
break;
if (order_to_size(this_order) < rq_size)
break;
} while (1);
if (!page)
goto fail;
page->private = this_order;
list_add_tail(&page->lru, &tags->page_list);
p = page_address(page);
/*
* Allow kmemleak to scan these pages as they contain pointers
* to additional allocations like via ops->init_request().
*/
kmemleak_alloc(p, order_to_size(this_order), 1, GFP_NOIO);
entries_per_page = order_to_size(this_order) / rq_size;
to_do = min(entries_per_page, depth - i);
left -= to_do * rq_size;
for (j = 0; j < to_do; j++) {
struct request *rq = p;
tags->static_rqs[i] = rq;
if (set->ops->init_request) {
if (set->ops->init_request(set->driver_data,
rq, hctx_idx, i,
node)) {
tags->static_rqs[i] = NULL;
goto fail;
}
}
p += rq_size;
i++;
}
}
return 0;
fail:
blk_mq_free_rqs(set, tags, hctx_idx);
return -ENOMEM;
}
/*
* 'cpu' is going away. splice any existing rq_list entries from this
* software queue to the hw queue dispatch list, and ensure that it
* gets run.
*/
static int <API key>(unsigned int cpu, struct hlist_node *node)
{
struct blk_mq_hw_ctx *hctx;
struct blk_mq_ctx *ctx;
LIST_HEAD(tmp);
hctx = hlist_entry_safe(node, struct blk_mq_hw_ctx, cpuhp_dead);
ctx = __blk_mq_get_ctx(hctx->queue, cpu);
spin_lock(&ctx->lock);
if (!list_empty(&ctx->rq_list)) {
list_splice_init(&ctx->rq_list, &tmp);
<API key>(hctx, ctx);
}
spin_unlock(&ctx->lock);
if (list_empty(&tmp))
return 0;
spin_lock(&hctx->lock);
<API key>(&tmp, &hctx->dispatch);
spin_unlock(&hctx->lock);
blk_mq_run_hw_queue(hctx, true);
return 0;
}
static void blk_mq_remove_cpuhp(struct blk_mq_hw_ctx *hctx)
{
<API key>(CPUHP_BLK_MQ_DEAD,
&hctx->cpuhp_dead);
}
/* hctx->ctxs will be freed in queue's release handler */
static void blk_mq_exit_hctx(struct request_queue *q,
struct blk_mq_tag_set *set,
struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)
{
unsigned flush_start_tag = set->queue_depth;
blk_mq_tag_idle(hctx);
if (set->ops->exit_request)
set->ops->exit_request(set->driver_data,
hctx->fq->flush_rq, hctx_idx,
flush_start_tag + hctx_idx);
if (set->ops->exit_hctx)
set->ops->exit_hctx(hctx, hctx_idx);
if (hctx->flags & BLK_MQ_F_BLOCKING)
cleanup_srcu_struct(&hctx->queue_rq_srcu);
blk_mq_remove_cpuhp(hctx);
<API key>(hctx->fq);
sbitmap_free(&hctx->ctx_map);
}
static void <API key>(struct request_queue *q,
struct blk_mq_tag_set *set, int nr_queue)
{
struct blk_mq_hw_ctx *hctx;
unsigned int i;
<API key>(q, hctx, i) {
if (i == nr_queue)
break;
blk_mq_exit_hctx(q, set, hctx, i);
}
}
static int blk_mq_init_hctx(struct request_queue *q,
struct blk_mq_tag_set *set,
struct blk_mq_hw_ctx *hctx, unsigned hctx_idx)
{
int node;
unsigned flush_start_tag = set->queue_depth;
node = hctx->numa_node;
if (node == NUMA_NO_NODE)
node = hctx->numa_node = set->numa_node;
INIT_WORK(&hctx->run_work, blk_mq_run_work_fn);
INIT_DELAYED_WORK(&hctx->delay_work, <API key>);
spin_lock_init(&hctx->lock);
INIT_LIST_HEAD(&hctx->dispatch);
hctx->queue = q;
hctx->queue_num = hctx_idx;
hctx->flags = set->flags & ~BLK_MQ_F_TAG_SHARED;
<API key>(CPUHP_BLK_MQ_DEAD, &hctx->cpuhp_dead);
hctx->tags = set->tags[hctx_idx];
/*
* Allocate space for all possible cpus to avoid allocation at
* runtime
*/
hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *),
GFP_KERNEL, node);
if (!hctx->ctxs)
goto <API key>;
if (sbitmap_init_node(&hctx->ctx_map, nr_cpu_ids, ilog2(8), GFP_KERNEL,
node))
goto free_ctxs;
hctx->nr_ctx = 0;
if (set->ops->init_hctx &&
set->ops->init_hctx(hctx, set->driver_data, hctx_idx))
goto free_bitmap;
hctx->fq = <API key>(q, hctx->numa_node, set->cmd_size);
if (!hctx->fq)
goto exit_hctx;
if (set->ops->init_request &&
set->ops->init_request(set->driver_data,
hctx->fq->flush_rq, hctx_idx,
flush_start_tag + hctx_idx, node))
goto free_fq;
if (hctx->flags & BLK_MQ_F_BLOCKING)
init_srcu_struct(&hctx->queue_rq_srcu);
return 0;
free_fq:
kfree(hctx->fq);
exit_hctx:
if (set->ops->exit_hctx)
set->ops->exit_hctx(hctx, hctx_idx);
free_bitmap:
sbitmap_free(&hctx->ctx_map);
free_ctxs:
kfree(hctx->ctxs);
<API key>:
blk_mq_remove_cpuhp(hctx);
return -1;
}
static void <API key>(struct request_queue *q,
unsigned int nr_hw_queues)
{
unsigned int i;
<API key>(i) {
struct blk_mq_ctx *__ctx = per_cpu_ptr(q->queue_ctx, i);
struct blk_mq_hw_ctx *hctx;
__ctx->cpu = i;
spin_lock_init(&__ctx->lock);
INIT_LIST_HEAD(&__ctx->rq_list);
__ctx->queue = q;
blk_stat_init(&__ctx->stat[BLK_STAT_READ]);
blk_stat_init(&__ctx->stat[BLK_STAT_WRITE]);
/* If the cpu isn't online, the cpu is mapped to first hctx */
if (!cpu_online(i))
continue;
hctx = blk_mq_map_queue(q, i);
/*
* Set local node, IFF we have more than one hw queue. If
* not, we remain on the home node of the device
*/
if (nr_hw_queues > 1 && hctx->numa_node == NUMA_NO_NODE)
hctx->numa_node = local_memory_node(cpu_to_node(i));
}
}
static bool <API key>(struct blk_mq_tag_set *set, int hctx_idx)
{
int ret = 0;
set->tags[hctx_idx] = blk_mq_alloc_rq_map(set, hctx_idx,
set->queue_depth, set->reserved_tags);
if (!set->tags[hctx_idx])
return false;
ret = blk_mq_alloc_rqs(set, set->tags[hctx_idx], hctx_idx,
set->queue_depth);
if (!ret)
return true;
blk_mq_free_rq_map(set->tags[hctx_idx]);
set->tags[hctx_idx] = NULL;
return false;
}
static void <API key>(struct blk_mq_tag_set *set,
unsigned int hctx_idx)
{
if (set->tags[hctx_idx]) {
blk_mq_free_rqs(set, set->tags[hctx_idx], hctx_idx);
blk_mq_free_rq_map(set->tags[hctx_idx]);
set->tags[hctx_idx] = NULL;
}
}
static void blk_mq_map_swqueue(struct request_queue *q,
const struct cpumask *online_mask)
{
unsigned int i, hctx_idx;
struct blk_mq_hw_ctx *hctx;
struct blk_mq_ctx *ctx;
struct blk_mq_tag_set *set = q->tag_set;
/*
* Avoid others reading imcomplete hctx->cpumask through sysfs
*/
mutex_lock(&q->sysfs_lock);
<API key>(q, hctx, i) {
cpumask_clear(hctx->cpumask);
hctx->nr_ctx = 0;
}
/*
* Map software to hardware queues
*/
<API key>(i) {
/* If the cpu isn't online, the cpu is mapped to first hctx */
if (!cpumask_test_cpu(i, online_mask))
continue;
hctx_idx = q->mq_map[i];
/* unmapped hw queue can be remapped after CPU topo changed */
if (!set->tags[hctx_idx] &&
!<API key>(set, hctx_idx)) {
/*
* If tags initialization fail for some hctx,
* that hctx won't be brought online. In this
* case, remap the current ctx to hctx[0] which
* is guaranteed to always have tags allocated
*/
q->mq_map[i] = 0;
}
ctx = per_cpu_ptr(q->queue_ctx, i);
hctx = blk_mq_map_queue(q, i);
cpumask_set_cpu(i, hctx->cpumask);
ctx->index_hw = hctx->nr_ctx;
hctx->ctxs[hctx->nr_ctx++] = ctx;
}
mutex_unlock(&q->sysfs_lock);
<API key>(q, hctx, i) {
/*
* If no software queues are mapped to this hardware queue,
* disable it and free the request entries.
*/
if (!hctx->nr_ctx) {
/* Never unmap queue 0. We need it as a
* fallback in case of a new remap fails
* allocation
*/
if (i && set->tags[i])
<API key>(set, i);
hctx->tags = NULL;
continue;
}
hctx->tags = set->tags[i];
WARN_ON(!hctx->tags);
/*
* Set the map size to the number of mapped software queues.
* This is more accurate and more efficient than looping
* over all possibly mapped software queues.
*/
sbitmap_resize(&hctx->ctx_map, hctx->nr_ctx);
/*
* Initialize batch roundrobin counts
*/
hctx->next_cpu = cpumask_first(hctx->cpumask);
hctx->next_cpu_batch = <API key>;
}
}
static void <API key>(struct request_queue *q, bool shared)
{
struct blk_mq_hw_ctx *hctx;
int i;
<API key>(q, hctx, i) {
if (shared)
hctx->flags |= BLK_MQ_F_TAG_SHARED;
else
hctx->flags &= ~BLK_MQ_F_TAG_SHARED;
}
}
static void <API key>(struct blk_mq_tag_set *set, bool shared)
{
struct request_queue *q;
list_for_each_entry(q, &set->tag_list, tag_set_list) {
blk_mq_freeze_queue(q);
<API key>(q, shared);
<API key>(q);
}
}
static void <API key>(struct request_queue *q)
{
struct blk_mq_tag_set *set = q->tag_set;
mutex_lock(&set->tag_list_lock);
list_del_init(&q->tag_set_list);
if (list_is_singular(&set->tag_list)) {
/* just transitioned to unshared */
set->flags &= ~BLK_MQ_F_TAG_SHARED;
/* update existing queue */
<API key>(set, false);
}
mutex_unlock(&set->tag_list_lock);
}
static void <API key>(struct blk_mq_tag_set *set,
struct request_queue *q)
{
q->tag_set = set;
mutex_lock(&set->tag_list_lock);
/* Check to see if we're transitioning to shared (from 1 to 2 queues). */
if (!list_empty(&set->tag_list) && !(set->flags & BLK_MQ_F_TAG_SHARED)) {
set->flags |= BLK_MQ_F_TAG_SHARED;
/* update existing queue */
<API key>(set, true);
}
if (set->flags & BLK_MQ_F_TAG_SHARED)
<API key>(q, true);
list_add_tail(&q->tag_set_list, &set->tag_list);
mutex_unlock(&set->tag_list_lock);
}
/*
* It is the actual release handler for mq, but we do it from
* request queue's release handler for avoiding use-after-free
* and headache because q->mq_kobj shouldn't have been introduced,
* but we can't group ctx/kctx kobj without it.
*/
void blk_mq_release(struct request_queue *q)
{
struct blk_mq_hw_ctx *hctx;
unsigned int i;
<API key>(q);
/* hctx kobj stays in hctx */
<API key>(q, hctx, i) {
if (!hctx)
continue;
kobject_put(&hctx->kobj);
}
q->mq_map = NULL;
kfree(q->queue_hw_ctx);
/*
* release .mq_kobj and sw queue's kobject now because
* both share lifetime with request queue.
*/
blk_mq_sysfs_deinit(q);
free_percpu(q->queue_ctx);
}
struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)
{
struct request_queue *uninit_q, *q;
uninit_q = <API key>(GFP_KERNEL, set->numa_node);
if (!uninit_q)
return ERR_PTR(-ENOMEM);
q = <API key>(set, uninit_q);
if (IS_ERR(q))
blk_cleanup_queue(uninit_q);
return q;
}
EXPORT_SYMBOL(blk_mq_init_queue);
static void <API key>(struct blk_mq_tag_set *set,
struct request_queue *q)
{
int i, j;
struct blk_mq_hw_ctx **hctxs = q->queue_hw_ctx;
<API key>(q);
for (i = 0; i < set->nr_hw_queues; i++) {
int node;
if (hctxs[i])
continue;
node = <API key>(q->mq_map, i);
hctxs[i] = kzalloc_node(sizeof(struct blk_mq_hw_ctx),
GFP_KERNEL, node);
if (!hctxs[i])
break;
if (!<API key>(&hctxs[i]->cpumask, GFP_KERNEL,
node)) {
kfree(hctxs[i]);
hctxs[i] = NULL;
break;
}
atomic_set(&hctxs[i]->nr_active, 0);
hctxs[i]->numa_node = node;
hctxs[i]->queue_num = i;
if (blk_mq_init_hctx(q, set, hctxs[i], i)) {
free_cpumask_var(hctxs[i]->cpumask);
kfree(hctxs[i]);
hctxs[i] = NULL;
break;
}
<API key>(hctxs[i]);
}
for (j = i; j < q->nr_hw_queues; j++) {
struct blk_mq_hw_ctx *hctx = hctxs[j];
if (hctx) {
if (hctx->tags)
<API key>(set, j);
blk_mq_exit_hctx(q, set, hctx, j);
kobject_put(&hctx->kobj);
hctxs[j] = NULL;
}
}
q->nr_hw_queues = i;
<API key>(q);
}
struct request_queue *<API key>(struct blk_mq_tag_set *set,
struct request_queue *q)
{
/* mark the queue as mq asap */
q->mq_ops = set->ops;
q->queue_ctx = alloc_percpu(struct blk_mq_ctx);
if (!q->queue_ctx)
goto err_exit;
/* init q->mq_kobj and sw queues' kobjects */
blk_mq_sysfs_init(q);
q->queue_hw_ctx = kzalloc_node(nr_cpu_ids * sizeof(*(q->queue_hw_ctx)),
GFP_KERNEL, set->numa_node);
if (!q->queue_hw_ctx)
goto err_percpu;
q->mq_map = set->mq_map;
<API key>(set, q);
if (!q->nr_hw_queues)
goto err_hctxs;
INIT_WORK(&q->timeout_work, blk_mq_timeout_work);
<API key>(q, set->timeout ? set->timeout : 30 * HZ);
q->nr_queues = nr_cpu_ids;
q->queue_flags |= <API key>;
if (!(set->flags & BLK_MQ_F_SG_MERGE))
q->queue_flags |= 1 << <API key>;
q->sg_reserved_size = INT_MAX;
INIT_DELAYED_WORK(&q->requeue_work, blk_mq_requeue_work);
INIT_LIST_HEAD(&q->requeue_list);
spin_lock_init(&q->requeue_lock);
if (q->nr_hw_queues > 1)
<API key>(q, blk_mq_make_request);
else
<API key>(q, blk_sq_make_request);
/*
* Do this after <API key>() overrides it...
*/
q->nr_requests = set->queue_depth;
/*
* Default to classic polling
*/
q->poll_nsec = -1;
if (set->ops->complete)
<API key>(q, set->ops->complete);
<API key>(q, set->nr_hw_queues);
get_online_cpus();
mutex_lock(&all_q_mutex);
list_add_tail(&q->all_q_node, &all_q_list);
<API key>(set, q);
blk_mq_map_swqueue(q, cpu_online_mask);
mutex_unlock(&all_q_mutex);
put_online_cpus();
if (!(set->flags & BLK_MQ_F_NO_SCHED)) {
int ret;
ret = blk_mq_sched_init(q);
if (ret)
return ERR_PTR(ret);
}
return q;
err_hctxs:
kfree(q->queue_hw_ctx);
err_percpu:
free_percpu(q->queue_ctx);
err_exit:
q->mq_ops = NULL;
return ERR_PTR(-ENOMEM);
}
EXPORT_SYMBOL(<API key>);
void blk_mq_free_queue(struct request_queue *q)
{
struct blk_mq_tag_set *set = q->tag_set;
mutex_lock(&all_q_mutex);
list_del_init(&q->all_q_node);
mutex_unlock(&all_q_mutex);
wbt_exit(q);
<API key>(q);
<API key>(q, set, set->nr_hw_queues);
}
/* Basically redo blk_mq_init_queue with queue frozen */
static void blk_mq_queue_reinit(struct request_queue *q,
const struct cpumask *online_mask)
{
WARN_ON_ONCE(!atomic_read(&q->mq_freeze_depth));
<API key>(q);
/*
* redo <API key> and <API key>. FIXME: maybe
* we should change hctx numa_node according to new topology (this
* involves free and re-allocate memory, worthy doing?)
*/
blk_mq_map_swqueue(q, online_mask);
<API key>(q);
}
/*
* New online cpumask which is going to be set in this hotplug event.
* Declare this cpumasks as global as cpu-hotplug operation is invoked
* one-by-one and dynamically allocating this could result in a failure.
*/
static struct cpumask cpuhp_online_new;
static void <API key>(void)
{
struct request_queue *q;
mutex_lock(&all_q_mutex);
/*
* We need to freeze and reinit all existing queues. Freezing
* involves synchronous wait for an RCU grace period and doing it
* one by one may take a long time. Start freezing all queues in
* one swoop and then wait for the completions so that freezing can
* take place in parallel.
*/
list_for_each_entry(q, &all_q_list, all_q_node)
<API key>(q);
list_for_each_entry(q, &all_q_list, all_q_node)
<API key>(q);
list_for_each_entry(q, &all_q_list, all_q_node)
blk_mq_queue_reinit(q, &cpuhp_online_new);
list_for_each_entry(q, &all_q_list, all_q_node)
<API key>(q);
mutex_unlock(&all_q_mutex);
}
static int <API key>(unsigned int cpu)
{
cpumask_copy(&cpuhp_online_new, cpu_online_mask);
<API key>();
return 0;
}
/*
* Before hotadded cpu starts handling requests, new mappings must be
* established. Otherwise, these requests in hw queue might never be
* dispatched.
*
* For example, there is a single hw queue (hctx) and two CPU queues (ctx0
* for CPU0, and ctx1 for CPU1).
*
* Now CPU1 is just onlined and a request is inserted into ctx1->rq_list
* and set bit0 in pending bitmap as ctx1->index_hw is still zero.
*
* And then while running hw queue, <API key>() finds bit0 is set
* in pending bitmap and tries to retrieve requests in hctx->ctxs[0]->rq_list.
* But htx->ctxs[0] is a pointer to ctx0, so the request in ctx1->rq_list is
* ignored.
*/
static int <API key>(unsigned int cpu)
{
cpumask_copy(&cpuhp_online_new, cpu_online_mask);
cpumask_set_cpu(cpu, &cpuhp_online_new);
<API key>();
return 0;
}
static int <API key>(struct blk_mq_tag_set *set)
{
int i;
for (i = 0; i < set->nr_hw_queues; i++)
if (!<API key>(set, i))
goto out_unwind;
return 0;
out_unwind:
while (--i >= 0)
blk_mq_free_rq_map(set->tags[i]);
return -ENOMEM;
}
/*
* Allocate the request maps associated with this tag_set. Note that this
* may reduce the depth asked for, if memory is tight. set->queue_depth
* will be updated to reflect the allocated depth.
*/
static int <API key>(struct blk_mq_tag_set *set)
{
unsigned int depth;
int err;
depth = set->queue_depth;
do {
err = <API key>(set);
if (!err)
break;
set->queue_depth >>= 1;
if (set->queue_depth < set->reserved_tags + BLK_MQ_TAG_MIN) {
err = -ENOMEM;
break;
}
} while (set->queue_depth);
if (!set->queue_depth || err) {
pr_err("blk-mq: failed to allocate request map\n");
return -ENOMEM;
}
if (depth != set->queue_depth)
pr_info("blk-mq: reduced tag depth (%u -> %u)\n",
depth, set->queue_depth);
return 0;
}
/*
* Alloc a tag set to be associated with one or more request queues.
* May fail with EINVAL for various error conditions. May adjust the
* requested depth down, if if it too large. In that case, the set
* value will be stored in set->queue_depth.
*/
int <API key>(struct blk_mq_tag_set *set)
{
int ret;
BUILD_BUG_ON(BLK_MQ_MAX_DEPTH > 1 << <API key>);
if (!set->nr_hw_queues)
return -EINVAL;
if (!set->queue_depth)
return -EINVAL;
if (set->queue_depth < set->reserved_tags + BLK_MQ_TAG_MIN)
return -EINVAL;
if (!set->ops->queue_rq)
return -EINVAL;
if (set->queue_depth > BLK_MQ_MAX_DEPTH) {
pr_info("blk-mq: reduced tag depth to %u\n",
BLK_MQ_MAX_DEPTH);
set->queue_depth = BLK_MQ_MAX_DEPTH;
}
/*
* If a crashdump is active, then we are potentially in a very
* memory constrained environment. Limit us to 1 queue and
* 64 tags to prevent using too much memory.
*/
if (is_kdump_kernel()) {
set->nr_hw_queues = 1;
set->queue_depth = min(64U, set->queue_depth);
}
/*
* There is no use for more h/w queues than cpus.
*/
if (set->nr_hw_queues > nr_cpu_ids)
set->nr_hw_queues = nr_cpu_ids;
set->tags = kzalloc_node(nr_cpu_ids * sizeof(struct blk_mq_tags *),
GFP_KERNEL, set->numa_node);
if (!set->tags)
return -ENOMEM;
ret = -ENOMEM;
set->mq_map = kzalloc_node(sizeof(*set->mq_map) * nr_cpu_ids,
GFP_KERNEL, set->numa_node);
if (!set->mq_map)
goto out_free_tags;
if (set->ops->map_queues)
ret = set->ops->map_queues(set);
else
ret = blk_mq_map_queues(set);
if (ret)
goto out_free_mq_map;
ret = <API key>(set);
if (ret)
goto out_free_mq_map;
mutex_init(&set->tag_list_lock);
INIT_LIST_HEAD(&set->tag_list);
return 0;
out_free_mq_map:
kfree(set->mq_map);
set->mq_map = NULL;
out_free_tags:
kfree(set->tags);
set->tags = NULL;
return ret;
}
EXPORT_SYMBOL(<API key>);
void blk_mq_free_tag_set(struct blk_mq_tag_set *set)
{
int i;
for (i = 0; i < nr_cpu_ids; i++)
<API key>(set, i);
kfree(set->mq_map);
set->mq_map = NULL;
kfree(set->tags);
set->tags = NULL;
}
EXPORT_SYMBOL(blk_mq_free_tag_set);
int <API key>(struct request_queue *q, unsigned int nr)
{
struct blk_mq_tag_set *set = q->tag_set;
struct blk_mq_hw_ctx *hctx;
int i, ret;
if (!set)
return -EINVAL;
blk_mq_freeze_queue(q);
<API key>(q);
ret = 0;
<API key>(q, hctx, i) {
if (!hctx->tags)
continue;
/*
* If we're using an MQ scheduler, just update the scheduler
* queue depth. This is similar to what the old code would do.
*/
if (!hctx->sched_tags) {
ret = <API key>(hctx, &hctx->tags,
min(nr, set->queue_depth),
false);
} else {
ret = <API key>(hctx, &hctx->sched_tags,
nr, true);
}
if (ret)
break;
}
if (!ret)
q->nr_requests = nr;
<API key>(q);
<API key>(q, true);
return ret;
}
void <API key>(struct blk_mq_tag_set *set, int nr_hw_queues)
{
struct request_queue *q;
if (nr_hw_queues > nr_cpu_ids)
nr_hw_queues = nr_cpu_ids;
if (nr_hw_queues < 1 || nr_hw_queues == set->nr_hw_queues)
return;
list_for_each_entry(q, &set->tag_list, tag_set_list)
blk_mq_freeze_queue(q);
set->nr_hw_queues = nr_hw_queues;
list_for_each_entry(q, &set->tag_list, tag_set_list) {
<API key>(set, q);
/*
* Manually set the make_request_fn as <API key>
* resets a lot of the queue settings.
*/
if (q->nr_hw_queues > 1)
q->make_request_fn = blk_mq_make_request;
else
q->make_request_fn = blk_sq_make_request;
blk_mq_queue_reinit(q, cpu_online_mask);
}
list_for_each_entry(q, &set->tag_list, tag_set_list)
<API key>(q);
}
EXPORT_SYMBOL_GPL(<API key>);
static unsigned long blk_mq_poll_nsecs(struct request_queue *q,
struct blk_mq_hw_ctx *hctx,
struct request *rq)
{
struct blk_rq_stat stat[2];
unsigned long ret = 0;
/*
* If stats collection isn't on, don't sleep but turn it on for
* future users
*/
if (!blk_stat_enable(q))
return 0;
/*
* We don't have to do this once per IO, should optimize this
* to just use the current window of stats until it changes
*/
memset(&stat, 0, sizeof(stat));
blk_hctx_stat_get(hctx, stat);
/*
* As an optimistic guess, use half of the mean service time
* for this type of request. We can (and should) make this smarter.
* For instance, if the completion latencies are tight, we can
* get closer than just half the mean. This is especially
* important on devices where the completion latencies are longer
* than ~10 usec.
*/
if (req_op(rq) == REQ_OP_READ && stat[BLK_STAT_READ].nr_samples)
ret = (stat[BLK_STAT_READ].mean + 1) / 2;
else if (req_op(rq) == REQ_OP_WRITE && stat[BLK_STAT_WRITE].nr_samples)
ret = (stat[BLK_STAT_WRITE].mean + 1) / 2;
return ret;
}
static bool <API key>(struct request_queue *q,
struct blk_mq_hw_ctx *hctx,
struct request *rq)
{
struct hrtimer_sleeper hs;
enum hrtimer_mode mode;
unsigned int nsecs;
ktime_t kt;
if (test_bit(REQ_ATOM_POLL_SLEPT, &rq->atomic_flags))
return false;
/*
* poll_nsec can be:
*
* -1: don't ever hybrid sleep
* 0: use half of prev avg
* >0: use this specific value
*/
if (q->poll_nsec == -1)
return false;
else if (q->poll_nsec > 0)
nsecs = q->poll_nsec;
else
nsecs = blk_mq_poll_nsecs(q, hctx, rq);
if (!nsecs)
return false;
set_bit(REQ_ATOM_POLL_SLEPT, &rq->atomic_flags);
/*
* This will be replaced with the stats tracking code, using
* 'avg_completion_time / 2' as the pre-sleep target.
*/
kt = nsecs;
mode = HRTIMER_MODE_REL;
<API key>(&hs.timer, CLOCK_MONOTONIC, mode);
hrtimer_set_expires(&hs.timer, kt);
<API key>(&hs, current);
do {
if (test_bit(REQ_ATOM_COMPLETE, &rq->atomic_flags))
break;
set_current_state(<API key>);
<API key>(&hs.timer, mode);
if (hs.task)
io_schedule();
hrtimer_cancel(&hs.timer);
mode = HRTIMER_MODE_ABS;
} while (hs.task && !signal_pending(current));
__set_current_state(TASK_RUNNING);
<API key>(&hs.timer);
return true;
}
static bool __blk_mq_poll(struct blk_mq_hw_ctx *hctx, struct request *rq)
{
struct request_queue *q = hctx->queue;
long state;
/*
* If we sleep, have the caller restart the poll loop to reset
* the state. Like for the other success return cases, the
* caller is responsible for checking if the IO completed. If
* the IO isn't complete, we'll get called again and will go
* straight to the busy poll loop.
*/
if (<API key>(q, hctx, rq))
return true;
hctx->poll_considered++;
state = current->state;
while (!need_resched()) {
int ret;
hctx->poll_invoked++;
ret = q->mq_ops->poll(hctx, rq->tag);
if (ret > 0) {
hctx->poll_success++;
set_current_state(TASK_RUNNING);
return true;
}
if (<API key>(state, current))
set_current_state(TASK_RUNNING);
if (current->state == TASK_RUNNING)
return true;
if (ret < 0)
break;
cpu_relax();
}
return false;
}
bool blk_mq_poll(struct request_queue *q, blk_qc_t cookie)
{
struct blk_mq_hw_ctx *hctx;
struct blk_plug *plug;
struct request *rq;
if (!q->mq_ops || !q->mq_ops->poll || !blk_qc_t_valid(cookie) ||
!test_bit(QUEUE_FLAG_POLL, &q->queue_flags))
return false;
plug = current->plug;
if (plug)
blk_flush_plug_list(plug, false);
hctx = q->queue_hw_ctx[<API key>(cookie)];
if (!<API key>(cookie))
rq = blk_mq_tag_to_rq(hctx->tags, blk_qc_t_to_tag(cookie));
else
rq = blk_mq_tag_to_rq(hctx->sched_tags, blk_qc_t_to_tag(cookie));
return __blk_mq_poll(hctx, rq);
}
EXPORT_SYMBOL_GPL(blk_mq_poll);
void <API key>(void)
{
mutex_lock(&all_q_mutex);
}
void <API key>(void)
{
mutex_unlock(&all_q_mutex);
}
static int __init blk_mq_init(void)
{
<API key>(CPUHP_BLK_MQ_DEAD, "block/mq:dead", NULL,
<API key>);
<API key>(<API key>, "block/mq:prepare",
<API key>,
<API key>);
return 0;
}
subsys_initcall(blk_mq_init);
|
#include "StdAfx.h"
|
package javax.naming.ldap.spi;
import javax.naming.Context;
import javax.naming.NamingException;
import java.util.Map;
import java.util.Optional;
/**
* Service-provider class for DNS lookups when performing LDAP operations.
*
* <p> An LDAP DNS provider is a concrete subclass of this class that
* has a zero-argument constructor. LDAP DNS providers are located using the
* ServiceLoader facility, as specified by
* {@linkplain javax.naming.directory.InitialDirContext <API key>}.
*
* The
* {@link java.util.ServiceLoader ServiceLoader} is used to create and register
* implementations of {@code LdapDnsProvider}.
*
* <p> An LDAP DNS provider can be used in environments where the default
* DNS resolution mechanism is not sufficient to accurately pinpoint the
* correct LDAP servers needed to perform LDAP operations. For example, in an
* environment containing a mix of {@code ldap} and {@code ldaps} servers
* you may want the {@linkplain javax.naming.ldap.LdapContext LdapContext}
* to query {@code ldaps} servers only.
*
* @since 12
*/
public abstract class LdapDnsProvider {
// necessary to subclass and instantiate the {@code LdapDnsProvider} class.
private static final RuntimePermission <API key> =
new RuntimePermission("ldapDnsProvider");
protected LdapDnsProvider() {
this(checkPermission());
}
private LdapDnsProvider(Void unused) {
// nothing to do.
}
private static Void checkPermission() {
final SecurityManager sm = System.getSecurityManager();
if (sm != null) {
sm.checkPermission(<API key>);
}
return null;
}
public abstract Optional<<API key>> lookupEndpoints(
String url, Map<?,?> env) throws NamingException;
}
|
<?php
namespace Wealthbot\AdminBundle\Form\Type;
use Wealthbot\RiaBundle\Entity\<API key>;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\OptionsResolver\<API key>;
class <API key> extends AbstractType
{
public function buildForm(<API key> $builder, array $options)
{
/** @var <API key> $data */
$data = $builder->getData();
$builder->add('relationship_type', 'choice', array(
'choices' => <API key>::$<API key>,
'expanded' => true,
'multiple' => false,
'data' => ($data && $data->getRelationshipType() ? $data->getRelationshipType() : 0)
));
}
/**
* @param <API key> $resolver
*/
public function setDefaultOptions(<API key> $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Wealthbot\RiaBundle\Entity\<API key>'
));
}
public function getName()
{
return '<API key>';
}
}
|
#CEwrap {
padding-right: 55px;
padding-left: 10px;
margin-bottom: 1em;
}
#CEwrap #wp_chimpexpress th,
#CEwrap #wp_chimpexpress td {
vertical-align: top;
}
#CEwrap #mc_ping,
#CEwrap #mc_status {
position: relative;
top: 1px;
}
#CEwrap .chimpexpress_help {
margin: 0 10px;
}
#CEwrap .componentHeading {
display: inline-block;
background: url(../images/logo_32.png) no-repeat 0 15px;
padding-left: 40px !important;
}
#CEwrap #loggedInStatus,
#CEwrap #dashboardButton {
float: right;
padding: 25px 0 0;
font-size:0.8em;
}
#CEwrap #loggedInStatus a,
#CEwrap #loggedInStatus a:hover {
color: #333333;
}
#CEwrap h3 {
color:#464646;
font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;
font-size:1.5em;
font-style:italic;
font-weight:normal;
margin:0;
}
#CEwrap h4 {
color:#464646;
font-size:1.2em;
font-weight:normal;
margin:0;
}
#CEwrap h5 {
color:#464646;
font-size:1.2em;
font-weight:normal;
margin:0;
}
#CEwrap table#dashboardTable td {
text-align: center;
}
#CEwrap hr {
border: 1px solid #E3E3E3;
border-width: 1px 0 0 0;
color: #F1F1F1;
}
#CEwrap label {
display: inline-block;
font-size: 14px;
padding: 0 0 3px 3px;
}
#CEwrap .mainOption {
display: block;
background: #F1F1F1;
border: 1px solid #E3E3E3;
-<API key>: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
width: 300px;
height: 175px;
padding: 10px 20px;
margin: 50px 0 0 0;
}
#CEwrap .mainOption h3 {
margin: 10px 0;
}
#CEwrap .mainOption hr {
border-color: #BFBFBF;
}
#CEwrap .mainOption .mainText {
height: 60px;
margin: 25px 0 0;
}
#CEwrap .mainOption .button-primary {
padding: 0px 25px 3px 25px;
text-align: center;
}
.clr {
clear: both;
}
#CEwrap #preloaderContainer {
width: 100%;
height: 75px;
text-align: center;
}
#CEwrap #preloaderContainer #preloader {
background: url("../images/loader_32.gif") no-repeat scroll left 0 transparent;
display: block;
height: 32px;
margin: 50px auto;
padding: 6px 0 0 45px;
text-align: left;
vertical-align: middle;
width: 400px;
}
#CEwrap #tName {
width: 100%;
text-align: center;
}
#CEwrap #stepsContainer {
margin:auto auto 15px;
text-align:center;
width:100%;
min-height: 100px;
}
#CEwrap #<API key> {
display: inline;
}
#CEwrap .prevNext {
display:inline-block;
width: 21px;
height: 22px;
position:relative;
top:-12px;
margin: 0 10px;
opacity: 0.6;
cursor: pointer;
}
#CEwrap .prevNext a {
display:inline-block;
text-indent: -5000px;
width: 21px;
height: 22px;
cursor: pointer;
}
#CEwrap #prevStep {
background: url(../images/arrow-left.gif) no-repeat 0 0;
}
#CEwrap #nextStep {
background: url(../images/arrow-right.gif) no-repeat 0 0;
}
#CEwrap #next,
#CEwrap .next {
margin-right: 20px;
padding-left: 25px;
padding-right: 25px;
}
#CEwrap .step {
margin-right: 0;
text-align:center;
display:inline-block;
position: relative;
top: 28px;
height: 75px;
}
#CEwrap .step a,
#CEwrap .step a:hover,
#CEwrap .step a:active,
#CEwrap .step a:focus {
color:#FFFFFF;
text-decoration:none;
display:inline-block;
width: 40px;
height:30px;
padding:10px 0 0;
position:relative;
top: -10px;
}
#CEwrap .activeStep a {
background:none repeat scroll 0 0 #8F8F8F;
border: 0px solid #8F8F8F;
color:#FFFFFF;
font-size:14px;
font-weight:bold;
-<API key>: 25px;
-moz-border-radius: 25px;
border-radius: 25px
padding:10px 0 0;
}
#CEwrap .inactiveStep a {
background:none repeat scroll 0 0 #BFBFBF;
border: 0px solid #BFBFBF;
color:#FFFFFF;
font-size:14px;
font-weight:bold;
-<API key>: 25px;
-moz-border-radius: 25px;
border-radius: 25px
padding:10px 0 0;
}
#CEwrap .stepSubTitle {
font-size: 11px;
font-weight: normal;
text-transform: capitalize;
}
#CEwrap .activeStep .stepSubTitle {
color: #333333;
}
#CEwrap .inactiveStep .stepSubTitle {
color: #7F7F7F;
}
#CEwrap .bgLine {
background:none repeat scroll 0 0 #CFCFCF;
display:inline-block;
height:2px;
margin:0 -20px;
position: relative;
top:-15px;
width:100px;
z-index:-1;
}
#CEwrap #ajaxLoader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #fff;
background-position: center center;
background-repeat: no-repeat;
z-index: 1000;
display: none;
opacity: 0.75;
opacity: 0.75;
-webkit-opacity: 0.75;
-moz-opacity: 0.75;
filter: alpha(opacity=75);
}
#CEwrap #template,
#CEwrap #listId,
#CEwrap #cid {
min-width: 300px;
margin-right: 20px;
}
#CEwrap #preview {
margin-right: 20px;
}
#CEwrap #monkey-ruler {
background: url(../images/ruler-centered.png) no-repeat scroll center bottom transparent;
height: 58px;
position: relative;
width: 100.2%;
}
#CEwrap #monkey-ruler p {
background: url(../images/ruler-arm.png) repeat scroll right top transparent;
display: block;
height: 30px;
margin: 0;
padding: 16px 0 0;
text-align: center;
}
#CEwrap #monkeyhead.scream {
background-position: right center;
}
#CEwrap #monkeyhead {
background: url(../images/ruler-head.png) repeat scroll 0 0 transparent;
display: block;
height: 46px;
left: 0;
position: absolute;
text-indent: -9999px;
top: 0;
width: 60px;
}
#CEwrap #chimpexpressCompose input.inputWide {
width: 100%;
}
#CEwrap #sectionTitleWrapper {
color:#464646;
font-size:1.5em;
font-weight:normal;
margin: 0 0 0.5em 0;
}
#CEwrap .sectionTitle {
text-transform: capitalize;
}
#CEwrap .grey {
color: #7F7F7F !important;
}
#CEwrap .bold {
font-weight: bold;
}
#CEwrap .postarea #editor-toolbar {
height: 30px;
}
#CEwrap .postarea #edButtonPreview,
#CEwrap .postarea #edButtonHTML {
background-color:#f1f1f1;
border-color:#dfdfdf;
color:#999;
}
.postarea #editor-toolbar .active {
background-color: #E9E9E9;
border-bottom-color: #E9E9E9;
color: #333333;
}
#CEwrap .postarea #editorcontainer textarea {
margin: 0;
width: 100%;
}
#CEwrap #insertPost {
margin: 1em 0 3em 0;
}
#CEwrap #posts {
min-width: 250px;
}
#CEwrap .ul {
list-style-type: disc;
padding: 0 0 0 40px;
margin: 0 0 2em;
}
#CEwrap .ul li {
padding: 5px 0;
}
#CEwrap #gotoArchive {
float: right;
}
#CEwrap #archive thead {
line-height: 1.5em;
font-size: 2em;
font-weight: bold;
}
#CEwrap #archive tbody {
line-height: 2em;
}
#CEwrap #CEfooter {
width: 100%;
text-align: right;
margin-top: 5em;
color: #BFBFBF;
}
#CEwrap #CEfooter a {
color: #BFBFBF;
}
|
package com.chyitech.yiim.ui.mine;
import android.os.Bundle;
import android.os.Message;
import android.webkit.WebView;
import com.chyitech.yiim.R;
import com.chyitech.yiim.sdk.api.YiXmppResult;
import com.chyitech.yiim.ui.base.CustomTitleActivity;
public class AboutActivity extends CustomTitleActivity {
private WebView mAbout;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_about);
super.onCreate(savedInstanceState);
}
@Override
public void <API key>(Message msg) {
// TODO Auto-generated method stub
}
@Override
protected void onUIXmppResponse(YiXmppResult result) {
// TODO Auto-generated method stub
}
@Override
protected void initViews() {
// TODO Auto-generated method stub
mAbout = (WebView) findViewById(R.id.about);
}
@Override
protected void initDatas() {
// TODO Auto-generated method stub
//mAbout.getSettings().<API key>(true);
mAbout.loadUrl("file:///android_asset/about.html");
}
@Override
protected void installListeners() {
// TODO Auto-generated method stub
}
@Override
protected void uninstallListeners() {
// TODO Auto-generated method stub
}
}
|
#ifndef __FB_H
#define __FB_H
#include <lib/base/eerror.h>
#include <linux/fb.h>
#if defined(__sh__)
#include <linux/stmfb.h>
#endif
// #define DEBUG_FB
class fbClass
{
int fbFd;
int xRes, yRes, stride, bpp;
#if defined(__sh__)
struct <API key> outcfg;
struct stmfbio_outputinfo outinfo;
struct stmfbio_planeinfo planemode;
struct <API key> infoex;
int xResSc, yResSc;
int topDiff, leftDiff, rightDiff, bottomDiff;
#endif
int available;
struct fb_var_screeninfo screeninfo;
fb_cmap cmap;
uint16_t red[256], green[256], blue[256], trans[256];
static fbClass *instance;
int locked;
int m_manual_blit;
int m_number_of_pages;
int m_phys_mem;
#ifdef SWIG
fbClass(const char *fb="/dev/fb0");
~fbClass();
public:
#else
public:
unsigned char *lfb;
void enableManualBlit();
void disableManualBlit();
int showConsole(int state);
int SetMode(int xRes, int yRes, int bpp);
void getMode(int &xres, int &yres, int &bpp);
int Available() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return available;
}
int getNumPages() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return m_number_of_pages;
}
unsigned long getPhysAddr() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return m_phys_mem;
}
int setOffset(int off);
int waitVSync();
void blit();
unsigned int Stride() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return stride;
}
fb_cmap *CMAP() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return &cmap;
}
fbClass(const char *fb="/dev/fb0");
~fbClass();
// low level gfx stuff
int PutCMAP();
#endif
static fbClass *getInstance();
int lock();
void unlock();
int islocked() {
#ifdef DEBUG_FB
eDebug("[fbClass] %s", __FUNCTION__);
#endif
return locked;
}
};
#endif
|
#include "emu.h"
#include "rendfont.h"
#include "emuopts.h"
#include "coreutil.h"
#include "osdepend.h"
#include "uismall.fh"
#include "ui/cmdrender.h"
/* wrap a texture around the bitmap */
|
// -*- C++ -*- forwarding header.
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// invalidate any other reasons why the executable file might be covered by
// ISO C++ 14882: 20.4.6 C library
#ifndef _GLIBCXX_CSTDLIB
#define _GLIBCXX_CSTDLIB 1
#pragma GCC system_header
#include_next <stdlib.h>
#endif
|
<?php
/**
* @file
* Contains \Drupal\commerce_store\<API key>.
*/
namespace Drupal\commerce_store;
use Drupal\commerce_store\Entity\StoreInterface;
/**
* Defines the interface for store storage.
*/
interface <API key> {
/**
* Loads the default store.
*
* @return \Drupal\commerce_store\Entity\StoreInterface|null
* The default store, if known.
*/
public function loadDefault();
/**
* Marks the provided store as the default.
*
* @param \Drupal\commerce_store\Entity\StoreInterface $store
* The new default store.
*/
public function markAsDefault(StoreInterface $store);
}
|
<?php
class Style extends <API key>
{
public $style;
public function __construct($id, $settings)
{
parent::__construct($id, $settings);
$this->style = $this->build_css($settings['selector']);
}
protected function build_css($selector)
{
$css = '<style>';
$css .= $selector . ' {';
$css .= 'background-image: url("'.$this->images[0]['src'].'");';
$css .= '}';
for ($i=1; $i < count($this->images); $i++) {
$media_query = $this->media_query($this->images[$i]);
$css .= $media_query.' {';
$css .= $selector . '{';
$css .= 'background-image: url("'.$this->images[$i]['src'].'");';
$css .= '}';
$css .= '}';
}
$css .= '</style>';
return $css;
}
protected function media_query( $image )
{
if ( gettype($image['media_query']) == 'array' ) {
return '@media screen and ('.$image['media_query']['property'].': '.$image['media_query']['value'].')';
}
return '@media screen and ('.$image['media_query'].')';
}
}
|
mdss-mdp3-objs = mdp3.o mdp3_dma.o mdp3_ctrl.o
mdss-mdp3-objs += mdp3_ppp.o mdp3_ppp_hwio.o mdp3_ppp_data.o
obj-$(<API key>) += mdss-mdp3.o
mdss-mdp-objs := mdss_mdp.o mdss_mdp_ctl.o mdss_mdp_pipe.o mdss_mdp_util.o
mdss-mdp-objs += mdss_mdp_pp.o mdss_mdp_pp_debug.o
mdss-mdp-objs += mdss_mdp_intf_video.o
mdss-mdp-objs += mdss_mdp_intf_cmd.o
mdss-mdp-objs += <API key>.o
mdss-mdp-objs += mdss_mdp_rotator.o
mdss-mdp-objs += mdss_mdp_overlay.o
mdss-mdp-objs += <API key>.o
mdss-mdp-objs += mdss_mdp_wb.o
obj-$(CONFIG_FB_MSM_MDSS) += mdss-mdp.o
ifeq ($(CONFIG_FB_MSM_MDSS),y)
obj-$(CONFIG_DEBUG_FS) += mdss_debug.o mdss_debug_xlog.o
endif
dsi-v2-objs = dsi_v2.o dsi_host_v2.o dsi_io_v2.o
obj-$(<API key>) += dsi-v2.o
mdss-dsi-objs := mdss_dsi.o mdss_dsi_host.o mdss_dsi_cmd.o
mdss-dsi-objs += mdss_dsi_panel.o
mdss-dsi-objs += msm_mdss_io_8974.o
obj-$(CONFIG_FB_MSM_MDSS) += mdss-dsi.o
obj-$(<API key>) += mdss_edp.o
obj-$(<API key>) += mdss_edp_aux.o
obj-$(CONFIG_FB_MSM_MDSS) += mdss_io_util.o
obj-$(<API key>) += mdss_hdmi_tx.o
obj-$(<API key>) += mdss_hdmi_util.o
obj-$(<API key>) += mdss_hdmi_edid.o
obj-$(<API key>) += mdss_hdmi_hdcp.o
obj-$(<API key>) += mdss_hdmi_cec.o
obj-$(<API key>) += mhl_sii8334.o mhl_msc.o
obj-$(<API key>) += mdss_wb.o
mdss-qpic-objs := mdss_qpic.o mdss_fb.o mdss_qpic_panel.o
obj-$(CONFIG_FB_MSM_QPIC) += mdss-qpic.o
obj-$(<API key>) += qpic_panel_ili_qvga.o
obj-$(CONFIG_FB_MSM_MDSS) += mdss_fb.o
obj-$(CONFIG_COMPAT) += mdss_compat_utils.o
ifeq ($(<API key>),y)
obj-$(<API key>) += dsi_status_v2.o
else
obj-$(<API key>) += mdss_dsi_status.o
endif
obj-$(<API key>) += mdss_mdp_kcal_ctrl.o
obj-$(CONFIG_FB_MSM_MDSS) += lcd_notify.o
|
<?php
class AtmedicoPeer extends BaseAtmedicoPeer
{
}
|
package com.espertech.esper.plugin;
import java.net.URI;
/**
* Context for use in {@link <API key>} to provide information to help decide
* whether an event representation can handle the requested resolution URI for creating event object wrappers.
*/
public class <API key>
{
private final URI resolutionURI;
/**
* Ctor.
* @param uri is the resolution URI provided as part of {@link com.espertech.esper.client.EPRuntime#getEventSender(java.net.URI[])}
*/
public <API key>(URI uri)
{
this.resolutionURI = uri;
}
/**
* Returns the resolution URI.
* @return resolution URI
*/
public URI getResolutionURI()
{
return resolutionURI;
}
}
|
kendo_module({
id: "draganddrop",
name: "Drag & drop",
category: "framework",
description: "Drag & drop functionality for any DOM element.",
depends: [ "core", "userevents" ]
});
(function ($, undefined) {
var kendo = window.kendo,
support = kendo.support,
document = window.document,
Class = kendo.Class,
Widget = kendo.ui.Widget,
Observable = kendo.Observable,
UserEvents = kendo.UserEvents,
proxy = $.proxy,
extend = $.extend,
getOffset = kendo.getOffset,
draggables = {},
dropTargets = {},
dropAreas = {},
lastDropTarget,
OS = support.mobileOS,
invalidZeroEvents = OS && OS.android,
mobileChrome = (invalidZeroEvents && OS.browser == "chrome"),
KEYUP = "keyup",
CHANGE = "change",
// Draggable events
DRAGSTART = "dragstart",
DRAG = "drag",
DRAGEND = "dragend",
DRAGCANCEL = "dragcancel",
// DropTarget events
DRAGENTER = "dragenter",
DRAGLEAVE = "dragleave",
DROP = "drop";
function contains(parent, child) {
try {
return $.contains(parent, child) || parent == child;
} catch (e) {
return false;
}
}
function elementUnderCursor(e) {
if (mobileChrome) {
return document.elementFromPoint(e.x.screen, e.y.screen);
} else {
return document.elementFromPoint(e.x.client, e.y.client);
}
}
function numericCssPropery(element, property) {
return parseInt(element.css(property), 10) || 0;
}
function within(value, range) {
return Math.min(Math.max(value, range.min), range.max);
}
function containerBoundaries(container, element) {
var offset = getOffset(container),
minX = offset.left + numericCssPropery(container, "borderLeftWidth") + numericCssPropery(container, "paddingLeft"),
minY = offset.top + numericCssPropery(container, "borderTopWidth") + numericCssPropery(container, "paddingTop"),
maxX = minX + container.width() - element.outerWidth(true),
maxY = minY + container.height() - element.outerHeight(true);
return {
x: { min: minX, max: maxX },
y: { min: minY, max: maxY }
};
}
function checkTarget(target, targets, areas) {
var theTarget, theFilter, i = 0,
targetLen = targets && targets.length,
areaLen = areas && areas.length;
while (target && target.parentNode) {
for (i = 0; i < targetLen; i ++) {
theTarget = targets[i];
if (theTarget.element[0] === target) {
return { target: theTarget, targetElement: target };
}
}
for (i = 0; i < areaLen; i ++) {
theFilter = areas[i];
if (support.matchesSelector.call(target, theFilter.options.filter)) {
return { target: theFilter, targetElement: target };
}
}
target = target.parentNode;
}
return undefined;
}
var TapCapture = Observable.extend({
init: function(element, options) {
var that = this,
domElement = element[0];
that.capture = false;
$.each(kendo.eventMap.down.split(" "), function() {
domElement.addEventListener(this, proxy(that._press, that), true);
});
$.each(kendo.eventMap.up.split(" "), function() {
domElement.addEventListener(this, proxy(that._release, that), true);
});
Observable.fn.init.call(that);
that.bind(["press", "release"], options || {});
},
captureNext: function() {
this.capture = true;
},
cancelCapture: function() {
this.capture = false;
},
_press: function(e) {
var that = this;
that.trigger("press");
if (that.capture) {
e.preventDefault();
}
},
_release: function(e) {
var that = this;
that.trigger("release");
if (that.capture) {
e.preventDefault();
that.cancelCapture();
}
}
});
var PaneDimension = Observable.extend({
init: function(options) {
var that = this;
Observable.fn.init.call(that);
that.forcedEnabled = false;
$.extend(that, options);
that.scale = 1;
if (that.horizontal) {
that.measure = "offsetWidth";
that.scrollSize = "scrollWidth";
that.axis = "x";
} else {
that.measure = "offsetHeight";
that.scrollSize = "scrollHeight";
that.axis = "y";
}
},
makeVirtual: function() {
$.extend(this, {
virtual: true,
forcedEnabled: true,
_virtualMin: 1000,
_virtualMax: -1000
});
},
virtualSize: function(min, max) {
if (this._virtualMin !== min || this._virtualMax !== max) {
this._virtualMin = min;
this._virtualMax = max;
this.update();
}
},
outOfBounds: function(offset) {
return offset > this.max || offset < this.min;
},
forceEnabled: function() {
this.forcedEnabled = true;
},
getSize: function() {
return this.container[0][this.measure];
},
getTotal: function() {
return this.element[0][this.scrollSize];
},
rescale: function(scale) {
this.scale = scale;
},
update: function(silent) {
var that = this,
total = that.virtual ? that._virtualMax : that.getTotal(),
scaledTotal = total * that.scale,
size = that.getSize();
that.max = that.virtual ? -that._virtualMin : 0;
that.size = size;
that.total = scaledTotal;
that.min = Math.min(that.max, size - scaledTotal);
that.minScale = size / total;
that.centerOffset = (scaledTotal - size) / 2;
that.enabled = that.forcedEnabled || (scaledTotal > size);
if (!silent) {
that.trigger(CHANGE, that);
}
}
});
var PaneDimensions = Observable.extend({
init: function(options) {
var that = this,
refresh = proxy(that.refresh, that);
Observable.fn.init.call(that);
that.x = new PaneDimension(extend({horizontal: true}, options));
that.y = new PaneDimension(extend({horizontal: false}, options));
that.forcedMinScale = options.minScale;
that.bind(CHANGE, options);
kendo.onResize(refresh);
},
rescale: function(newScale) {
this.x.rescale(newScale);
this.y.rescale(newScale);
this.refresh();
},
centerCoordinates: function() {
return { x: Math.min(0, -this.x.centerOffset), y: Math.min(0, -this.y.centerOffset) };
},
refresh: function() {
var that = this;
that.x.update();
that.y.update();
that.enabled = that.x.enabled || that.y.enabled;
that.minScale = that.forcedMinScale || Math.min(that.x.minScale, that.y.minScale);
that.fitScale = Math.max(that.x.minScale, that.y.minScale);
that.trigger(CHANGE);
}
});
var PaneAxis = Observable.extend({
init: function(options) {
var that = this;
extend(that, options);
Observable.fn.init.call(that);
},
dragMove: function(delta) {
var that = this,
dimension = that.dimension,
axis = that.axis,
movable = that.movable,
position = movable[axis] + delta;
if (!dimension.enabled) {
return;
}
if ((position < dimension.min && delta < 0) || (position > dimension.max && delta > 0)) {
delta *= that.resistance;
}
movable.translateAxis(axis, delta);
that.trigger(CHANGE, that);
}
});
var Pane = Class.extend({
init: function(options) {
var that = this,
x,
y,
resistance,
movable;
extend(that, {elastic: true}, options);
resistance = that.elastic ? 0.5 : 0;
movable = that.movable;
that.x = x = new PaneAxis({
axis: "x",
dimension: that.dimensions.x,
resistance: resistance,
movable: movable
});
that.y = y = new PaneAxis({
axis: "y",
dimension: that.dimensions.y,
resistance: resistance,
movable: movable
});
that.userEvents.bind(["move", "end", "gesturestart", "gesturechange"], {
gesturestart: function(e) {
that.gesture = e;
},
gesturechange: function(e) {
var previousGesture = that.gesture,
previousCenter = previousGesture.center,
center = e.center,
scaleDelta = e.distance / previousGesture.distance,
minScale = that.dimensions.minScale,
coordinates;
if (movable.scale <= minScale && scaleDelta < 1) {
// Resist shrinking. Instead of shrinking from 1 to 0.5, it will shrink to 0.5 + (1 /* minScale */ - 0.5) * 0.8 = 0.9;
scaleDelta += (1 - scaleDelta) * 0.8;
}
coordinates = {
x: (movable.x - previousCenter.x) * scaleDelta + center.x - movable.x,
y: (movable.y - previousCenter.y) * scaleDelta + center.y - movable.y
};
movable.scaleWith(scaleDelta);
x.dragMove(coordinates.x);
y.dragMove(coordinates.y);
that.dimensions.rescale(movable.scale);
that.gesture = e;
e.preventDefault();
},
move: function(e) {
if (e.event.target.tagName.match(/textarea|input/i)) {
return;
}
if (x.dimension.enabled || y.dimension.enabled) {
x.dragMove(e.x.delta);
y.dragMove(e.y.delta);
e.preventDefault();
} else {
e.touch.skip();
}
},
end: function(e) {
e.preventDefault();
}
});
}
});
var TRANSFORM_STYLE = support.transitions.prefix + "Transform",
translate;
if (support.hasHW3D) {
translate = function(x, y, scale) {
return "translate3d(" + x + "px," + y +"px,0) scale(" + scale + ")";
};
} else {
translate = function(x, y, scale) {
return "translate(" + x + "px," + y +"px) scale(" + scale + ")";
};
}
var Movable = Observable.extend({
init: function(element) {
var that = this;
Observable.fn.init.call(that);
that.element = $(element);
that.element[0].style.<API key> = "left top";
that.x = 0;
that.y = 0;
that.scale = 1;
that._saveCoordinates(translate(that.x, that.y, that.scale));
},
translateAxis: function(axis, by) {
this[axis] += by;
this.refresh();
},
scaleTo: function(scale) {
this.scale = scale;
this.refresh();
},
scaleWith: function(scaleDelta) {
this.scale *= scaleDelta;
this.refresh();
},
translate: function(coordinates) {
this.x += coordinates.x;
this.y += coordinates.y;
this.refresh();
},
moveAxis: function(axis, value) {
this[axis] = value;
this.refresh();
},
moveTo: function(coordinates) {
extend(this, coordinates);
this.refresh();
},
refresh: function() {
var that = this,
newCoordinates = translate(that.x, that.y, that.scale);
if (newCoordinates != that.coordinates) {
that.element[0].style[TRANSFORM_STYLE] = newCoordinates;
that._saveCoordinates(newCoordinates);
that.trigger(CHANGE);
}
},
_saveCoordinates: function(coordinates) {
this.coordinates = coordinates;
}
});
var DropTarget = Widget.extend({
init: function(element, options) {
var that = this;
Widget.fn.init.call(that, element, options);
var group = that.options.group;
if (!(group in dropTargets)) {
dropTargets[group] = [ that ];
} else {
dropTargets[group].push( that );
}
},
events: [
DRAGENTER,
DRAGLEAVE,
DROP
],
options: {
name: "DropTarget",
group: "default"
},
destroy: function() {
var groupName = this.options.group,
group = dropTargets[groupName] || dropAreas[groupName],
i;
if (group.length > 1) {
Widget.fn.destroy.call(this);
for (i = 0; i < group.length; i++) {
if (group[i] == this) {
group.splice(i, 1);
break;
}
}
} else {
DropTarget.destroyGroup(groupName);
}
},
_trigger: function(eventName, e) {
var that = this,
draggable = draggables[that.options.group];
if (draggable) {
return that.trigger(eventName, extend({}, e.event, {
draggable: draggable,
dropTarget: e.dropTarget
}));
}
},
_over: function(e) {
this._trigger(DRAGENTER, e);
},
_out: function(e) {
this._trigger(DRAGLEAVE, e);
},
_drop: function(e) {
var that = this,
draggable = draggables[that.options.group];
if (draggable) {
draggable.dropped = !that._trigger(DROP, e);
}
}
});
DropTarget.destroyGroup = function(groupName) {
var group = dropTargets[groupName] || dropAreas[groupName],
i;
if (group) {
for (i = 0; i < group.length; i++) {
Widget.fn.destroy.call(group[i]);
}
group.length = 0;
delete dropTargets[groupName];
delete dropAreas[groupName];
}
};
DropTarget._cache = dropTargets;
var DropTargetArea = DropTarget.extend({
init: function(element, options) {
var that = this;
Widget.fn.init.call(that, element, options);
var group = that.options.group;
if (!(group in dropAreas)) {
dropAreas[group] = [ that ];
} else {
dropAreas[group].push( that );
}
},
options: {
name: "DropTargetArea",
group: "default",
filter: null
}
});
var Draggable = Widget.extend({
init: function (element, options) {
var that = this;
Widget.fn.init.call(that, element, options);
that.userEvents = new UserEvents(that.element, {
global: true,
stopPropagation: true,
filter: that.options.filter,
threshold: that.options.distance,
start: proxy(that._start, that),
move: proxy(that._drag, that),
end: proxy(that._end, that),
cancel: proxy(that._cancel, that)
});
that._afterEndHandler = proxy(that._afterEnd, that);
that.captureEscape = function(e) {
if (e.keyCode === kendo.keys.ESC) {
that._trigger(DRAGCANCEL, {event: e});
that.userEvents.cancel();
}
};
},
events: [
DRAGSTART,
DRAG,
DRAGEND,
DRAGCANCEL
],
options: {
name: "Draggable",
distance: 5,
group: "default",
cursorOffset: null,
axis: null,
container: null,
dropped: false
},
_updateHint: function(e) {
var that = this,
coordinates,
options = that.options,
boundaries = that.boundaries,
axis = options.axis,
cursorOffset = that.options.cursorOffset;
if (cursorOffset) {
coordinates = { left: e.x.location + cursorOffset.left, top: e.y.location + cursorOffset.top };
} else {
that.hintOffset.left += e.x.delta;
that.hintOffset.top += e.y.delta;
coordinates = $.extend({}, that.hintOffset);
}
if (boundaries) {
coordinates.top = within(coordinates.top, boundaries.y);
coordinates.left = within(coordinates.left, boundaries.x);
}
if (axis === "x") {
delete coordinates.top;
} else if (axis === "y") {
delete coordinates.left;
}
that.hint.css(coordinates);
},
_start: function(e) {
var that = this,
options = that.options,
container = options.container,
hint = options.hint;
that.currentTarget = e.target;
that.currentTargetOffset = getOffset(that.currentTarget);
if (hint) {
if (that.hint) {
that.hint.stop(true, true).remove();
}
that.hint = $.isFunction(hint) ? $(hint.call(that, that.currentTarget)) : hint;
var offset = getOffset(that.currentTarget);
that.hintOffset = offset;
that.hint.css( {
position: "absolute",
zIndex: 20000, // the Window's z-index is 10000 and can be raised because of z-stacking
left: offset.left,
top: offset.top
})
.appendTo(document.body);
}
draggables[options.group] = that;
that.dropped = false;
if (container) {
that.boundaries = containerBoundaries(container, that.hint);
}
if (that._trigger(DRAGSTART, e)) {
that.userEvents.cancel();
that._afterEnd();
}
$(document).on(KEYUP, that.captureEscape);
},
_drag: function(e) {
var that = this;
e.preventDefault();
that._withDropTarget(e, function(target, targetElement) {
if (!target) {
if (lastDropTarget) {
lastDropTarget._trigger(DRAGLEAVE, extend(e, { dropTarget: $(lastDropTarget.targetElement) }));
lastDropTarget = null;
}
return;
}
if (lastDropTarget) {
if (targetElement === lastDropTarget.targetElement) {
return;
}
lastDropTarget._trigger(DRAGLEAVE, extend(e, { dropTarget: $(lastDropTarget.targetElement) }));
}
target._trigger(DRAGENTER, extend(e, { dropTarget: $(targetElement) }));
lastDropTarget = extend(target, { targetElement: targetElement });
});
that._trigger(DRAG, e);
if (that.hint) {
that._updateHint(e);
}
},
_end: function(e) {
var that = this;
that._withDropTarget(e, function(target, targetElement) {
if (target) {
target._drop(extend({}, e, { dropTarget: $(targetElement) }));
lastDropTarget = null;
}
});
that._trigger(DRAGEND, e);
that._cancel(e.event);
},
_cancel: function() {
var that = this;
if (that.hint && !that.dropped) {
setTimeout(function() {
that.hint.stop(true, true).animate(that.currentTargetOffset, "fast", that._afterEndHandler);
}, 0);
} else {
that._afterEnd();
}
},
_trigger: function(eventName, e) {
var that = this;
return that.trigger(
eventName, extend(
{},
e.event,
{
x: e.x,
y: e.y,
currentTarget: that.currentTarget,
dropTarget: e.dropTarget
}
));
},
_withDropTarget: function(e, callback) {
var that = this,
target, result,
options = that.options,
targets = dropTargets[options.group],
areas = dropAreas[options.group];
if (targets && targets.length || areas && areas.length) {
target = elementUnderCursor(e);
if (that.hint && contains(that.hint[0], target)) {
that.hint.hide();
target = elementUnderCursor(e);
// IE8 does not return the element in iframe from first attempt
if (!target) {
target = elementUnderCursor(e);
}
that.hint.show();
}
result = checkTarget(target, targets, areas);
if (result) {
callback(result.target, result.targetElement);
} else {
callback();
}
}
},
destroy: function() {
var that = this;
Widget.fn.destroy.call(that);
that._afterEnd();
that.userEvents.destroy();
},
_afterEnd: function() {
var that = this;
if (that.hint) {
that.hint.remove();
}
delete draggables[that.options.group];
that.trigger("destroy");
$(document).off(KEYUP, that.captureEscape);
}
});
kendo.ui.plugin(DropTarget);
kendo.ui.plugin(DropTargetArea);
kendo.ui.plugin(Draggable);
kendo.TapCapture = TapCapture;
kendo.containerBoundaries = containerBoundaries;
extend(kendo.ui, {
Pane: Pane,
PaneDimensions: PaneDimensions,
Movable: Movable
});
})(window.kendo.jQuery);
|
if("undefined"==typeof akeeba)var akeeba={};"undefined"==typeof akeeba.Extradirs&&(akeeba.Extradirs={});akeeba.Extradirs.render=function(a){var d=document.getElementById("ak_list_contents");d.innerHTML="";for(rootname in a)a.hasOwnProperty(rootname)&&akeeba.Extradirs.addRow(rootname,a[rootname],d);akeeba.Extradirs.addNewRecordButton(d)};
akeeba.Extradirs.addRow=function(a,d,m){var h=document.createElement("tr");h.className="ak_filter_row";akeeba.System.data.set(h,"rootuuid",a);akeeba.System.data.set(h,"def",d);a=document.createElement("td");var n=document.createElement("td"),k=document.createElement("td"),l=document.createElement("td"),b=document.createElement("span");b.className="<API key> btn btn-default delete";akeeba.System.addEventListener(b,"click",function(){var c={uuid:akeeba.System.data.get(this.parentNode.parentNode,
"rootuuid"),verb:"remove"};akeeba.Fsfilters.toggle(c,this,function(c,a){if(!0==c.success){var b=a.parentNode.parentNode;b.parentNode.removeChild(b)}})});b.insertAdjacentHTML("beforeend",'<span class="icon icon-trash deletebutton ak-toggle-button"></span>');a.appendChild(b);b=document.createElement("span");b.className="<API key> btn btn-default";akeeba.System.addEventListener(b,"click",function(){var c=this.parentNode.parentNode;this.style.display="none";c.querySelector("span.delete").style.display=
"none";var a=this.parentNode,b=a.parentNode,f=document.createElement("span");f.className="<API key> btn btn-default save icon icon-save ak-toggle-button ak-stacked-button";akeeba.System.addEventListener(f,"click",function(){var a=c.querySelector("input.folder_editor").value,a=trim(a),b=c.querySelector("input.virtual_editor").value,b=trim(b);empty(b)&&(b=Math.uuid(8)+"-"+basename(a));var d=akeeba.System.data.get(c,"def",","),d=d.split(",",2);if(""==a)if(""==d[0])akeeba.System.triggerEvent(this.parentNode.querySelector("span.cancel"),
"click");else{var e=c.querySelector("span.delete");e.style.display="inline-block";akeeba.System.triggerEvent(e,"click")}else e={uuid:akeeba.System.data.get(c,"rootuuid"),root:a,data:b,verb:"set"},akeeba.Fsfilters.toggle(e,this,function(e,f){if(!0==e.success){if(""==d[0]){var g=f.parentNode.querySelector("span.editbutton");akeeba.System.removeClass(g,"icon-plus-circle");akeeba.System.addClass(g,"icon-pencil ak-toggle-button");akeeba.Extradirs.addNewRecordButton(m)}akeeba.System.data.set(c,"def",[a,
b]);console.debug(c);c.querySelector("span.ak_directory").textContent=a;c.querySelector("span.ak_virtual").textContent=b;f.parentNode.querySelector("span.<API key>").style.display="inline-block";g=f.parentNode.querySelector("span.cancel");g.parentNode.removeChild(g);c.querySelector("span.delete").style.display="inline-block";f.parentNode.removeChild(f);g=c.querySelector("input.folder_editor");g.parentNode.removeChild(g);g=c.querySelector("input.virtual_editor");g.parentNode.removeChild(g);
g=c.querySelector("span.browse");g.parentNode.removeChild(g);c.querySelector("span.ak_directory").style.display="inline-block";c.querySelector("span.ak_virtual").style.display="inline-block"}},!1)});a.appendChild(f);f=document.createElement("span");f.className="<API key> btn btn-default cancel icon icon-cancel ak-toggle-button";akeeba.System.addEventListener(f,"click",function(){this.parentNode.querySelector("span.<API key>").style.display="inline-block";var a=
this.parentNode.querySelector("span.save");a.parentNode.removeChild(a);this.parentNode.removeChild(this);a=c.querySelector("input.folder_editor");a.parentNode.removeChild(a);a=c.querySelector("input.virtual_editor");a.parentNode.removeChild(a);a=c.querySelector("span.browse");a.parentNode.removeChild(a);c.querySelector("span.ak_directory").style.display="inline-block";c.querySelector("span.ak_virtual").style.display="inline-block";a=akeeba.System.data.get(c,"def",",");a=a.split(",",2);""!=a[0]&&(c.querySelector("span.delete").style.display=
"inline-block")});a.appendChild(f);var a=akeeba.System.data.get(c,"def",","),a=a.split(",",2),b=b.querySelector("td.ak_filter_item"),f=b.nextElementSibling,e=document.createElement("input");e.setAttribute("type","text");e.setAttribute("size","60");e.className="folder_editor";e.value=a[0];var d=document.createElement("span");d.className="<API key> btn btn-default browse icon icon-folder-open ak-toggle-button";akeeba.System.addEventListener(d,"click",function(){var a=this.parentNode.querySelector("input.folder_editor"),
b=trim(a.value);""==b&&(b="[ROOTPARENT]");akeeba.Configuration.onBrowser(b,a)});b.appendChild(e);b.appendChild(d);e=document.createElement("input");e.setAttribute("type","text");e.setAttribute("size","60");e.className="virtual_editor";e.value=a[1];f.appendChild(e);b.querySelector("span.ak_directory").style.display="none";f.querySelector("span.ak_virtual").style.display="none"});b.insertAdjacentHTML("beforeend",'<span class="icon icon-pencil editbutton ak-toggle-button"></span>');n.appendChild(b);
k.className="ak_filter_item";b=document.createElement("span");b.className="ak_filter_name ak_directory";b.textContent=d[0];k.appendChild(b);l.className="ak_filter_item";b=document.createElement("span");b.className="ak_filter_name ak_virtual";b.textContent=d[1];l.appendChild(b);h.appendChild(a);h.appendChild(n);h.appendChild(k);h.appendChild(l);m.appendChild(h)};
akeeba.Extradirs.addNewRecordButton=function(a){var d=Math.uuid();akeeba.Extradirs.addRow(d,["",""],a);a=document.getElementById("ak_list_contents").children;a=a[a.length-1].querySelectorAll("td");a[0].querySelector("span").style.display="none";a=a[1].querySelectorAll("span");a=a[a.length-1];akeeba.System.removeClass(a,"icon-pencil");akeeba.System.addClass(a,"icon-plus-circle ak-toggle-button")}; //# sourceMappingURL=IncludeFolders.min.map
|
#! /usr/bin/perl
# extract the epo data from a to_watch.bin ($1)
# dump the epo data to $1.epo
# dump single entries to $1.trans_$i
use warnings;
use strict;
open(my $epo_out, ">", $ARGV[0].".epo");
binmode($epo_out);
open(my $epo, "<", $ARGV[0]);
binmode($epo);
seek($epo, 0x0e6000, 0);
my $data;
sub to_hex {
my ($data) = @_;
my $hex = unpack('H*', $data);
return join(" ", $hex =~ m/../g);
}
sub to_arr {
my ($data) = @_;
my $hex = unpack('H*', $data);
my @fields = ( $hex =~ m/../g );
return [ map { hex } @fields ];
}
my $count = 0;
my $count_block = 0;
my $cs = 0;
while ( read($epo, $data, 8) ) {
print "l: " . to_hex($data) . "\n";
my $arr = to_arr($data);
my $block_data = $data;
if ($arr->[0] == 0x04 ) {
for (my $i = 0; $i < 3; $i ++) {
read ($epo, $data, 0x3c);
print " d: " . to_hex($data) . "\n";
my $arr = to_arr($data);
if ($arr->[0] != 0x00) {
$count ++;
print $epo_out $data;
}
$block_data .= $data;
}
read ($epo, $data, 3);
$block_data .= $data;
if (0) {
my $block_arr = to_arr($block_data);
print "cs diff " . ($block_arr->[0xbc] - $cs) . "\n";
$cs = $block_arr->[0xbc];
}
print " t: cs=" . sprintf("%x", $cs). " ". to_hex($data) . "\n";
if (0) {
open (my $block_out, ">", $ARGV[0].".block_$count_block");
print $block_out $block_data;
}
$count_block ++;
}
else {
read ($epo, $data, 300);
print " t: cs=" . sprintf("%x", $cs||0). " ". to_hex($data) . "\n";
}
}
print "count: $count\n";
|
<html lang="en">
<head>
<title>Complex DFTs - FFTW 3.3.1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="FFTW 3.3.1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Basic-Interface.html#Basic-Interface" title="Basic Interface">
<link rel="prev" href="Basic-Interface.html#Basic-Interface" title="Basic Interface">
<link rel="next" href="Planner-Flags.html#Planner-Flags" title="Planner Flags">
<link href="http:
<!
This manual is for FFTW
(version 3.3.1, 20 February 2012).
Copyright (C) 2003 Matteo Frigo.
Copyright (C) 2003 Massachusetts Institute of Technology.
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission
notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided
that the entire resulting derived work is distributed under the
terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for
modified versions, except that this permission notice may be
stated in a translation approved by the Free Software Foundation.
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="Complex-DFTs"></a>
<p>
Next: <a rel="next" accesskey="n" href="Planner-Flags.html#Planner-Flags">Planner Flags</a>,
Previous: <a rel="previous" accesskey="p" href="Basic-Interface.html#Basic-Interface">Basic Interface</a>,
Up: <a rel="up" accesskey="u" href="Basic-Interface.html#Basic-Interface">Basic Interface</a>
<hr>
</div>
<h4 class="subsection">4.3.1 Complex DFTs</h4>
<pre class="example"> fftw_plan fftw_plan_dft_1d(int n0,
fftw_complex *in, fftw_complex *out,
int sign, unsigned flags);
fftw_plan fftw_plan_dft_2d(int n0, int n1,
fftw_complex *in, fftw_complex *out,
int sign, unsigned flags);
fftw_plan fftw_plan_dft_3d(int n0, int n1, int n2,
fftw_complex *in, fftw_complex *out,
int sign, unsigned flags);
fftw_plan fftw_plan_dft(int rank, const int *n,
fftw_complex *in, fftw_complex *out,
int sign, unsigned flags);
</pre>
<p><a name="<API key>"></a><a name="<API key>"></a><a name="<API key>"></a><a name="<API key>"></a>
Plan a complex input/output discrete Fourier transform (DFT) in zero or
more dimensions, returning an <code>fftw_plan</code> (see <a href="Using-Plans.html#Using-Plans">Using Plans</a>).
<p>Once you have created a plan for a certain transform type and
parameters, then creating another plan of the same type and parameters,
but for different arrays, is fast and shares constant data with the
first plan (if it still exists).
<p>The planner returns <code>NULL</code> if the plan cannot be created. In the
standard FFTW distribution, the basic interface is guaranteed to return
a non-<code>NULL</code> plan. A plan may be <code>NULL</code>, however, if you are
using a customized FFTW configuration supporting a restricted set of
transforms.
<h5 class="subsubheading">Arguments</h5>
<ul>
<li><code>rank</code> is the rank of the transform (it should be the size of the
array <code>*n</code>), and can be any non-negative integer. (See <a href="<API key>.html#<API key>">Complex Multi-Dimensional DFTs</a>, for the definition of “rank”.) The
‘<samp><span class="samp">_1d</span></samp>’, ‘<samp><span class="samp">_2d</span></samp>’, and ‘<samp><span class="samp">_3d</span></samp>’ planners correspond to a
<code>rank</code> of <code>1</code>, <code>2</code>, and <code>3</code>, respectively. The rank
may be zero, which is equivalent to a rank-1 transform of size 1, i.e. a
copy of one number from input to output.
<li><code>n0</code>, <code>n1</code>, <code>n2</code>, or <code>n[0..rank-1]</code> (as appropriate
for each routine) specify the size of the transform dimensions. They
can be any positive integer.
<ul>
<li><a name="<API key>"></a>Multi-dimensional arrays are stored in row-major order with dimensions:
<code>n0</code> x <code>n1</code>; or <code>n0</code> x <code>n1</code> x <code>n2</code>; or
<code>n[0]</code> x <code>n[1]</code> x ... x <code>n[rank-1]</code>.
See <a href="<API key>.html#<API key>">Multi-dimensional Array Format</a>.
<li>FFTW is best at handling sizes of the form
2<sup>a</sup> 3<sup>b</sup> 5<sup>c</sup> 7<sup>d</sup>
11<sup>e</sup> 13<sup>f</sup>,where e+f is either 0 or 1, and the other exponents
are arbitrary. Other sizes are computed by means of a slow,
general-purpose algorithm (which nevertheless retains <i>O</i>(<i>n</i> log <i>n</i>) performance even for prime sizes). It is possible to customize FFTW
for different array sizes; see <a href="<API key>.html#<API key>">Installation and Customization</a>.
Transforms whose sizes are powers of 2 are especially fast.
</ul>
<li><code>in</code> and <code>out</code> point to the input and output arrays of the
transform, which may be the same (yielding an in-place transform).
<a name="<API key>"></a>These arrays are overwritten during planning, unless
<code>FFTW_ESTIMATE</code> is used in the flags. (The arrays need not be
initialized, but they must be allocated.)
<p>If <code>in == out</code>, the transform is <dfn>in-place</dfn> and the input
array is overwritten. If <code>in != out</code>, the two arrays must
not overlap (but FFTW does not check for this condition).
<li><a name="<API key>"></a><a name="<API key>"></a><code>sign</code> is the sign of the exponent in the formula that defines the
Fourier transform. It can be -1 (= <code>FFTW_FORWARD</code>) or
+1 (= <code>FFTW_BACKWARD</code>).
<li><a name="index-flags-169"></a><code>flags</code> is a bitwise OR (‘<samp><span class="samp">|</span></samp>’) of zero or more planner flags,
as defined in <a href="Planner-Flags.html#Planner-Flags">Planner Flags</a>.
</ul>
<p>FFTW computes an unnormalized transform: computing a forward followed by
a backward transform (or vice versa) will result in the original data
multiplied by the size of the transform (the product of the dimensions).
<a name="<API key>"></a>For more information, see <a href="<API key>.html#<API key>">What FFTW Really Computes</a>.
</body></html>
|
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include "list-scheduler.h"
#include "event-impl.h"
#include "log.h"
#include <utility>
#include <string>
#include "assert.h"
namespace ns3 {
<API key> ("ListScheduler");
<API key> (ListScheduler);
TypeId
ListScheduler::GetTypeId (void)
{
static TypeId tid = TypeId ("ns3::ListScheduler")
.SetParent<Scheduler> ()
.SetGroupName ("Core")
.AddConstructor<ListScheduler> ()
;
return tid;
}
ListScheduler::ListScheduler ()
{
NS_LOG_FUNCTION (this);
}
ListScheduler::~ListScheduler ()
{
}
void
ListScheduler::Insert (const Event &ev)
{
NS_LOG_FUNCTION (this << &ev);
for (EventsI i = m_events.begin (); i != m_events.end (); i++)
{
if (ev.key < i->key)
{
m_events.insert (i, ev);
return;
}
}
m_events.push_back (ev);
}
bool
ListScheduler::IsEmpty (void) const
{
NS_LOG_FUNCTION (this);
return m_events.empty ();
}
Scheduler::Event
ListScheduler::PeekNext (void) const
{
NS_LOG_FUNCTION (this);
return m_events.front ();
}
Scheduler::Event
ListScheduler::RemoveNext (void)
{
NS_LOG_FUNCTION (this);
Event next = m_events.front ();
m_events.pop_front ();
return next;
}
void
ListScheduler::Remove (const Event &ev)
{
NS_LOG_FUNCTION (this << &ev);
for (EventsI i = m_events.begin (); i != m_events.end (); i++)
{
if (i->key.m_uid == ev.key.m_uid)
{
NS_ASSERT (ev.impl == i->impl);
m_events.erase (i);
return;
}
}
NS_ASSERT (false);
}
} // namespace ns3
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is free software. You may redistribute it under the terms
# 2 or at your option any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# You should have received a copy of the GNU General Public
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Contributor(s):
import unittest
import os
import os.path
import odf.userfield
import tempfile
import zipfile
try:
from cStringIO import StringIO
except InputError:
from StringIO import StringIO
def get_file_path(file_name):
return os.path.join(os.path.dirname(__file__), "examples", file_name)
def get_user_fields(file_path):
return odf.userfield.UserFields(file_path)
class TestUserFields(unittest.TestCase):
userfields_odt = get_file_path("userfields.odt")
userfields_ooo3_odt = get_file_path("userfields_ooo3.odt")
no_userfields_odt = get_file_path("no_userfields.odt")
def setUp(self):
self.unlink_list = []
def tearDown(self):
# delete created destination files
for filename in self.unlink_list:
os.unlink(filename)
def test_exception(self):
# no zip-file
no_zip = odf.userfield.UserFields(__file__)
self.assertRaises(TypeError, no_zip.list_fields)
self.assertRaises(TypeError, no_zip.update, {})
def test_list_fields(self):
""" Find the expected fields in the file """
self.assertEqual([],
get_user_fields(self.no_userfields_odt).list_fields())
self.assertEqual(['username', 'firstname', 'lastname', 'address'],
get_user_fields(self.userfields_odt).list_fields())
def <API key>(self):
""" Find the expected fields and values in the file """
no_user_fields = get_user_fields(self.no_userfields_odt)
self.assertEqual([],
no_user_fields.<API key>())
self.assertEqual([],
no_user_fields.<API key>(['username']))
user_fields = get_user_fields(self.userfields_odt)
self.assertEqual([('username', 'string', ''),
('lastname', 'string', '<none>')],
user_fields.<API key>(['username',
'lastname']))
self.assertEqual(4, len(user_fields.<API key>()))
def test_list_values(self):
self.assertEqual(
[],
get_user_fields(self.no_userfields_odt).list_values(['username']))
self.assertEqual(
['', '<none>'],
get_user_fields(self.userfields_odt).list_values(
['username', 'lastname']))
def test_get(self):
user_fields = get_user_fields(self.userfields_odt)
self.assertEqual(
None,
get_user_fields(self.no_userfields_odt).get('username'))
self.assertEqual('', user_fields.get('username'))
self.assertEqual('<none>', user_fields.get('lastname'))
self.assertEqual(None, user_fields.get('street'))
def <API key>(self):
self.assertEqual(
None,
get_user_fields(self.no_userfields_odt).get_type_and_value(
'username'))
user_fields = get_user_fields(self.userfields_odt)
self.assertEqual(
('string', ''), user_fields.get_type_and_value('username'))
self.assertEqual(
('string', '<none>'),
user_fields.get_type_and_value('lastname'))
self.assertEqual(None, user_fields.get_type_and_value('street'))
def test_update(self):
# test for file without user fields
no_user_fields = get_user_fields(self.no_userfields_odt)
no_user_fields.dest_file = self._get_dest_file_name()
no_user_fields.update({'username': 'mac'})
dest = odf.userfield.UserFields(no_user_fields.dest_file)
self.assertEqual([], dest.<API key>())
# test for file with user field, including test of encoding
user_fields = get_user_fields(self.userfields_odt)
user_fields.dest_file = self._get_dest_file_name()
user_fields.update({'username': 'mac',
'firstname': u'André',
'street': 'I do not exist'})
dest = odf.userfield.UserFields(user_fields.dest_file)
self.assertEqual([('username', 'string', 'mac'),
('firstname', 'string', 'André'),
('lastname', 'string', '<none>'),
('address', 'string', '')],
dest.<API key>())
def <API key>(self):
"""Update fields in OpenOffice.org 3.x version of file."""
user_fields = get_user_fields(self.userfields_ooo3_odt)
user_fields.dest_file = self._get_dest_file_name()
user_fields.update({'username': 'mari',
'firstname': u'Lukas',
'street': 'I might exist.'})
dest = odf.userfield.UserFields(user_fields.dest_file)
self.assertEqual([('username', 'string', 'mari'),
('firstname', 'string', 'Lukas'),
('lastname', 'string', '<none>'),
('address', 'string', '')],
dest.<API key>())
def test_stringio(self):
# test wether it is possible to use a StringIO as src and dest
src = StringIO(file(self.userfields_odt).read())
dest = StringIO()
# update fields
user_fields = odf.userfield.UserFields(src, dest)
user_fields.update({'username': 'mac',
'firstname': u'André',
'street': 'I do not exist'})
# reread dest StringIO to get field values
dest_user_fields = odf.userfield.UserFields(dest)
self.assertEqual([('username', 'string', 'mac'),
('firstname', 'string', 'André'),
('lastname', 'string', '<none>'),
('address', 'string', '')],
dest_user_fields.<API key>())
def <API key>(self):
# test that newlines in values are encoded correctly so that
# they get read back correctly
user_fields = get_user_fields(self.userfields_odt)
user_fields.dest_file = self._get_dest_file_name()
user_fields.update({'username': 'mac',
'firstname': 'mac',
'lastname': 'mac',
'address': 'Hall-Platz 3\n01234 Testheim'})
dest = odf.userfield.UserFields(user_fields.dest_file)
self.assertEqual([('username', 'string', 'mac'),
('firstname', 'string', 'mac'),
('lastname', 'string', 'mac'),
('address', 'string',
'Hall-Platz 3\n01234 Testheim')],
dest.<API key>())
def _get_dest_file_name(self):
dummy_fh, dest_file_name = tempfile.mkstemp('.odt')
os.close(dummy_fh)
self.unlink_list.append(dest_file_name)
return dest_file_name
if __name__ == '__main__':
unittest.main()
|
#ifndef _SIZEHEAP_H_
#define _SIZEHEAP_H_
/**
* @file sizeheap.h
* @brief Contains UseSizeHeap and SizeHeap.
*/
#include <assert.h>
#include "addheap.h"
#if 1
/**
* @class UseSizeHeap
* @brief Adds a getSize method to access the size of an allocated object.
* @see SizeHeap
*/
namespace HL {
template <class Super>
class UseSizeHeap : public Super {
public:
inline UseSizeHeap (void) {}
inline static size_t getSize (const void * ptr) {
return ((freeObject *) ptr - 1)->sz;
}
protected:
union freeObject {
size_t sz;
double _dummy; // for alignment.
};
};
/**
* @class SizeHeap
* @brief Allocates extra room for the size of an object.
*/
template <class SuperHeap>
class SizeHeap : public UseSizeHeap<SuperHeap> {
typedef typename UseSizeHeap<SuperHeap>::freeObject freeObject;
public:
inline SizeHeap (void) {}
inline void * malloc (const size_t sz) {
// Add room for a size field.
freeObject * ptr = (freeObject *)
SuperHeap::malloc (sz + sizeof(freeObject));
// Store the requested size.
ptr->sz = sz;
return (void *) (ptr + 1);
}
inline void free (void * ptr) {
SuperHeap::free ((freeObject *) ptr - 1);
}
};
};
#else
template <class Super>
class SizeHeap : public Super {
public:
inline void * malloc (size_t sz) {
// Add room for a size field.
assert (sizeof(size_t) <= sizeof(double));
void * ptr = Super::malloc (sz + sizeof(double));
// Store the requested size.
*((size_t *) ptr) = sz;
return (void *) ((double *) ptr + 1);
}
inline void free (void * ptr) {
void * origPtr = (void *) ((double *) ptr - 1);
Super::free (origPtr);
}
inline static size_t getSize (void * ptr) {
return *((size_t *) ((double *) ptr - 1));
}
};
template <class Super>
class UseSizeHeap : public Super {
public:
inline static size_t getSize (void * ptr) {
return *((size_t *) ((double *) ptr - 1));
}
};
#endif
#endif
|
/* $NetBSD: fts.c,v 1.44 2012/03/14 00:25:19 christos Exp $ */
#if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else
/* __RCSID("$NetBSD: fts.c,v 1.44 2012/03/14 00:25:19 christos Exp $"); */
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#define _BSD_SOURCE
#include <limits.h>
/* #include "namespace.h" */
#ifndef ZOS_USS
#include <sys/param.h>
#else
#include <stdio.h>
#endif /* ZOS_USS */
#include <sys/stat.h>
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include "gawkfts.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "gawkdirfd.h"
#if ! defined(S_ISREG) && defined(S_IFREG)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
/*
#if ! <API key>
#define <API key>
#endif
*/
#ifndef MAX
static int MAX(int x, int y)
{
if (x > y)
return x;
return y;
}
#endif
static FTSENT *fts_alloc(FTS *, const char *, size_t);
static FTSENT *fts_build(FTS *, int);
static void fts_free(FTSENT *);
static void fts_lfree(FTSENT *);
static void fts_load(FTS *, FTSENT *);
static size_t fts_maxarglen(char * const *);
static size_t fts_pow2(size_t);
static int fts_palloc(FTS *, size_t);
static void fts_padjust(FTS *, FTSENT *);
static FTSENT *fts_sort(FTS *, FTSENT *, size_t);
static unsigned short fts_stat(FTS *, FTSENT *, int);
static int fts_safe_changedir(const FTS *, const FTSENT *, int,
const char *);
#if defined(ALIGNBYTES) && defined(ALIGN)
#define FTS_ALLOC_ALIGNED 1
#else
#undef FTS_ALLOC_ALIGNED
#endif
#ifndef <API key>
#define <API key>(a) \
((a) > UINT_MAX ? UINT_MAX : (unsigned int)(a))
#endif
#ifndef <API key>
#define <API key>(a) \
((a) > UINT_MAX ? UINT_MAX : (unsigned int)(a))
#endif
#ifndef <API key>
#define <API key>(a) \
((a) > UINT_MAX ? UINT_MAX : (unsigned int)(a))
#endif
#ifndef fts_nitems_truncate
#define fts_nitems_truncate(a) \
((a) > UINT_MAX ? UINT_MAX : (unsigned int)(a))
#endif
#define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
#define CLR(opt) (sp->fts_options &= ~(opt))
#define ISSET(opt) (sp->fts_options & (opt))
#define SET(opt) (sp->fts_options |= (opt))
#define CHDIR(sp, path) (!ISSET(FTS_NOCHDIR) && chdir(path))
#define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
/* fts_build flags */
#define BCHILD 1 /* fts_children */
#define BNAMES 2 /* fts_children, names only */
#define BREAD 3 /* fts_read */
#ifndef DTF_HIDEW
#undef FTS_WHITEOUT
#endif
#define _DIAGASSERT(expression)
FTS *
fts_open(char * const *argv, int options,
int (*compar)(const FTSENT **, const FTSENT **))
{
FTS *sp;
FTSENT *p, *root;
size_t nitems;
FTSENT *parent, *tmp = NULL; /* pacify gcc */
size_t len;
_DIAGASSERT(argv != NULL);
/* Options check. */
if (options & ~FTS_OPTIONMASK) {
errno = EINVAL;
return (NULL);
}
/* Allocate/initialize the stream */
if ((sp = malloc((unsigned int)sizeof(FTS))) == NULL)
return (NULL);
memset(sp, 0, sizeof(FTS));
sp->fts_compar = compar;
sp->fts_options = options;
/* Logical walks turn on NOCHDIR; symbolic links are too hard. */
if (ISSET(FTS_LOGICAL))
SET(FTS_NOCHDIR);
/*
* Start out with 1K of path space, and enough, in any case,
* to hold the user's paths.
*/
if (fts_palloc(sp, MAX(fts_maxarglen(argv), MAXPATHLEN)))
goto mem1;
/* Allocate/initialize root's parent. */
if ((parent = fts_alloc(sp, "", 0)) == NULL)
goto mem2;
parent->fts_level = FTS_ROOTPARENTLEVEL;
/* Allocate/initialize root(s). */
for (root = NULL, nitems = 0; *argv; ++argv, ++nitems) {
/* Don't allow zero-length paths. */
if ((len = strlen(*argv)) == 0) {
errno = ENOENT;
goto mem3;
}
if ((p = fts_alloc(sp, *argv, len)) == NULL)
goto mem3;
p->fts_level = FTS_ROOTLEVEL;
p->fts_parent = parent;
p->fts_accpath = p->fts_name;
p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW));
/* Command-line "." and ".." are real directories. */
if (p->fts_info == FTS_DOT)
p->fts_info = FTS_D;
/*
* If comparison routine supplied, traverse in sorted
* order; otherwise traverse in the order specified.
*/
if (compar) {
p->fts_link = root;
root = p;
} else {
p->fts_link = NULL;
if (root == NULL)
tmp = root = p;
else {
tmp->fts_link = p;
tmp = p;
}
}
}
if (compar && nitems > 1)
root = fts_sort(sp, root, nitems);
/*
* Allocate a dummy pointer and make fts_read think that we've just
* finished the node before the root(s); set p->fts_info to FTS_INIT
* so that everything about the "current" node is ignored.
*/
if ((sp->fts_cur = fts_alloc(sp, "", 0)) == NULL)
goto mem3;
sp->fts_cur->fts_link = root;
sp->fts_cur->fts_info = FTS_INIT;
/*
* If using chdir(2), grab a file descriptor pointing to dot to insure
* that we can get back here; this could be avoided for some paths,
* but almost certainly not worth the effort. Slashes, symbolic links,
* and ".." are all fairly nasty problems. Note, if we can't get the
* descriptor we run anyway, just more slowly.
*/
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
if (!ISSET(FTS_NOCHDIR)) {
if ((sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC, 0)) == -1)
SET(FTS_NOCHDIR);
}
if (nitems == 0)
fts_free(parent);
return (sp);
mem3: fts_lfree(root);
fts_free(parent);
mem2: free(sp->fts_path);
mem1: free(sp);
return (NULL);
}
static void
fts_load(FTS *sp, FTSENT *p)
{
size_t len;
char *cp;
_DIAGASSERT(sp != NULL);
_DIAGASSERT(p != NULL);
/*
* Load the stream structure for the next traversal. Since we don't
* actually enter the directory until after the preorder visit, set
* the fts_accpath field specially so the chdir gets done to the right
* place and the user can access the first node. From fts_open it's
* known that the path will fit.
*/
len = p->fts_pathlen = p->fts_namelen;
memmove(sp->fts_path, p->fts_name, len + 1);
if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) {
len = strlen(++cp);
memmove(p->fts_name, cp, len + 1);
p->fts_namelen = <API key>(len);
}
p->fts_accpath = p->fts_path = sp->fts_path;
sp->fts_dev = p->fts_dev;
}
int
fts_close(FTS *sp)
{
FTSENT *freep, *p;
int saved_errno = 0;
_DIAGASSERT(sp != NULL);
/*
* This still works if we haven't read anything -- the dummy structure
* points to the root list, so we step through to the end of the root
* list which has a valid parent pointer.
*/
if (sp->fts_cur) {
if (sp->fts_cur->fts_flags & FTS_SYMFOLLOW)
(void)close(sp->fts_cur->fts_symfd);
for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) {
freep = p;
p = p->fts_link ? p->fts_link : p->fts_parent;
fts_free(freep);
}
fts_free(p);
}
/* Free up child linked list, sort array, path buffer. */
if (sp->fts_child)
fts_lfree(sp->fts_child);
if (sp->fts_array)
free(sp->fts_array);
free(sp->fts_path);
/* Return to original directory, save errno if necessary. */
if (!ISSET(FTS_NOCHDIR)) {
if (fchdir(sp->fts_rfd) == -1)
saved_errno = errno;
(void)close(sp->fts_rfd);
}
/* Free up the stream pointer. */
free(sp);
if (saved_errno) {
errno = saved_errno;
return -1;
}
return 0;
}
#if !defined(<API key>)
/*
* Special case of "/" at the end of the path so that slashes aren't
* appended which would cause paths to be written as "....//foo".
*/
#define NAPPEND(p) \
(p->fts_path[p->fts_pathlen - 1] == '/' \
? p->fts_pathlen - 1 : p->fts_pathlen)
#else /* !defined(<API key>) */
/*
* compatibility with the old behaviour.
*
* Special case a root of "/" so that slashes aren't appended which would
* cause paths to be written as "//foo".
*/
#define NAPPEND(p) \
(p->fts_level == FTS_ROOTLEVEL && p->fts_pathlen == 1 && \
p->fts_path[0] == '/' ? 0 : p->fts_pathlen)
#endif /* !defined(<API key>) */
FTSENT *
fts_read(FTS *sp)
{
FTSENT *p, *tmp;
int instr;
char *t;
int saved_errno;
_DIAGASSERT(sp != NULL);
/* If finished or unrecoverable error, return NULL. */
if (sp->fts_cur == NULL || ISSET(FTS_STOP))
return (NULL);
/* Set current node pointer. */
p = sp->fts_cur;
/* Save and zero out user instructions. */
instr = p->fts_instr;
p->fts_instr = FTS_NOINSTR;
/* Any type of file may be re-visited; re-stat and re-turn. */
if (instr == FTS_AGAIN) {
p->fts_info = fts_stat(sp, p, 0);
return (p);
}
/*
* Following a symlink -- SLNONE test allows application to see
* SLNONE and recover. If indirecting through a symlink, have
* keep a pointer to current location. If unable to get that
* pointer, follow fails.
*/
if (instr == FTS_FOLLOW &&
(p->fts_info == FTS_SL || p->fts_info == FTS_SLNONE)) {
p->fts_info = fts_stat(sp, p, 1);
if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) {
if ((p->fts_symfd = open(".", O_RDONLY | O_CLOEXEC, 0))
== -1) {
p->fts_errno = errno;
p->fts_info = FTS_ERR;
} else
p->fts_flags |= FTS_SYMFOLLOW;
}
return (p);
}
/* Directory in pre-order. */
if (p->fts_info == FTS_D) {
/* If skipped or crossed mount point, do post-order visit. */
if (instr == FTS_SKIP ||
(ISSET(FTS_XDEV) && p->fts_dev != sp->fts_dev)) {
if (p->fts_flags & FTS_SYMFOLLOW)
(void)close(p->fts_symfd);
if (sp->fts_child) {
fts_lfree(sp->fts_child);
sp->fts_child = NULL;
}
p->fts_info = FTS_DP;
return (p);
}
/* Rebuild if only read the names and now traversing. */
if (sp->fts_child && ISSET(FTS_NAMEONLY)) {
CLR(FTS_NAMEONLY);
fts_lfree(sp->fts_child);
sp->fts_child = NULL;
}
/*
* Cd to the subdirectory.
*
* If have already read and now fail to chdir, whack the list
* to make the names come out right, and set the parent errno
* so the application will eventually get an error condition.
* Set the FTS_DONTCHDIR flag so that when we logically change
* directories back to the parent we don't do a chdir.
*
* If haven't read do so. If the read fails, fts_build sets
* FTS_STOP or the fts_info field of the node.
*/
if (sp->fts_child) {
if (fts_safe_changedir(sp, p, -1, p->fts_accpath)) {
p->fts_errno = errno;
p->fts_flags |= FTS_DONTCHDIR;
for (p = sp->fts_child; p; p = p->fts_link)
p->fts_accpath =
p->fts_parent->fts_accpath;
}
} else if ((sp->fts_child = fts_build(sp, BREAD)) == NULL) {
if (ISSET(FTS_STOP))
return (NULL);
return (p);
}
p = sp->fts_child;
sp->fts_child = NULL;
goto name;
}
/* Move to the next node on this level. */
next: tmp = p;
if ((p = p->fts_link) != NULL) {
fts_free(tmp);
/*
* If reached the top, return to the original directory, and
* load the paths for the next root.
*/
if (p->fts_level == FTS_ROOTLEVEL) {
if (FCHDIR(sp, sp->fts_rfd)) {
SET(FTS_STOP);
return (NULL);
}
fts_load(sp, p);
return (sp->fts_cur = p);
}
/*
* User may have called fts_set on the node. If skipped,
* ignore. If followed, get a file descriptor so we can
* get back if necessary.
*/
if (p->fts_instr == FTS_SKIP)
goto next;
if (p->fts_instr == FTS_FOLLOW) {
p->fts_info = fts_stat(sp, p, 1);
if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) {
if ((p->fts_symfd =
open(".", O_RDONLY | O_CLOEXEC, 0)) == -1) {
p->fts_errno = errno;
p->fts_info = FTS_ERR;
} else
p->fts_flags |= FTS_SYMFOLLOW;
}
p->fts_instr = FTS_NOINSTR;
}
name: t = sp->fts_path + NAPPEND(p->fts_parent);
*t++ = '/';
memmove(t, p->fts_name, (size_t)(p->fts_namelen + 1));
return (sp->fts_cur = p);
}
/* Move up to the parent node. */
p = tmp->fts_parent;
fts_free(tmp);
if (p->fts_level == FTS_ROOTPARENTLEVEL) {
/*
* Done; free everything up and set errno to 0 so the user
* can distinguish between error and EOF.
*/
fts_free(p);
errno = 0;
return (sp->fts_cur = NULL);
}
/* Nul terminate the pathname. */
sp->fts_path[p->fts_pathlen] = '\0';
/*
* Return to the parent directory. If at a root node or came through
* a symlink, go back through the file descriptor. Otherwise, cd up
* one directory.
*/
if (p->fts_level == FTS_ROOTLEVEL) {
if (FCHDIR(sp, sp->fts_rfd)) {
SET(FTS_STOP);
return (NULL);
}
} else if (p->fts_flags & FTS_SYMFOLLOW) {
if (FCHDIR(sp, p->fts_symfd)) {
saved_errno = errno;
(void)close(p->fts_symfd);
errno = saved_errno;
SET(FTS_STOP);
return (NULL);
}
(void)close(p->fts_symfd);
} else if (!(p->fts_flags & FTS_DONTCHDIR) &&
fts_safe_changedir(sp, p->fts_parent, -1, "..")) {
SET(FTS_STOP);
return (NULL);
}
p->fts_info = p->fts_errno ? FTS_ERR : FTS_DP;
return (sp->fts_cur = p);
}
/*
* Fts_set takes the stream as an argument although it's not used in this
* implementation; it would be necessary if anyone wanted to add global
* semantics to fts using fts_set. An error return is allowed for similar
* reasons.
*/
/* ARGSUSED */
int
fts_set(FTS *sp, FTSENT *p, int instr)
{
_DIAGASSERT(sp != NULL);
_DIAGASSERT(p != NULL);
if (instr && instr != FTS_AGAIN && instr != FTS_FOLLOW &&
instr != FTS_NOINSTR && instr != FTS_SKIP) {
errno = EINVAL;
return (1);
}
p->fts_instr = instr;
return (0);
}
FTSENT *
fts_children(FTS *sp, int instr)
{
FTSENT *p;
int fd;
_DIAGASSERT(sp != NULL);
if (instr && instr != FTS_NAMEONLY) {
errno = EINVAL;
return (NULL);
}
/* Set current node pointer. */
p = sp->fts_cur;
/*
* Errno set to 0 so user can distinguish empty directory from
* an error.
*/
errno = 0;
/* Fatal errors stop here. */
if (ISSET(FTS_STOP))
return (NULL);
/* Return logical hierarchy of user's arguments. */
if (p->fts_info == FTS_INIT)
return (p->fts_link);
/*
* If not a directory being visited in pre-order, stop here. Could
* allow FTS_DNR, assuming the user has fixed the problem, but the
* same effect is available with FTS_AGAIN.
*/
if (p->fts_info != FTS_D /* && p->fts_info != FTS_DNR */)
return (NULL);
/* Free up any previous child list. */
if (sp->fts_child)
fts_lfree(sp->fts_child);
if (instr == FTS_NAMEONLY) {
SET(FTS_NAMEONLY);
instr = BNAMES;
} else
instr = BCHILD;
/*
* If using chdir on a relative path and called BEFORE fts_read does
* its chdir to the root of a traversal, we can lose -- we need to
* chdir into the subdirectory, and we don't know where the current
* directory is, so we can't get back so that the upcoming chdir by
* fts_read will work.
*/
if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' ||
ISSET(FTS_NOCHDIR))
return (sp->fts_child = fts_build(sp, instr));
if ((fd = open(".", O_RDONLY, 0)) == -1)
return (sp->fts_child = NULL);
sp->fts_child = fts_build(sp, instr);
if (fchdir(fd)) {
(void)close(fd);
return (NULL);
}
(void)close(fd);
return (sp->fts_child);
}
/*
* This is the tricky part -- do not casually change *anything* in here. The
* idea is to build the linked list of entries that are used by fts_children
* and fts_read. There are lots of special cases.
*
* The real slowdown in walking the tree is the stat calls. If FTS_NOSTAT is
* set and it's a physical walk (so that symbolic links can't be directories),
* we can do things quickly. First, if it's a 4.4BSD file system, the type
* of the file is in the directory entry. Otherwise, we assume that the number
* of subdirectories in a node is equal to the number of links to the parent.
* The former skips all stat calls. The latter skips stat calls in any leaf
* directories and for any files after the subdirectories in the directory have
* been found, cutting the stat calls by about 2/3.
*/
static FTSENT *
fts_build(FTS *sp, int type)
{
struct dirent *dp;
FTSENT *p, *head;
size_t nitems;
FTSENT *cur, *tail;
DIR *dirp;
void *oldaddr;
size_t dnamlen;
int cderrno, descend, level, nlinks, saved_errno, nostat, doadjust;
size_t len, maxlen;
#ifdef FTS_WHITEOUT
int oflag;
#endif
char *cp = NULL; /* pacify gcc */
_DIAGASSERT(sp != NULL);
/* Set current node pointer. */
cur = sp->fts_cur;
/*
* Open the directory for reading. If this fails, we're done.
* If being called from fts_read, set the fts_info field.
*/
#if 0 /* def FTS_WHITEOUT */
if (ISSET(FTS_WHITEOUT))
oflag = DTF_NODUP|DTF_REWIND;
else
oflag = DTF_HIDEW|DTF_NODUP|DTF_REWIND;
#else
#define __opendir2(path, flag) opendir(path)
#endif
if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) {
if (type == BREAD) {
cur->fts_info = FTS_DNR;
cur->fts_errno = errno;
}
return (NULL);
}
/*
* Nlinks is the number of possible entries of type directory in the
* directory if we're cheating on stat calls, 0 if we're not doing
* any stat calls at all, -1 if we're doing stats on everything.
*/
if (type == BNAMES) {
nlinks = 0;
nostat = 1;
} else if (ISSET(FTS_NOSTAT) && ISSET(FTS_PHYSICAL)) {
nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2);
nostat = 1;
} else {
nlinks = -1;
nostat = 0;
}
#ifdef notdef
(void)printf("nlinks == %d (cur: %d)\n", nlinks, cur->fts_nlink);
(void)printf("NOSTAT %d PHYSICAL %d SEEDOT %d\n",
ISSET(FTS_NOSTAT), ISSET(FTS_PHYSICAL), ISSET(FTS_SEEDOT));
#endif
/*
* If we're going to need to stat anything or we want to descend
* and stay in the directory, chdir. If this fails we keep going,
* but set a flag so we don't chdir after the post-order visit.
* We won't be able to stat anything, but we can still return the
* names themselves. Note, that since fts_read won't be able to
* chdir into the directory, it will have to return different path
* names than before, i.e. "a/b" instead of "b". Since the node
* has already been visited in pre-order, have to wait until the
* post-order visit to return the error. There is a special case
* here, if there was nothing to stat then it's not an error to
* not be able to stat. This is all fairly nasty. If a program
* needed sorted entries or stat information, they had better be
* checking FTS_NS on the returned nodes.
*/
cderrno = 0;
if (nlinks || type == BREAD) {
if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
if (nlinks && type == BREAD)
cur->fts_errno = errno;
cur->fts_flags |= FTS_DONTCHDIR;
descend = 0;
cderrno = errno;
} else
descend = 1;
} else
descend = 0;
/*
* Figure out the max file name length that can be stored in the
* current path -- the inner loop allocates more path as necessary.
* We really wouldn't have to do the maxlen calculations here, we
* could do them in fts_read before returning the path, but it's a
* lot easier here since the length is part of the dirent structure.
*
* If not changing directories set a pointer so that can just append
* each new name into the path.
*/
len = NAPPEND(cur);
if (ISSET(FTS_NOCHDIR)) {
cp = sp->fts_path + len;
*cp++ = '/';
}
len++;
maxlen = sp->fts_pathlen - len;
#if defined(__FTS_COMPAT_LEVEL)
if (cur->fts_level == SHRT_MAX) {
(void)closedir(dirp);
cur->fts_info = FTS_ERR;
SET(FTS_STOP);
errno = ENAMETOOLONG;
return (NULL);
}
#endif
level = cur->fts_level + 1;
/* Read the directory, attaching each entry to the `link' pointer. */
doadjust = 0;
for (head = tail = NULL, nitems = 0; (dp = readdir(dirp)) != NULL;) {
if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
continue;
#if defined(<API key>)
dnamlen = dp->d_namlen;
#else
dnamlen = strlen(dp->d_name);
#endif
if ((p = fts_alloc(sp, dp->d_name, dnamlen)) == NULL)
goto mem1;
if (dnamlen >= maxlen) { /* include space for NUL */
oldaddr = sp->fts_path;
if (fts_palloc(sp, dnamlen + len + 1)) {
/*
* No more memory for path or structures. Save
* errno, free up the current structure and the
* structures already allocated.
*/
mem1: saved_errno = errno;
if (p)
fts_free(p);
fts_lfree(head);
(void)closedir(dirp);
errno = saved_errno;
cur->fts_info = FTS_ERR;
SET(FTS_STOP);
return (NULL);
}
/* Did realloc() change the pointer? */
if (oldaddr != sp->fts_path) {
doadjust = 1;
if (ISSET(FTS_NOCHDIR))
cp = sp->fts_path + len;
}
maxlen = sp->fts_pathlen - len;
}
#if defined(__FTS_COMPAT_LENGTH)
if (len + dnamlen >= USHRT_MAX) {
/*
* In an FTSENT, fts_pathlen is an unsigned short
* so it is possible to wraparound here.
* If we do, free up the current structure and the
* structures already allocated, then error out
* with ENAMETOOLONG.
*/
fts_free(p);
fts_lfree(head);
(void)closedir(dirp);
cur->fts_info = FTS_ERR;
SET(FTS_STOP);
errno = ENAMETOOLONG;
return (NULL);
}
#endif
p->fts_level = level;
p->fts_pathlen = <API key>(len + dnamlen);
p->fts_parent = sp->fts_cur;
#ifdef FTS_WHITEOUT
if (dp->d_type == DT_WHT)
p->fts_flags |= FTS_ISW;
#endif
if (cderrno) {
if (nlinks) {
p->fts_info = FTS_NS;
p->fts_errno = cderrno;
} else
p->fts_info = FTS_NSOK;
p->fts_accpath = cur->fts_accpath;
} else if (nlinks == 0
#ifdef DT_DIR
|| (nostat &&
dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN)
#endif
) {
p->fts_accpath =
ISSET(FTS_NOCHDIR) ? p->fts_path : p->fts_name;
p->fts_info = FTS_NSOK;
} else {
/* Build a file name for fts_stat to stat. */
if (ISSET(FTS_NOCHDIR)) {
p->fts_accpath = p->fts_path;
memmove(cp, p->fts_name,
(size_t)(p->fts_namelen + 1));
} else
p->fts_accpath = p->fts_name;
/* Stat it. */
p->fts_info = fts_stat(sp, p, 0);
/* Decrement link count if applicable. */
if (nlinks > 0 && (p->fts_info == FTS_D ||
p->fts_info == FTS_DC || p->fts_info == FTS_DOT))
--nlinks;
}
/* We walk in directory order so "ls -f" doesn't get upset. */
p->fts_link = NULL;
if (head == NULL)
head = tail = p;
else {
tail->fts_link = p;
tail = p;
}
++nitems;
}
(void)closedir(dirp);
/*
* If had to realloc the path, adjust the addresses for the rest
* of the tree.
*/
if (doadjust)
fts_padjust(sp, head);
/*
* If not changing directories, reset the path back to original
* state.
*/
if (ISSET(FTS_NOCHDIR)) {
if (len == sp->fts_pathlen || nitems == 0)
--cp;
*cp = '\0';
}
/*
* If descended after called from fts_children or after called from
* fts_read and nothing found, get back. At the root level we use
* the saved fd; if one of fts_open()'s arguments is a relative path
* to an empty directory, we wind up here with no other way back. If
* can't get back, we're done.
*/
if (descend && (type == BCHILD || !nitems) &&
(cur->fts_level == FTS_ROOTLEVEL ?
FCHDIR(sp, sp->fts_rfd) :
fts_safe_changedir(sp, cur->fts_parent, -1, ".."))) {
cur->fts_info = FTS_ERR;
SET(FTS_STOP);
return (NULL);
}
/* If didn't find anything, return NULL. */
if (!nitems) {
if (type == BREAD)
cur->fts_info = FTS_DP;
return (NULL);
}
/* Sort the entries. */
if (sp->fts_compar && nitems > 1)
head = fts_sort(sp, head, nitems);
return (head);
}
static unsigned short
fts_stat(FTS *sp, FTSENT *p, int follow)
{
FTSENT *t;
dev_t dev;
ino_t ino;
struct stat *sbp, sb;
int saved_errno;
_DIAGASSERT(sp != NULL);
_DIAGASSERT(p != NULL);
/* If user needs stat info, stat buffer already allocated. */
sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
#ifdef FTS_WHITEOUT
/* check for whiteout */
if (p->fts_flags & FTS_ISW) {
if (sbp != &sb) {
memset(sbp, '\0', sizeof (*sbp));
sbp->st_mode = S_IFWHT;
}
return (FTS_W);
}
#endif
/*
* If doing a logical walk, or application requested FTS_FOLLOW, do
* a stat(2). If that fails, check for a non-existent symlink. If
* fail, set the errno from the stat call.
*/
if (ISSET(FTS_LOGICAL) || follow) {
if (stat(p->fts_accpath, sbp)) {
saved_errno = errno;
if (!lstat(p->fts_accpath, sbp)) {
errno = 0;
return (FTS_SLNONE);
}
p->fts_errno = saved_errno;
goto err;
}
} else if (lstat(p->fts_accpath, sbp)) {
p->fts_errno = errno;
err: memset(sbp, 0, sizeof(*sbp));
return (FTS_NS);
}
if (S_ISDIR(sbp->st_mode)) {
/*
* Set the device/inode. Used to find cycles and check for
* crossing mount points. Also remember the link count, used
* in fts_build to limit the number of stat calls. It is
* understood that these fields are only referenced if fts_info
* is set to FTS_D.
*/
dev = p->fts_dev = sbp->st_dev;
ino = p->fts_ino = sbp->st_ino;
p->fts_nlink = sbp->st_nlink;
if (ISDOT(p->fts_name))
return (FTS_DOT);
/*
* Cycle detection is done by brute force when the directory
* is first encountered. If the tree gets deep enough or the
* number of symbolic links to directories is high enough,
* something faster might be worthwhile.
*/
for (t = p->fts_parent;
t->fts_level >= FTS_ROOTLEVEL; t = t->fts_parent)
if (ino == t->fts_ino && dev == t->fts_dev) {
p->fts_cycle = t;
return (FTS_DC);
}
return (FTS_D);
}
if (S_ISLNK(sbp->st_mode))
return (FTS_SL);
if (S_ISREG(sbp->st_mode))
return (FTS_F);
return (FTS_DEFAULT);
}
static FTSENT *
fts_sort(FTS *sp, FTSENT *head, size_t nitems)
{
FTSENT **ap, *p;
_DIAGASSERT(sp != NULL);
_DIAGASSERT(head != NULL);
/*
* Construct an array of pointers to the structures and call qsort(3).
* Reassemble the array in the order returned by qsort. If unable to
* sort for memory reasons, return the directory entries in their
* current order. Allocate enough space for the current needs plus
* 40 so don't realloc one entry at a time.
*/
if (nitems > sp->fts_nitems) {
FTSENT **new;
new = realloc(sp->fts_array, sizeof(FTSENT *) * (nitems + 40));
if (new == 0)
return (head);
sp->fts_array = new;
sp->fts_nitems = fts_nitems_truncate(nitems + 40);
}
for (ap = sp->fts_array, p = head; p; p = p->fts_link)
*ap++ = p;
qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *),
(int (*)(const void *, const void *))sp->fts_compar);
for (head = *(ap = sp->fts_array); --nitems; ++ap)
ap[0]->fts_link = ap[1];
ap[0]->fts_link = NULL;
return (head);
}
static FTSENT *
fts_alloc(FTS *sp, const char *name, size_t namelen)
{
FTSENT *p;
#if defined(FTS_ALLOC_ALIGNED)
size_t len;
#endif
_DIAGASSERT(sp != NULL);
_DIAGASSERT(name != NULL);
#if defined(FTS_ALLOC_ALIGNED)
/*
* The file name is a variable length array and no stat structure is
* necessary if the user has set the nostat bit. Allocate the FTSENT
* structure, the file name and the stat structure in one chunk, but
* be careful that the stat structure is reasonably aligned. Since the
* fts_name field is declared to be of size 1, the fts_name pointer is
* namelen + 2 before the first possible address of the stat structure.
*/
len = sizeof(FTSENT) + namelen;
if (!ISSET(FTS_NOSTAT))
len += sizeof(*(p->fts_statp)) + ALIGNBYTES;
if ((p = malloc(len)) == NULL)
return (NULL);
if (!ISSET(FTS_NOSTAT))
p->fts_statp = (struct stat *)ALIGN(
(unsigned long)(p->fts_name + namelen + 2));
#else
if ((p = malloc(sizeof(FTSENT) + namelen)) == NULL)
return (NULL);
if (!ISSET(FTS_NOSTAT))
if ((p->fts_statp = malloc(sizeof(*(p->fts_statp)))) == NULL) {
free(p);
return (NULL);
}
#endif
if (ISSET(FTS_NOSTAT))
p->fts_statp = NULL;
/* Copy the name plus the trailing NULL. */
memmove(p->fts_name, name, namelen + 1);
p->fts_namelen = <API key>(namelen);
p->fts_path = sp->fts_path;
p->fts_errno = 0;
p->fts_flags = 0;
p->fts_instr = FTS_NOINSTR;
p->fts_number = 0;
p->fts_pointer = NULL;
return (p);
}
static void
fts_free(FTSENT *p)
{
#if !defined(FTS_ALLOC_ALIGNED)
if (p->fts_statp)
free(p->fts_statp);
#endif
free(p);
}
static void
fts_lfree(FTSENT *head)
{
FTSENT *p;
/* XXX: head may be NULL ? */
/* Free a linked list of structures. */
while ((p = head) != NULL) {
head = head->fts_link;
fts_free(p);
}
}
static size_t
fts_pow2(size_t x)
{
x
x |= x>>1;
x |= x>>2;
x |= x>>4;
x |= x>>8;
x |= x>>16;
#if LONG_BIT > 32
x |= x>>32;
#endif
#if LONG_BIT > 64
x |= x>>64;
#endif
x++;
return (x);
}
/*
* Allow essentially unlimited paths; find, rm, ls should all work on any tree.
* Most systems will allow creation of paths much longer than MAXPATHLEN, even
* though the kernel won't resolve them. Round up the new size to a power of 2,
* so we don't realloc the path 2 bytes at a time.
*/
static int
fts_palloc(FTS *sp, size_t size)
{
char *new;
_DIAGASSERT(sp != NULL);
#ifdef __FTS_COMPAT_LENGTH
/* Protect against fts_pathlen overflow. */
if (size > USHRT_MAX + 1) {
errno = ENAMETOOLONG;
return (1);
}
#endif
size = fts_pow2(size);
new = realloc(sp->fts_path, size);
if (new == 0)
return (1);
sp->fts_path = new;
sp->fts_pathlen = <API key>(size);
return (0);
}
/*
* When the path is realloc'd, have to fix all of the pointers in structures
* already returned.
*/
static void
fts_padjust(FTS *sp, FTSENT *head)
{
FTSENT *p;
char *addr;
_DIAGASSERT(sp != NULL);
#define ADJUST(p) do { \
if ((p)->fts_accpath != (p)->fts_name) \
(p)->fts_accpath = \
addr + ((p)->fts_accpath - (p)->fts_path); \
(p)->fts_path = addr; \
} while (/*CONSTCOND*/0)
addr = sp->fts_path;
/* Adjust the current set of children. */
for (p = sp->fts_child; p; p = p->fts_link)
ADJUST(p);
/* Adjust the rest of the tree, including the current level. */
for (p = head; p->fts_level >= FTS_ROOTLEVEL;) {
ADJUST(p);
p = p->fts_link ? p->fts_link : p->fts_parent;
}
}
static size_t
fts_maxarglen(char * const *argv)
{
size_t len, max;
_DIAGASSERT(argv != NULL);
for (max = 0; *argv; ++argv)
if ((len = strlen(*argv)) > max)
max = len;
return (max + 1);
}
/*
* Change to dir specified by fd or p->fts_accpath without getting
* tricked by someone changing the world out from underneath us.
* Assumes p->fts_dev and p->fts_ino are filled in.
*/
static int
fts_safe_changedir(const FTS *sp, const FTSENT *p, int fd, const char *path)
{
int oldfd = fd, ret = -1;
struct stat sb;
if (ISSET(FTS_NOCHDIR))
return 0;
if (oldfd < 0 && (fd = open(path, O_RDONLY)) == -1)
return -1;
if (fstat(fd, &sb) == -1)
goto bail;
if (sb.st_ino != p->fts_ino || sb.st_dev != p->fts_dev) {
errno = ENOENT;
goto bail;
}
ret = fchdir(fd);
bail:
if (oldfd < 0) {
int save_errno = errno;
(void)close(fd);
errno = save_errno;
}
return ret;
}
|
#ifndef FILEFORMAT_H
#define FILEFORMAT_H
#include "guicast.h"
class <API key>;
class <API key>;
class FileFormatSigned;
class FileFormatHeader;
class FileFormatRate;
class FileFormatChannels;
class FileFormatBits;
#include "asset.inc"
#include "assets.inc"
#include "bitspopup.inc"
#include "file.inc"
#include "mwindow.inc"
#include "mwindowgui.inc"
class FileFormat : public BC_Window
{
public:
FileFormat(MWindow *mwindow);
~FileFormat();
void create_objects(Asset *asset, char *string2);
void create_objects_(char *string2);
Asset *asset;
BitsPopup *bitspopup;
<API key> *lohi;
<API key> *hilo;
FileFormatSigned *signed_button;
FileFormatHeader *header_button;
FileFormatRate *rate_button;
FileFormatChannels *channels_button;
MWindow *mwindow;
};
class FileFormatChannels : public BC_TumbleTextBox
{
public:
FileFormatChannels(int x, int y, FileFormat *fwindow, char *text);
int handle_event();
FileFormat *fwindow;
};
class FileFormatRate : public BC_TextBox
{
public:
FileFormatRate(int x, int y, FileFormat *fwindow, char *text);
int handle_event();
FileFormat *fwindow;
};
class FileFormatHeader : public BC_TextBox
{
public:
FileFormatHeader(int x, int y, FileFormat *fwindow, char *text);
int handle_event();
FileFormat *fwindow;
};
class <API key> : public BC_Radial
{
public:
<API key>(int x, int y, FileFormat *fwindow, int value);
int handle_event();
FileFormat *fwindow;
};
class <API key> : public BC_Radial
{
public:
<API key>(int x, int y, FileFormat *fwindow, int value);
int handle_event();
FileFormat *fwindow;
};
class FileFormatSigned : public BC_CheckBox
{
public:
FileFormatSigned(int x, int y, FileFormat *fwindow, int value);
int handle_event();
FileFormat *fwindow;
};
#endif
|
typedef unsigned short UCS2;
UCS2 *cs_unicode(char *, int *);
char *cs_latin1(char *, int *);
char *cs_macroman(char *, int *);
|
#include "device.h"
#include "compat/rtas.h"
#include <string.h>
#include "debug.h"
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/resource.h>
/* the device we are working with... */
biosemu_device_t bios_device;
//max. 6 BARs and 1 Exp.ROM plus CfgSpace and 3 legacy ranges, plus 2 "special" memory ranges
translate_address_t <API key>[13];
u8 taa_last_entry;
typedef struct {
u8 info;
u8 bus;
u8 devfn;
u8 cfg_space_offset;
u64 address;
u64 size;
} __packed assigned_address_t;
#if CONFIG(<API key>)
/* coreboot version */
static void
<API key>(void)
{
int taa_index = 0;
struct resource *r;
u8 bus = bios_device.dev->bus->secondary;
u16 devfn = bios_device.dev->path.pci.devfn;
bios_device.bus = bus;
bios_device.devfn = devfn;
DEBUG_PRINTF("bus: %x, devfn: %x\n", bus, devfn);
for (r = bios_device.dev->resource_list; r; r = r->next) {
<API key>[taa_index].info = r->flags;
<API key>[taa_index].bus = bus;
<API key>[taa_index].devfn = devfn;
<API key>[taa_index].cfg_space_offset =
r->index;
<API key>[taa_index].address = r->base;
<API key>[taa_index].size = r->size;
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
taa_index++;
}
/* Expansion ROM */
<API key>[taa_index].info = IORESOURCE_MEM | IORESOURCE_READONLY;
<API key>[taa_index].bus = bus;
<API key>[taa_index].devfn = devfn;
<API key>[taa_index].cfg_space_offset = 0x30;
<API key>[taa_index].address = bios_device.img_addr;
<API key>[taa_index].size = 0; /* TODO: do we need the size? */
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
taa_index++;
/* legacy ranges if its a VGA card... */
if ((bios_device.dev->class & 0xFF0000) == 0x030000) {
DEBUG_PRINTF("%s: VGA device found, adding legacy resources...\n", __func__);
/* I/O 0x3B0-0x3BB */
<API key>[taa_index].info = IORESOURCE_FIXED | IORESOURCE_IO;
<API key>[taa_index].bus = bus;
<API key>[taa_index].devfn = devfn;
<API key>[taa_index].cfg_space_offset = 0;
<API key>[taa_index].address = 0x3b0;
<API key>[taa_index].size = 0xc;
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
taa_index++;
/* I/O 0x3C0-0x3DF */
<API key>[taa_index].info = IORESOURCE_FIXED | IORESOURCE_IO;
<API key>[taa_index].bus = bus;
<API key>[taa_index].devfn = devfn;
<API key>[taa_index].cfg_space_offset = 0;
<API key>[taa_index].address = 0x3c0;
<API key>[taa_index].size = 0x20;
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
taa_index++;
/* Mem 0xA0000-0xBFFFF */
<API key>[taa_index].info = IORESOURCE_FIXED | IORESOURCE_MEM;
<API key>[taa_index].bus = bus;
<API key>[taa_index].devfn = devfn;
<API key>[taa_index].cfg_space_offset = 0;
<API key>[taa_index].address = 0xa0000;
<API key>[taa_index].size = 0x20000;
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
taa_index++;
}
// store last entry index of <API key>
taa_last_entry = taa_index - 1;
#if CONFIG(X86EMU_DEBUG)
//dump <API key>
printf("<API key>:\n");
translate_address_t ta;
int i;
for (i = 0; i <= taa_last_entry; i++) {
ta = <API key>[i];
printf
("%d: info: %08lx bus: %02x devfn: %02x cfg_space_offset: %02x\n\taddr: %016llx\n\toffs: %016llx\n\tsize: %016llx\n",
i, ta.info, ta.bus, ta.devfn, ta.cfg_space_offset,
ta.address, ta.address_offset, ta.size);
}
#endif
}
#else
// use <API key> and get_puid from net-snk's net_support.c
void <API key>(u64 *, phandle_t);
u64 get_puid(phandle_t node);
// scan all addresses assigned to the device ("assigned-addresses" and "reg")
// store in <API key> for faster translation using <API key>
void
<API key>(void)
{
// get bus/dev/fn from assigned-addresses
int32_t len;
//max. 6 BARs and 1 Exp.ROM plus CfgSpace and 3 legacy ranges
assigned_address_t buf[11];
len =
of_getprop(bios_device.phandle, "assigned-addresses", buf,
sizeof(buf));
bios_device.bus = buf[0].bus;
bios_device.devfn = buf[0].devfn;
DEBUG_PRINTF("bus: %x, devfn: %x\n", bios_device.bus,
bios_device.devfn);
//store address translations for all assigned-addresses and regs in
//<API key> for faster translation later on...
int i = 0;
// index to insert data into <API key>
int taa_index = 0;
u64 address_offset;
for (i = 0; i < (len / sizeof(assigned_address_t)); i++, taa_index++) {
//copy all info stored in assigned-addresses
<API key>[taa_index].info = buf[i].info;
<API key>[taa_index].bus = buf[i].bus;
<API key>[taa_index].devfn = buf[i].devfn;
<API key>[taa_index].cfg_space_offset =
buf[i].cfg_space_offset;
<API key>[taa_index].address = buf[i].address;
<API key>[taa_index].size = buf[i].size;
// translate first address and store it as address_offset
address_offset = buf[i].address;
<API key>(&address_offset, bios_device.phandle);
<API key>[taa_index].address_offset =
address_offset - buf[i].address;
}
//get "reg" property
len = of_getprop(bios_device.phandle, "reg", buf, sizeof(buf));
for (i = 0; i < (len / sizeof(assigned_address_t)); i++) {
if ((buf[i].size == 0) || (buf[i].cfg_space_offset != 0)) {
// we don't care for ranges with size 0 and
// BARs and Expansion ROM must be in assigned-addresses... so in reg
// we only look for those without config space offset set...
// i.e. the legacy ranges
continue;
}
//copy all info stored in assigned-addresses
<API key>[taa_index].info = buf[i].info;
<API key>[taa_index].bus = buf[i].bus;
<API key>[taa_index].devfn = buf[i].devfn;
<API key>[taa_index].cfg_space_offset =
buf[i].cfg_space_offset;
<API key>[taa_index].address = buf[i].address;
<API key>[taa_index].size = buf[i].size;
// translate first address and store it as address_offset
address_offset = buf[i].address;
<API key>(&address_offset, bios_device.phandle);
<API key>[taa_index].address_offset =
address_offset - buf[i].address;
taa_index++;
}
// store last entry index of <API key>
taa_last_entry = taa_index - 1;
#if CONFIG(X86EMU_DEBUG)
//dump <API key>
printf("<API key>:\n");
translate_address_t ta;
for (i = 0; i <= taa_last_entry; i++) {
ta = <API key>[i];
printf
("%d: %02x%02x%02x%02x\n\taddr: %016llx\n\toffs: %016llx\n\tsize: %016llx\n",
i, ta.info, ta.bus, ta.devfn, ta.cfg_space_offset,
ta.address, ta.address_offset, ta.size);
}
#endif
}
#endif
// "special memory" is a hack to make some parts of memory fall through to real memory
// (ie. no translation). Necessary if option ROMs attempt DMA there, map registers or
// do similarly crazy things.
void
<API key>(u32 start, u32 size)
{
int taa_index = ++taa_last_entry;
<API key>[taa_index].info = IORESOURCE_FIXED | IORESOURCE_MEM;
<API key>[taa_index].bus = 0;
<API key>[taa_index].devfn = 0;
<API key>[taa_index].cfg_space_offset = 0;
<API key>[taa_index].address = start;
<API key>[taa_index].size = size;
/* don't translate addresses... all addresses are 1:1 */
<API key>[taa_index].address_offset = 0;
}
#if !CONFIG(<API key>)
// to simulate accesses to legacy VGA Memory (0xA0000-0xBFFFF)
// we look for the first prefetchable memory BAR, if no prefetchable BAR found,
// we use the first memory BAR
// dev_translate_addr will translate accesses to the legacy VGA Memory into the found vmem BAR
static void
<API key>(void)
{
int i = 0;
translate_address_t ta;
s8 tai_np = -1, tai_p = -1; // <API key> index for non-prefetchable and prefetchable memory
//search backwards to find first entry
for (i = taa_last_entry; i >= 0; i
ta = <API key>[i];
if ((ta.cfg_space_offset >= 0x10)
&& (ta.cfg_space_offset <= 0x24)) {
//only BARs
if ((ta.info & 0x03) >= 0x02) {
//32/64bit memory
tai_np = i;
if ((ta.info & 0x40) != 0) {
// prefetchable
tai_p = i;
}
}
}
}
if (tai_p != -1) {
ta = <API key>[tai_p];
bios_device.vmem_addr = ta.address;
bios_device.vmem_size = ta.size;
DEBUG_PRINTF
("%s: Found prefetchable Virtual Legacy Memory BAR: %llx, size: %llx\n",
__func__, bios_device.vmem_addr,
bios_device.vmem_size);
} else if (tai_np != -1) {
ta = <API key>[tai_np];
bios_device.vmem_addr = ta.address;
bios_device.vmem_size = ta.size;
DEBUG_PRINTF
("%s: Found non-prefetchable Virtual Legacy Memory BAR: %llx, size: %llx",
__func__, bios_device.vmem_addr,
bios_device.vmem_size);
}
// disable vmem
//bios_device.vmem_size = 0;
}
void
<API key>(void)
{
// get puid
bios_device.puid = get_puid(bios_device.phandle);
DEBUG_PRINTF("puid: 0x%llx\n", bios_device.puid);
}
#endif
static void
<API key>(void)
{
u32 pci_config_0;
#if CONFIG(<API key>)
pci_config_0 = pci_read_config32(bios_device.dev, 0x0);
#else
pci_config_0 =
<API key>(bios_device.puid, 4, bios_device.bus,
bios_device.devfn, 0x0);
#endif
bios_device.pci_device_id =
(u16) ((pci_config_0 & 0xFFFF0000) >> 16);
bios_device.pci_vendor_id = (u16) (pci_config_0 & 0x0000FFFF);
DEBUG_PRINTF("PCI Device ID: %04x, PCI Vendor ID: %x\n",
bios_device.pci_device_id, bios_device.pci_vendor_id);
}
/* Check whether the device has a valid Expansion ROM and search the PCI Data
* Structure and any Expansion ROM Header (using dev_scan_exp_header()) for
* needed information. If the rom_addr parameter is != 0, it is the address of
* the Expansion ROM image and will be used, if it is == 0, the Expansion ROM
* BAR address will be used.
*/
u8
<API key>(unsigned long rom_base_addr)
{
int i = 0;
translate_address_t ta;
u16 pci_ds_offset;
pci_data_struct_t pci_ds;
if (rom_base_addr == 0) {
// check for ExpROM Address (Offset 30) in taa
for (i = 0; i <= taa_last_entry; i++) {
ta = <API key>[i];
if (ta.cfg_space_offset == 0x30) {
//translated address
rom_base_addr = ta.address + ta.address_offset;
break;
}
}
}
/* In the ROM there could be multiple Expansion ROM Images... start
* searching them for an x86 image.
*/
do {
if (rom_base_addr == 0) {
printf("Error: no Expansion ROM address found!\n");
return -1;
}
set_ci();
u16 rom_signature = in16le((void *) rom_base_addr);
clr_ci();
if (rom_signature != 0xaa55) {
printf
("Error: invalid Expansion ROM signature: %02x!\n",
*((u16 *) rom_base_addr));
return -1;
}
set_ci();
// at offset 0x18 is the (16bit little-endian) pointer to the PCI Data Structure
pci_ds_offset = in16le((void *) (rom_base_addr + 0x18));
//copy the PCI Data Structure
memcpy(&pci_ds, (void *) (rom_base_addr + pci_ds_offset),
sizeof(pci_ds));
clr_ci();
#if CONFIG(X86EMU_DEBUG)
DEBUG_PRINTF("PCI Data Structure @%lx:\n",
rom_base_addr + pci_ds_offset);
dump((void *) &pci_ds, sizeof(pci_ds));
#endif
if (strncmp((const char *) pci_ds.signature, "PCIR", 4) != 0) {
printf("Invalid PCI Data Structure found!\n");
break;
}
//little-endian conversion
pci_ds.vendor_id = in16le(&pci_ds.vendor_id);
pci_ds.device_id = in16le(&pci_ds.device_id);
pci_ds.img_length = in16le(&pci_ds.img_length);
pci_ds.pci_ds_length = in16le(&pci_ds.pci_ds_length);
#ifdef DO_THIS_TEST_TWICE
if (pci_ds.vendor_id != bios_device.pci_vendor_id) {
printf
("Image has invalid Vendor ID: %04x, expected: %04x\n",
pci_ds.vendor_id, bios_device.pci_vendor_id);
break;
}
if (pci_ds.device_id != bios_device.pci_device_id) {
printf
("Image has invalid Device ID: %04x, expected: %04x\n",
pci_ds.device_id, bios_device.pci_device_id);
break;
}
#endif
DEBUG_PRINTF("Image Length: %d\n", pci_ds.img_length * 512);
DEBUG_PRINTF("Image Code Type: %d\n", pci_ds.code_type);
if (pci_ds.code_type == 0) {
//x86 image
//store image address and image length in bios_device struct
bios_device.img_addr = rom_base_addr;
bios_device.img_size = pci_ds.img_length * 512;
// we found the image, exit the loop
break;
} else {
// no x86 image, check next image (if any)
rom_base_addr += pci_ds.img_length * 512;
}
if ((pci_ds.indicator & 0x80) == 0x80) {
//last image found, exit the loop
DEBUG_PRINTF("Last PCI Expansion ROM Image found.\n");
break;
}
}
while (bios_device.img_addr == 0);
// in case we did not find a valid x86 Expansion ROM Image
if (bios_device.img_addr == 0) {
printf("Error: no valid x86 Expansion ROM Image found!\n");
return -1;
}
return 0;
}
u8
biosemu_dev_init(struct device * device)
{
u8 rval = 0;
//init bios_device struct
DEBUG_PRINTF("%s\n", __func__);
memset(&bios_device, 0, sizeof(bios_device));
#if !CONFIG(<API key>)
bios_device.ihandle = of_open(device_name);
if (bios_device.ihandle == 0) {
DEBUG_PRINTF("%s is no valid device!\n", device_name);
return -1;
}
bios_device.phandle = of_finddevice(device_name);
#else
bios_device.dev = device;
#endif
<API key>();
#if !CONFIG(<API key>)
<API key>();
<API key>();
#endif
<API key>();
return rval;
}
// translate address function using <API key> assembled
// by dev_get_addr_info... MUCH faster than calling <API key>
// and accessing client interface for every translation...
// returns: 0 if addr not found in <API key>, 1 if found.
u8
<API key>(int type, unsigned long * addr)
{
int i = 0;
translate_address_t ta;
#if !CONFIG(<API key>)
/* we don't need this hack for coreboot... we can access legacy areas */
//check if it is an access to legacy VGA Mem... if it is, map the address
//to the vmem BAR and then translate it...
// (translation info provided by Ben Herrenschmidt)
// NOTE: the translation seems to only work for NVIDIA cards... but it is needed
// to make some NVIDIA cards work at all...
if ((bios_device.vmem_size > 0)
&& ((*addr >= 0xA0000) && (*addr < 0xB8000))) {
*addr = (*addr - 0xA0000) * 4 + 2 + bios_device.vmem_addr;
}
if ((bios_device.vmem_size > 0)
&& ((*addr >= 0xB8000) && (*addr < 0xC0000))) {
u8 shift = *addr & 1;
*addr &= 0xfffffffe;
*addr = (*addr - 0xB8000) * 4 + shift + bios_device.vmem_addr;
}
#endif
for (i = 0; i <= taa_last_entry; i++) {
ta = <API key>[i];
if ((*addr >= ta.address) && (*addr <= (ta.address + ta.size)) && (ta.info & type)) {
*addr += ta.address_offset;
return 1;
}
}
return 0;
}
|
// Test handling of the case where we have a void g-r-o and a non-void
// and non-class-type ramp return.
#include "coro.h"
int g_promise = -1;
template<typename R, typename HandleRef, typename ...T>
struct std::coroutine_traits<R, HandleRef, T...> {
struct promise_type {
promise_type (HandleRef h, T ...args)
{ h = std::coroutine_handle<promise_type>::from_promise (*this);
PRINT ("Created Promise");
g_promise = 1;
}
~promise_type () { PRINT ("Destroyed Promise"); g_promise = 0;}
void get_return_object() {}
auto initial_suspend() {
return std::suspend_always{};
}
auto final_suspend() { return std::suspend_never{}; }
void return_void() {}
void unhandled_exception() {}
};
};
int
my_coro (std::coroutine_handle<>& h)
{
PRINT ("coro1: about to return");
co_return;
} // { dg-error {cannot initialize a return object of type 'int' with an rvalue of type 'void'} }
int main ()
{
std::coroutine_handle<> h;
int t = my_coro (h);
if (h.done())
{
PRINT ("main: apparently was already done...");
abort ();
}
// initial suspend.
h.resume ();
// The coro should have self-destructed.
if (g_promise)
{
PRINT ("main: apparently we did not complete...");
abort ();
}
PRINT ("main: returning");
return t;
}
|
#ifndef TRANS_SENT_DATA_HPP
#define TRANS_SENT_DATA_HPP
#include <string>
#include <common/messaging/response_msg.hpp>
using namespace std;
namespace uva {
namespace smt {
namespace bpbd {
namespace common {
namespace messaging {
/**
* This class stores the translation data for a translated sentence.
* It wraps around a JSON object, but it does not own it.
*/
class trans_sent_data : public response_msg {
public:
//The target data field name
static const char * <API key>;
//The target data field name
static const char * <API key>;
//Typedef the loads array data structure for storing the stack load percent values
typedef vector<int64_t> stack_loads;
/**
* The basic constructor.
*/
trans_sent_data() : response_msg() {
//Nothing to be done here
}
/**
* The basic destructor
*/
virtual ~trans_sent_data() {
//Nothing to be done here
}
};
}
}
}
}
}
#endif /* TRANS_SENT_DATA_HPP */
|
#ifndef <API key>
#define <API key>
#include <stddef.h> /* size_t wchar_t */
#include <stdio.h> /* FILE */
/* Input pointers can be NULL. Returns new length of the array. */
int add_to_string_array(char ***array, int len, int count, ...);
/* Puts pointer into string array without making a copy. Reallocates *array.
* Returns new size of the array, which can be equal to len on reallocation
* failure. */
int <API key>(char **array[], int len, char item[]);
void <API key>(char **array, size_t len, int pos);
/* Checks whether item is in the array. Always uses case sensitive comparison.
* Returns non-zero on successful search, otherwise zero is returned. */
int is_in_string_array(char *array[], size_t len, const char item[]);
/* Checks whether item is in the array. Always uses case insensitive
* comparison. Returns non-zero on successful search, otherwise zero is
* returned. */
int <API key>(char *array[], size_t len, const char item[]);
/* Checks whether item is in the array. Uses case sensitive or case insensitive
* comparison depending on OS case sensitivity. Returns non-zero on successful
* search, otherwise zero is returned. */
int <API key>(char *array[], size_t len, const char item[]);
char ** copy_string_array(char **array, size_t len);
/* Returns position of the item in the array, -1 if no match found. */
int string_array_pos(char *array[], size_t len, const char item[]);
/* Returns position of the item in the array, -1 if no match found. */
int <API key>(char *array[], size_t len, const char item[]);
/* Frees memory of all array items and from the array itself. Does nothing for
* NULL arrays. */
void free_string_array(char *array[], size_t len);
/* Frees memory of all array items, but not from the array itself. */
void free_strings(char *array[], size_t len);
void free_wstring_array(wchar_t **array, size_t len);
/* Reads file specified by filepath into an array of strings. Returns non-NULL
* on success, otherwise NULL is returned, *nlines is untouched and errno
* contains error code. For empty file non-NULL will be returned, but *nlines
* will be zero. */
char ** read_file_of_lines(const char filepath[], int *nlines);
/* Reads content of the file stream (required to be seekable) f into array of
* strings. Returns NULL for an empty file stream. */
char ** read_file_lines(FILE *f, int *nlines);
/* Reads content of the stream (not required to be seekable) f into array of
* strings. Returns NULL for an empty file stream. */
char ** read_stream_lines(FILE *f, int *nlines);
/* Reads content of the fp stream that doesn't support seek operation (e.g. it
* points to a pipe) until end-of-file into null terminated string. Returns
* string of length *read to be freed by caller on success, otherwise NULL is
* returned. */
char * <API key>(FILE *fp, size_t *read);
/* Overwrites file specified by filepath with lines. Returns zero on success,
* otherwise non-zero is returned and errno contains error code. */
int write_file_of_lines(const char filepath[], char *strs[], size_t nstrs);
#endif /* <API key> */
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
/* vim: set cinoptions+=t0 filetype=c : */
|
#ifndef ERROR_H
#define ERROR_H
#include <stdarg.h>
#include "btparse.h" /* for AST typedef */
#define MAX_ERROR 1024
#define ERRFUNC_BODY(class,filename,line,item_desc,item,format) \
{ \
va_list arglist; \
\
va_start (arglist, format); \
report_error (class, filename, line, item_desc, item, format, arglist); \
va_end (arglist); \
}
#define GEN_ERRFUNC(name,params,class,filename,line,item_desc,item,format) \
void name params \
ERRFUNC_BODY (class, filename, line, item_desc, item, format)
#define GEN_PRIVATE_ERRFUNC(name,params, \
class,filename,line,item_desc,item,format) \
static GEN_ERRFUNC(name,params,class,filename,line,item_desc,item,format)
/*
* Prototypes for functions exported by error.c but only used within
* the library -- functions that can be called by outsiders are declared
* in btparse.h.
*/
void print_error (bt_error *err);
void report_error (bt_errclass class,
const char * filename, int line, const char * item_desc, int item,
const char * format, va_list arglist);
void general_error (bt_errclass class,
char * filename, int line, const char * item_desc, int item,
const char * format, ...);
void error (bt_errclass class, char * filename, int line, char * format, ...);
void ast_error (bt_errclass class, AST * ast, char * format, ...);
void notify (const char *format,...);
void usage_warning (const char * format, ...);
void usage_error (const char * format, ...);
void internal_error (const char * format, ...);
#endif
|
package com.sun.fx.webnode.tests.customizable;
import com.sun.fx.webnode.tests.commonUtils.GenericTestClass;
import com.sun.fx.webnode.tests.commonUtils.ToolkitInitializer;
import javafx.application.Platform;
import javafx.beans.property.BooleanProperty;
import junit.framework.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* Tests for enabling/disabling JavaScript functionality.
* @author Irina Grineva
*/
public class JSEnabledTest extends GenericTestClass {
private BooleanProperty jsEnabledProperty;
private Boolean <API key>;
private Boolean isJSEnabled;
private Tester isJSEnabledReady = new Tester() {
public boolean isPassed() {
return isJSEnabled != null;
}
};
private Tester valuesReady = new Tester() {
public boolean isPassed() {
return isJSEnabled != null && <API key> != null;
}
};
@BeforeClass
public static void init() {
test.javaclient.shared.Utils.launch(ToolkitInitializer.class, new String[0]);
}
/**
* Test for checking default JavaScript state.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
isJSEnabled = null;
Platform.runLater(new Runnable() {
public void run() {
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(isJSEnabledReady);
Assert.assertTrue("JS is not enabled by default!", isJSEnabled);
}
/**
* Test for disabling JavaScript.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
isJSEnabled = null;
Platform.runLater(new Runnable() {
public void run() {
engine.<API key>(false);
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(isJSEnabledReady);
Assert.assertFalse("JS is not disabled!", isJSEnabled);
}
/**
* Test for disabling and then enabling JavaScript.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
isJSEnabled = null;
Platform.runLater(new Runnable() {
public void run() {
engine.<API key>(false);
engine.<API key>(true);
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(isJSEnabledReady);
Assert.assertTrue("JS is disabled!", isJSEnabled);
}
/**
* Test for checking default JavaScript state using a property.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
jsEnabledProperty = null;
<API key> = null;
Platform.runLater(new Runnable() {
public void run() {
jsEnabledProperty = engine.<API key>();
<API key> = jsEnabledProperty.get();
}
});
doWait(new Tester() {
public boolean isPassed() {
return <API key> != null && jsEnabledProperty != null;
}
});
Assert.assertTrue("JS is not enabled by default!", <API key>);
}
/**
* Test for disabling JavaScript using a property.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
isJSEnabled = null;
<API key> = null;
Platform.runLater(new Runnable() {
public void run() {
jsEnabledProperty = engine.<API key>();
jsEnabledProperty.set(false);
<API key> = jsEnabledProperty.get();
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(valuesReady);
Assert.assertFalse("JS is not disabled!", <API key>);
Assert.assertFalse("JS is not disabled!", isJSEnabled);
}
/**
* Test for disabling and then enabling JavaScript using a property.
*/
@Test(timeout=10000)
public void <API key>() {
<API key>();
isJSEnabled = null;
<API key> = null;
Platform.runLater(new Runnable() {
public void run() {
jsEnabledProperty = engine.<API key>();
jsEnabledProperty.set(false);
<API key> = jsEnabledProperty.get();
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(valuesReady);
Assert.assertFalse("JS is not disabled!", <API key>);
Assert.assertFalse("JS is not disabled!", isJSEnabled);
isJSEnabled = null;
<API key> = null;
Platform.runLater(new Runnable() {
public void run() {
jsEnabledProperty = engine.<API key>();
jsEnabledProperty.set(true);
<API key> = jsEnabledProperty.get();
isJSEnabled = engine.isJavaScriptEnabled();
}
});
doWait(valuesReady);
Assert.assertTrue("JS is disabled!", <API key>);
Assert.assertTrue("JS is disabled!", isJSEnabled);
}
}
|
#include <system_error>
int main()
{
throw std::system_error(std::make_error_code(std::errc::io_error), "I must be thrown");
return 1;
}
|
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/kernel_stat.h>
#include <linux/tty.h>
#include <linux/string.h>
#include <linux/mman.h>
#include <linux/proc_fs.h>
#include <linux/ioport.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/pagemap.h>
#include <linux/swap.h>
#include <linux/smp.h>
#include <linux/signal.h>
#include <linux/highmem.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/times.h>
#include <linux/cpuset.h>
#include <linux/rcupdate.h>
#include <linux/delayacct.h>
#include <linux/seq_file.h>
#include <linux/pid_namespace.h>
#include <linux/ptrace.h>
#include <linux/tracehook.h>
#include <asm/pgtable.h>
#include <asm/processor.h>
#include "internal.h"
static inline void task_name(struct seq_file *m, struct task_struct *p)
{
int i;
char *buf, *end;
char *name;
char tcomm[sizeof(p->comm)];
get_task_comm(tcomm, p);
seq_puts(m, "Name:\t");
end = m->buf + m->size;
buf = m->buf + m->count;
name = tcomm;
i = sizeof(tcomm);
while (i && (buf < end)) {
unsigned char c = *name;
name++;
i
*buf = c;
if (!c)
break;
if (c == '\\') {
buf++;
if (buf < end)
*buf++ = c;
continue;
}
if (c == '\n') {
*buf++ = '\\';
if (buf < end)
*buf++ = 'n';
continue;
}
buf++;
}
m->count = buf - m->buf;
seq_putc(m, '\n');
}
/*
* The task state array is a strange "bitmap" of
* reasons to sleep. Thus "running" is zero, and
* you can test for combinations of others with
* simple bit tests.
*/
static const char * const task_state_array[] = {
"R (running)",
"S (sleeping)",
"D (disk sleep)",
"T (stopped)",
"t (tracing stop)",
"Z (zombie)",
"X (dead)",
"x (dead)",
"K (wakekill)", /* 128 */
"W (waking)", /* 256 */
};
static inline const char *get_task_state(struct task_struct *tsk)
{
unsigned int state = (tsk->state & TASK_REPORT) | tsk->exit_state;
const char * const *p = &task_state_array[0];
BUILD_BUG_ON(1 + ilog2(TASK_STATE_MAX) != ARRAY_SIZE(task_state_array));
while (state) {
p++;
state >>= 1;
}
return *p;
}
static inline void task_state(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *p)
{
struct group_info *group_info;
int g;
struct fdtable *fdt = NULL;
const struct cred *cred;
pid_t ppid, tpid;
rcu_read_lock();
ppid = pid_alive(p) ?
task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0;
tpid = 0;
if (pid_alive(p)) {
struct task_struct *tracer = ptrace_parent(p);
if (tracer)
tpid = task_pid_nr_ns(tracer, ns);
}
cred = get_task_cred(p);
seq_printf(m,
"State:\t%s\n"
"Tgid:\t%d\n"
"Pid:\t%d\n"
"PPid:\t%d\n"
"TracerPid:\t%d\n"
"Uid:\t%d\t%d\t%d\t%d\n"
"Gid:\t%d\t%d\t%d\t%d\n",
get_task_state(p),
task_tgid_nr_ns(p, ns),
pid_nr_ns(pid, ns),
ppid, tpid,
cred->uid, cred->euid, cred->suid, cred->fsuid,
cred->gid, cred->egid, cred->sgid, cred->fsgid);
task_lock(p);
if (p->files)
fdt = files_fdtable(p->files);
seq_printf(m,
"FDSize:\t%d\n"
"Groups:\t",
fdt ? fdt->max_fds : 0);
rcu_read_unlock();
group_info = cred->group_info;
task_unlock(p);
for (g = 0; g < group_info->ngroups; g++)
seq_printf(m, "%d ", GROUP_AT(group_info, g));
put_cred(cred);
seq_putc(m, '\n');
}
static void render_sigset_t(struct seq_file *m, const char *header,
sigset_t *set)
{
int i;
seq_puts(m, header);
i = _NSIG;
do {
int x = 0;
i -= 4;
if (sigismember(set, i+1)) x |= 1;
if (sigismember(set, i+2)) x |= 2;
if (sigismember(set, i+3)) x |= 4;
if (sigismember(set, i+4)) x |= 8;
seq_printf(m, "%x", x);
} while (i >= 4);
seq_putc(m, '\n');
}
static void <API key>(struct task_struct *p, sigset_t *ign,
sigset_t *catch)
{
struct k_sigaction *k;
int i;
k = p->sighand->action;
for (i = 1; i <= _NSIG; ++i, ++k) {
if (k->sa.sa_handler == SIG_IGN)
sigaddset(ign, i);
else if (k->sa.sa_handler != SIG_DFL)
sigaddset(catch, i);
}
}
static inline void task_sig(struct seq_file *m, struct task_struct *p)
{
unsigned long flags;
sigset_t pending, shpending, blocked, ignored, caught;
int num_threads = 0;
unsigned long qsize = 0;
unsigned long qlim = 0;
sigemptyset(&pending);
sigemptyset(&shpending);
sigemptyset(&blocked);
sigemptyset(&ignored);
sigemptyset(&caught);
if (lock_task_sighand(p, &flags)) {
pending = p->pending.signal;
shpending = p->signal->shared_pending.signal;
blocked = p->blocked;
<API key>(p, &ignored, &caught);
num_threads = get_nr_threads(p);
rcu_read_lock(); /* FIXME: is this correct? */
qsize = atomic_read(&__task_cred(p)->user->sigpending);
rcu_read_unlock();
qlim = task_rlimit(p, RLIMIT_SIGPENDING);
unlock_task_sighand(p, &flags);
}
seq_printf(m, "Threads:\t%d\n", num_threads);
seq_printf(m, "SigQ:\t%lu/%lu\n", qsize, qlim);
/* render them all */
render_sigset_t(m, "SigPnd:\t", &pending);
render_sigset_t(m, "ShdPnd:\t", &shpending);
render_sigset_t(m, "SigBlk:\t", &blocked);
render_sigset_t(m, "SigIgn:\t", &ignored);
render_sigset_t(m, "SigCgt:\t", &caught);
}
static void render_cap_t(struct seq_file *m, const char *header,
kernel_cap_t *a)
{
unsigned __capi;
seq_puts(m, header);
CAP_FOR_EACH_U32(__capi) {
seq_printf(m, "%08x",
a->cap[(<API key>) - __capi]);
}
seq_putc(m, '\n');
}
static inline void task_cap(struct seq_file *m, struct task_struct *p)
{
const struct cred *cred;
kernel_cap_t cap_inheritable, cap_permitted, cap_effective, cap_bset;
rcu_read_lock();
cred = __task_cred(p);
cap_inheritable = cred->cap_inheritable;
cap_permitted = cred->cap_permitted;
cap_effective = cred->cap_effective;
cap_bset = cred->cap_bset;
rcu_read_unlock();
render_cap_t(m, "CapInh:\t", &cap_inheritable);
render_cap_t(m, "CapPrm:\t", &cap_permitted);
render_cap_t(m, "CapEff:\t", &cap_effective);
render_cap_t(m, "CapBnd:\t", &cap_bset);
}
static inline void task_seccomp(struct seq_file *m, struct task_struct *p)
{
#ifdef CONFIG_SECCOMP
seq_printf(m, "Seccomp:\t%d\n", p->seccomp.mode);
#endif
}
static inline void <API key>(struct seq_file *m,
struct task_struct *p)
{
seq_printf(m, "<API key>:\t%lu\n"
"<API key>:\t%lu\n",
p->nvcsw,
p->nivcsw);
}
static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
{
seq_puts(m, "Cpus_allowed:\t");
seq_cpumask(m, &task->cpus_allowed);
seq_putc(m, '\n');
seq_puts(m, "Cpus_allowed_list:\t");
seq_cpumask_list(m, &task->cpus_allowed);
seq_putc(m, '\n');
}
int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
struct mm_struct *mm = get_task_mm(task);
task_name(m, task);
task_state(m, ns, pid, task);
if (mm) {
task_mem(m, mm);
mmput(mm);
}
task_sig(m, task);
task_cap(m, task);
task_seccomp(m, task);
task_cpus_allowed(m, task);
<API key>(m, task);
<API key>(m, task);
return 0;
}
static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task, int whole)
{
unsigned long vsize, eip, esp, wchan = ~0UL;
long priority, nice;
int tty_pgrp = -1, tty_nr = 0;
sigset_t sigign, sigcatch;
char state;
pid_t ppid = 0, pgid = -1, sid = -1;
int num_threads = 0;
int permitted;
struct mm_struct *mm;
unsigned long long start_time;
unsigned long cmin_flt = 0, cmaj_flt = 0;
unsigned long min_flt = 0, maj_flt = 0;
cputime_t cutime, cstime, utime, stime;
cputime_t cgtime, gtime;
unsigned long rsslim = 0;
char tcomm[sizeof(task->comm)];
unsigned long flags;
state = *get_task_state(task);
vsize = eip = esp = 0;
permitted = ptrace_may_access(task, PTRACE_MODE_READ | PTRACE_MODE_NOAUDIT);
mm = get_task_mm(task);
if (mm) {
vsize = task_vsize(mm);
if (permitted) {
eip = KSTK_EIP(task);
esp = KSTK_ESP(task);
}
}
get_task_comm(tcomm, task);
sigemptyset(&sigign);
sigemptyset(&sigcatch);
cutime = cstime = utime = stime = 0;
cgtime = gtime = 0;
if (lock_task_sighand(task, &flags)) {
struct signal_struct *sig = task->signal;
if (sig->tty) {
struct pid *pgrp = tty_get_pgrp(sig->tty);
tty_pgrp = pid_nr_ns(pgrp, ns);
put_pid(pgrp);
tty_nr = new_encode_dev(tty_devnum(sig->tty));
}
num_threads = get_nr_threads(task);
<API key>(task, &sigign, &sigcatch);
cmin_flt = sig->cmin_flt;
cmaj_flt = sig->cmaj_flt;
cutime = sig->cutime;
cstime = sig->cstime;
cgtime = sig->cgtime;
rsslim = ACCESS_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur);
/* add up live thread stats at the group level */
if (whole) {
struct task_struct *t = task;
do {
min_flt += t->min_flt;
maj_flt += t->maj_flt;
gtime += t->gtime;
t = next_thread(t);
} while (t != task);
min_flt += sig->min_flt;
maj_flt += sig->maj_flt;
thread_group_times(task, &utime, &stime);
gtime += sig->gtime;
}
sid = task_session_nr_ns(task, ns);
ppid = task_tgid_nr_ns(task->real_parent, ns);
pgid = task_pgrp_nr_ns(task, ns);
unlock_task_sighand(task, &flags);
}
if (permitted && (!whole || num_threads < 2))
wchan = get_wchan(task);
if (!whole) {
min_flt = task->min_flt;
maj_flt = task->maj_flt;
task_times(task, &utime, &stime);
gtime = task->gtime;
}
/* scale priority and nice values from timeslices to -20..20 */
/* to make it look like a "normal" Unix priority/nice value */
priority = task_prio(task);
nice = task_nice(task);
/* Temporary variable needed for gcc-2.96 */
/* convert timespec -> nsec*/
start_time =
(unsigned long long)task->real_start_time.tv_sec * NSEC_PER_SEC
+ task->real_start_time.tv_nsec;
/* convert nsec -> ticks */
start_time = nsec_to_clock_t(start_time);
seq_printf(m, "%d (%s) %c", pid_nr_ns(pid, ns), tcomm, state);
seq_put_decimal_ll(m, ' ', ppid);
seq_put_decimal_ll(m, ' ', pgid);
seq_put_decimal_ll(m, ' ', sid);
seq_put_decimal_ll(m, ' ', tty_nr);
seq_put_decimal_ll(m, ' ', tty_pgrp);
seq_put_decimal_ull(m, ' ', task->flags);
seq_put_decimal_ull(m, ' ', min_flt);
seq_put_decimal_ull(m, ' ', cmin_flt);
seq_put_decimal_ull(m, ' ', maj_flt);
seq_put_decimal_ull(m, ' ', cmaj_flt);
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(utime));
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(stime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cutime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cstime));
seq_put_decimal_ll(m, ' ', priority);
seq_put_decimal_ll(m, ' ', nice);
seq_put_decimal_ll(m, ' ', num_threads);
seq_put_decimal_ull(m, ' ', 0);
seq_put_decimal_ull(m, ' ', start_time);
seq_put_decimal_ull(m, ' ', vsize);
seq_put_decimal_ll(m, ' ', mm ? get_mm_rss(mm) : 0);
seq_put_decimal_ull(m, ' ', rsslim);
seq_put_decimal_ull(m, ' ', mm ? (permitted ? mm->start_code : 1) : 0);
seq_put_decimal_ull(m, ' ', mm ? (permitted ? mm->end_code : 1) : 0);
seq_put_decimal_ull(m, ' ', (permitted && mm) ? mm->start_stack : 0);
seq_put_decimal_ull(m, ' ', esp);
seq_put_decimal_ull(m, ' ', eip);
/* The signal information here is obsolete.
* It must be decimal for Linux 2.0 compatibility.
* Use /proc/#/status for real-time signals.
*/
seq_put_decimal_ull(m, ' ', task->pending.signal.sig[0] & 0x7fffffffUL);
seq_put_decimal_ull(m, ' ', task->blocked.sig[0] & 0x7fffffffUL);
seq_put_decimal_ull(m, ' ', sigign.sig[0] & 0x7fffffffUL);
seq_put_decimal_ull(m, ' ', sigcatch.sig[0] & 0x7fffffffUL);
seq_put_decimal_ull(m, ' ', wchan);
seq_put_decimal_ull(m, ' ', 0);
seq_put_decimal_ull(m, ' ', 0);
seq_put_decimal_ll(m, ' ', task->exit_signal);
seq_put_decimal_ll(m, ' ', task_cpu(task));
seq_put_decimal_ull(m, ' ', task->rt_priority);
seq_put_decimal_ull(m, ' ', task->policy);
seq_put_decimal_ull(m, ' ', <API key>(task));
seq_put_decimal_ull(m, ' ', cputime_to_clock_t(gtime));
seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cgtime));
seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->start_data : 0);
seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->end_data : 0);
seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->start_brk : 0);
seq_putc(m, '\n');
if (mm)
mmput(mm);
return 0;
}
int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
return do_task_stat(m, ns, pid, task, 0);
}
int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
return do_task_stat(m, ns, pid, task, 1);
}
int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
unsigned long size = 0, resident = 0, shared = 0, text = 0, data = 0;
struct mm_struct *mm = get_task_mm(task);
if (mm) {
size = task_statm(mm, &shared, &text, &data, &resident);
mmput(mm);
}
/*
* For quick read, open code by putting numbers directly
* expected format is
* seq_printf(m, "%lu %lu %lu %lu 0 %lu 0\n",
* size, resident, shared, text, data);
*/
seq_put_decimal_ull(m, 0, size);
seq_put_decimal_ull(m, ' ', resident);
seq_put_decimal_ull(m, ' ', shared);
seq_put_decimal_ull(m, ' ', text);
seq_put_decimal_ull(m, ' ', 0);
seq_put_decimal_ull(m, ' ', data);
seq_put_decimal_ull(m, ' ', 0);
seq_putc(m, '\n');
return 0;
}
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>osc.js Require/AMD Unit Tests</title>
<link rel="stylesheet" media="screen" href="third-party/qunit/css/qunit.css" />
<script type="text/javascript" src="third-party/qunit/js/qunit.js"></script>
<script src="../bower_components/requirejs/require.js"></script>
<script src="osc-module-tests.js"></script>
</head>
<body id="body">
<h1 id="qunit-header">osc.js Require/AMD Unit Tests</h1>
<h2 id="qunit-banner"></h2>
<div id="<API key>"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<!-- Test HTML -->
<div id="main" style="display: none;">
</div>
</body>
</html>
|
package admincommands;
import com.aionemu.gameserver.dataholders.DataManager;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.services.AdminService;
import com.aionemu.gameserver.services.item.ItemService;
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.utils.Util;
import com.aionemu.gameserver.utils.chathandlers.AdminCommand;
import com.aionemu.gameserver.world.World;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author Phantom, ATracer, Source
*/
public class Add extends AdminCommand {
public Add() {
super("add");
}
@Override
public void execute(Player player, String... params) {
if ((params.length < 0) || (params.length < 1)) {
onFail(player, null);
return;
}
int itemId = 0;
long itemCount = 1;
Player receiver;
try {
String item = params[0];
// Some item links have space before Id
if (item.equals("[item:")) {
item = params[1];
Pattern id = Pattern.compile("(\\d{9})");
Matcher result = id.matcher(item);
if (result.find()) {
itemId = Integer.parseInt(result.group(1));
}
if (params.length == 3) {
itemCount = Long.parseLong(params[2]);
}
} else {
Pattern id = Pattern.compile("\\[item:(\\d{9})");
Matcher result = id.matcher(item);
if (result.find()) {
itemId = Integer.parseInt(result.group(1));
} else {
itemId = Integer.parseInt(params[0]);
}
if (params.length == 2) {
itemCount = Long.parseLong(params[1]);
}
}
receiver = player;
} catch (<API key> e) {
receiver = World.getInstance().findPlayer(Util.convertName(params[0]));
if (receiver == null) {
PacketSendUtility.sendMessage(player, "Could not find a player by that name.");
return;
}
try {
String item = params[1];
// Some item links have space before Id
if (item.equals("[item:")) {
item = params[2];
Pattern id = Pattern.compile("(\\d{9})");
Matcher result = id.matcher(item);
if (result.find()) {
itemId = Integer.parseInt(result.group(1));
}
if (params.length == 4) {
itemCount = Long.parseLong(params[3]);
}
} else {
Pattern id = Pattern.compile("\\[item:(\\d{9})");
Matcher result = id.matcher(item);
if (result.find()) {
itemId = Integer.parseInt(result.group(1));
} else {
itemId = Integer.parseInt(params[1]);
}
if (params.length == 3) {
itemCount = Long.parseLong(params[2]);
}
}
} catch (<API key> ex) {
PacketSendUtility.sendMessage(player, "You must give number to itemid.");
return;
} catch (Exception ex2) {
PacketSendUtility.sendMessage(player, "Occurs an error.");
return;
}
}
if (DataManager.ITEM_DATA.getItemTemplate(itemId) == null) {
PacketSendUtility.sendMessage(player, "Item id is incorrect: " + itemId);
return;
}
if (!AdminService.getInstance().canOperate(player, receiver, itemId, "command //add")) {
return;
}
long count = ItemService.addItem(receiver, itemId, itemCount);
if (count == 0) {
if (player != receiver) {
PacketSendUtility.sendMessage(player, "You successfully gave " + itemCount + " x [item:"
+ itemId + "] to " + receiver.getName() + ".");
PacketSendUtility.sendMessage(receiver, "You successfully received " + itemCount + " x [item:"
+ itemId + "] from " + player.getName() + ".");
} else {
PacketSendUtility.sendMessage(player, "You successfully received " + itemCount + " x [item:"
+ itemId + "]");
}
} else {
PacketSendUtility.sendMessage(player, "Item couldn't be added");
}
}
@Override
public void onFail(Player player, String message) {
PacketSendUtility.sendMessage(player, "syntax //add <player> <item Id | link> <quantity>");
PacketSendUtility.sendMessage(player, "syntax //add <item Id | link> <quantity>");
PacketSendUtility.sendMessage(player, "syntax //add <item Id | link>");
}
}
|
#ifndef __RFNVID_H__
#define __RFNVID_H__
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
#include "NvIddef.h"
enum RF_NV_ID_ENUM
{
/* G RF1*/
<API key> = 10000,
<API key> = 10001,
<API key> = 10002,
<API key> = 10003,
<API key> = 10004,
<API key> = 10005,
<API key> = 10006,
<API key> = 10007,
<API key> = 10008,
<API key> = 10009,
<API key> = 10010,
<API key> = 10011,
<API key> = 10012,
<API key> = 10013,
<API key> = 10014,
<API key> = 10015,
<API key> = 10016,
<API key> = 10017,
<API key> = 10018,
<API key> = 10019,
<API key> = 10020,
<API key> = 10021,
<API key> = 10022,
<API key> = 10023,
<API key> = 10024,
<API key> = 10025,
<API key> = 10026,
<API key> = 10027,
<API key> = 10028,
<API key> = 10029,
<API key> = 10030,
<API key> = 10031,
<API key> = 10034,
<API key> = 10035,
<API key> = 10036,
<API key> = 10037,
<API key> = 10038,
<API key> = 10039,
<API key> = 10040,
<API key> = 10041,
<API key> = 10042,
<API key> = 10043,
<API key> = 10044,
<API key> = 10045,
<API key> = 10046,
<API key> = 10047,
<API key> = 10048,
<API key> = 10049,
<API key> = 10050,
<API key> = 10051,
<API key> = 10052,
<API key> = 10054,
<API key> = 10055,
<API key> = 10100,
<API key> = 10101,
<API key> = 10102,
<API key> = 10103,
<API key> = 10104,
<API key> = 10105,
<API key> = 10106,
<API key> = 10107,
<API key> = 10108,
<API key> = 10109,
<API key> = 10110,
<API key> = 10111,
<API key> = 10112,
<API key> = 10115,
<API key> = 10117,
<API key> = 10118,
<API key> = 10119,
<API key> = 10120,
<API key> = 10121,
<API key> = 10122,
<API key> = 10123,
<API key> = 10124,
<API key> = 10125,
<API key> = 10126,
<API key> = 10127,
<API key> = 10128,
<API key> = 10129,
<API key> = 10130,
<API key> = 10131,
<API key> = 10132,
<API key> = 10133,
<API key> = 10134,
<API key> = 10135,
<API key> = 10136,
<API key> = 10137,
<API key> = 10138,
<API key> = 10139,
<API key> = 10140,
<API key> = 10141,
<API key> = 10142,
<API key> = 10143,
<API key> = 10144,
<API key> = 10145,
<API key> = 10200,
<API key> = 10201,
<API key> = 10202,
<API key> = 10203,
<API key> = 10204,
<API key> = 10205,
<API key> = 10206,
<API key> = 10207,
<API key> = 10240,
<API key> = 10241,
<API key> = 10242,
<API key> = 10243,
<API key> = 10244,
<API key> = 10245,
<API key> = 10246,
<API key> = 10247,
<API key> = 10248,
<API key> = 10249,
<API key> = 10250,
<API key> = 10251,
<API key> = 10252,
<API key> = 10253,
<API key> = 10254,
<API key> = 10255,
<API key> = 10256,
<API key> = 10257,
<API key> = 10258,
<API key> = 10259,
<API key> = 10260,
<API key> = 10261,
<API key> = 10262,
<API key> = 10263,
<API key> = 10264,
<API key> = 10265,
<API key> = 10266,
<API key> = 10267,
<API key> = 10268,
<API key> = 10269,
<API key> = 10270,
<API key> = 10271,
<API key> = 10272,
<API key> = 10273,
<API key> = 10274,
<API key> = 10275,
<API key> = 10276,
<API key> = 10277,
<API key> = 10278,
<API key> = 10279,
<API key> = 10280,
<API key> = 10281,
<API key> = 10282,
<API key> = 10283,
<API key> = 10284,
<API key> = 10285,
<API key> = 10286,
<API key> = 10287,
<API key> = 10288,
<API key> = 10289,
<API key> = 10291,
<API key> = 10292,
<API key> = 10293,
<API key> = 10294,
<API key> = 10295,
<API key> = 10296,
<API key> = 10297,
<API key> = 10298,
<API key> = 10299,
<API key> = 10300,
<API key> = 10301,
<API key> = 10302,
<API key> = 10303,
<API key> = 10304,
<API key> = 10305,
<API key> = 10306,
<API key> = 10308,
<API key> = 10309,
<API key> = 10314,
<API key> = 10315,
<API key> = 10316,
<API key> = 10317,
<API key> = 10320,
<API key> = 10321,
<API key> = 10322,
<API key> = 10323,
<API key> = 10324,
<API key> = 10325,
<API key> = 10326,
<API key> = 10327,
<API key> = 10328,
<API key> = 10329,
<API key> = 10330,
<API key> = 10331,
<API key> = 10332,
<API key> = 10333,
<API key> = 10334,
<API key> = 10335,
<API key> = 10336,
<API key> = 10337,
<API key> = 10338,
<API key> = 10339,
<API key> = 10340,
<API key> = 10341,
<API key> = 10342,
<API key> = 10343,
<API key> = 10344,
<API key> = 10345,
<API key> = 10346,
<API key> = 10347,
<API key> = 10348,
<API key> = 10349,
<API key> = 10350,
<API key> = 10351,
<API key> = 10352,
<API key> = 10353,
<API key> = 10354,
<API key> = 10355,
<API key> = 10356,
<API key> = 10357,
<API key> = 10358,
<API key> = 10359,
<API key> = 10360,
<API key> = 10361,
<API key> = 10362,
<API key> = 10363,
<API key> = 10364,
<API key> = 10366,
<API key> = 10367,
<API key> = 10368,
<API key> = 10369,
<API key> = 10370,
<API key> = 10372,
<API key> = 10373,
<API key> = 10374,
<API key> = 10375,
<API key> = 10376,
<API key> = 10377,
<API key> = 10378,
<API key> = 10379,
<API key> = 10380,
<API key> = 10381,
<API key> = 10382,
<API key> = 10383,
<API key> = 10384,
<API key> = 10400,
<API key> = 10401,
<API key> = 10402,
<API key> = 10403,
<API key> = 10404,
<API key> = 10405,
<API key> = 10406,
<API key> = 10407,
<API key> = 10440,
<API key> = 10441,
<API key> = 10442,
<API key> = 10443,
<API key> = 10444,
<API key> = 10445,
<API key> = 10446,
<API key> = 10447,
<API key> = 10448,
<API key> = 10449,
<API key> = 10450,
<API key> = 10451,
<API key> = 10452,
<API key> = 10453,
<API key> = 10454,
<API key> = 10455,
<API key> = 10456,
<API key> = 10457,
<API key> = 10458,
<API key> = 10459,
<API key> = 10460,
<API key> = 10461,
<API key> = 10462,
<API key> = 10463,
<API key> = 10464,
<API key> = 10465,
<API key> = 10466,
<API key> = 10467,
<API key> = 10468,
<API key> = 10469,
<API key> = 10470,
<API key> = 10471,
<API key> = 10472,
<API key> = 10473,
<API key> = 10474,
<API key> = 10475,
<API key> = 10476,
<API key> = 10477,
<API key> = 10478,
<API key> = 10479,
<API key> = 10480,
<API key> = 10481,
<API key> = 10482,
<API key> = 10483,
<API key> = 10484,
<API key> = 10485,
<API key> = 10486,
<API key> = 10487,
<API key> = 10488,
<API key> = 10489,
<API key> = 10491,
<API key> = 10492,
<API key> = 10493,
<API key> = 10494,
<API key> = 10495,
<API key> = 10496,
<API key> = 10497,
<API key> = 10498,
<API key> = 10499,
<API key> = 10500,
<API key> = 10501,
<API key> = 10502,
<API key> = 10503,
<API key> = 10504,
<API key> = 10505,
<API key> = 10506,
<API key> = 10508,
<API key> = 10509,
<API key> = 10514,
<API key> = 10515,
<API key> = 10516,
<API key> = 10517,
<API key> = 10520,
<API key> = 10521,
<API key> = 10522,
<API key> = 10523,
<API key> = 10524,
<API key> = 10525,
<API key> = 10526,
<API key> = 10527,
<API key> = 10528,
<API key> = 10529,
<API key> = 10530,
<API key> = 10531,
<API key> = 10532,
<API key> = 10533,
<API key> = 10534,
<API key> = 10535,
<API key> = 10536,
<API key> = 10537,
<API key> = 10538,
<API key> = 10539,
<API key> = 10540,
<API key> = 10541,
<API key> = 10542,
<API key> = 10543,
<API key> = 10544,
<API key> = 10545,
<API key> = 10546,
<API key> = 10547,
<API key> = 10548,
<API key> = 10549,
<API key> = 10550,
<API key> = 10551,
<API key> = 10552,
<API key> = 10553,
<API key> = 10554,
<API key> = 10555,
<API key> = 10556,
<API key> = 10557,
<API key> = 10558,
<API key> = 10559,
<API key> = 10560,
<API key> = 10561,
<API key> = 10562,
<API key> = 10563,
<API key> = 10564,
<API key> = 10566,
<API key> = 10567,
<API key> = 10568,
<API key> = 10569,
<API key> = 10570,
<API key> = 10572,
<API key> = 10573,
<API key> = 10574,
<API key> = 10575,
<API key> = 10576,
<API key> = 10577,
<API key> = 10578,
<API key> = 10579,
<API key> = 10580,
<API key> = 10581,
<API key> = 10582,
<API key> = 10583,
<API key> = 10584,
<API key> = 10600,
<API key> = 10601,
<API key> = 10602,
<API key> = 10603,
<API key> = 10604,
<API key> = 10605,
<API key> = 10606,
<API key> = 10607,
<API key> = 10640,
<API key> = 10641,
<API key> = 10642,
<API key> = 10643,
<API key> = 10644,
<API key> = 10645,
<API key> = 10646,
<API key> = 10647,
<API key> = 10648,
<API key> = 10649,
<API key> = 10650,
<API key> = 10651,
<API key> = 10652,
<API key> = 10653,
<API key> = 10654,
<API key> = 10655,
<API key> = 10656,
<API key> = 10657,
<API key> = 10658,
<API key> = 10659,
<API key> = 10660,
<API key> = 10661,
<API key> = 10662,
<API key> = 10663,
<API key> = 10664,
<API key> = 10665,
<API key> = 10666,
<API key> = 10667,
<API key> = 10668,
<API key> = 10669,
<API key> = 10670,
<API key> = 10671,
<API key> = 10672,
<API key> = 10673,
<API key> = 10674,
<API key> = 10675,
<API key> = 10676,
<API key> = 10677,
<API key> = 10678,
<API key> = 10679,
<API key> = 10680,
<API key> = 10681,
<API key> = 10682,
<API key> = 10683,
<API key> = 10684,
<API key> = 10685,
<API key> = 10686,
<API key> = 10687,
<API key> = 10688,
<API key> = 10689,
<API key> = 10691,
<API key> = 10692,
<API key> = 10693,
<API key> = 10694,
<API key> = 10695,
<API key> = 10696,
<API key> = 10697,
<API key> = 10698,
<API key> = 10699,
<API key> = 10700,
<API key> = 10701,
<API key> = 10702,
<API key> = 10703,
<API key> = 10704,
<API key> = 10705,
<API key> = 10706,
<API key> = 10708,
<API key> = 10709,
<API key> = 10714,
<API key> = 10715,
<API key> = 10716,
<API key> = 10717,
<API key> = 10720,
<API key> = 10721,
<API key> = 10722,
<API key> = 10723,
<API key> = 10724,
<API key> = 10725,
<API key> = 10726,
<API key> = 10727,
<API key> = 10728,
<API key> = 10729,
<API key> = 10730,
<API key> = 10731,
<API key> = 10732,
<API key> = 10733,
<API key> = 10734,
<API key> = 10735,
<API key> = 10736,
<API key> = 10737,
<API key> = 10738,
<API key> = 10739,
<API key> = 10740,
<API key> = 10741,
<API key> = 10742,
<API key> = 10743,
<API key> = 10744,
<API key> = 10745,
<API key> = 10746,
<API key> = 10747,
<API key> = 10748,
<API key> = 10749,
<API key> = 10750,
<API key> = 10751,
<API key> = 10752,
<API key> = 10753,
<API key> = 10754,
<API key> = 10755,
<API key> = 10756,
<API key> = 10757,
<API key> = 10758,
<API key> = 10759,
<API key> = 10760,
<API key> = 10761,
<API key> = 10762,
<API key> = 10763,
<API key> = 10764,
<API key> = 10766,
<API key> = 10767,
<API key> = 10768,
<API key> = 10769,
<API key> = 10770,
<API key> = 10772,
<API key> = 10773,
<API key> = 10774,
<API key> = 10775,
<API key> = 10776,
<API key> = 10777,
<API key> = 10778,
<API key> = 10779,
<API key> = 10780,
<API key> = 10781,
<API key> = 10782,
<API key> = 10783,
<API key> = 10784,
<API key> = 10788,
<API key> = 10789,
<API key> = 10790,
<API key> = 10791,
<API key> = 10792,
<API key> = 10793,
<API key> = 10794,
<API key> = 10795,
<API key> = 10796,
<API key> = 10797,
<API key> = 10798,
<API key> = 10799,
<API key> = 10800,
<API key> = 10801,
<API key> = 10802,
<API key> = 10803,
<API key> = 10804,
<API key> = 10805,
<API key> = 10806,
<API key> = 10807,
<API key> = 10840,
<API key> = 10841,
<API key> = 10842,
<API key> = 10843,
<API key> = 10844,
<API key> = 10845,
<API key> = 10846,
<API key> = 10847,
<API key> = 10848,
<API key> = 10849,
<API key> = 10850,
<API key> = 10851,
<API key> = 10852,
<API key> = 10853,
<API key> = 10854,
<API key> = 10855,
<API key> = 10856,
<API key> = 10857,
<API key> = 10858,
<API key> = 10859,
<API key> = 10860,
<API key> = 10861,
<API key> = 10862,
<API key> = 10863,
<API key> = 10864,
<API key> = 10865,
<API key> = 10866,
<API key> = 10867,
<API key> = 10868,
<API key> = 10869,
<API key> = 10870,
<API key> = 10871,
<API key> = 10872,
<API key> = 10873,
<API key> = 10874,
<API key> = 10875,
<API key> = 10876,
<API key> = 10877,
<API key> = 10878,
<API key> = 10879,
<API key> = 10880,
<API key> = 10881,
<API key> = 10882,
<API key> = 10883,
<API key> = 10884,
<API key> = 10885,
<API key> = 10886,
<API key> = 10887,
<API key> = 10888,
<API key> = 10889,
<API key> = 10891,
<API key> = 10892,
<API key> = 10893,
<API key> = 10894,
<API key> = 10895,
<API key> = 10896,
<API key> = 10897,
<API key> = 10898,
<API key> = 10899,
<API key> = 10900,
<API key> = 10901,
<API key> = 10902,
<API key> = 10903,
<API key> = 10904,
<API key> = 10905,
<API key> = 10906,
<API key> = 10908,
<API key> = 10909,
<API key> = 10914,
<API key> = 10915,
<API key> = 10916,
<API key> = 10917,
<API key> = 10920,
<API key> = 10921,
<API key> = 10922,
<API key> = 10923,
<API key> = 10924,
<API key> = 10925,
<API key> = 10926,
<API key> = 10927,
<API key> = 10928,
<API key> = 10929,
<API key> = 10930,
<API key> = 10931,
<API key> = 10932,
<API key> = 10933,
<API key> = 10934,
<API key> = 10935,
<API key> = 10936,
<API key> = 10937,
<API key> = 10938,
<API key> = 10939,
<API key> = 10940,
<API key> = 10941,
<API key> = 10942,
<API key> = 10943,
<API key> = 10944,
<API key> = 10945,
<API key> = 10946,
<API key> = 10947,
<API key> = 10948,
<API key> = 10949,
<API key> = 10950,
<API key> = 10951,
<API key> = 10952,
<API key> = 10953,
<API key> = 10954,
<API key> = 10955,
<API key> = 10956,
<API key> = 10957,
<API key> = 10958,
<API key> = 10959,
<API key> = 10960,
<API key> = 10961,
<API key> = 10962,
<API key> = 10963,
<API key> = 10964,
<API key> = 10966,
<API key> = 10967,
<API key> = 10968,
<API key> = 10969,
<API key> = 10970,
<API key> = 10972,
<API key> = 10973,
<API key> = 10974,
<API key> = 10975,
<API key> = 10976,
<API key> = 10977,
<API key> = 10978,
<API key> = 10979,
<API key> = 10980,
<API key> = 10981,
<API key> = 10982,
<API key> = 10983,
<API key> = 10984,
/* W RF1*/
<API key> = 11000,
<API key> = 11001,
<API key> = 11002,
<API key> = 11003,
<API key> = 11004,
<API key> = 11005,
<API key> = 11006,
<API key> = 11007,
<API key> = 11008,
<API key> = 11009,
<API key> = 11011,
<API key> = 11012,
<API key> = 11013,
<API key> = 11014,
<API key> = 11015,
<API key> = 11016,
<API key> = 11017,
<API key> = 11018,
<API key> = 11019,
<API key> = 11020,
<API key> = 11021,
<API key> = 11022,
<API key> = 11023,
<API key> = 11024,
<API key> = 11025,
<API key> = 11026,
<API key> = 11027,
<API key> = 11028,
<API key> = 11029,
<API key> = 11030,
<API key> = 11031,
<API key> = 11032,
<API key> = 11033,
<API key> = 11034,
<API key> = 11035,
<API key> = 11036,
<API key> = 11037,
<API key> = 11038,
<API key> = 11039,
<API key> = 11040,
<API key> = 11041,
<API key> = 11042,
<API key> = 11043,
<API key> = 11044,
<API key> = 11045,
<API key> = 11046,
<API key> = 11047,
<API key> = 11048,
<API key> = 11049,
<API key> = 11050,
<API key> = 11051,
<API key> = 11052,
<API key> = 11053,
<API key> = 11054,
<API key> = 11055,
<API key> = 11056,
<API key> = 11057,
<API key> = 11058,
<API key> = 11059,
<API key> = 11060,
<API key> = 11061,
<API key> = 11062,
<API key> = 11063,
<API key> = 11064,
<API key> = 11065,
<API key> = 11066,
<API key> = 11067,
<API key> = 11068,
<API key> = 11069,
<API key> = 11070,
<API key> = 11071,
<API key> = 11072,
<API key> = 11073,
<API key> = 11074,
<API key> = 11075,
<API key> = 11076,
<API key> = 11079,
<API key> = 11080,
<API key> = 11081,
<API key> = 11082,
<API key> = 11083,
<API key> = 11084,
<API key> = 11100,
<API key> = 11101,
<API key> = 11102,
<API key> = 11103,
<API key> = 11104,
<API key> = 11105,
<API key> = 11106,
<API key> = 11107,
<API key> = 11108,
<API key> = 11109,
<API key> = 11110,
<API key> = 11111,
<API key> = 11112,
<API key> = 11113,
<API key> = 11114,
<API key> = 11115,
<API key> = 11116,
<API key> = 11117,
<API key> = 11140,
<API key> = 11141,
<API key> = 11142,
<API key> = 11143,
<API key> = 11144,
<API key> = 11145,
<API key> = 11146,
<API key> = 11147,
<API key> = 11148,
<API key> = 11149,
<API key> = 11150,
<API key> = 11151,
<API key> = 11152,
<API key> = 11153,
<API key> = 11154,
<API key> = 11155,
<API key> = 11156,
<API key> = 11157,
<API key> = 11158,
<API key> = 11159,
<API key> = 11160,
<API key> = 11161,
<API key> = 11162,
<API key> = 11163,
<API key> = 11164,
<API key> = 11165,
<API key> = 11166,
<API key> = 11167,
<API key> = 11168,
<API key> = 11169,
<API key> = 11170,
<API key> = 11171,
<API key> = 11172,
<API key> = 11173,
<API key> = 11174,
<API key> = 11175,
<API key> = 11176,
<API key> = 11177,
<API key> = 11178,
<API key> = 11179,
<API key> = 11180,
<API key> = 11181,
<API key> = 11182,
<API key> = 11183,
<API key> = 11184,
<API key> = 11185,
<API key> = 11186,
<API key> = 11187,
<API key> = 11188,
<API key> = 11189,
<API key> = 11190,
<API key> = 11191,
<API key> = 11192,
<API key> = 11193,
<API key> = 11194,
<API key> = 11195,
<API key> = 11196,
<API key> = 11198,
<API key> = 11199,
<API key> = 11200,
<API key> = 11201,
<API key> = 11202,
<API key> = 11203,
<API key> = 11204,
<API key> = 11205,
<API key> = 11206,
<API key> = 11207,
<API key> = 11208,
<API key> = 11209,
<API key> = 11210,
<API key> = 11211,
<API key> = 11212,
<API key> = 11213,
<API key> = 11214,
<API key> = 11224,
<API key> = 11225,
<API key> = 11229,
<API key> = 11230,
<API key> = 11231,
<API key> = 11232,
<API key> = 11233,
<API key> = 11234,
<API key> = 11235,
<API key> = 11236,
<API key> = 11237,
<API key> = 11238,
<API key> = 11239,
<API key> = 11240,
<API key> = 11241,
<API key> = 11242,
<API key> = 11243,
<API key> = 11244,
<API key> = 11245,
<API key> = 11246,
<API key> = 11247,
<API key> = 11248,
<API key> = 11249,
<API key> = 11250,
<API key> = 11251,
<API key> = 11252,
<API key> = 11253,
<API key> = 11254,
<API key> = 11255,
<API key> = 11256,
<API key> = 11257,
<API key> = 11258,
<API key> = 11259,
<API key> = 11260,
<API key> = 11261,
<API key> = 11262,
<API key> = 11263,
<API key> = 11264,
<API key> = 11267,
<API key> = 11268,
<API key> = 11269,
<API key> = 11300,
<API key> = 11301,
<API key> = 11302,
<API key> = 11303,
<API key> = 11304,
<API key> = 11305,
<API key> = 11306,
<API key> = 11307,
<API key> = 11308,
<API key> = 11309,
<API key> = 11310,
<API key> = 11311,
<API key> = 11312,
<API key> = 11313,
<API key> = 11314,
<API key> = 11315,
<API key> = 11316,
<API key> = 11317,
<API key> = 11340,
<API key> = 11341,
<API key> = 11342,
<API key> = 11343,
<API key> = 11344,
<API key> = 11345,
<API key> = 11346,
<API key> = 11347,
<API key> = 11348,
<API key> = 11349,
<API key> = 11350,
<API key> = 11351,
<API key> = 11352,
<API key> = 11353,
<API key> = 11354,
<API key> = 11355,
<API key> = 11356,
<API key> = 11357,
<API key> = 11358,
<API key> = 11359,
<API key> = 11360,
<API key> = 11361,
<API key> = 11362,
<API key> = 11363,
<API key> = 11364,
<API key> = 11365,
<API key> = 11366,
<API key> = 11367,
<API key> = 11368,
<API key> = 11369,
<API key> = 11370,
<API key> = 11371,
<API key> = 11372,
<API key> = 11373,
<API key> = 11374,
<API key> = 11375,
<API key> = 11376,
<API key> = 11377,
<API key> = 11378,
<API key> = 11379,
<API key> = 11380,
<API key> = 11381,
<API key> = 11382,
<API key> = 11383,
<API key> = 11384,
<API key> = 11385,
<API key> = 11386,
<API key> = 11387,
<API key> = 11388,
<API key> = 11389,
<API key> = 11390,
<API key> = 11391,
<API key> = 11392,
<API key> = 11393,
<API key> = 11394,
<API key> = 11395,
<API key> = 11396,
<API key> = 11398,
<API key> = 11399,
<API key> = 11400,
<API key> = 11401,
<API key> = 11402,
<API key> = 11403,
<API key> = 11404,
<API key> = 11405,
<API key> = 11406,
<API key> = 11407,
<API key> = 11408,
<API key> = 11409,
<API key> = 11410,
<API key> = 11411,
<API key> = 11412,
<API key> = 11413,
<API key> = 11414,
<API key> = 11424,
<API key> = 11425,
<API key> = 11429,
<API key> = 11430,
<API key> = 11431,
<API key> = 11432,
<API key> = 11433,
<API key> = 11434,
<API key> = 11435,
<API key> = 11436,
<API key> = 11437,
<API key> = 11438,
<API key> = 11439,
<API key> = 11440,
<API key> = 11441,
<API key> = 11442,
<API key> = 11443,
<API key> = 11444,
<API key> = 11445,
<API key> = 11446,
<API key> = 11447,
<API key> = 11448,
<API key> = 11449,
<API key> = 11450,
<API key> = 11451,
<API key> = 11452,
<API key> = 11453,
<API key> = 11454,
<API key> = 11455,
<API key> = 11456,
<API key> = 11457,
<API key> = 11458,
<API key> = 11459,
<API key> = 11460,
<API key> = 11461,
<API key> = 11462,
<API key> = 11463,
<API key> = 11464,
<API key> = 11467,
<API key> = 11468,
<API key> = 11469,
<API key> = 11500,
<API key> = 11501,
<API key> = 11502,
<API key> = 11503,
<API key> = 11504,
<API key> = 11505,
<API key> = 11506,
<API key> = 11507,
<API key> = 11508,
<API key> = 11509,
<API key> = 11510,
<API key> = 11511,
<API key> = 11512,
<API key> = 11513,
<API key> = 11514,
<API key> = 11515,
<API key> = 11516,
<API key> = 11517,
<API key> = 11540,
<API key> = 11541,
<API key> = 11542,
<API key> = 11543,
<API key> = 11544,
<API key> = 11545,
<API key> = 11546,
<API key> = 11547,
<API key> = 11548,
<API key> = 11549,
<API key> = 11550,
<API key> = 11551,
<API key> = 11552,
<API key> = 11553,
<API key> = 11554,
<API key> = 11555,
<API key> = 11556,
<API key> = 11557,
<API key> = 11558,
<API key> = 11559,
<API key> = 11560,
<API key> = 11561,
<API key> = 11562,
<API key> = 11563,
<API key> = 11564,
<API key> = 11565,
<API key> = 11566,
<API key> = 11567,
<API key> = 11568,
<API key> = 11569,
<API key> = 11570,
<API key> = 11571,
<API key> = 11572,
<API key> = 11573,
<API key> = 11574,
<API key> = 11575,
<API key> = 11576,
<API key> = 11577,
<API key> = 11578,
<API key> = 11579,
<API key> = 11580,
<API key> = 11581,
<API key> = 11582,
<API key> = 11583,
<API key> = 11584,
<API key> = 11585,
<API key> = 11586,
<API key> = 11587,
<API key> = 11588,
<API key> = 11589,
<API key> = 11590,
<API key> = 11591,
<API key> = 11592,
<API key> = 11593,
<API key> = 11594,
<API key> = 11595,
<API key> = 11596,
<API key> = 11598,
<API key> = 11599,
<API key> = 11600,
<API key> = 11601,
<API key> = 11602,
<API key> = 11603,
<API key> = 11604,
<API key> = 11605,
<API key> = 11606,
<API key> = 11607,
<API key> = 11608,
<API key> = 11609,
<API key> = 11610,
<API key> = 11611,
<API key> = 11612,
<API key> = 11613,
<API key> = 11614,
<API key> = 11624,
<API key> = 11625,
<API key> = 11629,
<API key> = 11630,
<API key> = 11631,
<API key> = 11632,
<API key> = 11633,
<API key> = 11634,
<API key> = 11635,
<API key> = 11636,
<API key> = 11637,
<API key> = 11638,
<API key> = 11639,
<API key> = 11640,
<API key> = 11641,
<API key> = 11642,
<API key> = 11643,
<API key> = 11644,
<API key> = 11645,
<API key> = 11646,
<API key> = 11647,
<API key> = 11648,
<API key> = 11649,
<API key> = 11650,
<API key> = 11651,
<API key> = 11652,
<API key> = 11653,
<API key> = 11654,
<API key> = 11655,
<API key> = 11656,
<API key> = 11657,
<API key> = 11658,
<API key> = 11659,
<API key> = 11660,
<API key> = 11661,
<API key> = 11662,
<API key> = 11663,
<API key> = 11664,
<API key> = 11667,
<API key> = 11668,
<API key> = 11669,
<API key> = 11700,
<API key> = 11701,
<API key> = 11702,
<API key> = 11703,
<API key> = 11704,
<API key> = 11705,
<API key> = 11706,
<API key> = 11707,
<API key> = 11708,
<API key> = 11709,
<API key> = 11710,
<API key> = 11711,
<API key> = 11712,
<API key> = 11713,
<API key> = 11714,
<API key> = 11715,
<API key> = 11716,
<API key> = 11717,
<API key> = 11740,
<API key> = 11741,
<API key> = 11742,
<API key> = 11743,
<API key> = 11744,
<API key> = 11745,
<API key> = 11746,
<API key> = 11747,
<API key> = 11748,
<API key> = 11749,
<API key> = 11750,
<API key> = 11751,
<API key> = 11752,
<API key> = 11753,
<API key> = 11754,
<API key> = 11755,
<API key> = 11756,
<API key> = 11757,
<API key> = 11758,
<API key> = 11759,
<API key> = 11760,
<API key> = 11761,
<API key> = 11762,
<API key> = 11763,
<API key> = 11764,
<API key> = 11765,
<API key> = 11766,
<API key> = 11767,
<API key> = 11768,
<API key> = 11769,
<API key> = 11770,
<API key> = 11771,
<API key> = 11772,
<API key> = 11773,
<API key> = 11774,
<API key> = 11775,
<API key> = 11776,
<API key> = 11777,
<API key> = 11778,
<API key> = 11779,
<API key> = 11780,
<API key> = 11781,
<API key> = 11782,
<API key> = 11783,
<API key> = 11784,
<API key> = 11785,
<API key> = 11786,
<API key> = 11787,
<API key> = 11788,
<API key> = 11789,
<API key> = 11790,
<API key> = 11791,
<API key> = 11792,
<API key> = 11793,
<API key> = 11794,
<API key> = 11795,
<API key> = 11796,
<API key> = 11798,
<API key> = 11799,
<API key> = 11800,
<API key> = 11801,
<API key> = 11802,
<API key> = 11803,
<API key> = 11804,
<API key> = 11805,
<API key> = 11806,
<API key> = 11807,
<API key> = 11808,
<API key> = 11809,
<API key> = 11810,
<API key> = 11811,
<API key> = 11812,
<API key> = 11813,
<API key> = 11814,
<API key> = 11824,
<API key> = 11825,
<API key> = 11829,
<API key> = 11830,
<API key> = 11831,
<API key> = 11832,
<API key> = 11833,
<API key> = 11834,
<API key> = 11835,
<API key> = 11836,
<API key> = 11837,
<API key> = 11838,
<API key> = 11839,
<API key> = 11840,
<API key> = 11841,
<API key> = 11842,
<API key> = 11843,
<API key> = 11844,
<API key> = 11845,
<API key> = 11846,
<API key> = 11847,
<API key> = 11848,
<API key> = 11849,
<API key> = 11850,
<API key> = 11851,
<API key> = 11852,
<API key> = 11853,
<API key> = 11854,
<API key> = 11855,
<API key> = 11856,
<API key> = 11857,
<API key> = 11858,
<API key> = 11859,
<API key> = 11860,
<API key> = 11861,
<API key> = 11862,
<API key> = 11863,
<API key> = 11864,
<API key> = 11867,
<API key> = 11868,
<API key> = 11869,
<API key> = 11900,
<API key> = 11901,
<API key> = 11902,
<API key> = 11903,
<API key> = 11904,
<API key> = 11905,
<API key> = 11906,
<API key> = 11907,
<API key> = 11908,
<API key> = 11909,
<API key> = 11910,
<API key> = 11911,
<API key> = 11912,
<API key> = 11913,
<API key> = 11914,
<API key> = 11915,
<API key> = 11916,
<API key> = 11917,
<API key> = 11940,
<API key> = 11941,
<API key> = 11942,
<API key> = 11943,
<API key> = 11944,
<API key> = 11945,
<API key> = 11946,
<API key> = 11947,
<API key> = 11948,
<API key> = 11949,
<API key> = 11950,
<API key> = 11951,
<API key> = 11952,
<API key> = 11953,
<API key> = 11954,
<API key> = 11955,
<API key> = 11956,
<API key> = 11957,
<API key> = 11958,
<API key> = 11959,
<API key> = 11960,
<API key> = 11961,
<API key> = 11962,
<API key> = 11963,
<API key> = 11964,
<API key> = 11965,
<API key> = 11966,
<API key> = 11967,
<API key> = 11968,
<API key> = 11969,
<API key> = 11970,
<API key> = 11971,
<API key> = 11972,
<API key> = 11973,
<API key> = 11974,
<API key> = 11975,
<API key> = 11976,
<API key> = 11977,
<API key> = 11978,
<API key> = 11979,
<API key> = 11980,
<API key> = 11981,
<API key> = 11982,
<API key> = 11983,
<API key> = 11984,
<API key> = 11985,
<API key> = 11986,
<API key> = 11987,
<API key> = 11988,
<API key> = 11989,
<API key> = 11990,
<API key> = 11991,
<API key> = 11992,
<API key> = 11993,
<API key> = 11994,
<API key> = 11995,
<API key> = 11996,
<API key> = 11998,
<API key> = 11999,
<API key> = 12000,
<API key> = 12001,
<API key> = 12002,
<API key> = 12003,
<API key> = 12004,
<API key> = 12005,
<API key> = 12006,
<API key> = 12007,
<API key> = 12008,
<API key> = 12009,
<API key> = 12010,
<API key> = 12011,
<API key> = 12012,
<API key> = 12013,
<API key> = 12014,
<API key> = 12024,
<API key> = 12025,
<API key> = 12029,
<API key> = 12030,
<API key> = 12031,
<API key> = 12032,
<API key> = 12033,
<API key> = 12034,
<API key> = 12035,
<API key> = 12036,
<API key> = 12037,
<API key> = 12038,
<API key> = 12039,
<API key> = 12040,
<API key> = 12041,
<API key> = 12042,
<API key> = 12043,
<API key> = 12044,
<API key> = 12045,
<API key> = 12046,
<API key> = 12047,
<API key> = 12048,
<API key> = 12049,
<API key> = 12050,
<API key> = 12051,
<API key> = 12052,
<API key> = 12053,
<API key> = 12054,
<API key> = 12055,
<API key> = 12056,
<API key> = 12057,
<API key> = 12058,
<API key> = 12059,
<API key> = 12060,
<API key> = 12061,
<API key> = 12062,
<API key> = 12063,
<API key> = 12064,
<API key> = 12067,
<API key> = 12068,
<API key> = 12069,
<API key> = 12100,
<API key> = 12101,
<API key> = 12102,
<API key> = 12103,
<API key> = 12104,
<API key> = 12105,
<API key> = 12106,
<API key> = 12107,
<API key> = 12108,
<API key> = 12109,
<API key> = 12110,
<API key> = 12111,
<API key> = 12112,
<API key> = 12113,
<API key> = 12114,
<API key> = 12115,
<API key> = 12116,
<API key> = 12117,
<API key> = 12140,
<API key> = 12141,
<API key> = 12142,
<API key> = 12143,
<API key> = 12144,
<API key> = 12145,
<API key> = 12146,
<API key> = 12147,
<API key> = 12148,
<API key> = 12149,
<API key> = 12150,
<API key> = 12151,
<API key> = 12152,
<API key> = 12153,
<API key> = 12154,
<API key> = 12155,
<API key> = 12156,
<API key> = 12157,
<API key> = 12158,
<API key> = 12159,
<API key> = 12160,
<API key> = 12161,
<API key> = 12162,
<API key> = 12163,
<API key> = 12164,
<API key> = 12165,
<API key> = 12166,
<API key> = 12167,
<API key> = 12168,
<API key> = 12169,
<API key> = 12170,
<API key> = 12171,
<API key> = 12172,
<API key> = 12173,
<API key> = 12174,
<API key> = 12175,
<API key> = 12176,
<API key> = 12177,
<API key> = 12178,
<API key> = 12179,
<API key> = 12180,
<API key> = 12181,
<API key> = 12182,
<API key> = 12183,
<API key> = 12184,
<API key> = 12185,
<API key> = 12186,
<API key> = 12187,
<API key> = 12188,
<API key> = 12189,
<API key> = 12190,
<API key> = 12191,
<API key> = 12192,
<API key> = 12193,
<API key> = 12194,
<API key> = 12195,
<API key> = 12196,
<API key> = 12198,
<API key> = 12199,
<API key> = 12200,
<API key> = 12201,
<API key> = 12202,
<API key> = 12203,
<API key> = 12204,
<API key> = 12205,
<API key> = 12206,
<API key> = 12207,
<API key> = 12208,
<API key> = 12209,
<API key> = 12210,
<API key> = 12211,
<API key> = 12212,
<API key> = 12213,
<API key> = 12214,
<API key> = 12224,
<API key> = 12225,
<API key> = 12229,
<API key> = 12230,
<API key> = 12231,
<API key> = 12232,
<API key> = 12233,
<API key> = 12234,
<API key> = 12235,
<API key> = 12236,
<API key> = 12237,
<API key> = 12238,
<API key> = 12239,
<API key> = 12240,
<API key> = 12241,
<API key> = 12242,
<API key> = 12243,
<API key> = 12244,
<API key> = 12245,
<API key> = 12246,
<API key> = 12247,
<API key> = 12248,
<API key> = 12249,
<API key> = 12250,
<API key> = 12251,
<API key> = 12252,
<API key> = 12253,
<API key> = 12254,
<API key> = 12255,
<API key> = 12256,
<API key> = 12257,
<API key> = 12258,
<API key> = 12259,
<API key> = 12260,
<API key> = 12261,
<API key> = 12262,
<API key> = 12263,
<API key> = 12264,
<API key> = 12267,
<API key> = 12268,
<API key> = 12269,
<API key> = 12500,
<API key> = 12501,
<API key> = 12502,
<API key> = 12503,
<API key> = 12504,
<API key> = 12505,
<API key> = 12506,
<API key> = 12507,
<API key> = 12508,
<API key> = 12509,
<API key> = 12510,
<API key> = 12511,
<API key> = 12512,
<API key> = 12513,
<API key> = 12514,
<API key> = 12515,
<API key> = 12516,
<API key> = 12517,
<API key> = 12540,
<API key> = 12541,
<API key> = 12542,
<API key> = 12543,
<API key> = 12544,
<API key> = 12545,
<API key> = 12546,
<API key> = 12547,
<API key> = 12548,
<API key> = 12549,
<API key> = 12550,
<API key> = 12551,
<API key> = 12552,
<API key> = 12553,
<API key> = 12554,
<API key> = 12555,
<API key> = 12556,
<API key> = 12557,
<API key> = 12558,
<API key> = 12559,
<API key> = 12560,
<API key> = 12561,
<API key> = 12562,
<API key> = 12563,
<API key> = 12564,
<API key> = 12565,
<API key> = 12566,
<API key> = 12567,
<API key> = 12568,
<API key> = 12569,
<API key> = 12570,
<API key> = 12571,
<API key> = 12572,
<API key> = 12573,
<API key> = 12574,
<API key> = 12575,
<API key> = 12576,
<API key> = 12577,
<API key> = 12578,
<API key> = 12579,
<API key> = 12580,
<API key> = 12581,
<API key> = 12582,
<API key> = 12583,
<API key> = 12584,
<API key> = 12585,
<API key> = 12586,
<API key> = 12587,
<API key> = 12588,
<API key> = 12589,
<API key> = 12590,
<API key> = 12591,
<API key> = 12592,
<API key> = 12593,
<API key> = 12594,
<API key> = 12595,
<API key> = 12596,
<API key> = 12598,
<API key> = 12599,
<API key> = 12600,
<API key> = 12601,
<API key> = 12602,
<API key> = 12603,
<API key> = 12604,
<API key> = 12605,
<API key> = 12606,
<API key> = 12607,
<API key> = 12608,
<API key> = 12609,
<API key> = 12610,
<API key> = 12611,
<API key> = 12612,
<API key> = 12613,
<API key> = 12614,
<API key> = 12624,
<API key> = 12625,
<API key> = 12629,
<API key> = 12630,
<API key> = 12631,
<API key> = 12632,
<API key> = 12633,
<API key> = 12634,
<API key> = 12635,
<API key> = 12636,
<API key> = 12637,
<API key> = 12638,
<API key> = 12639,
<API key> = 12640,
<API key> = 12641,
<API key> = 12642,
<API key> = 12643,
<API key> = 12644,
<API key> = 12645,
<API key> = 12646,
<API key> = 12647,
<API key> = 12648,
<API key> = 12649,
<API key> = 12650,
<API key> = 12651,
<API key> = 12652,
<API key> = 12653,
<API key> = 12654,
<API key> = 12655,
<API key> = 12656,
<API key> = 12657,
<API key> = 12658,
<API key> = 12659,
<API key> = 12660,
<API key> = 12661,
<API key> = 12662,
<API key> = 12663,
<API key> = 12664,
<API key> = 12667,
<API key> = 12668,
<API key> = 12669,
<API key> = 12700,
<API key> = 12701,
<API key> = 12702,
<API key> = 12703,
<API key> = 12704,
<API key> = 12705,
<API key> = 12706,
<API key> = 12707,
<API key> = 12708,
<API key> = 12709,
<API key> = 12710,
<API key> = 12711,
<API key> = 12712,
<API key> = 12713,
<API key> = 12714,
<API key> = 12715,
<API key> = 12716,
<API key> = 12717,
<API key> = 12740,
<API key> = 12741,
<API key> = 12742,
<API key> = 12743,
<API key> = 12744,
<API key> = 12745,
<API key> = 12746,
<API key> = 12747,
<API key> = 12748,
<API key> = 12749,
<API key> = 12750,
<API key> = 12751,
<API key> = 12752,
<API key> = 12753,
<API key> = 12754,
<API key> = 12755,
<API key> = 12756,
<API key> = 12757,
<API key> = 12758,
<API key> = 12759,
<API key> = 12760,
<API key> = 12761,
<API key> = 12762,
<API key> = 12763,
<API key> = 12764,
<API key> = 12765,
<API key> = 12766,
<API key> = 12767,
<API key> = 12768,
<API key> = 12769,
<API key> = 12770,
<API key> = 12771,
<API key> = 12772,
<API key> = 12773,
<API key> = 12774,
<API key> = 12775,
<API key> = 12776,
<API key> = 12777,
<API key> = 12778,
<API key> = 12779,
<API key> = 12780,
<API key> = 12781,
<API key> = 12782,
<API key> = 12783,
<API key> = 12784,
<API key> = 12785,
<API key> = 12786,
<API key> = 12787,
<API key> = 12788,
<API key> = 12789,
<API key> = 12790,
<API key> = 12791,
<API key> = 12792,
<API key> = 12793,
<API key> = 12794,
<API key> = 12795,
<API key> = 12796,
<API key> = 12798,
<API key> = 12799,
<API key> = 12800,
<API key> = 12801,
<API key> = 12802,
<API key> = 12803,
<API key> = 12804,
<API key> = 12805,
<API key> = 12806,
<API key> = 12807,
<API key> = 12808,
<API key> = 12809,
<API key> = 12810,
<API key> = 12811,
<API key> = 12812,
<API key> = 12813,
<API key> = 12814,
<API key> = 12824,
<API key> = 12825,
<API key> = 12829,
<API key> = 12830,
<API key> = 12831,
<API key> = 12832,
<API key> = 12833,
<API key> = 12834,
<API key> = 12835,
<API key> = 12836,
<API key> = 12837,
<API key> = 12838,
<API key> = 12839,
<API key> = 12840,
<API key> = 12841,
<API key> = 12842,
<API key> = 12843,
<API key> = 12844,
<API key> = 12845,
<API key> = 12846,
<API key> = 12847,
<API key> = 12848,
<API key> = 12849,
<API key> = 12850,
<API key> = 12851,
<API key> = 12852,
<API key> = 12853,
<API key> = 12854,
<API key> = 12855,
<API key> = 12856,
<API key> = 12857,
<API key> = 12858,
<API key> = 12859,
<API key> = 12860,
<API key> = 12861,
<API key> = 12862,
<API key> = 12863,
<API key> = 12864,
<API key> = 12867,
<API key> = 12868,
<API key> = 12869,
<API key> = 13100,
<API key> = 13101,
<API key> = 13102,
<API key> = 13103,
<API key> = 13104,
<API key> = 13105,
<API key> = 13106,
<API key> = 13107,
<API key> = 13108,
<API key> = 13109,
<API key> = 13110,
<API key> = 13111,
<API key> = 13112,
<API key> = 13113,
<API key> = 13114,
<API key> = 13115,
<API key> = 13116,
<API key> = 13117,
<API key> = 13140,
<API key> = 13141,
<API key> = 13142,
<API key> = 13143,
<API key> = 13144,
<API key> = 13145,
<API key> = 13146,
<API key> = 13147,
<API key> = 13148,
<API key> = 13149,
<API key> = 13150,
<API key> = 13151,
<API key> = 13152,
<API key> = 13153,
<API key> = 13154,
<API key> = 13155,
<API key> = 13156,
<API key> = 13157,
<API key> = 13158,
<API key> = 13159,
<API key> = 13160,
<API key> = 13161,
<API key> = 13162,
<API key> = 13163,
<API key> = 13164,
<API key> = 13165,
<API key> = 13166,
<API key> = 13167,
<API key> = 13168,
<API key> = 13169,
<API key> = 13170,
<API key> = 13171,
<API key> = 13172,
<API key> = 13173,
<API key> = 13174,
<API key> = 13175,
<API key> = 13176,
<API key> = 13177,
<API key> = 13178,
<API key> = 13179,
<API key> = 13180,
<API key> = 13181,
<API key> = 13182,
<API key> = 13183,
<API key> = 13184,
<API key> = 13185,
<API key> = 13186,
<API key> = 13187,
<API key> = 13188,
<API key> = 13189,
<API key> = 13190,
<API key> = 13191,
<API key> = 13192,
<API key> = 13193,
<API key> = 13194,
<API key> = 13195,
<API key> = 13196,
<API key> = 13198,
<API key> = 13199,
<API key> = 13200,
<API key> = 13201,
<API key> = 13202,
<API key> = 13203,
<API key> = 13204,
<API key> = 13205,
<API key> = 13206,
<API key> = 13207,
<API key> = 13208,
<API key> = 13209,
<API key> = 13210,
<API key> = 13211,
<API key> = 13212,
<API key> = 13213,
<API key> = 13214,
<API key> = 13224,
<API key> = 13225,
<API key> = 13229,
<API key> = 13230,
<API key> = 13231,
<API key> = 13232,
<API key> = 13233,
<API key> = 13234,
<API key> = 13235,
<API key> = 13236,
<API key> = 13237,
<API key> = 13238,
<API key> = 13239,
<API key> = 13240,
<API key> = 13241,
<API key> = 13242,
<API key> = 13243,
<API key> = 13244,
<API key> = 13245,
<API key> = 13246,
<API key> = 13247,
<API key> = 13248,
<API key> = 13249,
<API key> = 13250,
<API key> = 13251,
<API key> = 13252,
<API key> = 13253,
<API key> = 13254,
<API key> = 13255,
<API key> = 13256,
<API key> = 13257,
<API key> = 13258,
<API key> = 13259,
<API key> = 13260,
<API key> = 13261,
<API key> = 13262,
<API key> = 13263,
<API key> = 13264,
<API key> = 13267,
<API key> = 13268,
<API key> = 13269,
<API key> = 13900,
<API key> = 13901,
<API key> = 13902,
<API key> = 13903,
<API key> = 13904,
<API key> = 13905,
<API key> = 13906,
<API key> = 13907,
<API key> = 13908,
<API key> = 13909,
<API key> = 13910,
<API key> = 13911,
<API key> = 13912,
<API key> = 13913,
<API key> = 13914,
<API key> = 13915,
<API key> = 13916,
<API key> = 13917,
<API key> = 13940,
<API key> = 13941,
<API key> = 13942,
<API key> = 13943,
<API key> = 13944,
<API key> = 13945,
<API key> = 13946,
<API key> = 13947,
<API key> = 13948,
<API key> = 13949,
<API key> = 13950,
<API key> = 13951,
<API key> = 13952,
<API key> = 13953,
<API key> = 13954,
<API key> = 13955,
<API key> = 13956,
<API key> = 13957,
<API key> = 13958,
<API key> = 13959,
<API key> = 13960,
<API key> = 13961,
<API key> = 13962,
<API key> = 13963,
<API key> = 13964,
<API key> = 13965,
<API key> = 13966,
<API key> = 13967,
<API key> = 13968,
<API key> = 13969,
<API key> = 13970,
<API key> = 13971,
<API key> = 13972,
<API key> = 13973,
<API key> = 13974,
<API key> = 13975,
<API key> = 13976,
<API key> = 13977,
<API key> = 13978,
<API key> = 13979,
<API key> = 13980,
<API key> = 13981,
<API key> = 13982,
<API key> = 13983,
<API key> = 13984,
<API key> = 13985,
<API key> = 13986,
<API key> = 13987,
<API key> = 13988,
<API key> = 13989,
<API key> = 13990,
<API key> = 13991,
<API key> = 13992,
<API key> = 13993,
<API key> = 13994,
<API key> = 13995,
<API key> = 13996,
<API key> = 13998,
<API key> = 13999,
<API key> = 14000,
<API key> = 14001,
<API key> = 14002,
<API key> = 14003,
<API key> = 14004,
<API key> = 14005,
<API key> = 14006,
<API key> = 14007,
<API key> = 14008,
<API key> = 14009,
<API key> = 14010,
<API key> = 14011,
<API key> = 14012,
<API key> = 14013,
<API key> = 14014,
<API key> = 14024,
<API key> = 14025,
<API key> = 14029,
<API key> = 14030,
<API key> = 14031,
<API key> = 14032,
<API key> = 14033,
<API key> = 14034,
<API key> = 14035,
<API key> = 14036,
<API key> = 14037,
<API key> = 14038,
<API key> = 14039,
<API key> = 14040,
<API key> = 14041,
<API key> = 14042,
<API key> = 14043,
<API key> = 14044,
<API key> = 14045,
<API key> = 14046,
<API key> = 14047,
<API key> = 14048,
<API key> = 14049,
<API key> = 14050,
<API key> = 14051,
<API key> = 14052,
<API key> = 14053,
<API key> = 14054,
<API key> = 14055,
<API key> = 14056,
<API key> = 14057,
<API key> = 14058,
<API key> = 14059,
<API key> = 14060,
<API key> = 14061,
<API key> = 14062,
<API key> = 14063,
<API key> = 14064,
<API key> = 14067,
<API key> = 14068,
<API key> = 14069,
<API key> = 15011,
en_NV_Item_RF_BUTT
};
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif /* __RFNVID_H__ */
|
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
class <API key> {
function <API key>($final_url = null, $status = null,
$headers = null, $body = null)
{
$this->final_url = $final_url;
$this->status = $status;
$this->headers = $headers;
$this->body = $body;
}
}
/**
* This class is the interface for HTTP fetchers the Yadis library
* uses. This interface is only important if you need to write a new
* fetcher for some reason.
*
* @access private
* @package Yadis
*/
class <API key> {
var $timeout = 20; // timeout in seconds.
/**
* Return whether a URL should be allowed. Override this method to
* conform to your local policy.
*
* By default, will attempt to fetch any http or https URL.
*/
function allowedURL($url)
{
return $this->URLHasAllowedScheme($url);
}
/**
* Is this an http or https URL?
*
* @access private
*/
function URLHasAllowedScheme($url)
{
return (bool)preg_match('/^https?:\/\//i', $url);
}
/**
* @access private
*/
function _findRedirect($headers)
{
foreach ($headers as $line) {
if (strpos($line, "Location: ") === 0) {
$parts = explode(" ", $line, 2);
return $parts[1];
}
}
return null;
}
/**
* Fetches the specified URL using optional extra headers and
* returns the server's response.
*
* @param string $url The URL to be fetched.
* @param array $extra_headers An array of header strings
* (e.g. "Accept: text/html").
* @return mixed $result An array of ($code, $url, $headers,
* $body) if the URL could be fetched; null if the URL does not
* pass the URLHasAllowedScheme check or if the server's response
* is malformed.
*/
function get($url, $headers)
{
trigger_error("not implemented", E_USER_ERROR);
}
}
?>
|
// <summary>
// Defines the <API key> type.
// </summary>
namespace HandBrakeWPF.Converters
{
using System.Globalization;
using System.IO;
using System.Windows.Data;
using System;
<summary>
Converts a Full Path to Filename only.
</summary>
public sealed class <API key> : IValueConverter
{
<summary>
Convert an Enum to it's display value (attribute)
</summary>
<param name="value">
The value.
</param>
<param name="targetType">
The target type.
</param>
<param name="parameter">
The parameter. (A boolean which inverts the output)
</param>
<param name="culture">
The culture.
</param>
<returns>
Visibility property
</returns>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string path = value as string;
if (!string.IsNullOrEmpty(path) && ! path.EndsWith("\\"))
{
return Path.GetFileName(path);
}
return "Unknown";
}
<summary>
Convert Back for the IValueConverter Interface. Not used!
</summary>
<param name="value">
The value.
</param>
<param name="targetType">
The target type.
</param>
<param name="parameter">
The parameter.
</param>
<param name="culture">
The culture.
</param>
<returns>
Nothing
</returns>
<exception cref="<API key>">
This method is not used!
</exception>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new <API key>();
}
}
}
|
#include "input.h"
#include "sharedstate.h"
#include "eventthread.h"
#include "exception.h"
#include "util.h"
#include <SDL_scancode.h>
#include <SDL_mouse.h>
#include <vector>
#include <string.h>
const int Input::buttonCodeSize = 24;
struct ButtonState
{
bool pressed;
bool triggered;
bool repeated;
ButtonState()
: pressed(false),
triggered(false),
repeated(false)
{}
};
struct KbBindingData
{
SDL_Scancode source;
Input::ButtonCode target;
};
struct JsBindingData
{
int source;
Input::ButtonCode target;
};
struct Binding
{
Binding(Input::ButtonCode target = Input::None)
: target(target)
{}
virtual bool sourceActive() const = 0;
virtual bool sourceRepeatable() const = 0;
Input::ButtonCode target;
};
/* Keyboard binding */
struct KbBinding : public Binding
{
KbBinding() {}
KbBinding(const KbBindingData &data)
: Binding(data.target),
source(data.source)
{}
bool sourceActive() const
{
return EventThread::keyStates[source];
}
bool sourceRepeatable() const
{
return (source >= SDL_SCANCODE_A && source <= SDL_SCANCODE_0) ||
(source >= SDL_SCANCODE_RIGHT && source <= SDL_SCANCODE_UP) ||
(source >= SDL_SCANCODE_F1 && source <= SDL_SCANCODE_F12);
}
SDL_Scancode source;
};
/* Joystick button binding */
struct JsButtonBinding : public Binding
{
JsButtonBinding() {}
JsButtonBinding(const JsBindingData &data)
: Binding(data.target),
source(data.source)
{}
bool sourceActive() const
{
return EventThread::joyState.buttons[source];
}
bool sourceRepeatable() const
{
return true;
}
int source;
};
/* Joystick axis binding */
struct JsAxisBinding : public Binding
{
JsAxisBinding() {}
JsAxisBinding(int *source,
int compareValue,
Input::ButtonCode target)
: Binding(target),
source(source),
compareValue(compareValue)
{}
bool sourceActive() const
{
return (*source == compareValue);
}
bool sourceRepeatable() const
{
return true;
}
int *source;
int compareValue;
};
/* Mouse button binding */
struct MsBinding : public Binding
{
MsBinding() {}
MsBinding(int buttonIndex,
Input::ButtonCode target)
: Binding(target),
index(buttonIndex)
{}
bool sourceActive() const
{
return EventThread::mouseState.buttons[index];
}
bool sourceRepeatable() const
{
return false;
}
int index;
};
/* Not rebindable */
static const KbBindingData staticKbBindings[] =
{
{ SDL_SCANCODE_LEFT, Input::Left },
{ SDL_SCANCODE_RIGHT, Input::Right },
{ SDL_SCANCODE_UP, Input::Up },
{ SDL_SCANCODE_DOWN, Input::Down },
{ SDL_SCANCODE_LSHIFT, Input::Shift },
{ SDL_SCANCODE_RSHIFT, Input::Shift },
{ SDL_SCANCODE_LCTRL, Input::Ctrl },
{ SDL_SCANCODE_RCTRL, Input::Ctrl },
{ SDL_SCANCODE_LALT, Input::Alt },
{ SDL_SCANCODE_RALT, Input::Alt },
{ SDL_SCANCODE_F5, Input::F5 },
{ SDL_SCANCODE_F6, Input::F6 },
{ SDL_SCANCODE_F7, Input::F7 },
{ SDL_SCANCODE_F8, Input::F8 },
{ SDL_SCANCODE_F9, Input::F9 }
};
static elementsN(staticKbBindings);
/* Rebindable */
static const KbBindingData defaultKbBindings[] =
{
{ SDL_SCANCODE_SPACE, Input::C },
{ SDL_SCANCODE_RETURN, Input::C },
{ SDL_SCANCODE_ESCAPE, Input::B },
{ SDL_SCANCODE_KP_0, Input::B },
{ SDL_SCANCODE_LSHIFT, Input::A },
{ SDL_SCANCODE_RSHIFT, Input::A },
{ SDL_SCANCODE_Z, Input::A },
{ SDL_SCANCODE_X, Input::B },
{ SDL_SCANCODE_C, Input::C },
{ SDL_SCANCODE_V, Input::None },
{ SDL_SCANCODE_B, Input::None },
{ SDL_SCANCODE_A, Input::X },
{ SDL_SCANCODE_S, Input::Y },
{ SDL_SCANCODE_D, Input::Z },
{ SDL_SCANCODE_Q, Input::L },
{ SDL_SCANCODE_W, Input::R }
};
static elementsN(defaultKbBindings);
/* Rebindable */
static const JsBindingData defaultJsBindings[] =
{
{ 0, Input::A },
{ 1, Input::B },
{ 2, Input::C },
{ 3, Input::X },
{ 4, Input::Y },
{ 5, Input::Z },
{ 6, Input::L },
{ 7, Input::R },
{ 8, Input::None },
{ 9, Input::None }
};
static elementsN(defaultJsBindings);
/* Maps ButtonCode enum values to indices
* in the button state array */
static const int mapToIndex[] =
{
0, 0,
1, 0, 2, 0, 3, 0, 4, 0,
0,
5, 6, 7, 8, 9, 10, 11, 12,
0, 0,
13, 14, 15,
0,
16, 17, 18, 19, 20,
0, 0, 0, 0, 0, 0, 0, 0,
21, 22, 23
};
static elementsN(mapToIndex);
static const Input::ButtonCode dirs[] =
{ Input::Down, Input::Left, Input::Right, Input::Up };
static const int dirFlags[] =
{
1 << Input::Down,
1 << Input::Left,
1 << Input::Right,
1 << Input::Up
};
/* Dir4 is always zero on these combinations */
static const int deadDirFlags[] =
{
dirFlags[0] | dirFlags[3],
dirFlags[1] | dirFlags[2]
};
static const Input::ButtonCode otherDirs[4][3] =
{
{ Input::Left, Input::Right, Input::Up }, /* Down */
{ Input::Down, Input::Up, Input::Right }, /* Left */
{ Input::Down, Input::Up, Input::Left }, /* Right */
{ Input::Left, Input::Right, Input::Up }
};
struct InputPrivate
{
std::vector<KbBinding> kbBindings;
std::vector<JsAxisBinding> jsABindings;
std::vector<JsButtonBinding> jsBBindings;
std::vector<MsBinding> msBindings;
/* Collective binding array */
std::vector<Binding*> bindings;
ButtonState stateArray[Input::buttonCodeSize*2];
ButtonState *states;
ButtonState *statesOld;
Input::ButtonCode repeating;
unsigned int repeatCount;
struct
{
int active;
Input::ButtonCode previous;
} dir4Data;
struct
{
int active;
} dir8Data;
InputPrivate()
{
initKbBindings();
initJsBindings();
initMsBindings();
states = stateArray;
statesOld = stateArray + Input::buttonCodeSize;
/* Clear buffers */
clearBuffer();
swapBuffers();
clearBuffer();
repeating = Input::None;
repeatCount = 0;
dir4Data.active = 0;
dir4Data.previous = Input::None;
dir8Data.active = 0;
}
inline ButtonState &getStateCheck(int code)
{
int index;
if (code < 0 || code > mapToIndexN-1)
index = 0;
else
index = mapToIndex[code];
return states[index];
}
inline ButtonState &getState(Input::ButtonCode code)
{
return states[mapToIndex[code]];
}
inline ButtonState &getOldState(Input::ButtonCode code)
{
return statesOld[mapToIndex[code]];
}
void swapBuffers()
{
ButtonState *tmp = states;
states = statesOld;
statesOld = tmp;
}
void clearBuffer()
{
const size_t size = sizeof(ButtonState) * Input::buttonCodeSize;
memset(states, 0, size);
}
void initKbBindings()
{
kbBindings.resize(staticKbBindingsN+defaultKbBindingsN);
size_t n = 0;
for (size_t i = 0; i < staticKbBindingsN; ++i)
kbBindings[n++] = KbBinding(staticKbBindings[i]);
for (size_t i = 0; i < defaultKbBindingsN; ++i)
kbBindings[n++] = KbBinding(defaultKbBindings[i]);
/* Add to binging array */
for (size_t i = 0; i < kbBindings.size(); ++i)
bindings.push_back(&kbBindings[i]);
}
void initJsBindings()
{
/* Create axis bindings */
jsABindings.resize(4);
size_t i = 0;
jsABindings[i++] = JsAxisBinding(&EventThread::joyState.xAxis, 0x7FFF, Input::Right);
jsABindings[i++] = JsAxisBinding(&EventThread::joyState.xAxis, -0x8000, Input::Left);
jsABindings[i++] = JsAxisBinding(&EventThread::joyState.yAxis, 0x7FFF, Input::Down);
jsABindings[i++] = JsAxisBinding(&EventThread::joyState.yAxis, -0x8000, Input::Up);
/* Create button bindings */
jsBBindings.resize(defaultJsBindingsN);
for (size_t i = 0; i < defaultJsBindingsN; ++i)
jsBBindings[i] = JsButtonBinding(defaultJsBindings[i]);
/* Add to binging array */
for (size_t i = 0; i < jsABindings.size(); ++i)
bindings.push_back(&jsABindings[i]);
for (size_t i = 0; i < jsBBindings.size(); ++i)
bindings.push_back(&jsBBindings[i]);
}
void initMsBindings()
{
msBindings.resize(3);
size_t i = 0;
msBindings[i++] = MsBinding(SDL_BUTTON_LEFT, Input::MouseLeft);
msBindings[i++] = MsBinding(SDL_BUTTON_MIDDLE, Input::MouseMiddle);
msBindings[i++] = MsBinding(SDL_BUTTON_RIGHT, Input::MouseRight);
/* Add to binding array */
for (size_t i = 0; i < msBindings.size(); ++i)
bindings.push_back(&msBindings[i]);
}
void pollBindings(Input::ButtonCode &repeatCand)
{
for (size_t i = 0; i < bindings.size(); ++i)
pollBindingPriv(*bindings[i], repeatCand);
updateDir4();
updateDir8();
}
void pollBindingPriv(const Binding &b,
Input::ButtonCode &repeatCand)
{
if (!b.sourceActive())
return;
if (b.target == Input::None)
return;
ButtonState &state = getState(b.target);
ButtonState &oldState = getOldState(b.target);
state.pressed = true;
/* Must have been released before to trigger */
if (!oldState.pressed)
state.triggered = true;
/* Unbound keys don't create/break repeat */
if (repeatCand != Input::None)
return;
if (repeating != b.target &&
!oldState.pressed)
{
if (b.sourceRepeatable())
repeatCand = b.target;
else
/* Unrepeatable keys still break current repeat */
repeating = Input::None;
}
}
void updateDir4()
{
int dirFlag = 0;
for (size_t i = 0; i < 4; ++i)
dirFlag |= (getState(dirs[i]).pressed ? dirFlags[i] : 0);
if (dirFlag == deadDirFlags[0] || dirFlag == deadDirFlags[1])
{
dir4Data.active = Input::None;
return;
}
if (dir4Data.previous != Input::None)
{
/* Check if prev still pressed */
if (getState(dir4Data.previous).pressed)
{
for (size_t i = 0; i < 3; ++i)
{
Input::ButtonCode other =
otherDirs[(dir4Data.previous/2)-1][i];
if (!getState(other).pressed)
continue;
dir4Data.active = other;
return;
}
}
}
for (size_t i = 0; i < 4; ++i)
{
if (!getState(dirs[i]).pressed)
continue;
dir4Data.active = dirs[i];
dir4Data.previous = dirs[i];
return;
}
dir4Data.active = Input::None;
dir4Data.previous = Input::None;
}
void updateDir8()
{
static const int combos[4][4] =
{
{ 2, 1, 3, 0 },
{ 1, 4, 0, 7 },
{ 3, 0, 6, 9 },
{ 0, 7, 9, 8 }
};
dir8Data.active = 0;
for (size_t i = 0; i < 4; ++i)
{
Input::ButtonCode one = dirs[i];
if (!getState(one).pressed)
continue;
for (int j = 0; j < 3; ++j)
{
Input::ButtonCode other = otherDirs[i][j];
if (!getState(other).pressed)
continue;
dir8Data.active = combos[(one/2)-1][(other/2)-1];
return;
}
dir8Data.active = one;
return;
}
}
};
Input::Input()
{
p = new InputPrivate;
}
void Input::update()
{
shState->checkShutdown();
p->swapBuffers();
p->clearBuffer();
ButtonCode repeatCand = None;
/* Poll all bindings */
p->pollBindings(repeatCand);
/* Check for new repeating key */
if (repeatCand != None && repeatCand != p->repeating)
{
p->repeating = repeatCand;
p->repeatCount = 0;
p->getState(repeatCand).repeated = true;
return;
}
/* Check if repeating key is still pressed */
if (p->getState(p->repeating).pressed)
{
p->repeatCount++;
/* Repeatsequence is [r...............(r...)+] */
if (p->repeatCount > 15 && ((p->repeatCount % 4) == 0))
p->getState(p->repeating).repeated = true;
return;
}
p->repeating = None;
}
bool Input::isPressed(int button)
{
return p->getStateCheck(button).pressed;
}
bool Input::isTriggered(int button)
{
return p->getStateCheck(button).triggered;
}
bool Input::isRepeated(int button)
{
return p->getStateCheck(button).repeated;
}
int Input::dir4Value()
{
return p->dir4Data.active;
}
int Input::dir8Value()
{
return p->dir8Data.active;
}
int Input::mouseX()
{
RGSSThreadData &rtData = shState->rtData();
if (!EventThread::mouseState.inWindow)
return -20;
return (EventThread::mouseState.x - rtData.screenOffset.x) * rtData.sizeResoRatio.x;
}
int Input::mouseY()
{
RGSSThreadData &rtData = shState->rtData();
if (!EventThread::mouseState.inWindow)
return -20;
return (EventThread::mouseState.y - rtData.screenOffset.y) * rtData.sizeResoRatio.y;
}
Input::~Input()
{
delete p;
}
|
<?php
namespace Drupal\linkit\Suggestion;
/**
* Defines a entity suggestion.
*/
class EntitySuggestion extends <API key> {
/**
* The entity uuid.
*
* @var string
*/
protected $entityUuid;
/**
* The entity type id.
*
* @var string
*/
protected $entityTypeId;
/**
* The substitution id.
*
* @var string
*/
protected $substitutionId;
/**
* Sets the entity uuid.
*
* @param string $entity_uuid
* The entity uuid.
*
* @return $this
*/
public function setEntityUuid($entity_uuid) {
$this->entityUuid = $entity_uuid;
return $this;
}
/**
* Sets the entity type id.
*
* @param string $entity_type_id
* The entity type id.
*
* @return $this
*/
public function setEntityTypeId($entity_type_id) {
$this->entityTypeId = $entity_type_id;
return $this;
}
/**
* Sets the substitution id.
*
* @param string $substitution_id
* The substitution id.
*
* @return $this
*/
public function setSubstitutionId($substitution_id) {
$this->substitutionId = $substitution_id;
return $this;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() {
return parent::jsonSerialize() + [
'entity_uuid' => $this->entityUuid,
'entity_type_id' => $this->entityTypeId,
'substitution_id' => $this->substitutionId,
];
}
}
|
#ifndef RATE_NEURON_OPN_H
#define RATE_NEURON_OPN_H
// Generated includes:
#include "config.h"
// C++ includes:
#include <string>
// Includes from nestkernel:
#include "archiving_node.h"
#include "connection.h"
#include "event.h"
#include "nest_types.h"
#include "node.h"
#include "normal_randomdev.h"
#include "poisson_randomdev.h"
#include "ring_buffer.h"
#include "recordables_map.h"
#include "<API key>.h"
namespace nest
{
/**
* Base class for rate model with output noise.
*
* This template class needs to be instantiated with a class
* containing the following functions:
* - input (nonlinearity that is applied to the input)
* - mult_coupling_ex (factor of multiplicative coupling for excitatory input)
* - mult_coupling_in (factor of multiplicative coupling for inhibitory input)
*
* The boolean parameter linear_summation determines whether the input function
* is applied to the summed up incoming connections (True, default value) or
* to each input individually (False). In case of multiplicative coupling the
* nonlinearity is applied separately to the summed excitatory and inhibitory
* inputs if linear_summation=True.
*
* References:
*
* Hahne, J., Dahmen, D., Schuecker, J., Frommer, A.,
* Bolten, M., Helias, M. and Diesmann, M. (2017).
* Integration of Continuous-Time Dynamics in a
* Spiking Neural Network Simulator.
* Front. Neuroinform. 11:34. doi: 10.3389/fninf.2017.00034
*
* @see lin_rate, tanh_rate, threshold_lin_rate
*/
template < class TNonlinearities >
class rate_neuron_opn : public Archiving_Node
{
public:
typedef Node base;
rate_neuron_opn();
rate_neuron_opn( const rate_neuron_opn& );
/**
* Import sets of overloaded virtual functions.
* @see Technical Issues / Virtual Functions: Overriding, Overloading, and
* Hiding
*/
using Node::handle;
using Node::<API key>;
void handle( <API key>& );
void handle( <API key>& );
void handle( DataLoggingRequest& );
port handles_test_event( <API key>&, rport );
port handles_test_event( <API key>&, rport );
port handles_test_event( DataLoggingRequest&, rport );
void
<API key>( <API key>& )
{
}
void
<API key>( <API key>& )
{
}
void get_status( DictionaryDatum& ) const;
void set_status( const DictionaryDatum& );
private:
void init_state_( const Node& proto );
void init_buffers_();
void calibrate();
TNonlinearities nonlinearities_;
/** This is the actual update function. The additional boolean parameter
* determines if the function is called by update (false) or wfr_update (true)
*/
bool update_( Time const&, const long, const long, const bool );
void update( Time const&, const long, const long );
bool wfr_update( Time const&, const long, const long );
// The next two classes need to be friends to access the State_ class/member
friend class RecordablesMap< rate_neuron_opn< TNonlinearities > >;
friend class UniversalDataLogger< rate_neuron_opn< TNonlinearities > >;
/**
* Independent parameters of the model.
*/
struct Parameters_
{
/** Time constant in ms. */
double tau_;
/** Gaussian white noise standard deviation. */
double std_;
/** Gaussian white noise mean.*/
double mean_;
/** Target of non-linearity.
True (default): Gain function applied to linearly summed input.
False: Gain function applied to each input before summation.
**/
bool linear_summation_;
/** use multiplicative coupling? Default is false */
bool mult_coupling_;
Parameters_(); //!< Sets default parameter values
void get( DictionaryDatum& ) const; //!< Store current values in dictionary
void set( const DictionaryDatum& );
};
/**
* State variables of the model.
*/
struct State_
{
double rate_; //!< Rate
double noise_; //!< Noise
double noisy_rate_; //!< Noisy rate, i.e. rate +noise
State_(); //!< Default initialization
void get( DictionaryDatum& ) const;
/** Set values from dictionary.
* @param dictionary to take data from
* @param current parameters
* @param Change in reversal potential E_L specified by this dict
*/
void set( const DictionaryDatum& );
};
/**
* Buffers of the model.
*/
struct Buffers_
{
Buffers_( rate_neuron_opn& );
Buffers_( const Buffers_&, rate_neuron_opn& );
RingBuffer delayed_rates_ex_; //!< buffer for rate vector received by
// <API key> from excitatory neurons
RingBuffer delayed_rates_in_; //!< buffer for rate vector received by
// <API key> from inhibitory neurons
std::vector< double >
instant_rates_ex_; //!< buffer for rate vector received
// by <API key> from excitatory neurons
std::vector< double >
instant_rates_in_; //!< buffer for rate vector received
// by <API key>
std::vector< double >
last_y_values; //!< remembers y_values from last wfr_update
std::vector< double > random_numbers; //!< remembers the random_numbers in
// order to apply the same random
// numbers in each iteration when wfr
// is used
UniversalDataLogger< rate_neuron_opn >
logger_; //!< Logger for all analog data
};
/**
* Internal variables of the model.
*/
struct Variables_
{
// propagators
double P1_;
double P2_;
// factor accounting for piecewise constant implementation of noise
double <API key>;
librandom::RngPtr rng_;
librandom::PoissonRandomDev poisson_dev_; //!< random deviate generator
librandom::NormalRandomDev normal_dev_; //!< random deviate generator
};
//! Read out the rate
double
get_rate_() const
{
return S_.rate_;
}
//! Read out the noise
double
get_noise_() const
{
return S_.noise_;
}
//! Read out the noisy rate
double
get_noisy_rate_() const
{
return S_.noisy_rate_;
}
Parameters_ P_;
State_ S_;
Variables_ V_;
Buffers_ B_;
//! Mapping of recordables names to access functions
static RecordablesMap< rate_neuron_opn< TNonlinearities > > recordablesMap_;
};
template < class TNonlinearities >
inline void
rate_neuron_opn< TNonlinearities >::update( Time const& origin,
const long from,
const long to )
{
update_( origin, from, to, false );
}
template < class TNonlinearities >
inline bool
rate_neuron_opn< TNonlinearities >::wfr_update( Time const& origin,
const long from,
const long to )
{
State_ old_state = S_; // save state before wfr update
const bool wfr_tol_exceeded = update_( origin, from, to, true );
S_ = old_state; // restore old state
return not wfr_tol_exceeded;
}
template < class TNonlinearities >
inline port
rate_neuron_opn< TNonlinearities >::handles_test_event(
<API key>&,
rport receptor_type )
{
if ( receptor_type != 0 )
{
throw UnknownReceptorType( receptor_type, get_name() );
}
return 0;
}
template < class TNonlinearities >
inline port
rate_neuron_opn< TNonlinearities >::handles_test_event(
<API key>&,
rport receptor_type )
{
if ( receptor_type != 0 )
{
throw UnknownReceptorType( receptor_type, get_name() );
}
return 0;
}
template < class TNonlinearities >
inline port
rate_neuron_opn< TNonlinearities >::handles_test_event( DataLoggingRequest& dlr,
rport receptor_type )
{
if ( receptor_type != 0 )
{
throw UnknownReceptorType( receptor_type, get_name() );
}
return B_.logger_.<API key>( dlr, recordablesMap_ );
}
template < class TNonlinearities >
inline void
rate_neuron_opn< TNonlinearities >::get_status( DictionaryDatum& d ) const
{
P_.get( d );
S_.get( d );
Archiving_Node::get_status( d );
( *d )[ names::recordables ] = recordablesMap_.get_list();
nonlinearities_.get( d );
}
template < class TNonlinearities >
inline void
rate_neuron_opn< TNonlinearities >::set_status( const DictionaryDatum& d )
{
Parameters_ ptmp = P_; // temporary copy in case of errors
ptmp.set( d ); // throws if BadProperty
State_ stmp = S_; // temporary copy in case of errors
stmp.set( d ); // throws if BadProperty
// We now know that (ptmp, stmp) are consistent. We do not
// write them back to (P_, S_) before we are also sure that
// the properties to be set in the parent class are internally
// consistent.
Archiving_Node::set_status( d );
// if we get here, temporaries contain consistent set of properties
P_ = ptmp;
S_ = stmp;
nonlinearities_.set( d );
}
} // namespace
#endif /* #ifndef RATE_NEURON_OPN_H */
|
namespace Server.Items
{
public class <API key> : BaseAddon
{
public override BaseAddonDeed Deed => new DungeonFountainDeed();
[Constructable]
public <API key>()
: this(true)
{
}
[Constructable]
public <API key>(bool east)
: base()
{
AddComponent(new AddonComponent(42226), 0, 0, 0);
AddComponent(new AddonComponent(42227), 1, 0, 0);
AddComponent(new AddonComponent(42225), 0, 1, 0);
AddComponent(new AddonComponent(42228), 1, 1, 0);
}
public <API key>(Serial serial)
: base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
public class DungeonFountainDeed : BaseAddonDeed
{
public override int LabelNumber => 1159474; // Dungeon Fountain
public override BaseAddon Addon => new <API key>();
[Constructable]
public DungeonFountainDeed()
: base()
{
LootType = LootType.Blessed;
}
public DungeonFountainDeed(Serial serial)
: base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}
|
/* <API key>: GPL-2.0-only */
#include <AGESA.h>
#include <<API key>.h>
#include <northbridge/amd/agesa/state_machine.h>
static const <API key> PortList[] = {
{
0,
<API key>(PciePortEngine, 3, 3),
<API key>(PortEnabled, ChannelTypeExt6db, 2, 5,
HotplugDisabled,
PcieGenMaxSupported,
PcieGenMaxSupported,
AspmDisabled, 0x01, 0)
},
/* Initialize Port descriptor (PCIe port, Lanes 1, PCI Device Number 2, ...) */
{
0,
<API key>(PciePortEngine, 2, 2),
<API key>(PortEnabled, ChannelTypeExt6db, 2, 4,
HotplugDisabled,
PcieGenMaxSupported,
PcieGenMaxSupported,
AspmDisabled, 0x02, 0)
},
/* Initialize Port descriptor (PCIe port, Lanes 2, PCI Device Number 2, ...) */
{
0,
<API key>(PciePortEngine, 1, 1),
<API key>(PortEnabled, ChannelTypeExt6db, 2, 3,
HotplugDisabled,
PcieGenMaxSupported,
PcieGenMaxSupported,
AspmDisabled, 0x03, 0)
},
/* Initialize Port descriptor (PCIe port, Lanes 3, PCI Device Number 2, ...) */
{
0,
<API key>(PciePortEngine, 0, 0),
<API key>(PortEnabled, ChannelTypeExt6db, 2, 2,
HotplugDisabled,
PcieGenMaxSupported,
PcieGenMaxSupported,
AspmDisabled, 0x04, 0)
},
/* Initialize Port descriptor (PCIe port, Lanes 4-7, PCI Device Number 4, ...) */
{
<API key>,
<API key>(PciePortEngine, 4, 7),
<API key>(PortEnabled, ChannelTypeExt6db, 2, 1,
HotplugDisabled,
PcieGenMaxSupported,
PcieGenMaxSupported,
AspmDisabled, 0x05, 0)
}
};
static const PCIe_DDI_DESCRIPTOR DdiList[] = {
/* DP0 to HDMI0/DP */
{
0,
<API key>(PcieDdiEngine, 8, 11),
<API key>(ConnectorTypeHDMI, Aux1, Hdp1)
},
/* DP1 to FCH */
{
0,
<API key>(PcieDdiEngine, 12, 15),
<API key>(ConnectorTypeHDMI, Aux2, Hdp2)
},
/* DP2 to HDMI1/DP */
{
<API key>,
<API key>(PcieDdiEngine, 16, 19),
<API key>(ConnectorTypeCrt, Aux3, Hdp3)
},
};
static const <API key> PcieComplex = {
.Flags = <API key>,
.SocketId = 0,
.PciePortList = PortList,
.DdiLinkList = DdiList
};
void <API key>(struct sysinfo *cb, AMD_RESET_PARAMS *Reset)
{
FCH_RESET_INTERFACE *FchReset = &Reset->FchInterface;
FchReset->Xhci0Enable = CONFIG(HUDSON_XHCI_ENABLE);
FchReset->Xhci1Enable = FALSE;
}
void <API key>(struct sysinfo *cb, AMD_EARLY_PARAMS *InitEarly)
{
InitEarly->GnbConfig.PcieComplexList = &PcieComplex;
}
/*
* Platform Specific Overriding Table allows IBV/OEM to pass in platform information to AGESA
* (e.g. MemClk routing, the number of DIMM slots per channel,...). If <API key>
* is populated, AGESA will base its settings on the data from the table. Otherwise, it will
* use its default conservative settings.
*/
static CONST PSO_ENTRY ROMDATA PlatformMemoryTable[] = {
#define SEED_A 0x12
HW_RXEN_SEED(
ANY_SOCKET, CHANNEL_A, ALL_DIMMS,
SEED_A, SEED_A, SEED_A, SEED_A, SEED_A, SEED_A, SEED_A, SEED_A,
SEED_A),
<API key>(ANY_SOCKET, ANY_CHANNEL, 2),
<API key>(ANY_SOCKET, 1),
MOTHER_BOARD_LAYERS(LAYERS_4),
MEMCLK_DIS_MAP(ANY_SOCKET, ANY_CHANNEL, 0x01, 0x02, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00),
CKE_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, 0x01, 0x02, 0x04, 0x08), /* TODO: bit2map, bit3map */
ODT_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, 0x01, 0x02, 0x04, 0x08),
CS_TRI_MAP(ANY_SOCKET, ANY_CHANNEL, 0x01, 0x02, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00),
PSO_END
};
void <API key>(struct sysinfo *cb, AMD_POST_PARAMS *InitPost)
{
InitPost->MemConfig.<API key> = (PSO_ENTRY *)PlatformMemoryTable;
}
void board_BeforeInitMid(struct sysinfo *cb, AMD_MID_PARAMS *InitMid)
{
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
}
|
# This program is free software; you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
package OpenQA::WebAPI::Controller::Admin::User;
use Mojo::Base 'Mojolicious::Controller';
sub index {
my ($self) = @_;
my @users = $self->db->resultset("Users")->search(undef)->all;
$self->stash('users', \@users);
$self->render('admin/user/index');
}
sub update {
my ($self) = @_;
my $set = $self->db->resultset('Users');
my $is_admin = 0;
my $is_operator = 0;
my $role = $self->param('role') // 'user';
if ($role eq 'admin') {
$is_admin = 1;
$is_operator = 1;
}
elsif ($role eq 'operator') {
$is_operator = 1;
}
my $user = $set->find($self->param('userid'));
if (!$user) {
$self->flash('error', "Can't find that user");
}
else {
$user->update({is_admin => $is_admin, is_operator => $is_operator});
$self->flash('info', 'User ' . $user->nickname . ' updated');
$self->emit_event('user_update_res', {nickname => $user->nickname, role => $role});
}
$self->redirect_to($self->url_for('admin_users'));
}
1;
|
# This program is free software; you can redistribute it and/or modify it
# by the Free Software Foundation.
# This program is distributed in the hope that it will be useful, but WITHOUT
# more details.
# with this program; if not, contact SUSE LLC.
# To contact SUSE LLC about this file by physical or electronic mail, you may
require "installation/autoinst_profile/<API key>"
require "y2network/autoinst_profile/dns_section"
require "y2network/autoinst_profile/interfaces_section"
require "y2network/autoinst_profile/routing_section"
require "y2network/autoinst_profile/udev_rules_section"
require "y2network/autoinst_profile/<API key>"
module Y2Network
module AutoinstProfile
# This class represents an AutoYaST \<networking> section
# <networking>
# <routing>
# <!-- the routing configuration -->
# </routing>
# </networking>
# @see RoutingSection
class NetworkingSection < Installation::AutoinstProfile::<API key>
def self.attributes
[
{ name: :<API key> },
{ name: :start_immediately },
{ name: :<API key> },
{ name: :<API key> },
{ name: :<API key> },
{ name: :routing },
{ name: :dns },
{ name: :interfaces },
{ name: :udev_rules },
{ name: :s390_devices },
{ name: :managed },
{ name: :backend }
]
end
<API key>
# @!attribute <API key>
# @return [Boolean]
# @!attribute start_immediately
# @return [Boolean]
# @!attribute <API key>
# @return [Boolean]
# @!attribute <API key>
# @return [Boolean]
# @!attribute <API key>
# @return [Boolean]
# @!attribute routing
# @return [RoutingSection]
# @!attribute dns
# @return [DNSSection]
# @!attribute interfaces
# @return [InterfacesSection]
# @!attribute udev_rules
# @return [UdevRulesSection]
# @!attribute s390_devices
# @return [S390DevicesSection]
# @!attribute managed
# @return [Boolean]
# @!attribute backend
# @return [String]
# Creates an instance based on the profile representation used by the AutoYaST modules
# (hash with nested hashes and arrays).
# @param hash [Hash] Networking section from an AutoYaST profile
# @return [NetworkingSection]
def self.new_from_hashes(hash)
result = new
result.backend = hash["backend"]
result.managed = hash["managed"]
result.<API key> = hash["<API key>"]
result.start_immediately = hash["start_immediately"]
result.<API key> = hash["<API key>"]
result.<API key> = hash["<API key>"]
result.<API key> = hash["<API key>"]
result.routing = RoutingSection.new_from_hashes(hash["routing"], result) if hash["routing"]
result.dns = DNSSection.new_from_hashes(hash["dns"], result) if hash["dns"]
if hash["interfaces"]
result.interfaces = InterfacesSection.new_from_hashes(hash["interfaces"], result)
end
if hash["net-udev"]
result.udev_rules = UdevRulesSection.new_from_hashes(hash["net-udev"], result)
end
if hash["s390-devices"]
result.s390_devices = S390DevicesSection.new_from_hashes(hash["s390-devices"], result)
end
result
end
# Creates an instance based on the network configuration representation
# @param config [Y2Network::Config]
# @return [NetworkingSection]
def self.new_from_network(config)
result = new
return result unless config
result.managed = config.backend?(:network_manager)
result.backend = config.backend&.id.to_s if config.backend
build_dns = config.dns || config.hostname
result.routing = RoutingSection.new_from_network(config.routing) if config.routing
result.dns = DNSSection.new_from_network(config.dns, config.hostname) if build_dns
result.interfaces = InterfacesSection.new_from_network(config.connections, result)
result.udev_rules = UdevRulesSection.new_from_network(config.interfaces)
result.s390_devices = S390DevicesSection.new_from_network(config.connections)
result
end
# Export the section to a hash so it might be used when cloning the system
# @return [Hash]
def to_hashes
result = {}
result["dns"] = dns&.to_hashes || {}
unless managed
result["routing"] = routing&.to_hashes || {}
result["net-udev"] = udev_rules&.udev_rules&.map(&:to_hashes) || []
result["interfaces"] = interfaces&.interfaces&.map(&:to_hashes) || []
result["s390-devices"] = s390_devices&.to_hashes&.fetch("devices", []) || []
end
result.keys.each { |k| result.delete(k) if result[k].empty? }
result["managed"] = true if managed
result["backend"] = backend if backend
result
end
end
end
end
|
<?php
/**
* Translation file
*
* Note: don't change the return array to short notation because Transifex can't handle those during `tx push -s`
*/
return array(
'members:label:online' => 'Online',
'members:search' => 'Cerca iscritti',
'members:title:search' => 'Ricerca iscritti per %s',
'members:total' => 'Totale iscritti: %s',
'members:title:newest' => 'Ultimi iscritti',
'members:title:popular' => 'Iscritti più popolari',
'members:title:online' => 'Iscritti online',
'members:title:alpha' => 'Tutti gli iscritti',
'members:list:popular:none' => 'Nessun iscritto ha amici',
);
|
#!/usr/bin/env python3
# ACE3 automatic deployment script #
# This is not meant to be run #
# directly! #
import os
import sys
import shutil
import traceback
import subprocess as sp
from pygithub3 import Github
TRANSLATIONISSUE = 367
REPOUSER = "acemod"
REPONAME = "ACE3"
REPOPATH = "{}/{}".format(REPOUSER,REPONAME)
USERNAME = "ACE3 Travis"
USEREMAIL = "travis@ace3mod.com"
def update_translations(token):
diag = sp.check_output(["python3", "tools/stringtablediag.py", "--markdown"])
diag = str(diag, "utf-8")
repo = Github(token).get_repo(REPOPATH)
issue = repo.get_issue(TRANSLATIONISSUE)
issue.edit(body=TRANSLATIONBODY.format(diag))
def main():
print("Obtaining token ...")
try:
token = os.environ["GH_TOKEN"]
except:
print("Could not obtain token.")
print(traceback.format_exc())
return 1
else:
print("done.")
print("\nUpdating translation issue ...")
try:
update_translations(token)
except:
print("Failed to update translation issue.")
print(traceback.format_exc())
return 1
else:
print("done.")
return 0
if __name__ == "__main__":
sys.exit(main())
|
package com.oracle.truffle.api.interop.java;
import java.lang.reflect.Method;
import com.oracle.truffle.api.interop.ForeignAccess;
import com.oracle.truffle.api.interop.TruffleObject;
final class JavaFunctionObject implements TruffleObject {
final Method method;
final Object obj;
JavaFunctionObject(Method method, Object obj) {
this.method = method;
this.obj = obj;
}
public static boolean isInstance(TruffleObject obj) {
return obj instanceof JavaFunctionObject;
}
@Override
public ForeignAccess getForeignAccess() {
return <API key>.createAccess();
}
}
|
<?php
function xtc_restock_order($order_id) {
$order_query = xtc_db_query("SELECT orders_products_id,
products_id,
products_quantity
FROM ".<API key>."
WHERE orders_id = '".(int)$order_id."'");
while ($order = xtc_db_fetch_array($order_query)) {
$products_update = true;
$<API key> = xtc_db_query("SELECT pa.<API key>,
pa.<API key>,
opd.<API key>
FROM ".<API key>." pa
LEFT JOIN ".<API key>." opd
ON opd.orders_products_id = pa.orders_products_id
WHERE pa.orders_id = '" . (int)$order_id . "'
AND pa.orders_products_id = '" . $order['orders_products_id'] . "'");
if (xtc_db_num_rows($<API key>) > 0) {
while ($orders_attributes = xtc_db_fetch_array($<API key>)) {
if ($orders_attributes['<API key>'] == '') {
xtc_db_query("UPDATE ".<API key>."
SET attributes_stock = attributes_stock + ".$order['products_quantity']."
WHERE options_id = '" . $orders_attributes['<API key>'] . "'
AND options_values_id = '" . $orders_attributes['<API key>'] . "'
AND products_id = '" . $order['products_id'] . "'");
} else {
$products_update = false;
}
}
}
if ($products_update === true) {
xtc_db_query("UPDATE ".TABLE_PRODUCTS."
SET products_quantity = products_quantity + ".$order['products_quantity'].",
products_ordered = products_ordered - ".$order['products_quantity']."
WHERE products_id = '".$order['products_id']."'");
}
}
}
?>
|
#ifndef SYSDEP_H
#define SYSDEP_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gettext.h"
#define _(s) gettext(s)
#define N_(s) gettext_noop(s)
#define P_(s,p,n) ngettext(s,p,n)
#ifdef S_SPLINT_S
#undef gettext
#define gettext(s) s
#undef gettext_noop
#define gettext_noop(s) s
#undef ngettext
#define ngettext(s,p,n) s
#endif
#endif /* SYSDEP_H */
|
# $Id: 201_codec_l16_16000.py 369517 2012-07-01 17:28:57Z file $
from inc_cfg import *
# Call with L16/16000/1 codec
test_param = TestParam(
"PESQ codec L16/16000/1 (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec L16/16000/1 --clock-rate 16000 --play-file wavs/input.16.wav --null-audio"),
InstanceParam("UA2", "--max-calls=1 --add-codec L16/16000/1 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200")
]
)
if (HAS_SND_DEV == 0):
test_param.skip = True
pesq_threshold = 3.5
|
/* Generated on Mon Mar 24 02:08:40 EST 2003 */
#include "fftw-int.h"
#include "fftw.h"
/* Generated by: /homee/stevenj/cvs/fftw/gensrc/genfft -<API key> -<API key> -magic-variables 4 -magic-loopi -twiddleinv 64 */
/*
* This function contains 1038 FP additions, 500 FP multiplications,
* (or, 808 additions, 270 multiplications, 230 fused multiply/add),
* 162 stack variables, and 256 memory accesses
*/
static const fftw_real K098017140 =
FFTW_KONST(+0.<API key>);
static const fftw_real K995184726 =
FFTW_KONST(+0.<API key>);
static const fftw_real K773010453 =
FFTW_KONST(+0.<API key>);
static const fftw_real K634393284 =
FFTW_KONST(+0.<API key>);
static const fftw_real K195090322 =
FFTW_KONST(+0.<API key>);
static const fftw_real K980785280 =
FFTW_KONST(+0.<API key>);
static const fftw_real K471396736 =
FFTW_KONST(+0.<API key>);
static const fftw_real K881921264 =
FFTW_KONST(+0.<API key>);
static const fftw_real K956940335 =
FFTW_KONST(+0.<API key>);
static const fftw_real K290284677 =
FFTW_KONST(+0.<API key>);
static const fftw_real K831469612 =
FFTW_KONST(+0.<API key>);
static const fftw_real K555570233 =
FFTW_KONST(+0.<API key>);
static const fftw_real K707106781 =
FFTW_KONST(+0.<API key>);
static const fftw_real K382683432 =
FFTW_KONST(+0.<API key>);
static const fftw_real K923879532 =
FFTW_KONST(+0.<API key>);
/*
* Generator Id's :
* $Id: exprdag.ml,v 1.43 2003/03/16 23:43:46 stevenj Exp $
* $Id: fft.ml,v 1.44 2003/03/16 23:43:46 stevenj Exp $
* $Id: to_c.ml,v 1.26 2003/03/16 23:43:46 stevenj Exp $
*/
void fftwi_twiddle_64(fftw_complex *A, const fftw_complex *W, int iostride,
int m, int dist)
{
int i;
fftw_complex *inout;
inout = A;
for (i = m; i > 0; i = i - 1, inout = inout + dist, W = W + 63) {
fftw_real tmp19;
fftw_real tmp791;
fftw_real tmp1109;
fftw_real tmp1139;
fftw_real tmp1047;
fftw_real tmp1077;
fftw_real tmp383;
fftw_real tmp655;
fftw_real tmp66;
fftw_real tmp800;
fftw_real tmp909;
fftw_real tmp993;
fftw_real tmp417;
fftw_real tmp608;
fftw_real tmp665;
fftw_real tmp744;
fftw_real tmp42;
fftw_real tmp1076;
fftw_real tmp794;
fftw_real tmp1042;
fftw_real tmp394;
fftw_real tmp1138;
fftw_real tmp658;
fftw_real tmp1106;
fftw_real tmp329;
fftw_real tmp1007;
fftw_real tmp863;
fftw_real tmp923;
fftw_real tmp976;
fftw_real tmp1004;
fftw_real tmp880;
fftw_real tmp920;
fftw_real tmp535;
fftw_real tmp703;
fftw_real tmp576;
fftw_real tmp714;
fftw_real tmp579;
fftw_real tmp704;
fftw_real tmp546;
fftw_real tmp715;
fftw_real tmp376;
fftw_real tmp1005;
fftw_real tmp868;
fftw_real tmp881;
fftw_real tmp979;
fftw_real tmp1008;
fftw_real tmp873;
fftw_real tmp882;
fftw_real tmp558;
fftw_real tmp582;
fftw_real tmp708;
fftw_real tmp718;
fftw_real tmp569;
fftw_real tmp581;
fftw_real tmp711;
fftw_real tmp717;
fftw_real tmp89;
fftw_real tmp805;
fftw_real tmp908;
fftw_real tmp992;
fftw_real tmp406;
fftw_real tmp609;
fftw_real tmp662;
fftw_real tmp745;
fftw_real tmp161;
fftw_real tmp184;
fftw_real tmp997;
fftw_real tmp812;
fftw_real tmp912;
fftw_real tmp956;
fftw_real tmp957;
fftw_real tmp996;
fftw_real tmp817;
fftw_real tmp913;
fftw_real tmp424;
fftw_real tmp668;
fftw_real tmp441;
fftw_real tmp671;
fftw_real tmp444;
fftw_real tmp669;
fftw_real tmp435;
fftw_real tmp672;
fftw_real tmp114;
fftw_real tmp137;
fftw_real tmp999;
fftw_real tmp823;
fftw_real tmp915;
fftw_real tmp959;
fftw_real tmp960;
fftw_real tmp1000;
fftw_real tmp828;
fftw_real tmp916;
fftw_real tmp451;
fftw_real tmp678;
fftw_real tmp468;
fftw_real tmp675;
fftw_real tmp471;
fftw_real tmp679;
fftw_real tmp462;
fftw_real tmp676;
fftw_real tmp234;
fftw_real tmp1014;
fftw_real tmp836;
fftw_real tmp930;
fftw_real tmp967;
fftw_real tmp1011;
fftw_real tmp853;
fftw_real tmp927;
fftw_real tmp480;
fftw_real tmp684;
fftw_real tmp521;
fftw_real tmp695;
fftw_real tmp524;
fftw_real tmp685;
fftw_real tmp491;
fftw_real tmp696;
fftw_real tmp281;
fftw_real tmp1012;
fftw_real tmp841;
fftw_real tmp854;
fftw_real tmp970;
fftw_real tmp1015;
fftw_real tmp846;
fftw_real tmp855;
fftw_real tmp503;
fftw_real tmp527;
fftw_real tmp689;
fftw_real tmp699;
fftw_real tmp514;
fftw_real tmp526;
fftw_real tmp692;
fftw_real tmp698;
<API key>;
{
fftw_real tmp1;
fftw_real tmp1045;
fftw_real tmp6;
fftw_real tmp1044;
fftw_real tmp12;
fftw_real tmp380;
fftw_real tmp17;
fftw_real tmp381;
<API key>;
tmp1 = c_re(inout[0]);
tmp1045 = c_im(inout[0]);
{
fftw_real tmp3;
fftw_real tmp5;
fftw_real tmp2;
fftw_real tmp4;
<API key>;
tmp3 = c_re(inout[32 * iostride]);
tmp5 = c_im(inout[32 * iostride]);
tmp2 = c_re(W[31]);
tmp4 = c_im(W[31]);
tmp6 = (tmp2 * tmp3) + (tmp4 * tmp5);
tmp1044 = (tmp2 * tmp5) - (tmp4 * tmp3);
}
{
fftw_real tmp9;
fftw_real tmp11;
fftw_real tmp8;
fftw_real tmp10;
<API key>;
tmp9 = c_re(inout[16 * iostride]);
tmp11 = c_im(inout[16 * iostride]);
tmp8 = c_re(W[15]);
tmp10 = c_im(W[15]);
tmp12 = (tmp8 * tmp9) + (tmp10 * tmp11);
tmp380 = (tmp8 * tmp11) - (tmp10 * tmp9);
}
{
fftw_real tmp14;
fftw_real tmp16;
fftw_real tmp13;
fftw_real tmp15;
<API key>;
tmp14 = c_re(inout[48 * iostride]);
tmp16 = c_im(inout[48 * iostride]);
tmp13 = c_re(W[47]);
tmp15 = c_im(W[47]);
tmp17 = (tmp13 * tmp14) + (tmp15 * tmp16);
tmp381 = (tmp13 * tmp16) - (tmp15 * tmp14);
}
{
fftw_real tmp7;
fftw_real tmp18;
fftw_real tmp1107;
fftw_real tmp1108;
<API key>;
tmp7 = tmp1 + tmp6;
tmp18 = tmp12 + tmp17;
tmp19 = tmp7 + tmp18;
tmp791 = tmp7 - tmp18;
tmp1107 = tmp12 - tmp17;
tmp1108 = tmp1045 - tmp1044;
tmp1109 = tmp1107 + tmp1108;
tmp1139 = tmp1108 - tmp1107;
}
{
fftw_real tmp1043;
fftw_real tmp1046;
fftw_real tmp379;
fftw_real tmp382;
<API key>;
tmp1043 = tmp380 + tmp381;
tmp1046 = tmp1044 + tmp1045;
tmp1047 = tmp1043 + tmp1046;
tmp1077 = tmp1046 - tmp1043;
tmp379 = tmp1 - tmp6;
tmp382 = tmp380 - tmp381;
tmp383 = tmp379 - tmp382;
tmp655 = tmp379 + tmp382;
}
}
{
fftw_real tmp54;
fftw_real tmp412;
fftw_real tmp409;
fftw_real tmp797;
fftw_real tmp65;
fftw_real tmp410;
fftw_real tmp415;
fftw_real tmp798;
fftw_real tmp796;
fftw_real tmp799;
<API key>;
{
fftw_real tmp48;
fftw_real tmp407;
fftw_real tmp53;
fftw_real tmp408;
<API key>;
{
fftw_real tmp45;
fftw_real tmp47;
fftw_real tmp44;
fftw_real tmp46;
<API key>;
tmp45 = c_re(inout[4 * iostride]);
tmp47 = c_im(inout[4 * iostride]);
tmp44 = c_re(W[3]);
tmp46 = c_im(W[3]);
tmp48 = (tmp44 * tmp45) + (tmp46 * tmp47);
tmp407 = (tmp44 * tmp47) - (tmp46 * tmp45);
}
{
fftw_real tmp50;
fftw_real tmp52;
fftw_real tmp49;
fftw_real tmp51;
<API key>;
tmp50 = c_re(inout[36 * iostride]);
tmp52 = c_im(inout[36 * iostride]);
tmp49 = c_re(W[35]);
tmp51 = c_im(W[35]);
tmp53 = (tmp49 * tmp50) + (tmp51 * tmp52);
tmp408 = (tmp49 * tmp52) - (tmp51 * tmp50);
}
tmp54 = tmp48 + tmp53;
tmp412 = tmp48 - tmp53;
tmp409 = tmp407 - tmp408;
tmp797 = tmp407 + tmp408;
}
{
fftw_real tmp59;
fftw_real tmp413;
fftw_real tmp64;
fftw_real tmp414;
<API key>;
{
fftw_real tmp56;
fftw_real tmp58;
fftw_real tmp55;
fftw_real tmp57;
<API key>;
tmp56 = c_re(inout[20 * iostride]);
tmp58 = c_im(inout[20 * iostride]);
tmp55 = c_re(W[19]);
tmp57 = c_im(W[19]);
tmp59 = (tmp55 * tmp56) + (tmp57 * tmp58);
tmp413 = (tmp55 * tmp58) - (tmp57 * tmp56);
}
{
fftw_real tmp61;
fftw_real tmp63;
fftw_real tmp60;
fftw_real tmp62;
<API key>;
tmp61 = c_re(inout[52 * iostride]);
tmp63 = c_im(inout[52 * iostride]);
tmp60 = c_re(W[51]);
tmp62 = c_im(W[51]);
tmp64 = (tmp60 * tmp61) + (tmp62 * tmp63);
tmp414 = (tmp60 * tmp63) - (tmp62 * tmp61);
}
tmp65 = tmp59 + tmp64;
tmp410 = tmp59 - tmp64;
tmp415 = tmp413 - tmp414;
tmp798 = tmp413 + tmp414;
}
tmp66 = tmp54 + tmp65;
tmp796 = tmp54 - tmp65;
tmp799 = tmp797 - tmp798;
tmp800 = tmp796 - tmp799;
tmp909 = tmp796 + tmp799;
tmp993 = tmp797 + tmp798;
{
fftw_real tmp411;
fftw_real tmp416;
fftw_real tmp663;
fftw_real tmp664;
<API key>;
tmp411 = tmp409 + tmp410;
tmp416 = tmp412 - tmp415;
tmp417 = (K923879532 * tmp411) + (K382683432 * tmp416);
tmp608 = (K923879532 * tmp416) - (K382683432 * tmp411);
tmp663 = tmp409 - tmp410;
tmp664 = tmp412 + tmp415;
tmp665 = (K382683432 * tmp663) + (K923879532 * tmp664);
tmp744 = (K382683432 * tmp664) - (K923879532 * tmp663);
}
}
{
fftw_real tmp24;
fftw_real tmp385;
fftw_real tmp29;
fftw_real tmp386;
fftw_real tmp384;
fftw_real tmp387;
fftw_real tmp35;
fftw_real tmp390;
fftw_real tmp40;
fftw_real tmp391;
fftw_real tmp389;
fftw_real tmp392;
<API key>;
{
fftw_real tmp21;
fftw_real tmp23;
fftw_real tmp20;
fftw_real tmp22;
<API key>;
tmp21 = c_re(inout[8 * iostride]);
tmp23 = c_im(inout[8 * iostride]);
tmp20 = c_re(W[7]);
tmp22 = c_im(W[7]);
tmp24 = (tmp20 * tmp21) + (tmp22 * tmp23);
tmp385 = (tmp20 * tmp23) - (tmp22 * tmp21);
}
{
fftw_real tmp26;
fftw_real tmp28;
fftw_real tmp25;
fftw_real tmp27;
<API key>;
tmp26 = c_re(inout[40 * iostride]);
tmp28 = c_im(inout[40 * iostride]);
tmp25 = c_re(W[39]);
tmp27 = c_im(W[39]);
tmp29 = (tmp25 * tmp26) + (tmp27 * tmp28);
tmp386 = (tmp25 * tmp28) - (tmp27 * tmp26);
}
tmp384 = tmp24 - tmp29;
tmp387 = tmp385 - tmp386;
{
fftw_real tmp32;
fftw_real tmp34;
fftw_real tmp31;
fftw_real tmp33;
<API key>;
tmp32 = c_re(inout[56 * iostride]);
tmp34 = c_im(inout[56 * iostride]);
tmp31 = c_re(W[55]);
tmp33 = c_im(W[55]);
tmp35 = (tmp31 * tmp32) + (tmp33 * tmp34);
tmp390 = (tmp31 * tmp34) - (tmp33 * tmp32);
}
{
fftw_real tmp37;
fftw_real tmp39;
fftw_real tmp36;
fftw_real tmp38;
<API key>;
tmp37 = c_re(inout[24 * iostride]);
tmp39 = c_im(inout[24 * iostride]);
tmp36 = c_re(W[23]);
tmp38 = c_im(W[23]);
tmp40 = (tmp36 * tmp37) + (tmp38 * tmp39);
tmp391 = (tmp36 * tmp39) - (tmp38 * tmp37);
}
tmp389 = tmp35 - tmp40;
tmp392 = tmp390 - tmp391;
{
fftw_real tmp30;
fftw_real tmp41;
fftw_real tmp792;
fftw_real tmp793;
<API key>;
tmp30 = tmp24 + tmp29;
tmp41 = tmp35 + tmp40;
tmp42 = tmp30 + tmp41;
tmp1076 = tmp30 - tmp41;
tmp792 = tmp390 + tmp391;
tmp793 = tmp385 + tmp386;
tmp794 = tmp792 - tmp793;
tmp1042 = tmp793 + tmp792;
}
{
fftw_real tmp388;
fftw_real tmp393;
fftw_real tmp656;
fftw_real tmp657;
<API key>;
tmp388 = tmp384 - tmp387;
tmp393 = tmp389 + tmp392;
tmp394 = K707106781 * (tmp388 + tmp393);
tmp1138 = K707106781 * (tmp388 - tmp393);
tmp656 = tmp392 - tmp389;
tmp657 = tmp384 + tmp387;
tmp658 = K707106781 * (tmp656 - tmp657);
tmp1106 = K707106781 * (tmp657 + tmp656);
}
}
{
fftw_real tmp287;
fftw_real tmp572;
fftw_real tmp292;
fftw_real tmp573;
fftw_real tmp293;
fftw_real tmp876;
fftw_real tmp327;
fftw_real tmp541;
fftw_real tmp544;
fftw_real tmp860;
fftw_real tmp298;
fftw_real tmp532;
fftw_real tmp303;
fftw_real tmp533;
fftw_real tmp304;
fftw_real tmp877;
fftw_real tmp316;
fftw_real tmp536;
fftw_real tmp539;
fftw_real tmp861;
<API key>;
{
fftw_real tmp284;
fftw_real tmp286;
fftw_real tmp283;
fftw_real tmp285;
<API key>;
tmp284 = c_re(inout[63 * iostride]);
tmp286 = c_im(inout[63 * iostride]);
tmp283 = c_re(W[62]);
tmp285 = c_im(W[62]);
tmp287 = (tmp283 * tmp284) + (tmp285 * tmp286);
tmp572 = (tmp283 * tmp286) - (tmp285 * tmp284);
}
{
fftw_real tmp289;
fftw_real tmp291;
fftw_real tmp288;
fftw_real tmp290;
<API key>;
tmp289 = c_re(inout[31 * iostride]);
tmp291 = c_im(inout[31 * iostride]);
tmp288 = c_re(W[30]);
tmp290 = c_im(W[30]);
tmp292 = (tmp288 * tmp289) + (tmp290 * tmp291);
tmp573 = (tmp288 * tmp291) - (tmp290 * tmp289);
}
tmp293 = tmp287 + tmp292;
tmp876 = tmp572 + tmp573;
{
fftw_real tmp321;
fftw_real tmp542;
fftw_real tmp326;
fftw_real tmp543;
<API key>;
{
fftw_real tmp318;
fftw_real tmp320;
fftw_real tmp317;
fftw_real tmp319;
<API key>;
tmp318 = c_re(inout[55 * iostride]);
tmp320 = c_im(inout[55 * iostride]);
tmp317 = c_re(W[54]);
tmp319 = c_im(W[54]);
tmp321 = (tmp317 * tmp318) + (tmp319 * tmp320);
tmp542 = (tmp317 * tmp320) - (tmp319 * tmp318);
}
{
fftw_real tmp323;
fftw_real tmp325;
fftw_real tmp322;
fftw_real tmp324;
<API key>;
tmp323 = c_re(inout[23 * iostride]);
tmp325 = c_im(inout[23 * iostride]);
tmp322 = c_re(W[22]);
tmp324 = c_im(W[22]);
tmp326 = (tmp322 * tmp323) + (tmp324 * tmp325);
tmp543 = (tmp322 * tmp325) - (tmp324 * tmp323);
}
tmp327 = tmp321 + tmp326;
tmp541 = tmp321 - tmp326;
tmp544 = tmp542 - tmp543;
tmp860 = tmp542 + tmp543;
}
{
fftw_real tmp295;
fftw_real tmp297;
fftw_real tmp294;
fftw_real tmp296;
<API key>;
tmp295 = c_re(inout[15 * iostride]);
tmp297 = c_im(inout[15 * iostride]);
tmp294 = c_re(W[14]);
tmp296 = c_im(W[14]);
tmp298 = (tmp294 * tmp295) + (tmp296 * tmp297);
tmp532 = (tmp294 * tmp297) - (tmp296 * tmp295);
}
{
fftw_real tmp300;
fftw_real tmp302;
fftw_real tmp299;
fftw_real tmp301;
<API key>;
tmp300 = c_re(inout[47 * iostride]);
tmp302 = c_im(inout[47 * iostride]);
tmp299 = c_re(W[46]);
tmp301 = c_im(W[46]);
tmp303 = (tmp299 * tmp300) + (tmp301 * tmp302);
tmp533 = (tmp299 * tmp302) - (tmp301 * tmp300);
}
tmp304 = tmp298 + tmp303;
tmp877 = tmp532 + tmp533;
{
fftw_real tmp310;
fftw_real tmp537;
fftw_real tmp315;
fftw_real tmp538;
<API key>;
{
fftw_real tmp307;
fftw_real tmp309;
fftw_real tmp306;
fftw_real tmp308;
<API key>;
tmp307 = c_re(inout[7 * iostride]);
tmp309 = c_im(inout[7 * iostride]);
tmp306 = c_re(W[6]);
tmp308 = c_im(W[6]);
tmp310 = (tmp306 * tmp307) + (tmp308 * tmp309);
tmp537 = (tmp306 * tmp309) - (tmp308 * tmp307);
}
{
fftw_real tmp312;
fftw_real tmp314;
fftw_real tmp311;
fftw_real tmp313;
<API key>;
tmp312 = c_re(inout[39 * iostride]);
tmp314 = c_im(inout[39 * iostride]);
tmp311 = c_re(W[38]);
tmp313 = c_im(W[38]);
tmp315 = (tmp311 * tmp312) + (tmp313 * tmp314);
tmp538 = (tmp311 * tmp314) - (tmp313 * tmp312);
}
tmp316 = tmp310 + tmp315;
tmp536 = tmp310 - tmp315;
tmp539 = tmp537 - tmp538;
tmp861 = tmp537 + tmp538;
}
{
fftw_real tmp305;
fftw_real tmp328;
fftw_real tmp859;
fftw_real tmp862;
<API key>;
tmp305 = tmp293 + tmp304;
tmp328 = tmp316 + tmp327;
tmp329 = tmp305 + tmp328;
tmp1007 = tmp305 - tmp328;
tmp859 = tmp293 - tmp304;
tmp862 = tmp860 - tmp861;
tmp863 = tmp859 + tmp862;
tmp923 = tmp859 - tmp862;
}
{
fftw_real tmp974;
fftw_real tmp975;
fftw_real tmp878;
fftw_real tmp879;
<API key>;
tmp974 = tmp876 + tmp877;
tmp975 = tmp861 + tmp860;
tmp976 = tmp974 + tmp975;
tmp1004 = tmp974 - tmp975;
tmp878 = tmp876 - tmp877;
tmp879 = tmp316 - tmp327;
tmp880 = tmp878 + tmp879;
tmp920 = tmp878 - tmp879;
}
{
fftw_real tmp531;
fftw_real tmp534;
fftw_real tmp574;
fftw_real tmp575;
<API key>;
tmp531 = tmp287 - tmp292;
tmp534 = tmp532 - tmp533;
tmp535 = tmp531 - tmp534;
tmp703 = tmp531 + tmp534;
tmp574 = tmp572 - tmp573;
tmp575 = tmp298 - tmp303;
tmp576 = tmp574 + tmp575;
tmp714 = tmp574 - tmp575;
}
{
fftw_real tmp577;
fftw_real tmp578;
fftw_real tmp540;
fftw_real tmp545;
<API key>;
tmp577 = tmp536 + tmp539;
tmp578 = tmp544 - tmp541;
tmp579 = K707106781 * (tmp577 + tmp578);
tmp704 = K707106781 * (tmp578 - tmp577);
tmp540 = tmp536 - tmp539;
tmp545 = tmp541 + tmp544;
tmp546 = K707106781 * (tmp540 + tmp545);
tmp715 = K707106781 * (tmp540 - tmp545);
}
}
{
fftw_real tmp340;
fftw_real tmp564;
fftw_real tmp561;
fftw_real tmp865;
fftw_real tmp374;
fftw_real tmp551;
fftw_real tmp556;
fftw_real tmp871;
fftw_real tmp351;
fftw_real tmp562;
fftw_real tmp567;
fftw_real tmp866;
fftw_real tmp363;
fftw_real tmp553;
fftw_real tmp550;
fftw_real tmp870;
<API key>;
{
fftw_real tmp334;
fftw_real tmp559;
fftw_real tmp339;
fftw_real tmp560;
<API key>;
{
fftw_real tmp331;
fftw_real tmp333;
fftw_real tmp330;
fftw_real tmp332;
<API key>;
tmp331 = c_re(inout[3 * iostride]);
tmp333 = c_im(inout[3 * iostride]);
tmp330 = c_re(W[2]);
tmp332 = c_im(W[2]);
tmp334 = (tmp330 * tmp331) + (tmp332 * tmp333);
tmp559 = (tmp330 * tmp333) - (tmp332 * tmp331);
}
{
fftw_real tmp336;
fftw_real tmp338;
fftw_real tmp335;
fftw_real tmp337;
<API key>;
tmp336 = c_re(inout[35 * iostride]);
tmp338 = c_im(inout[35 * iostride]);
tmp335 = c_re(W[34]);
tmp337 = c_im(W[34]);
tmp339 = (tmp335 * tmp336) + (tmp337 * tmp338);
tmp560 = (tmp335 * tmp338) - (tmp337 * tmp336);
}
tmp340 = tmp334 + tmp339;
tmp564 = tmp334 - tmp339;
tmp561 = tmp559 - tmp560;
tmp865 = tmp559 + tmp560;
}
{
fftw_real tmp368;
fftw_real tmp554;
fftw_real tmp373;
fftw_real tmp555;
<API key>;
{
fftw_real tmp365;
fftw_real tmp367;
fftw_real tmp364;
fftw_real tmp366;
<API key>;
tmp365 = c_re(inout[11 * iostride]);
tmp367 = c_im(inout[11 * iostride]);
tmp364 = c_re(W[10]);
tmp366 = c_im(W[10]);
tmp368 = (tmp364 * tmp365) + (tmp366 * tmp367);
tmp554 = (tmp364 * tmp367) - (tmp366 * tmp365);
}
{
fftw_real tmp370;
fftw_real tmp372;
fftw_real tmp369;
fftw_real tmp371;
<API key>;
tmp370 = c_re(inout[43 * iostride]);
tmp372 = c_im(inout[43 * iostride]);
tmp369 = c_re(W[42]);
tmp371 = c_im(W[42]);
tmp373 = (tmp369 * tmp370) + (tmp371 * tmp372);
tmp555 = (tmp369 * tmp372) - (tmp371 * tmp370);
}
tmp374 = tmp368 + tmp373;
tmp551 = tmp368 - tmp373;
tmp556 = tmp554 - tmp555;
tmp871 = tmp554 + tmp555;
}
{
fftw_real tmp345;
fftw_real tmp565;
fftw_real tmp350;
fftw_real tmp566;
<API key>;
{
fftw_real tmp342;
fftw_real tmp344;
fftw_real tmp341;
fftw_real tmp343;
<API key>;
tmp342 = c_re(inout[19 * iostride]);
tmp344 = c_im(inout[19 * iostride]);
tmp341 = c_re(W[18]);
tmp343 = c_im(W[18]);
tmp345 = (tmp341 * tmp342) + (tmp343 * tmp344);
tmp565 = (tmp341 * tmp344) - (tmp343 * tmp342);
}
{
fftw_real tmp347;
fftw_real tmp349;
fftw_real tmp346;
fftw_real tmp348;
<API key>;
tmp347 = c_re(inout[51 * iostride]);
tmp349 = c_im(inout[51 * iostride]);
tmp346 = c_re(W[50]);
tmp348 = c_im(W[50]);
tmp350 = (tmp346 * tmp347) + (tmp348 * tmp349);
tmp566 = (tmp346 * tmp349) - (tmp348 * tmp347);
}
tmp351 = tmp345 + tmp350;
tmp562 = tmp345 - tmp350;
tmp567 = tmp565 - tmp566;
tmp866 = tmp565 + tmp566;
}
{
fftw_real tmp357;
fftw_real tmp548;
fftw_real tmp362;
fftw_real tmp549;
<API key>;
{
fftw_real tmp354;
fftw_real tmp356;
fftw_real tmp353;
fftw_real tmp355;
<API key>;
tmp354 = c_re(inout[59 * iostride]);
tmp356 = c_im(inout[59 * iostride]);
tmp353 = c_re(W[58]);
tmp355 = c_im(W[58]);
tmp357 = (tmp353 * tmp354) + (tmp355 * tmp356);
tmp548 = (tmp353 * tmp356) - (tmp355 * tmp354);
}
{
fftw_real tmp359;
fftw_real tmp361;
fftw_real tmp358;
fftw_real tmp360;
<API key>;
tmp359 = c_re(inout[27 * iostride]);
tmp361 = c_im(inout[27 * iostride]);
tmp358 = c_re(W[26]);
tmp360 = c_im(W[26]);
tmp362 = (tmp358 * tmp359) + (tmp360 * tmp361);
tmp549 = (tmp358 * tmp361) - (tmp360 * tmp359);
}
tmp363 = tmp357 + tmp362;
tmp553 = tmp357 - tmp362;
tmp550 = tmp548 - tmp549;
tmp870 = tmp548 + tmp549;
}
{
fftw_real tmp352;
fftw_real tmp375;
fftw_real tmp864;
fftw_real tmp867;
<API key>;
tmp352 = tmp340 + tmp351;
tmp375 = tmp363 + tmp374;
tmp376 = tmp352 + tmp375;
tmp1005 = tmp352 - tmp375;
tmp864 = tmp340 - tmp351;
tmp867 = tmp865 - tmp866;
tmp868 = tmp864 - tmp867;
tmp881 = tmp864 + tmp867;
}
{
fftw_real tmp977;
fftw_real tmp978;
fftw_real tmp869;
fftw_real tmp872;
<API key>;
tmp977 = tmp865 + tmp866;
tmp978 = tmp870 + tmp871;
tmp979 = tmp977 + tmp978;
tmp1008 = tmp978 - tmp977;
tmp869 = tmp363 - tmp374;
tmp872 = tmp870 - tmp871;
tmp873 = tmp869 + tmp872;
tmp882 = tmp872 - tmp869;
}
{
fftw_real tmp552;
fftw_real tmp557;
fftw_real tmp706;
fftw_real tmp707;
<API key>;
tmp552 = tmp550 + tmp551;
tmp557 = tmp553 - tmp556;
tmp558 = (K923879532 * tmp552) - (K382683432 * tmp557);
tmp582 = (K382683432 * tmp552) + (K923879532 * tmp557);
tmp706 = tmp550 - tmp551;
tmp707 = tmp553 + tmp556;
tmp708 = (K382683432 * tmp706) - (K923879532 * tmp707);
tmp718 = (K923879532 * tmp706) + (K382683432 * tmp707);
}
{
fftw_real tmp563;
fftw_real tmp568;
fftw_real tmp709;
fftw_real tmp710;
<API key>;
tmp563 = tmp561 + tmp562;
tmp568 = tmp564 - tmp567;
tmp569 = (K923879532 * tmp563) + (K382683432 * tmp568);
tmp581 = (K923879532 * tmp568) - (K382683432 * tmp563);
tmp709 = tmp561 - tmp562;
tmp710 = tmp564 + tmp567;
tmp711 = (K382683432 * tmp709) + (K923879532 * tmp710);
tmp717 = (K382683432 * tmp710) - (K923879532 * tmp709);
}
}
{
fftw_real tmp77;
fftw_real tmp401;
fftw_real tmp398;
fftw_real tmp802;
fftw_real tmp88;
fftw_real tmp399;
fftw_real tmp404;
fftw_real tmp803;
fftw_real tmp801;
fftw_real tmp804;
<API key>;
{
fftw_real tmp71;
fftw_real tmp396;
fftw_real tmp76;
fftw_real tmp397;
<API key>;
{
fftw_real tmp68;
fftw_real tmp70;
fftw_real tmp67;
fftw_real tmp69;
<API key>;
tmp68 = c_re(inout[60 * iostride]);
tmp70 = c_im(inout[60 * iostride]);
tmp67 = c_re(W[59]);
tmp69 = c_im(W[59]);
tmp71 = (tmp67 * tmp68) + (tmp69 * tmp70);
tmp396 = (tmp67 * tmp70) - (tmp69 * tmp68);
}
{
fftw_real tmp73;
fftw_real tmp75;
fftw_real tmp72;
fftw_real tmp74;
<API key>;
tmp73 = c_re(inout[28 * iostride]);
tmp75 = c_im(inout[28 * iostride]);
tmp72 = c_re(W[27]);
tmp74 = c_im(W[27]);
tmp76 = (tmp72 * tmp73) + (tmp74 * tmp75);
tmp397 = (tmp72 * tmp75) - (tmp74 * tmp73);
}
tmp77 = tmp71 + tmp76;
tmp401 = tmp71 - tmp76;
tmp398 = tmp396 - tmp397;
tmp802 = tmp396 + tmp397;
}
{
fftw_real tmp82;
fftw_real tmp402;
fftw_real tmp87;
fftw_real tmp403;
<API key>;
{
fftw_real tmp79;
fftw_real tmp81;
fftw_real tmp78;
fftw_real tmp80;
<API key>;
tmp79 = c_re(inout[12 * iostride]);
tmp81 = c_im(inout[12 * iostride]);
tmp78 = c_re(W[11]);
tmp80 = c_im(W[11]);
tmp82 = (tmp78 * tmp79) + (tmp80 * tmp81);
tmp402 = (tmp78 * tmp81) - (tmp80 * tmp79);
}
{
fftw_real tmp84;
fftw_real tmp86;
fftw_real tmp83;
fftw_real tmp85;
<API key>;
tmp84 = c_re(inout[44 * iostride]);
tmp86 = c_im(inout[44 * iostride]);
tmp83 = c_re(W[43]);
tmp85 = c_im(W[43]);
tmp87 = (tmp83 * tmp84) + (tmp85 * tmp86);
tmp403 = (tmp83 * tmp86) - (tmp85 * tmp84);
}
tmp88 = tmp82 + tmp87;
tmp399 = tmp82 - tmp87;
tmp404 = tmp402 - tmp403;
tmp803 = tmp402 + tmp403;
}
tmp89 = tmp77 + tmp88;
tmp801 = tmp77 - tmp88;
tmp804 = tmp802 - tmp803;
tmp805 = tmp801 + tmp804;
tmp908 = tmp804 - tmp801;
tmp992 = tmp802 + tmp803;
{
fftw_real tmp400;
fftw_real tmp405;
fftw_real tmp660;
fftw_real tmp661;
<API key>;
tmp400 = tmp398 + tmp399;
tmp405 = tmp401 - tmp404;
tmp406 = (K923879532 * tmp400) - (K382683432 * tmp405);
tmp609 = (K382683432 * tmp400) + (K923879532 * tmp405);
tmp660 = tmp398 - tmp399;
tmp661 = tmp401 + tmp404;
tmp662 = (K382683432 * tmp660) - (K923879532 * tmp661);
tmp745 = (K923879532 * tmp660) + (K382683432 * tmp661);
}
}
{
fftw_real tmp143;
fftw_real tmp420;
fftw_real tmp148;
fftw_real tmp421;
fftw_real tmp149;
fftw_real tmp808;
fftw_real tmp183;
fftw_real tmp433;
fftw_real tmp432;
fftw_real tmp814;
fftw_real tmp154;
fftw_real tmp438;
fftw_real tmp159;
fftw_real tmp439;
fftw_real tmp160;
fftw_real tmp809;
fftw_real tmp172;
fftw_real tmp425;
fftw_real tmp428;
fftw_real tmp815;
<API key>;
{
fftw_real tmp140;
fftw_real tmp142;
fftw_real tmp139;
fftw_real tmp141;
<API key>;
tmp140 = c_re(inout[62 * iostride]);
tmp142 = c_im(inout[62 * iostride]);
tmp139 = c_re(W[61]);
tmp141 = c_im(W[61]);
tmp143 = (tmp139 * tmp140) + (tmp141 * tmp142);
tmp420 = (tmp139 * tmp142) - (tmp141 * tmp140);
}
{
fftw_real tmp145;
fftw_real tmp147;
fftw_real tmp144;
fftw_real tmp146;
<API key>;
tmp145 = c_re(inout[30 * iostride]);
tmp147 = c_im(inout[30 * iostride]);
tmp144 = c_re(W[29]);
tmp146 = c_im(W[29]);
tmp148 = (tmp144 * tmp145) + (tmp146 * tmp147);
tmp421 = (tmp144 * tmp147) - (tmp146 * tmp145);
}
tmp149 = tmp143 + tmp148;
tmp808 = tmp420 + tmp421;
{
fftw_real tmp177;
fftw_real tmp430;
fftw_real tmp182;
fftw_real tmp431;
<API key>;
{
fftw_real tmp174;
fftw_real tmp176;
fftw_real tmp173;
fftw_real tmp175;
<API key>;
tmp174 = c_re(inout[54 * iostride]);
tmp176 = c_im(inout[54 * iostride]);
tmp173 = c_re(W[53]);
tmp175 = c_im(W[53]);
tmp177 = (tmp173 * tmp174) + (tmp175 * tmp176);
tmp430 = (tmp173 * tmp176) - (tmp175 * tmp174);
}
{
fftw_real tmp179;
fftw_real tmp181;
fftw_real tmp178;
fftw_real tmp180;
<API key>;
tmp179 = c_re(inout[22 * iostride]);
tmp181 = c_im(inout[22 * iostride]);
tmp178 = c_re(W[21]);
tmp180 = c_im(W[21]);
tmp182 = (tmp178 * tmp179) + (tmp180 * tmp181);
tmp431 = (tmp178 * tmp181) - (tmp180 * tmp179);
}
tmp183 = tmp177 + tmp182;
tmp433 = tmp177 - tmp182;
tmp432 = tmp430 - tmp431;
tmp814 = tmp430 + tmp431;
}
{
fftw_real tmp151;
fftw_real tmp153;
fftw_real tmp150;
fftw_real tmp152;
<API key>;
tmp151 = c_re(inout[14 * iostride]);
tmp153 = c_im(inout[14 * iostride]);
tmp150 = c_re(W[13]);
tmp152 = c_im(W[13]);
tmp154 = (tmp150 * tmp151) + (tmp152 * tmp153);
tmp438 = (tmp150 * tmp153) - (tmp152 * tmp151);
}
{
fftw_real tmp156;
fftw_real tmp158;
fftw_real tmp155;
fftw_real tmp157;
<API key>;
tmp156 = c_re(inout[46 * iostride]);
tmp158 = c_im(inout[46 * iostride]);
tmp155 = c_re(W[45]);
tmp157 = c_im(W[45]);
tmp159 = (tmp155 * tmp156) + (tmp157 * tmp158);
tmp439 = (tmp155 * tmp158) - (tmp157 * tmp156);
}
tmp160 = tmp154 + tmp159;
tmp809 = tmp438 + tmp439;
{
fftw_real tmp166;
fftw_real tmp426;
fftw_real tmp171;
fftw_real tmp427;
<API key>;
{
fftw_real tmp163;
fftw_real tmp165;
fftw_real tmp162;
fftw_real tmp164;
<API key>;
tmp163 = c_re(inout[6 * iostride]);
tmp165 = c_im(inout[6 * iostride]);
tmp162 = c_re(W[5]);
tmp164 = c_im(W[5]);
tmp166 = (tmp162 * tmp163) + (tmp164 * tmp165);
tmp426 = (tmp162 * tmp165) - (tmp164 * tmp163);
}
{
fftw_real tmp168;
fftw_real tmp170;
fftw_real tmp167;
fftw_real tmp169;
<API key>;
tmp168 = c_re(inout[38 * iostride]);
tmp170 = c_im(inout[38 * iostride]);
tmp167 = c_re(W[37]);
tmp169 = c_im(W[37]);
tmp171 = (tmp167 * tmp168) + (tmp169 * tmp170);
tmp427 = (tmp167 * tmp170) - (tmp169 * tmp168);
}
tmp172 = tmp166 + tmp171;
tmp425 = tmp166 - tmp171;
tmp428 = tmp426 - tmp427;
tmp815 = tmp426 + tmp427;
}
{
fftw_real tmp810;
fftw_real tmp811;
fftw_real tmp813;
fftw_real tmp816;
<API key>;
tmp161 = tmp149 + tmp160;
tmp184 = tmp172 + tmp183;
tmp997 = tmp161 - tmp184;
tmp810 = tmp808 - tmp809;
tmp811 = tmp172 - tmp183;
tmp812 = tmp810 + tmp811;
tmp912 = tmp810 - tmp811;
tmp956 = tmp808 + tmp809;
tmp957 = tmp815 + tmp814;
tmp996 = tmp956 - tmp957;
tmp813 = tmp149 - tmp160;
tmp816 = tmp814 - tmp815;
tmp817 = tmp813 + tmp816;
tmp913 = tmp813 - tmp816;
}
{
fftw_real tmp422;
fftw_real tmp423;
fftw_real tmp437;
fftw_real tmp440;
<API key>;
tmp422 = tmp420 - tmp421;
tmp423 = tmp154 - tmp159;
tmp424 = tmp422 + tmp423;
tmp668 = tmp422 - tmp423;
tmp437 = tmp143 - tmp148;
tmp440 = tmp438 - tmp439;
tmp441 = tmp437 - tmp440;
tmp671 = tmp437 + tmp440;
}
{
fftw_real tmp442;
fftw_real tmp443;
fftw_real tmp429;
fftw_real tmp434;
<API key>;
tmp442 = tmp425 - tmp428;
tmp443 = tmp433 + tmp432;
tmp444 = K707106781 * (tmp442 + tmp443);
tmp669 = K707106781 * (tmp442 - tmp443);
tmp429 = tmp425 + tmp428;
tmp434 = tmp432 - tmp433;
tmp435 = K707106781 * (tmp429 + tmp434);
tmp672 = K707106781 * (tmp434 - tmp429);
}
}
{
fftw_real tmp96;
fftw_real tmp464;
fftw_real tmp101;
fftw_real tmp465;
fftw_real tmp102;
fftw_real tmp819;
fftw_real tmp136;
fftw_real tmp457;
fftw_real tmp460;
fftw_real tmp825;
fftw_real tmp107;
fftw_real tmp448;
fftw_real tmp112;
fftw_real tmp449;
fftw_real tmp113;
fftw_real tmp820;
fftw_real tmp125;
fftw_real tmp452;
fftw_real tmp455;
fftw_real tmp826;
<API key>;
{
fftw_real tmp93;
fftw_real tmp95;
fftw_real tmp92;
fftw_real tmp94;
<API key>;
tmp93 = c_re(inout[2 * iostride]);
tmp95 = c_im(inout[2 * iostride]);
tmp92 = c_re(W[1]);
tmp94 = c_im(W[1]);
tmp96 = (tmp92 * tmp93) + (tmp94 * tmp95);
tmp464 = (tmp92 * tmp95) - (tmp94 * tmp93);
}
{
fftw_real tmp98;
fftw_real tmp100;
fftw_real tmp97;
fftw_real tmp99;
<API key>;
tmp98 = c_re(inout[34 * iostride]);
tmp100 = c_im(inout[34 * iostride]);
tmp97 = c_re(W[33]);
tmp99 = c_im(W[33]);
tmp101 = (tmp97 * tmp98) + (tmp99 * tmp100);
tmp465 = (tmp97 * tmp100) - (tmp99 * tmp98);
}
tmp102 = tmp96 + tmp101;
tmp819 = tmp464 + tmp465;
{
fftw_real tmp130;
fftw_real tmp458;
fftw_real tmp135;
fftw_real tmp459;
<API key>;
{
fftw_real tmp127;
fftw_real tmp129;
fftw_real tmp126;
fftw_real tmp128;
<API key>;
tmp127 = c_re(inout[58 * iostride]);
tmp129 = c_im(inout[58 * iostride]);
tmp126 = c_re(W[57]);
tmp128 = c_im(W[57]);
tmp130 = (tmp126 * tmp127) + (tmp128 * tmp129);
tmp458 = (tmp126 * tmp129) - (tmp128 * tmp127);
}
{
fftw_real tmp132;
fftw_real tmp134;
fftw_real tmp131;
fftw_real tmp133;
<API key>;
tmp132 = c_re(inout[26 * iostride]);
tmp134 = c_im(inout[26 * iostride]);
tmp131 = c_re(W[25]);
tmp133 = c_im(W[25]);
tmp135 = (tmp131 * tmp132) + (tmp133 * tmp134);
tmp459 = (tmp131 * tmp134) - (tmp133 * tmp132);
}
tmp136 = tmp130 + tmp135;
tmp457 = tmp130 - tmp135;
tmp460 = tmp458 - tmp459;
tmp825 = tmp458 + tmp459;
}
{
fftw_real tmp104;
fftw_real tmp106;
fftw_real tmp103;
fftw_real tmp105;
<API key>;
tmp104 = c_re(inout[18 * iostride]);
tmp106 = c_im(inout[18 * iostride]);
tmp103 = c_re(W[17]);
tmp105 = c_im(W[17]);
tmp107 = (tmp103 * tmp104) + (tmp105 * tmp106);
tmp448 = (tmp103 * tmp106) - (tmp105 * tmp104);
}
{
fftw_real tmp109;
fftw_real tmp111;
fftw_real tmp108;
fftw_real tmp110;
<API key>;
tmp109 = c_re(inout[50 * iostride]);
tmp111 = c_im(inout[50 * iostride]);
tmp108 = c_re(W[49]);
tmp110 = c_im(W[49]);
tmp112 = (tmp108 * tmp109) + (tmp110 * tmp111);
tmp449 = (tmp108 * tmp111) - (tmp110 * tmp109);
}
tmp113 = tmp107 + tmp112;
tmp820 = tmp448 + tmp449;
{
fftw_real tmp119;
fftw_real tmp453;
fftw_real tmp124;
fftw_real tmp454;
<API key>;
{
fftw_real tmp116;
fftw_real tmp118;
fftw_real tmp115;
fftw_real tmp117;
<API key>;
tmp116 = c_re(inout[10 * iostride]);
tmp118 = c_im(inout[10 * iostride]);
tmp115 = c_re(W[9]);
tmp117 = c_im(W[9]);
tmp119 = (tmp115 * tmp116) + (tmp117 * tmp118);
tmp453 = (tmp115 * tmp118) - (tmp117 * tmp116);
}
{
fftw_real tmp121;
fftw_real tmp123;
fftw_real tmp120;
fftw_real tmp122;
<API key>;
tmp121 = c_re(inout[42 * iostride]);
tmp123 = c_im(inout[42 * iostride]);
tmp120 = c_re(W[41]);
tmp122 = c_im(W[41]);
tmp124 = (tmp120 * tmp121) + (tmp122 * tmp123);
tmp454 = (tmp120 * tmp123) - (tmp122 * tmp121);
}
tmp125 = tmp119 + tmp124;
tmp452 = tmp119 - tmp124;
tmp455 = tmp453 - tmp454;
tmp826 = tmp453 + tmp454;
}
{
fftw_real tmp821;
fftw_real tmp822;
fftw_real tmp824;
fftw_real tmp827;
<API key>;
tmp114 = tmp102 + tmp113;
tmp137 = tmp125 + tmp136;
tmp999 = tmp114 - tmp137;
tmp821 = tmp819 - tmp820;
tmp822 = tmp125 - tmp136;
tmp823 = tmp821 + tmp822;
tmp915 = tmp821 - tmp822;
tmp959 = tmp819 + tmp820;
tmp960 = tmp826 + tmp825;
tmp1000 = tmp959 - tmp960;
tmp824 = tmp102 - tmp113;
tmp827 = tmp825 - tmp826;
tmp828 = tmp824 + tmp827;
tmp916 = tmp824 - tmp827;
}
{
fftw_real tmp447;
fftw_real tmp450;
fftw_real tmp466;
fftw_real tmp467;
<API key>;
tmp447 = tmp96 - tmp101;
tmp450 = tmp448 - tmp449;
tmp451 = tmp447 - tmp450;
tmp678 = tmp447 + tmp450;
tmp466 = tmp464 - tmp465;
tmp467 = tmp107 - tmp112;
tmp468 = tmp466 + tmp467;
tmp675 = tmp466 - tmp467;
}
{
fftw_real tmp469;
fftw_real tmp470;
fftw_real tmp456;
fftw_real tmp461;
<API key>;
tmp469 = tmp452 + tmp455;
tmp470 = tmp460 - tmp457;
tmp471 = K707106781 * (tmp469 + tmp470);
tmp679 = K707106781 * (tmp470 - tmp469);
tmp456 = tmp452 - tmp455;
tmp461 = tmp457 + tmp460;
tmp462 = K707106781 * (tmp456 + tmp461);
tmp676 = K707106781 * (tmp456 - tmp461);
}
}
{
fftw_real tmp192;
fftw_real tmp517;
fftw_real tmp197;
fftw_real tmp518;
fftw_real tmp198;
fftw_real tmp849;
fftw_real tmp232;
fftw_real tmp486;
fftw_real tmp489;
fftw_real tmp833;
fftw_real tmp203;
fftw_real tmp477;
fftw_real tmp208;
fftw_real tmp478;
fftw_real tmp209;
fftw_real tmp850;
fftw_real tmp221;
fftw_real tmp481;
fftw_real tmp484;
fftw_real tmp834;
<API key>;
{
fftw_real tmp189;
fftw_real tmp191;
fftw_real tmp188;
fftw_real tmp190;
<API key>;
tmp189 = c_re(inout[iostride]);
tmp191 = c_im(inout[iostride]);
tmp188 = c_re(W[0]);
tmp190 = c_im(W[0]);
tmp192 = (tmp188 * tmp189) + (tmp190 * tmp191);
tmp517 = (tmp188 * tmp191) - (tmp190 * tmp189);
}
{
fftw_real tmp194;
fftw_real tmp196;
fftw_real tmp193;
fftw_real tmp195;
<API key>;
tmp194 = c_re(inout[33 * iostride]);
tmp196 = c_im(inout[33 * iostride]);
tmp193 = c_re(W[32]);
tmp195 = c_im(W[32]);
tmp197 = (tmp193 * tmp194) + (tmp195 * tmp196);
tmp518 = (tmp193 * tmp196) - (tmp195 * tmp194);
}
tmp198 = tmp192 + tmp197;
tmp849 = tmp517 + tmp518;
{
fftw_real tmp226;
fftw_real tmp487;
fftw_real tmp231;
fftw_real tmp488;
<API key>;
{
fftw_real tmp223;
fftw_real tmp225;
fftw_real tmp222;
fftw_real tmp224;
<API key>;
tmp223 = c_re(inout[57 * iostride]);
tmp225 = c_im(inout[57 * iostride]);
tmp222 = c_re(W[56]);
tmp224 = c_im(W[56]);
tmp226 = (tmp222 * tmp223) + (tmp224 * tmp225);
tmp487 = (tmp222 * tmp225) - (tmp224 * tmp223);
}
{
fftw_real tmp228;
fftw_real tmp230;
fftw_real tmp227;
fftw_real tmp229;
<API key>;
tmp228 = c_re(inout[25 * iostride]);
tmp230 = c_im(inout[25 * iostride]);
tmp227 = c_re(W[24]);
tmp229 = c_im(W[24]);
tmp231 = (tmp227 * tmp228) + (tmp229 * tmp230);
tmp488 = (tmp227 * tmp230) - (tmp229 * tmp228);
}
tmp232 = tmp226 + tmp231;
tmp486 = tmp226 - tmp231;
tmp489 = tmp487 - tmp488;
tmp833 = tmp487 + tmp488;
}
{
fftw_real tmp200;
fftw_real tmp202;
fftw_real tmp199;
fftw_real tmp201;
<API key>;
tmp200 = c_re(inout[17 * iostride]);
tmp202 = c_im(inout[17 * iostride]);
tmp199 = c_re(W[16]);
tmp201 = c_im(W[16]);
tmp203 = (tmp199 * tmp200) + (tmp201 * tmp202);
tmp477 = (tmp199 * tmp202) - (tmp201 * tmp200);
}
{
fftw_real tmp205;
fftw_real tmp207;
fftw_real tmp204;
fftw_real tmp206;
<API key>;
tmp205 = c_re(inout[49 * iostride]);
tmp207 = c_im(inout[49 * iostride]);
tmp204 = c_re(W[48]);
tmp206 = c_im(W[48]);
tmp208 = (tmp204 * tmp205) + (tmp206 * tmp207);
tmp478 = (tmp204 * tmp207) - (tmp206 * tmp205);
}
tmp209 = tmp203 + tmp208;
tmp850 = tmp477 + tmp478;
{
fftw_real tmp215;
fftw_real tmp482;
fftw_real tmp220;
fftw_real tmp483;
<API key>;
{
fftw_real tmp212;
fftw_real tmp214;
fftw_real tmp211;
fftw_real tmp213;
<API key>;
tmp212 = c_re(inout[9 * iostride]);
tmp214 = c_im(inout[9 * iostride]);
tmp211 = c_re(W[8]);
tmp213 = c_im(W[8]);
tmp215 = (tmp211 * tmp212) + (tmp213 * tmp214);
tmp482 = (tmp211 * tmp214) - (tmp213 * tmp212);
}
{
fftw_real tmp217;
fftw_real tmp219;
fftw_real tmp216;
fftw_real tmp218;
<API key>;
tmp217 = c_re(inout[41 * iostride]);
tmp219 = c_im(inout[41 * iostride]);
tmp216 = c_re(W[40]);
tmp218 = c_im(W[40]);
tmp220 = (tmp216 * tmp217) + (tmp218 * tmp219);
tmp483 = (tmp216 * tmp219) - (tmp218 * tmp217);
}
tmp221 = tmp215 + tmp220;
tmp481 = tmp215 - tmp220;
tmp484 = tmp482 - tmp483;
tmp834 = tmp482 + tmp483;
}
{
fftw_real tmp210;
fftw_real tmp233;
fftw_real tmp832;
fftw_real tmp835;
<API key>;
tmp210 = tmp198 + tmp209;
tmp233 = tmp221 + tmp232;
tmp234 = tmp210 + tmp233;
tmp1014 = tmp210 - tmp233;
tmp832 = tmp198 - tmp209;
tmp835 = tmp833 - tmp834;
tmp836 = tmp832 + tmp835;
tmp930 = tmp832 - tmp835;
}
{
fftw_real tmp965;
fftw_real tmp966;
fftw_real tmp851;
fftw_real tmp852;
<API key>;
tmp965 = tmp849 + tmp850;
tmp966 = tmp834 + tmp833;
tmp967 = tmp965 + tmp966;
tmp1011 = tmp965 - tmp966;
tmp851 = tmp849 - tmp850;
tmp852 = tmp221 - tmp232;
tmp853 = tmp851 + tmp852;
tmp927 = tmp851 - tmp852;
}
{
fftw_real tmp476;
fftw_real tmp479;
fftw_real tmp519;
fftw_real tmp520;
<API key>;
tmp476 = tmp192 - tmp197;
tmp479 = tmp477 - tmp478;
tmp480 = tmp476 - tmp479;
tmp684 = tmp476 + tmp479;
tmp519 = tmp517 - tmp518;
tmp520 = tmp203 - tmp208;
tmp521 = tmp519 + tmp520;
tmp695 = tmp519 - tmp520;
}
{
fftw_real tmp522;
fftw_real tmp523;
fftw_real tmp485;
fftw_real tmp490;
<API key>;
tmp522 = tmp481 + tmp484;
tmp523 = tmp489 - tmp486;
tmp524 = K707106781 * (tmp522 + tmp523);
tmp685 = K707106781 * (tmp523 - tmp522);
tmp485 = tmp481 - tmp484;
tmp490 = tmp486 + tmp489;
tmp491 = K707106781 * (tmp485 + tmp490);
tmp696 = K707106781 * (tmp485 - tmp490);
}
}
{
fftw_real tmp245;
fftw_real tmp509;
fftw_real tmp506;
fftw_real tmp838;
fftw_real tmp279;
fftw_real tmp496;
fftw_real tmp501;
fftw_real tmp844;
fftw_real tmp256;
fftw_real tmp507;
fftw_real tmp512;
fftw_real tmp839;
fftw_real tmp268;
fftw_real tmp498;
fftw_real tmp495;
fftw_real tmp843;
<API key>;
{
fftw_real tmp239;
fftw_real tmp504;
fftw_real tmp244;
fftw_real tmp505;
<API key>;
{
fftw_real tmp236;
fftw_real tmp238;
fftw_real tmp235;
fftw_real tmp237;
<API key>;
tmp236 = c_re(inout[5 * iostride]);
tmp238 = c_im(inout[5 * iostride]);
tmp235 = c_re(W[4]);
tmp237 = c_im(W[4]);
tmp239 = (tmp235 * tmp236) + (tmp237 * tmp238);
tmp504 = (tmp235 * tmp238) - (tmp237 * tmp236);
}
{
fftw_real tmp241;
fftw_real tmp243;
fftw_real tmp240;
fftw_real tmp242;
<API key>;
tmp241 = c_re(inout[37 * iostride]);
tmp243 = c_im(inout[37 * iostride]);
tmp240 = c_re(W[36]);
tmp242 = c_im(W[36]);
tmp244 = (tmp240 * tmp241) + (tmp242 * tmp243);
tmp505 = (tmp240 * tmp243) - (tmp242 * tmp241);
}
tmp245 = tmp239 + tmp244;
tmp509 = tmp239 - tmp244;
tmp506 = tmp504 - tmp505;
tmp838 = tmp504 + tmp505;
}
{
fftw_real tmp273;
fftw_real tmp499;
fftw_real tmp278;
fftw_real tmp500;
<API key>;
{
fftw_real tmp270;
fftw_real tmp272;
fftw_real tmp269;
fftw_real tmp271;
<API key>;
tmp270 = c_re(inout[13 * iostride]);
tmp272 = c_im(inout[13 * iostride]);
tmp269 = c_re(W[12]);
tmp271 = c_im(W[12]);
tmp273 = (tmp269 * tmp270) + (tmp271 * tmp272);
tmp499 = (tmp269 * tmp272) - (tmp271 * tmp270);
}
{
fftw_real tmp275;
fftw_real tmp277;
fftw_real tmp274;
fftw_real tmp276;
<API key>;
tmp275 = c_re(inout[45 * iostride]);
tmp277 = c_im(inout[45 * iostride]);
tmp274 = c_re(W[44]);
tmp276 = c_im(W[44]);
tmp278 = (tmp274 * tmp275) + (tmp276 * tmp277);
tmp500 = (tmp274 * tmp277) - (tmp276 * tmp275);
}
tmp279 = tmp273 + tmp278;
tmp496 = tmp273 - tmp278;
tmp501 = tmp499 - tmp500;
tmp844 = tmp499 + tmp500;
}
{
fftw_real tmp250;
fftw_real tmp510;
fftw_real tmp255;
fftw_real tmp511;
<API key>;
{
fftw_real tmp247;
fftw_real tmp249;
fftw_real tmp246;
fftw_real tmp248;
<API key>;
tmp247 = c_re(inout[21 * iostride]);
tmp249 = c_im(inout[21 * iostride]);
tmp246 = c_re(W[20]);
tmp248 = c_im(W[20]);
tmp250 = (tmp246 * tmp247) + (tmp248 * tmp249);
tmp510 = (tmp246 * tmp249) - (tmp248 * tmp247);
}
{
fftw_real tmp252;
fftw_real tmp254;
fftw_real tmp251;
fftw_real tmp253;
<API key>;
tmp252 = c_re(inout[53 * iostride]);
tmp254 = c_im(inout[53 * iostride]);
tmp251 = c_re(W[52]);
tmp253 = c_im(W[52]);
tmp255 = (tmp251 * tmp252) + (tmp253 * tmp254);
tmp511 = (tmp251 * tmp254) - (tmp253 * tmp252);
}
tmp256 = tmp250 + tmp255;
tmp507 = tmp250 - tmp255;
tmp512 = tmp510 - tmp511;
tmp839 = tmp510 + tmp511;
}
{
fftw_real tmp262;
fftw_real tmp493;
fftw_real tmp267;
fftw_real tmp494;
<API key>;
{
fftw_real tmp259;
fftw_real tmp261;
fftw_real tmp258;
fftw_real tmp260;
<API key>;
tmp259 = c_re(inout[61 * iostride]);
tmp261 = c_im(inout[61 * iostride]);
tmp258 = c_re(W[60]);
tmp260 = c_im(W[60]);
tmp262 = (tmp258 * tmp259) + (tmp260 * tmp261);
tmp493 = (tmp258 * tmp261) - (tmp260 * tmp259);
}
{
fftw_real tmp264;
fftw_real tmp266;
fftw_real tmp263;
fftw_real tmp265;
<API key>;
tmp264 = c_re(inout[29 * iostride]);
tmp266 = c_im(inout[29 * iostride]);
tmp263 = c_re(W[28]);
tmp265 = c_im(W[28]);
tmp267 = (tmp263 * tmp264) + (tmp265 * tmp266);
tmp494 = (tmp263 * tmp266) - (tmp265 * tmp264);
}
tmp268 = tmp262 + tmp267;
tmp498 = tmp262 - tmp267;
tmp495 = tmp493 - tmp494;
tmp843 = tmp493 + tmp494;
}
{
fftw_real tmp257;
fftw_real tmp280;
fftw_real tmp837;
fftw_real tmp840;
<API key>;
tmp257 = tmp245 + tmp256;
tmp280 = tmp268 + tmp279;
tmp281 = tmp257 + tmp280;
tmp1012 = tmp257 - tmp280;
tmp837 = tmp245 - tmp256;
tmp840 = tmp838 - tmp839;
tmp841 = tmp837 - tmp840;
tmp854 = tmp837 + tmp840;
}
{
fftw_real tmp968;
fftw_real tmp969;
fftw_real tmp842;
fftw_real tmp845;
<API key>;
tmp968 = tmp838 + tmp839;
tmp969 = tmp843 + tmp844;
tmp970 = tmp968 + tmp969;
tmp1015 = tmp969 - tmp968;
tmp842 = tmp268 - tmp279;
tmp845 = tmp843 - tmp844;
tmp846 = tmp842 + tmp845;
tmp855 = tmp845 - tmp842;
}
{
fftw_real tmp497;
fftw_real tmp502;
fftw_real tmp687;
fftw_real tmp688;
<API key>;
tmp497 = tmp495 + tmp496;
tmp502 = tmp498 - tmp501;
tmp503 = (K923879532 * tmp497) - (K382683432 * tmp502);
tmp527 = (K382683432 * tmp497) + (K923879532 * tmp502);
tmp687 = tmp495 - tmp496;
tmp688 = tmp498 + tmp501;
tmp689 = (K382683432 * tmp687) - (K923879532 * tmp688);
tmp699 = (K923879532 * tmp687) + (K382683432 * tmp688);
}
{
fftw_real tmp508;
fftw_real tmp513;
fftw_real tmp690;
fftw_real tmp691;
<API key>;
tmp508 = tmp506 + tmp507;
tmp513 = tmp509 - tmp512;
tmp514 = (K923879532 * tmp508) + (K382683432 * tmp513);
tmp526 = (K923879532 * tmp513) - (K382683432 * tmp508);
tmp690 = tmp506 - tmp507;
tmp691 = tmp509 + tmp512;
tmp692 = (K382683432 * tmp690) + (K923879532 * tmp691);
tmp698 = (K382683432 * tmp691) - (K923879532 * tmp690);
}
}
{
fftw_real tmp91;
fftw_real tmp955;
fftw_real tmp990;
fftw_real tmp1039;
fftw_real tmp1049;
fftw_real tmp1055;
fftw_real tmp186;
fftw_real tmp1054;
fftw_real tmp972;
fftw_real tmp985;
fftw_real tmp378;
fftw_real tmp1051;
fftw_real tmp981;
fftw_real tmp984;
fftw_real tmp962;
fftw_real tmp1040;
<API key>;
{
fftw_real tmp43;
fftw_real tmp90;
fftw_real tmp988;
fftw_real tmp989;
<API key>;
tmp43 = tmp19 + tmp42;
tmp90 = tmp66 + tmp89;
tmp91 = tmp43 + tmp90;
tmp955 = tmp43 - tmp90;
tmp988 = tmp976 + tmp979;
tmp989 = tmp967 + tmp970;
tmp990 = tmp988 - tmp989;
tmp1039 = tmp989 + tmp988;
}
{
fftw_real tmp1041;
fftw_real tmp1048;
fftw_real tmp138;
fftw_real tmp185;
<API key>;
tmp1041 = tmp993 + tmp992;
tmp1048 = tmp1042 + tmp1047;
tmp1049 = tmp1041 + tmp1048;
tmp1055 = tmp1048 - tmp1041;
tmp138 = tmp114 + tmp137;
tmp185 = tmp161 + tmp184;
tmp186 = tmp138 + tmp185;
tmp1054 = tmp138 - tmp185;
}
{
fftw_real tmp964;
fftw_real tmp971;
fftw_real tmp282;
fftw_real tmp377;
<API key>;
tmp964 = tmp234 - tmp281;
tmp971 = tmp967 - tmp970;
tmp972 = tmp964 - tmp971;
tmp985 = tmp964 + tmp971;
tmp282 = tmp234 + tmp281;
tmp377 = tmp329 + tmp376;
tmp378 = tmp282 + tmp377;
tmp1051 = tmp282 - tmp377;
}
{
fftw_real tmp973;
fftw_real tmp980;
fftw_real tmp958;
fftw_real tmp961;
<API key>;
tmp973 = tmp329 - tmp376;
tmp980 = tmp976 - tmp979;
tmp981 = tmp973 + tmp980;
tmp984 = tmp980 - tmp973;
tmp958 = tmp956 + tmp957;
tmp961 = tmp959 + tmp960;
tmp962 = tmp958 - tmp961;
tmp1040 = tmp961 + tmp958;
}
{
fftw_real tmp187;
fftw_real tmp987;
fftw_real tmp1050;
fftw_real tmp1052;
<API key>;
tmp187 = tmp91 + tmp186;
c_re(inout[32 * iostride]) = tmp187 - tmp378;
c_re(inout[0]) = tmp187 + tmp378;
tmp987 = tmp91 - tmp186;
c_re(inout[48 * iostride]) = tmp987 - tmp990;
c_re(inout[16 * iostride]) = tmp987 + tmp990;
{
fftw_real tmp963;
fftw_real tmp982;
fftw_real tmp1057;
fftw_real tmp1058;
<API key>;
tmp963 = tmp955 + tmp962;
tmp982 = K707106781 * (tmp972 + tmp981);
c_re(inout[40 * iostride]) = tmp963 - tmp982;
c_re(inout[8 * iostride]) = tmp963 + tmp982;
tmp1057 = K707106781 * (tmp972 - tmp981);
tmp1058 = tmp1055 - tmp1054;
c_im(inout[24 * iostride]) = tmp1057 + tmp1058;
c_im(inout[56 * iostride]) = tmp1058 - tmp1057;
}
tmp1050 = tmp1040 + tmp1049;
c_im(inout[0]) = tmp1039 + tmp1050;
c_im(inout[32 * iostride]) = tmp1050 - tmp1039;
tmp1052 = tmp1049 - tmp1040;
c_im(inout[16 * iostride]) = tmp1051 + tmp1052;
c_im(inout[48 * iostride]) = tmp1052 - tmp1051;
{
fftw_real tmp1053;
fftw_real tmp1056;
fftw_real tmp983;
fftw_real tmp986;
<API key>;
tmp1053 = K707106781 * (tmp985 + tmp984);
tmp1056 = tmp1054 + tmp1055;
c_im(inout[8 * iostride]) = tmp1053 + tmp1056;
c_im(inout[40 * iostride]) = tmp1056 - tmp1053;
tmp983 = tmp955 - tmp962;
tmp986 = K707106781 * (tmp984 - tmp985);
c_re(inout[56 * iostride]) = tmp983 - tmp986;
c_re(inout[24 * iostride]) = tmp983 + tmp986;
}
}
}
{
fftw_real tmp995;
fftw_real tmp1023;
fftw_real tmp1026;
fftw_real tmp1068;
fftw_real tmp1002;
fftw_real tmp1060;
fftw_real tmp1063;
fftw_real tmp1069;
fftw_real tmp1010;
fftw_real tmp1021;
fftw_real tmp1030;
fftw_real tmp1037;
fftw_real tmp1017;
fftw_real tmp1020;
fftw_real tmp1033;
fftw_real tmp1036;
<API key>;
{
fftw_real tmp991;
fftw_real tmp994;
fftw_real tmp1024;
fftw_real tmp1025;
<API key>;
tmp991 = tmp19 - tmp42;
tmp994 = tmp992 - tmp993;
tmp995 = tmp991 - tmp994;
tmp1023 = tmp991 + tmp994;
tmp1024 = tmp999 - tmp1000;
tmp1025 = tmp997 + tmp996;
tmp1026 = K707106781 * (tmp1024 + tmp1025);
tmp1068 = K707106781 * (tmp1024 - tmp1025);
}
{
fftw_real tmp998;
fftw_real tmp1001;
fftw_real tmp1061;
fftw_real tmp1062;
<API key>;
tmp998 = tmp996 - tmp997;
tmp1001 = tmp999 + tmp1000;
tmp1002 = K707106781 * (tmp998 - tmp1001);
tmp1060 = K707106781 * (tmp1001 + tmp998);
tmp1061 = tmp66 - tmp89;
tmp1062 = tmp1047 - tmp1042;
tmp1063 = tmp1061 + tmp1062;
tmp1069 = tmp1062 - tmp1061;
}
{
fftw_real tmp1006;
fftw_real tmp1009;
fftw_real tmp1028;
fftw_real tmp1029;
<API key>;
tmp1006 = tmp1004 - tmp1005;
tmp1009 = tmp1007 - tmp1008;
tmp1010 =
(K382683432 * tmp1006) - (K923879532 * tmp1009);
tmp1021 =
(K923879532 * tmp1006) + (K382683432 * tmp1009);
tmp1028 = tmp1004 + tmp1005;
tmp1029 = tmp1007 + tmp1008;
tmp1030 =
(K923879532 * tmp1028) - (K382683432 * tmp1029);
tmp1037 =
(K382683432 * tmp1028) + (K923879532 * tmp1029);
}
{
fftw_real tmp1013;
fftw_real tmp1016;
fftw_real tmp1031;
fftw_real tmp1032;
<API key>;
tmp1013 = tmp1011 - tmp1012;
tmp1016 = tmp1014 - tmp1015;
tmp1017 =
(K382683432 * tmp1013) + (K923879532 * tmp1016);
tmp1020 =
(K382683432 * tmp1016) - (K923879532 * tmp1013);
tmp1031 = tmp1011 + tmp1012;
tmp1032 = tmp1014 + tmp1015;
tmp1033 =
(K923879532 * tmp1031) + (K382683432 * tmp1032);
tmp1036 =
(K923879532 * tmp1032) - (K382683432 * tmp1031);
}
{
fftw_real tmp1003;
fftw_real tmp1018;
fftw_real tmp1019;
fftw_real tmp1022;
<API key>;
tmp1003 = tmp995 - tmp1002;
tmp1018 = tmp1010 - tmp1017;
c_re(inout[60 * iostride]) = tmp1003 - tmp1018;
c_re(inout[28 * iostride]) = tmp1003 + tmp1018;
tmp1019 = tmp995 + tmp1002;
tmp1022 = tmp1020 + tmp1021;
c_re(inout[44 * iostride]) = tmp1019 - tmp1022;
c_re(inout[12 * iostride]) = tmp1019 + tmp1022;
}
{
fftw_real tmp1071;
fftw_real tmp1072;
fftw_real tmp1067;
fftw_real tmp1070;
<API key>;
tmp1071 = tmp1020 - tmp1021;
tmp1072 = tmp1069 - tmp1068;
c_im(inout[28 * iostride]) = tmp1071 + tmp1072;
c_im(inout[60 * iostride]) = tmp1072 - tmp1071;
tmp1067 = tmp1017 + tmp1010;
tmp1070 = tmp1068 + tmp1069;
c_im(inout[12 * iostride]) = tmp1067 + tmp1070;
c_im(inout[44 * iostride]) = tmp1070 - tmp1067;
}
{
fftw_real tmp1027;
fftw_real tmp1034;
fftw_real tmp1035;
fftw_real tmp1038;
<API key>;
tmp1027 = tmp1023 - tmp1026;
tmp1034 = tmp1030 - tmp1033;
c_re(inout[52 * iostride]) = tmp1027 - tmp1034;
c_re(inout[20 * iostride]) = tmp1027 + tmp1034;
tmp1035 = tmp1023 + tmp1026;
tmp1038 = tmp1036 + tmp1037;
c_re(inout[36 * iostride]) = tmp1035 - tmp1038;
c_re(inout[4 * iostride]) = tmp1035 + tmp1038;
}
{
fftw_real tmp1065;
fftw_real tmp1066;
fftw_real tmp1059;
fftw_real tmp1064;
<API key>;
tmp1065 = tmp1036 - tmp1037;
tmp1066 = tmp1063 - tmp1060;
c_im(inout[20 * iostride]) = tmp1065 + tmp1066;
c_im(inout[52 * iostride]) = tmp1066 - tmp1065;
tmp1059 = tmp1033 + tmp1030;
tmp1064 = tmp1060 + tmp1063;
c_im(inout[4 * iostride]) = tmp1059 + tmp1064;
c_im(inout[36 * iostride]) = tmp1064 - tmp1059;
}
}
{
fftw_real tmp419;
fftw_real tmp591;
fftw_real tmp1125;
fftw_real tmp1131;
fftw_real tmp474;
fftw_real tmp1122;
fftw_real tmp594;
fftw_real tmp1130;
fftw_real tmp530;
fftw_real tmp589;
fftw_real tmp598;
fftw_real tmp605;
fftw_real tmp585;
fftw_real tmp588;
fftw_real tmp601;
fftw_real tmp604;
<API key>;
{
fftw_real tmp395;
fftw_real tmp418;
fftw_real tmp1123;
fftw_real tmp1124;
<API key>;
tmp395 = tmp383 - tmp394;
tmp418 = tmp406 - tmp417;
tmp419 = tmp395 - tmp418;
tmp591 = tmp395 + tmp418;
tmp1123 = tmp608 - tmp609;
tmp1124 = tmp1109 - tmp1106;
tmp1125 = tmp1123 + tmp1124;
tmp1131 = tmp1124 - tmp1123;
}
{
fftw_real tmp446;
fftw_real tmp593;
fftw_real tmp473;
fftw_real tmp592;
<API key>;
{
fftw_real tmp436;
fftw_real tmp445;
fftw_real tmp463;
fftw_real tmp472;
<API key>;
tmp436 = tmp424 - tmp435;
tmp445 = tmp441 - tmp444;
tmp446 =
(K555570233 * tmp436) - (K831469612 * tmp445);
tmp593 =
(K555570233 * tmp445) + (K831469612 * tmp436);
tmp463 = tmp451 - tmp462;
tmp472 = tmp468 - tmp471;
tmp473 =
(K831469612 * tmp463) + (K555570233 * tmp472);
tmp592 =
(K555570233 * tmp463) - (K831469612 * tmp472);
}
tmp474 = tmp446 - tmp473;
tmp1122 = tmp473 + tmp446;
tmp594 = tmp592 + tmp593;
tmp1130 = tmp592 - tmp593;
}
{
fftw_real tmp516;
fftw_real tmp596;
fftw_real tmp529;
fftw_real tmp597;
<API key>;
{
fftw_real tmp492;
fftw_real tmp515;
fftw_real tmp525;
fftw_real tmp528;
<API key>;
tmp492 = tmp480 - tmp491;
tmp515 = tmp503 - tmp514;
tmp516 = tmp492 - tmp515;
tmp596 = tmp492 + tmp515;
tmp525 = tmp521 - tmp524;
tmp528 = tmp526 - tmp527;
tmp529 = tmp525 - tmp528;
tmp597 = tmp525 + tmp528;
}
tmp530 = (K290284677 * tmp516) - (K956940335 * tmp529);
tmp589 = (K956940335 * tmp516) + (K290284677 * tmp529);
tmp598 = (K881921264 * tmp596) - (K471396736 * tmp597);
tmp605 = (K471396736 * tmp596) + (K881921264 * tmp597);
}
{
fftw_real tmp571;
fftw_real tmp599;
fftw_real tmp584;
fftw_real tmp600;
<API key>;
{
fftw_real tmp547;
fftw_real tmp570;
fftw_real tmp580;
fftw_real tmp583;
<API key>;
tmp547 = tmp535 - tmp546;
tmp570 = tmp558 - tmp569;
tmp571 = tmp547 - tmp570;
tmp599 = tmp547 + tmp570;
tmp580 = tmp576 - tmp579;
tmp583 = tmp581 - tmp582;
tmp584 = tmp580 - tmp583;
tmp600 = tmp580 + tmp583;
}
tmp585 = (K290284677 * tmp571) + (K956940335 * tmp584);
tmp588 = (K290284677 * tmp584) - (K956940335 * tmp571);
tmp601 = (K881921264 * tmp599) + (K471396736 * tmp600);
tmp604 = (K881921264 * tmp600) - (K471396736 * tmp599);
}
{
fftw_real tmp475;
fftw_real tmp586;
fftw_real tmp587;
fftw_real tmp590;
<API key>;
tmp475 = tmp419 + tmp474;
tmp586 = tmp530 + tmp585;
c_re(inout[45 * iostride]) = tmp475 - tmp586;
c_re(inout[13 * iostride]) = tmp475 + tmp586;
tmp587 = tmp419 - tmp474;
tmp590 = tmp588 - tmp589;
c_re(inout[61 * iostride]) = tmp587 - tmp590;
c_re(inout[29 * iostride]) = tmp587 + tmp590;
}
{
fftw_real tmp1129;
fftw_real tmp1132;
fftw_real tmp1133;
fftw_real tmp1134;
<API key>;
tmp1129 = tmp589 + tmp588;
tmp1132 = tmp1130 + tmp1131;
c_im(inout[13 * iostride]) = tmp1129 + tmp1132;
c_im(inout[45 * iostride]) = tmp1132 - tmp1129;
tmp1133 = tmp530 - tmp585;
tmp1134 = tmp1131 - tmp1130;
c_im(inout[29 * iostride]) = tmp1133 + tmp1134;
c_im(inout[61 * iostride]) = tmp1134 - tmp1133;
}
{
fftw_real tmp595;
fftw_real tmp602;
fftw_real tmp603;
fftw_real tmp606;
<API key>;
tmp595 = tmp591 + tmp594;
tmp602 = tmp598 + tmp601;
c_re(inout[37 * iostride]) = tmp595 - tmp602;
c_re(inout[5 * iostride]) = tmp595 + tmp602;
tmp603 = tmp591 - tmp594;
tmp606 = tmp604 - tmp605;
c_re(inout[53 * iostride]) = tmp603 - tmp606;
c_re(inout[21 * iostride]) = tmp603 + tmp606;
}
{
fftw_real tmp1121;
fftw_real tmp1126;
fftw_real tmp1127;
fftw_real tmp1128;
<API key>;
tmp1121 = tmp605 + tmp604;
tmp1126 = tmp1122 + tmp1125;
c_im(inout[5 * iostride]) = tmp1121 + tmp1126;
c_im(inout[37 * iostride]) = tmp1126 - tmp1121;
tmp1127 = tmp598 - tmp601;
tmp1128 = tmp1125 - tmp1122;
c_im(inout[21 * iostride]) = tmp1127 + tmp1128;
c_im(inout[53 * iostride]) = tmp1128 - tmp1127;
}
}
{
fftw_real tmp611;
fftw_real tmp639;
fftw_real tmp1111;
fftw_real tmp1117;
fftw_real tmp618;
fftw_real tmp1104;
fftw_real tmp642;
fftw_real tmp1116;
fftw_real tmp626;
fftw_real tmp637;
fftw_real tmp646;
fftw_real tmp653;
fftw_real tmp633;
fftw_real tmp636;
fftw_real tmp649;
fftw_real tmp652;
<API key>;
{
fftw_real tmp607;
fftw_real tmp610;
fftw_real tmp1105;
fftw_real tmp1110;
<API key>;
tmp607 = tmp383 + tmp394;
tmp610 = tmp608 + tmp609;
tmp611 = tmp607 - tmp610;
tmp639 = tmp607 + tmp610;
tmp1105 = tmp417 + tmp406;
tmp1110 = tmp1106 + tmp1109;
tmp1111 = tmp1105 + tmp1110;
tmp1117 = tmp1110 - tmp1105;
}
{
fftw_real tmp614;
fftw_real tmp641;
fftw_real tmp617;
fftw_real tmp640;
<API key>;
{
fftw_real tmp612;
fftw_real tmp613;
fftw_real tmp615;
fftw_real tmp616;
<API key>;
tmp612 = tmp424 + tmp435;
tmp613 = tmp441 + tmp444;
tmp614 =
(K980785280 * tmp612) - (K195090322 * tmp613);
tmp641 =
(K980785280 * tmp613) + (K195090322 * tmp612);
tmp615 = tmp451 + tmp462;
tmp616 = tmp468 + tmp471;
tmp617 =
(K195090322 * tmp615) + (K980785280 * tmp616);
tmp640 =
(K980785280 * tmp615) - (K195090322 * tmp616);
}
tmp618 = tmp614 - tmp617;
tmp1104 = tmp617 + tmp614;
tmp642 = tmp640 + tmp641;
tmp1116 = tmp640 - tmp641;
}
{
fftw_real tmp622;
fftw_real tmp644;
fftw_real tmp625;
fftw_real tmp645;
<API key>;
{
fftw_real tmp620;
fftw_real tmp621;
fftw_real tmp623;
fftw_real tmp624;
<API key>;
tmp620 = tmp576 + tmp579;
tmp621 = tmp569 + tmp558;
tmp622 = tmp620 - tmp621;
tmp644 = tmp620 + tmp621;
tmp623 = tmp535 + tmp546;
tmp624 = tmp581 + tmp582;
tmp625 = tmp623 - tmp624;
tmp645 = tmp623 + tmp624;
}
tmp626 = (K634393284 * tmp622) - (K773010453 * tmp625);
tmp637 = (K773010453 * tmp622) + (K634393284 * tmp625);
tmp646 = (K995184726 * tmp644) - (K098017140 * tmp645);
tmp653 = (K098017140 * tmp644) + (K995184726 * tmp645);
}
{
fftw_real tmp629;
fftw_real tmp647;
fftw_real tmp632;
fftw_real tmp648;
<API key>;
{
fftw_real tmp627;
fftw_real tmp628;
fftw_real tmp630;
fftw_real tmp631;
<API key>;
tmp627 = tmp521 + tmp524;
tmp628 = tmp514 + tmp503;
tmp629 = tmp627 - tmp628;
tmp647 = tmp627 + tmp628;
tmp630 = tmp480 + tmp491;
tmp631 = tmp526 + tmp527;
tmp632 = tmp630 - tmp631;
tmp648 = tmp630 + tmp631;
}
tmp633 = (K634393284 * tmp629) + (K773010453 * tmp632);
tmp636 = (K634393284 * tmp632) - (K773010453 * tmp629);
tmp649 = (K995184726 * tmp647) + (K098017140 * tmp648);
tmp652 = (K995184726 * tmp648) - (K098017140 * tmp647);
}
{
fftw_real tmp619;
fftw_real tmp634;
fftw_real tmp635;
fftw_real tmp638;
<API key>;
tmp619 = tmp611 - tmp618;
tmp634 = tmp626 - tmp633;
c_re(inout[57 * iostride]) = tmp619 - tmp634;
c_re(inout[25 * iostride]) = tmp619 + tmp634;
tmp635 = tmp611 + tmp618;
tmp638 = tmp636 + tmp637;
c_re(inout[41 * iostride]) = tmp635 - tmp638;
c_re(inout[9 * iostride]) = tmp635 + tmp638;
}
{
fftw_real tmp1119;
fftw_real tmp1120;
fftw_real tmp1115;
fftw_real tmp1118;
<API key>;
tmp1119 = tmp636 - tmp637;
tmp1120 = tmp1117 - tmp1116;
c_im(inout[25 * iostride]) = tmp1119 + tmp1120;
c_im(inout[57 * iostride]) = tmp1120 - tmp1119;
tmp1115 = tmp633 + tmp626;
tmp1118 = tmp1116 + tmp1117;
c_im(inout[9 * iostride]) = tmp1115 + tmp1118;
c_im(inout[41 * iostride]) = tmp1118 - tmp1115;
}
{
fftw_real tmp643;
fftw_real tmp650;
fftw_real tmp651;
fftw_real tmp654;
<API key>;
tmp643 = tmp639 - tmp642;
tmp650 = tmp646 - tmp649;
c_re(inout[49 * iostride]) = tmp643 - tmp650;
c_re(inout[17 * iostride]) = tmp643 + tmp650;
tmp651 = tmp639 + tmp642;
tmp654 = tmp652 + tmp653;
c_re(inout[33 * iostride]) = tmp651 - tmp654;
c_re(inout[iostride]) = tmp651 + tmp654;
}
{
fftw_real tmp1113;
fftw_real tmp1114;
fftw_real tmp1103;
fftw_real tmp1112;
<API key>;
tmp1113 = tmp652 - tmp653;
tmp1114 = tmp1111 - tmp1104;
c_im(inout[17 * iostride]) = tmp1113 + tmp1114;
c_im(inout[49 * iostride]) = tmp1114 - tmp1113;
tmp1103 = tmp649 + tmp646;
tmp1112 = tmp1104 + tmp1111;
c_im(inout[iostride]) = tmp1103 + tmp1112;
c_im(inout[33 * iostride]) = tmp1112 - tmp1103;
}
}
{
fftw_real tmp807;
fftw_real tmp891;
fftw_real tmp830;
fftw_real tmp1074;
fftw_real tmp1079;
fftw_real tmp1085;
fftw_real tmp894;
fftw_real tmp1084;
fftw_real tmp885;
fftw_real tmp888;
fftw_real tmp901;
fftw_real tmp904;
fftw_real tmp858;
fftw_real tmp889;
fftw_real tmp898;
fftw_real tmp905;
<API key>;
{
fftw_real tmp795;
fftw_real tmp806;
fftw_real tmp892;
fftw_real tmp893;
<API key>;
tmp795 = tmp791 + tmp794;
tmp806 = K707106781 * (tmp800 + tmp805);
tmp807 = tmp795 - tmp806;
tmp891 = tmp795 + tmp806;
{
fftw_real tmp818;
fftw_real tmp829;
fftw_real tmp1075;
fftw_real tmp1078;
<API key>;
tmp818 =
(K923879532 * tmp812) - (K382683432 * tmp817);
tmp829 =
(K923879532 * tmp823) + (K382683432 * tmp828);
tmp830 = tmp818 - tmp829;
tmp1074 = tmp829 + tmp818;
tmp1075 = K707106781 * (tmp909 + tmp908);
tmp1078 = tmp1076 + tmp1077;
tmp1079 = tmp1075 + tmp1078;
tmp1085 = tmp1078 - tmp1075;
}
tmp892 = (K923879532 * tmp828) - (K382683432 * tmp823);
tmp893 = (K382683432 * tmp812) + (K923879532 * tmp817);
tmp894 = tmp892 + tmp893;
tmp1084 = tmp892 - tmp893;
{
fftw_real tmp875;
fftw_real tmp899;
fftw_real tmp884;
fftw_real tmp900;
fftw_real tmp874;
fftw_real tmp883;
<API key>;
tmp874 = K707106781 * (tmp868 + tmp873);
tmp875 = tmp863 - tmp874;
tmp899 = tmp863 + tmp874;
tmp883 = K707106781 * (tmp881 + tmp882);
tmp884 = tmp880 - tmp883;
tmp900 = tmp880 + tmp883;
tmp885 =
(K555570233 * tmp875) + (K831469612 * tmp884);
tmp888 =
(K555570233 * tmp884) - (K831469612 * tmp875);
tmp901 =
(K980785280 * tmp899) + (K195090322 * tmp900);
tmp904 =
(K980785280 * tmp900) - (K195090322 * tmp899);
}
{
fftw_real tmp848;
fftw_real tmp896;
fftw_real tmp857;
fftw_real tmp897;
fftw_real tmp847;
fftw_real tmp856;
<API key>;
tmp847 = K707106781 * (tmp841 + tmp846);
tmp848 = tmp836 - tmp847;
tmp896 = tmp836 + tmp847;
tmp856 = K707106781 * (tmp854 + tmp855);
tmp857 = tmp853 - tmp856;
tmp897 = tmp853 + tmp856;
tmp858 =
(K555570233 * tmp848) - (K831469612 * tmp857);
tmp889 =
(K831469612 * tmp848) + (K555570233 * tmp857);
tmp898 =
(K980785280 * tmp896) - (K195090322 * tmp897);
tmp905 =
(K195090322 * tmp896) + (K980785280 * tmp897);
}
}
{
fftw_real tmp831;
fftw_real tmp886;
fftw_real tmp887;
fftw_real tmp890;
<API key>;
tmp831 = tmp807 + tmp830;
tmp886 = tmp858 + tmp885;
c_re(inout[42 * iostride]) = tmp831 - tmp886;
c_re(inout[10 * iostride]) = tmp831 + tmp886;
tmp887 = tmp807 - tmp830;
tmp890 = tmp888 - tmp889;
c_re(inout[58 * iostride]) = tmp887 - tmp890;
c_re(inout[26 * iostride]) = tmp887 + tmp890;
}
{
fftw_real tmp1083;
fftw_real tmp1086;
fftw_real tmp1087;
fftw_real tmp1088;
<API key>;
tmp1083 = tmp889 + tmp888;
tmp1086 = tmp1084 + tmp1085;
c_im(inout[10 * iostride]) = tmp1083 + tmp1086;
c_im(inout[42 * iostride]) = tmp1086 - tmp1083;
tmp1087 = tmp858 - tmp885;
tmp1088 = tmp1085 - tmp1084;
c_im(inout[26 * iostride]) = tmp1087 + tmp1088;
c_im(inout[58 * iostride]) = tmp1088 - tmp1087;
}
{
fftw_real tmp895;
fftw_real tmp902;
fftw_real tmp903;
fftw_real tmp906;
<API key>;
tmp895 = tmp891 + tmp894;
tmp902 = tmp898 + tmp901;
c_re(inout[34 * iostride]) = tmp895 - tmp902;
c_re(inout[2 * iostride]) = tmp895 + tmp902;
tmp903 = tmp891 - tmp894;
tmp906 = tmp904 - tmp905;
c_re(inout[50 * iostride]) = tmp903 - tmp906;
c_re(inout[18 * iostride]) = tmp903 + tmp906;
}
{
fftw_real tmp1073;
fftw_real tmp1080;
fftw_real tmp1081;
fftw_real tmp1082;
<API key>;
tmp1073 = tmp905 + tmp904;
tmp1080 = tmp1074 + tmp1079;
c_im(inout[2 * iostride]) = tmp1073 + tmp1080;
c_im(inout[34 * iostride]) = tmp1080 - tmp1073;
tmp1081 = tmp898 - tmp901;
tmp1082 = tmp1079 - tmp1074;
c_im(inout[18 * iostride]) = tmp1081 + tmp1082;
c_im(inout[50 * iostride]) = tmp1082 - tmp1081;
}
}
{
fftw_real tmp911;
fftw_real tmp939;
fftw_real tmp918;
fftw_real tmp1090;
fftw_real tmp1093;
fftw_real tmp1099;
fftw_real tmp942;
fftw_real tmp1098;
fftw_real tmp933;
fftw_real tmp936;
fftw_real tmp949;
fftw_real tmp952;
fftw_real tmp926;
fftw_real tmp937;
fftw_real tmp946;
fftw_real tmp953;
<API key>;
{
fftw_real tmp907;
fftw_real tmp910;
fftw_real tmp940;
fftw_real tmp941;
<API key>;
tmp907 = tmp791 - tmp794;
tmp910 = K707106781 * (tmp908 - tmp909);
tmp911 = tmp907 - tmp910;
tmp939 = tmp907 + tmp910;
{
fftw_real tmp914;
fftw_real tmp917;
fftw_real tmp1091;
fftw_real tmp1092;
<API key>;
tmp914 =
(K382683432 * tmp912) - (K923879532 * tmp913);
tmp917 =
(K382683432 * tmp915) + (K923879532 * tmp916);
tmp918 = tmp914 - tmp917;
tmp1090 = tmp917 + tmp914;
tmp1091 = K707106781 * (tmp800 - tmp805);
tmp1092 = tmp1077 - tmp1076;
tmp1093 = tmp1091 + tmp1092;
tmp1099 = tmp1092 - tmp1091;
}
tmp940 = (K382683432 * tmp916) - (K923879532 * tmp915);
tmp941 = (K923879532 * tmp912) + (K382683432 * tmp913);
tmp942 = tmp940 + tmp941;
tmp1098 = tmp940 - tmp941;
{
fftw_real tmp929;
fftw_real tmp947;
fftw_real tmp932;
fftw_real tmp948;
fftw_real tmp928;
fftw_real tmp931;
<API key>;
tmp928 = K707106781 * (tmp841 - tmp846);
tmp929 = tmp927 - tmp928;
tmp947 = tmp927 + tmp928;
tmp931 = K707106781 * (tmp855 - tmp854);
tmp932 = tmp930 - tmp931;
tmp948 = tmp930 + tmp931;
tmp933 =
(K195090322 * tmp929) + (K980785280 * tmp932);
tmp936 =
(K195090322 * tmp932) - (K980785280 * tmp929);
tmp949 =
(K831469612 * tmp947) + (K555570233 * tmp948);
tmp952 =
(K831469612 * tmp948) - (K555570233 * tmp947);
}
{
fftw_real tmp922;
fftw_real tmp944;
fftw_real tmp925;
fftw_real tmp945;
fftw_real tmp921;
fftw_real tmp924;
<API key>;
tmp921 = K707106781 * (tmp868 - tmp873);
tmp922 = tmp920 - tmp921;
tmp944 = tmp920 + tmp921;
tmp924 = K707106781 * (tmp882 - tmp881);
tmp925 = tmp923 - tmp924;
tmp945 = tmp923 + tmp924;
tmp926 =
(K195090322 * tmp922) - (K980785280 * tmp925);
tmp937 =
(K980785280 * tmp922) + (K195090322 * tmp925);
tmp946 =
(K831469612 * tmp944) - (K555570233 * tmp945);
tmp953 =
(K555570233 * tmp944) + (K831469612 * tmp945);
}
}
{
fftw_real tmp919;
fftw_real tmp934;
fftw_real tmp935;
fftw_real tmp938;
<API key>;
tmp919 = tmp911 - tmp918;
tmp934 = tmp926 - tmp933;
c_re(inout[62 * iostride]) = tmp919 - tmp934;
c_re(inout[30 * iostride]) = tmp919 + tmp934;
tmp935 = tmp911 + tmp918;
tmp938 = tmp936 + tmp937;
c_re(inout[46 * iostride]) = tmp935 - tmp938;
c_re(inout[14 * iostride]) = tmp935 + tmp938;
}
{
fftw_real tmp1101;
fftw_real tmp1102;
fftw_real tmp1097;
fftw_real tmp1100;
<API key>;
tmp1101 = tmp936 - tmp937;
tmp1102 = tmp1099 - tmp1098;
c_im(inout[30 * iostride]) = tmp1101 + tmp1102;
c_im(inout[62 * iostride]) = tmp1102 - tmp1101;
tmp1097 = tmp933 + tmp926;
tmp1100 = tmp1098 + tmp1099;
c_im(inout[14 * iostride]) = tmp1097 + tmp1100;
c_im(inout[46 * iostride]) = tmp1100 - tmp1097;
}
{
fftw_real tmp943;
fftw_real tmp950;
fftw_real tmp951;
fftw_real tmp954;
<API key>;
tmp943 = tmp939 - tmp942;
tmp950 = tmp946 - tmp949;
c_re(inout[54 * iostride]) = tmp943 - tmp950;
c_re(inout[22 * iostride]) = tmp943 + tmp950;
tmp951 = tmp939 + tmp942;
tmp954 = tmp952 + tmp953;
c_re(inout[38 * iostride]) = tmp951 - tmp954;
c_re(inout[6 * iostride]) = tmp951 + tmp954;
}
{
fftw_real tmp1095;
fftw_real tmp1096;
fftw_real tmp1089;
fftw_real tmp1094;
<API key>;
tmp1095 = tmp952 - tmp953;
tmp1096 = tmp1093 - tmp1090;
c_im(inout[22 * iostride]) = tmp1095 + tmp1096;
c_im(inout[54 * iostride]) = tmp1096 - tmp1095;
tmp1089 = tmp949 + tmp946;
tmp1094 = tmp1090 + tmp1093;
c_im(inout[6 * iostride]) = tmp1089 + tmp1094;
c_im(inout[38 * iostride]) = tmp1094 - tmp1089;
}
}
{
fftw_real tmp667;
fftw_real tmp727;
fftw_real tmp1155;
fftw_real tmp1161;
fftw_real tmp682;
fftw_real tmp1152;
fftw_real tmp730;
fftw_real tmp1160;
fftw_real tmp702;
fftw_real tmp725;
fftw_real tmp734;
fftw_real tmp741;
fftw_real tmp721;
fftw_real tmp724;
fftw_real tmp737;
fftw_real tmp740;
<API key>;
{
fftw_real tmp659;
fftw_real tmp666;
fftw_real tmp1153;
fftw_real tmp1154;
<API key>;
tmp659 = tmp655 - tmp658;
tmp666 = tmp662 - tmp665;
tmp667 = tmp659 - tmp666;
tmp727 = tmp659 + tmp666;
tmp1153 = tmp744 - tmp745;
tmp1154 = tmp1139 - tmp1138;
tmp1155 = tmp1153 + tmp1154;
tmp1161 = tmp1154 - tmp1153;
}
{
fftw_real tmp674;
fftw_real tmp729;
fftw_real tmp681;
fftw_real tmp728;
<API key>;
{
fftw_real tmp670;
fftw_real tmp673;
fftw_real tmp677;
fftw_real tmp680;
<API key>;
tmp670 = tmp668 - tmp669;
tmp673 = tmp671 - tmp672;
tmp674 =
(K195090322 * tmp670) - (K980785280 * tmp673);
tmp729 =
(K980785280 * tmp670) + (K195090322 * tmp673);
tmp677 = tmp675 - tmp676;
tmp680 = tmp678 - tmp679;
tmp681 =
(K195090322 * tmp677) + (K980785280 * tmp680);
tmp728 =
(K195090322 * tmp680) - (K980785280 * tmp677);
}
tmp682 = tmp674 - tmp681;
tmp1152 = tmp681 + tmp674;
tmp730 = tmp728 + tmp729;
tmp1160 = tmp728 - tmp729;
}
{
fftw_real tmp694;
fftw_real tmp732;
fftw_real tmp701;
fftw_real tmp733;
<API key>;
{
fftw_real tmp686;
fftw_real tmp693;
fftw_real tmp697;
fftw_real tmp700;
<API key>;
tmp686 = tmp684 - tmp685;
tmp693 = tmp689 - tmp692;
tmp694 = tmp686 - tmp693;
tmp732 = tmp686 + tmp693;
tmp697 = tmp695 - tmp696;
tmp700 = tmp698 - tmp699;
tmp701 = tmp697 - tmp700;
tmp733 = tmp697 + tmp700;
}
tmp702 = (K098017140 * tmp694) - (K995184726 * tmp701);
tmp725 = (K995184726 * tmp694) + (K098017140 * tmp701);
tmp734 = (K773010453 * tmp732) - (K634393284 * tmp733);
tmp741 = (K634393284 * tmp732) + (K773010453 * tmp733);
}
{
fftw_real tmp713;
fftw_real tmp735;
fftw_real tmp720;
fftw_real tmp736;
<API key>;
{
fftw_real tmp705;
fftw_real tmp712;
fftw_real tmp716;
fftw_real tmp719;
<API key>;
tmp705 = tmp703 - tmp704;
tmp712 = tmp708 - tmp711;
tmp713 = tmp705 - tmp712;
tmp735 = tmp705 + tmp712;
tmp716 = tmp714 - tmp715;
tmp719 = tmp717 - tmp718;
tmp720 = tmp716 - tmp719;
tmp736 = tmp716 + tmp719;
}
tmp721 = (K098017140 * tmp713) + (K995184726 * tmp720);
tmp724 = (K098017140 * tmp720) - (K995184726 * tmp713);
tmp737 = (K773010453 * tmp735) + (K634393284 * tmp736);
tmp740 = (K773010453 * tmp736) - (K634393284 * tmp735);
}
{
fftw_real tmp683;
fftw_real tmp722;
fftw_real tmp723;
fftw_real tmp726;
<API key>;
tmp683 = tmp667 + tmp682;
tmp722 = tmp702 + tmp721;
c_re(inout[47 * iostride]) = tmp683 - tmp722;
c_re(inout[15 * iostride]) = tmp683 + tmp722;
tmp723 = tmp667 - tmp682;
tmp726 = tmp724 - tmp725;
c_re(inout[63 * iostride]) = tmp723 - tmp726;
c_re(inout[31 * iostride]) = tmp723 + tmp726;
}
{
fftw_real tmp1159;
fftw_real tmp1162;
fftw_real tmp1163;
fftw_real tmp1164;
<API key>;
tmp1159 = tmp725 + tmp724;
tmp1162 = tmp1160 + tmp1161;
c_im(inout[15 * iostride]) = tmp1159 + tmp1162;
c_im(inout[47 * iostride]) = tmp1162 - tmp1159;
tmp1163 = tmp702 - tmp721;
tmp1164 = tmp1161 - tmp1160;
c_im(inout[31 * iostride]) = tmp1163 + tmp1164;
c_im(inout[63 * iostride]) = tmp1164 - tmp1163;
}
{
fftw_real tmp731;
fftw_real tmp738;
fftw_real tmp739;
fftw_real tmp742;
<API key>;
tmp731 = tmp727 + tmp730;
tmp738 = tmp734 + tmp737;
c_re(inout[39 * iostride]) = tmp731 - tmp738;
c_re(inout[7 * iostride]) = tmp731 + tmp738;
tmp739 = tmp727 - tmp730;
tmp742 = tmp740 - tmp741;
c_re(inout[55 * iostride]) = tmp739 - tmp742;
c_re(inout[23 * iostride]) = tmp739 + tmp742;
}
{
fftw_real tmp1151;
fftw_real tmp1156;
fftw_real tmp1157;
fftw_real tmp1158;
<API key>;
tmp1151 = tmp741 + tmp740;
tmp1156 = tmp1152 + tmp1155;
c_im(inout[7 * iostride]) = tmp1151 + tmp1156;
c_im(inout[39 * iostride]) = tmp1156 - tmp1151;
tmp1157 = tmp734 - tmp737;
tmp1158 = tmp1155 - tmp1152;
c_im(inout[23 * iostride]) = tmp1157 + tmp1158;
c_im(inout[55 * iostride]) = tmp1158 - tmp1157;
}
}
{
fftw_real tmp747;
fftw_real tmp775;
fftw_real tmp1141;
fftw_real tmp1147;
fftw_real tmp754;
fftw_real tmp1136;
fftw_real tmp778;
fftw_real tmp1146;
fftw_real tmp762;
fftw_real tmp773;
fftw_real tmp782;
fftw_real tmp789;
fftw_real tmp769;
fftw_real tmp772;
fftw_real tmp785;
fftw_real tmp788;
<API key>;
{
fftw_real tmp743;
fftw_real tmp746;
fftw_real tmp1137;
fftw_real tmp1140;
<API key>;
tmp743 = tmp655 + tmp658;
tmp746 = tmp744 + tmp745;
tmp747 = tmp743 - tmp746;
tmp775 = tmp743 + tmp746;
tmp1137 = tmp665 + tmp662;
tmp1140 = tmp1138 + tmp1139;
tmp1141 = tmp1137 + tmp1140;
tmp1147 = tmp1140 - tmp1137;
}
{
fftw_real tmp750;
fftw_real tmp777;
fftw_real tmp753;
fftw_real tmp776;
<API key>;
{
fftw_real tmp748;
fftw_real tmp749;
fftw_real tmp751;
fftw_real tmp752;
<API key>;
tmp748 = tmp668 + tmp669;
tmp749 = tmp671 + tmp672;
tmp750 =
(K831469612 * tmp748) - (K555570233 * tmp749);
tmp777 =
(K555570233 * tmp748) + (K831469612 * tmp749);
tmp751 = tmp675 + tmp676;
tmp752 = tmp678 + tmp679;
tmp753 =
(K831469612 * tmp751) + (K555570233 * tmp752);
tmp776 =
(K831469612 * tmp752) - (K555570233 * tmp751);
}
tmp754 = tmp750 - tmp753;
tmp1136 = tmp753 + tmp750;
tmp778 = tmp776 + tmp777;
tmp1146 = tmp776 - tmp777;
}
{
fftw_real tmp758;
fftw_real tmp780;
fftw_real tmp761;
fftw_real tmp781;
<API key>;
{
fftw_real tmp756;
fftw_real tmp757;
fftw_real tmp759;
fftw_real tmp760;
<API key>;
tmp756 = tmp714 + tmp715;
tmp757 = tmp711 + tmp708;
tmp758 = tmp756 - tmp757;
tmp780 = tmp756 + tmp757;
tmp759 = tmp703 + tmp704;
tmp760 = tmp717 + tmp718;
tmp761 = tmp759 - tmp760;
tmp781 = tmp759 + tmp760;
}
tmp762 = (K471396736 * tmp758) - (K881921264 * tmp761);
tmp773 = (K881921264 * tmp758) + (K471396736 * tmp761);
tmp782 = (K956940335 * tmp780) - (K290284677 * tmp781);
tmp789 = (K290284677 * tmp780) + (K956940335 * tmp781);
}
{
fftw_real tmp765;
fftw_real tmp783;
fftw_real tmp768;
fftw_real tmp784;
<API key>;
{
fftw_real tmp763;
fftw_real tmp764;
fftw_real tmp766;
fftw_real tmp767;
<API key>;
tmp763 = tmp695 + tmp696;
tmp764 = tmp692 + tmp689;
tmp765 = tmp763 - tmp764;
tmp783 = tmp763 + tmp764;
tmp766 = tmp684 + tmp685;
tmp767 = tmp698 + tmp699;
tmp768 = tmp766 - tmp767;
tmp784 = tmp766 + tmp767;
}
tmp769 = (K471396736 * tmp765) + (K881921264 * tmp768);
tmp772 = (K471396736 * tmp768) - (K881921264 * tmp765);
tmp785 = (K956940335 * tmp783) + (K290284677 * tmp784);
tmp788 = (K956940335 * tmp784) - (K290284677 * tmp783);
}
{
fftw_real tmp755;
fftw_real tmp770;
fftw_real tmp771;
fftw_real tmp774;
<API key>;
tmp755 = tmp747 - tmp754;
tmp770 = tmp762 - tmp769;
c_re(inout[59 * iostride]) = tmp755 - tmp770;
c_re(inout[27 * iostride]) = tmp755 + tmp770;
tmp771 = tmp747 + tmp754;
tmp774 = tmp772 + tmp773;
c_re(inout[43 * iostride]) = tmp771 - tmp774;
c_re(inout[11 * iostride]) = tmp771 + tmp774;
}
{
fftw_real tmp1149;
fftw_real tmp1150;
fftw_real tmp1145;
fftw_real tmp1148;
<API key>;
tmp1149 = tmp772 - tmp773;
tmp1150 = tmp1147 - tmp1146;
c_im(inout[27 * iostride]) = tmp1149 + tmp1150;
c_im(inout[59 * iostride]) = tmp1150 - tmp1149;
tmp1145 = tmp769 + tmp762;
tmp1148 = tmp1146 + tmp1147;
c_im(inout[11 * iostride]) = tmp1145 + tmp1148;
c_im(inout[43 * iostride]) = tmp1148 - tmp1145;
}
{
fftw_real tmp779;
fftw_real tmp786;
fftw_real tmp787;
fftw_real tmp790;
<API key>;
tmp779 = tmp775 - tmp778;
tmp786 = tmp782 - tmp785;
c_re(inout[51 * iostride]) = tmp779 - tmp786;
c_re(inout[19 * iostride]) = tmp779 + tmp786;
tmp787 = tmp775 + tmp778;
tmp790 = tmp788 + tmp789;
c_re(inout[35 * iostride]) = tmp787 - tmp790;
c_re(inout[3 * iostride]) = tmp787 + tmp790;
}
{
fftw_real tmp1143;
fftw_real tmp1144;
fftw_real tmp1135;
fftw_real tmp1142;
<API key>;
tmp1143 = tmp788 - tmp789;
tmp1144 = tmp1141 - tmp1136;
c_im(inout[19 * iostride]) = tmp1143 + tmp1144;
c_im(inout[51 * iostride]) = tmp1144 - tmp1143;
tmp1135 = tmp785 + tmp782;
tmp1142 = tmp1136 + tmp1141;
c_im(inout[3 * iostride]) = tmp1135 + tmp1142;
c_im(inout[35 * iostride]) = tmp1142 - tmp1135;
}
}
}
}
static const int twiddle_order[] =
{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 };
fftw_codelet_desc <API key> = {
"fftwi_twiddle_64",
(void (*)()) fftwi_twiddle_64,
64,
FFTW_BACKWARD,
FFTW_TWIDDLE,
1419,
63,
twiddle_order,
};
|
#ifndef _VCD_CORE_H_
#define _VCD_CORE_H_
#include <linux/msm_ion.h>
#include <media/msm/vcd_api.h>
#include "vcd_ddl_api.h"
#include "vcd_util.h"
#include "vcd_client_sm.h"
#include "vcd_power_sm.h"
#define VCD_SIGNATURE 0x75017591U
#define VCD_MIN_PERF_LEVEL 37900
#define <API key> 6
#define <API key> 32
#define <API key> 32
#define <API key> 256
#define <API key> 2
#define <API key> 1000000
#define <API key> 30
#define <API key> (59*1000)
#define VCD_FIRST_IP_RCVD 0x00000004
#define VCD_FIRST_OP_RCVD 0x00000008
#define VCD_EOS_PREV_VALID 0x00000010
#define VCD_EOS_WAIT_OP_BUF 0x00000020
#define VCD_CLEANING_UP 0x00000040
#define VCD_STOP_PENDING 0x00000080
#define VCD_CLOSE_PENDING 0x00000100
#define VCD_IN_RECONFIG 0x00000200
#define VCD_FIRST_IP_DONE 0x00000400
enum vcd_command {
VCD_CMD_NONE,
VCD_CMD_DEVICE_INIT,
VCD_CMD_DEVICE_TERM,
<API key>,
VCD_CMD_CODEC_START,
VCD_CMD_CODEC_STOP,
VCD_CMD_CODE_FRAME,
<API key>,
<API key>
};
enum vcd_core_type {
VCD_CORE_1080P,
VCD_CORE_720P
};
struct vcd_cmd_q_element {
enum vcd_command pending_cmd;
};
struct vcd_buffer_entry {
struct list_head sched_list;
struct list_head list;
u32 valid;
u8 *alloc;
u8 *virtual;
u8 *physical;
size_t sz;
u32 allocated;
u32 in_use;
struct vcd_frame_data frame;
};
struct vcd_buffer_pool {
struct vcd_buffer_entry *entries;
u32 count;
struct <API key> buf_req;
u32 validated;
u32 allocated;
u32 in_use;
struct list_head queue;
u16 q_len;
};
struct vcd_transc {
u32 in_use;
enum vcd_command type;
struct vcd_clnt_ctxt *cctxt;
struct vcd_buffer_entry *ip_buf_entry;
s64 time_stamp;
u32 flags;
u32 ip_frm_tag;
enum vcd_frame frame;
struct vcd_buffer_entry *op_buf_entry;
u32 input_done;
u32 frame_done;
};
struct vcd_dev_ctxt {
u32 ddl_cmd_concurrency;
u32 ddl_frame_ch_depth;
u32 ddl_cmd_ch_depth;
u32 <API key>;
u32 ddl_cmd_ch_interim;
u32 ddl_frame_ch_free;
u32 ddl_cmd_ch_free;
struct list_head sched_clnt_list;
struct vcd_init_config config;
u32 driver_ids[<API key>];
u32 refs;
u8 *device_base_addr;
void *hw_timer_handle;
u32 hw_time_out;
struct vcd_clnt_ctxt *cctxt_list_head;
enum vcd_command pending_cmd;
u32 command_continue;
struct vcd_transc *trans_tbl;
u32 trans_tbl_size;
enum vcd_power_state pwr_state;
enum vcd_pwr_clk_state pwr_clk_state;
u32 active_clnts;
u32 max_perf_lvl;
u32 reqd_perf_lvl;
u32 curr_perf_lvl;
u32 <API key>;
#if 0// <API key>, QC_Case#01099598, bump clock to turbo mode for clip which's macroblock count per second goes beyond 1080p 30fps
bool turbo_mode_set;
#endif
};
struct vcd_clnt_status {
u32 req_perf_lvl;
u32 frame_submitted;
u32 frame_delayed;
u32 cmd_submitted;
u32 int_field_cnt;
s64 first_ts;
s64 prev_ts;
u64 time_elapsed;
struct vcd_frame_data eos_trig_ip_frm;
struct ddl_frame_data_tag eos_prev_op_frm;
u32 <API key>;
u32 last_err;
u32 last_evt;
u32 mask;
};
struct vcd_sched_clnt_ctx {
struct list_head list;
u32 clnt_active;
void *clnt_data;
u32 tkns;
u32 round_perfrm;
u32 rounds;
struct list_head ip_frm_list;
};
struct vcd_clnt_ctxt {
u32 signature;
struct vcd_clnt_state_ctxt clnt_state;
s32 driver_id;
u32 live;
u32 decoding;
u32 bframe;
u32 num_slices;
struct <API key> frm_rate;
u32 frm_p_units;
u32 reqd_perf_lvl;
u32 time_resoln;
u32 time_frame_delta;
struct vcd_buffer_pool in_buf_pool;
struct vcd_buffer_pool out_buf_pool;
void (*callback) (u32 event, u32 status, void *info, size_t sz,
void *handle, void *const client_data);
void *client_data;
struct vcd_sched_clnt_ctx *sched_clnt_hdl;
u32 ddl_hdl_valid;
u32 *ddl_handle;
struct vcd_dev_ctxt *dev_ctxt;
struct vcd_cmd_q_element cmd_q;
struct vcd_sequence_hdr seq_hdr;
u8 *seq_hdr_phy_addr;
struct vcd_clnt_status status;
struct ion_client *vcd_ion_client;
u32 vcd_enable_ion;
struct vcd_clnt_ctxt *next;
u32 meta_mode;
int perf_set_by_client;
int secure;
bool is_turbo_enabled;
};
#define <API key>(val) \
do { \
if ((val) > 0) \
val
else { \
VCD_MSG_ERROR("%s(): Inconsistent val given in " \
" <API key>\n", __func__); \
} \
} while (0)
#endif
|
#include <pthread.h>
static void dummy_func()
{
pthread_exit(NULL);
return;
}
|
#ifndef PLASMA_PACKAGE_P_H
#define PLASMA_PACKAGE_P_H
#include "../plasma.h"
#include "../package.h"
#include "../service.h"
#include <QString>
namespace Plasma
{
class PackagePrivate
{
public:
PackagePrivate(const PackageStructure::Ptr st, const QString &p);
PackagePrivate(const PackageStructure::Ptr st, const QString &packageRoot, const QString &path);
PackagePrivate(const PackagePrivate &other);
~PackagePrivate();
PackagePrivate &operator=(const PackagePrivate &rhs);
void <API key>(const QString &p);
void publish(AnnouncementMethods methods);
void unpublish();
bool isPublished() const;
bool isValid();
#ifdef QCA2_FOUND
void updateHash(const QString &basePath, const QString &subPath, const QDir &dir, QCA::Hash &hash);
#endif
PackageStructure::Ptr structure;
Service *service;
bool valid;
};
}
#endif
|
#include "skippy.h"
pictw_t *
sgif_read(session_t *ps, const char *path);
|
package com.espertech.esper.event.vaevent;
import com.espertech.esper.util.NullableObject;
/**
* Base strategy implementation holds the specification object.
*/
public abstract class UpdateStrategyBase implements UpdateStrategy
{
/**
* The specification.
*/
protected final RevisionSpec spec;
/**
* Ctor.
* @param spec is the specification
*/
protected UpdateStrategyBase(RevisionSpec spec)
{
this.spec = spec;
}
/**
* Array copy.
* @param array to copy
* @return copied array
*/
protected static NullableObject<Object>[] arrayCopy(NullableObject<Object>[] array)
{
if (array == null)
{
return null;
}
NullableObject<Object>[] result = (NullableObject<Object>[]) new NullableObject[array.length];
System.arraycopy(array, 0, result, 0, array.length);
return result;
}
}
|
// ReSharper disable All
// ReSharper disable All
using PetaPoco;
using System;
namespace MixERP.Net.Entities.Transactions
{
[PrimaryKey("", autoIncrement = false)]
[TableName("transactions.<API key>")]
[ExplicitColumns]
public sealed class <API key> : PetaPocoDB.Record<<API key>>, IPoco
{
[Column("stock_detail_id")]
[ColumnDbType("int8", 0, true, "")]
public long? StockDetailId { get; set; }
[Column("value_date")]
[ColumnDbType("date", 0, true, "")]
public DateTime? ValueDate { get; set; }
[Column("stock_master_id")]
[ColumnDbType("int8", 0, true, "")]
public long? StockMasterId { get; set; }
[Column("tran_type")]
[ColumnDbType("transaction_type", 0, true, "")]
public string TranType { get; set; }
[Column("store_id")]
[ColumnDbType("int4", 0, true, "")]
public int? StoreId { get; set; }
[Column("item_id")]
[ColumnDbType("int4", 0, true, "")]
public int? ItemId { get; set; }
[Column("quantity")]
[ColumnDbType("int4", 0, true, "")]
public int? Quantity { get; set; }
[Column("unit_id")]
[ColumnDbType("int4", 0, true, "")]
public int? UnitId { get; set; }
[Column("base_quantity")]
[ColumnDbType("numeric", 0, true, "")]
public decimal? BaseQuantity { get; set; }
[Column("base_unit_id")]
[ColumnDbType("int4", 0, true, "")]
public int? BaseUnitId { get; set; }
[Column("price")]
[ColumnDbType("money_strict", 0, true, "")]
public decimal? Price { get; set; }
[Column("cost_of_goods_sold")]
[ColumnDbType("money_strict2", 0, true, "")]
public decimal? CostOfGoodsSold { get; set; }
[Column("discount")]
[ColumnDbType("money_strict2", 0, true, "")]
public decimal? Discount { get; set; }
[Column("shipping_charge")]
[ColumnDbType("money_strict2", 0, true, "")]
public decimal? ShippingCharge { get; set; }
[Column("sales_tax_id")]
[ColumnDbType("int4", 0, true, "")]
public int? SalesTaxId { get; set; }
[Column("tax")]
[ColumnDbType("money_strict2", 0, true, "")]
public decimal? Tax { get; set; }
[Column("audit_user_id")]
[ColumnDbType("int4", 0, true, "")]
public int? AuditUserId { get; set; }
[Column("audit_ts")]
[ColumnDbType("timestamptz", 0, true, "")]
public DateTime? AuditTs { get; set; }
}
}
|
#ifndef KOKKOS_CORE_HPP
#define KOKKOS_CORE_HPP
// Include the execution space header files for the enabled execution spaces.
#include <Kokkos_Core_fwd.hpp>
#if defined( <API key> )
#include <Kokkos_Serial.hpp>
#endif
#if defined( <API key> )
#include <Kokkos_OpenMP.hpp>
#endif
//#if defined( <API key> )
#include <Kokkos_OpenMPTarget.hpp>
#include <<API key>.hpp>
//#endif
#if defined( <API key> )
#include <Kokkos_Qthreads.hpp>
#endif
#if defined( <API key> )
#include <Kokkos_Threads.hpp>
#endif
#if defined( KOKKOS_ENABLE_CUDA )
#include <Kokkos_Cuda.hpp>
#endif
#if defined( KOKKOS_ENABLE_ROCM )
#include <Kokkos_ROCm.hpp>
#endif
#include <<API key>.hpp>
#include <Kokkos_Pair.hpp>
#include <Kokkos_MemoryPool.hpp>
#include <Kokkos_Array.hpp>
#include <Kokkos_View.hpp>
#include <<API key>.hpp>
#include <Kokkos_Atomic.hpp>
#include <Kokkos_hwloc.hpp>
#include <Kokkos_Timer.hpp>
#include <Kokkos_Complex.hpp>
#include <Kokkos_CopyViews.hpp>
#include <functional>
#include <iosfwd>
namespace Kokkos {
struct InitArguments {
int num_threads;
int num_numa;
int device_id;
int ndevices;
int skip_device;
bool disable_warnings;
InitArguments( int nt = -1
, int nn = -1
, int dv = -1
, bool dw = false
)
: num_threads{ nt }
, num_numa{ nn }
, device_id{ dv }
, ndevices{ -1 }
, skip_device{ 9999 }
, disable_warnings{ dw }
{}
};
void initialize(int& narg, char* arg[]);
void initialize(const InitArguments& args = InitArguments());
bool is_initialized() noexcept;
bool show_warnings() noexcept;
/** \brief Finalize the spaces that were initialized via Kokkos::initialize */
void finalize();
/**
* \brief Push a user-defined function to be called in
* Kokkos::finalize, before any Kokkos state is finalized.
*
* \warning Only call this after Kokkos::initialize, but before
* Kokkos::finalize.
*
* This function is the Kokkos analog to std::atexit. If you call
* this with a function f, then your function will get called when
* Kokkos::finalize is called. Specifically, it will be called BEFORE
* Kokkos does any finalization. This means that all execution
* spaces, memory spaces, etc. that were initialized will still be
* initialized when your function is called.
*
* Just like std::atexit, if you call push_finalize_hook in sequence
* with multiple functions (f, g, h), Kokkos::finalize will call them
* in reverse order (h, g, f), as if popping a stack. Furthermore,
* just like std::atexit, if any of your functions throws but does not
* catch an exception, Kokkos::finalize will call std::terminate.
*/
void push_finalize_hook(std::function<void()> f);
/** \brief Finalize all known execution spaces */
void finalize_all();
void fence();
/** \brief Print "Bill of Materials" */
void print_configuration( std::ostream & , const bool detail = false );
} // namespace Kokkos
namespace Kokkos {
/* Allocate memory from a memory space.
* The allocation is tracked in Kokkos memory tracking system, so
* leaked memory can be identified.
*/
template< class Space = typename Kokkos::<API key>::memory_space >
inline
void * kokkos_malloc( const std::string & arg_alloc_label
, const size_t arg_alloc_size )
{
typedef typename Space::memory_space MemorySpace ;
return Impl::<API key>< MemorySpace >::
allocate_tracked( MemorySpace() , arg_alloc_label , arg_alloc_size );
}
template< class Space = typename Kokkos::<API key>::memory_space >
inline
void * kokkos_malloc( const size_t arg_alloc_size )
{
typedef typename Space::memory_space MemorySpace ;
return Impl::<API key>< MemorySpace >::
allocate_tracked( MemorySpace() , "no-label" , arg_alloc_size );
}
template< class Space = typename Kokkos::<API key>::memory_space >
inline
void kokkos_free( void * arg_alloc )
{
typedef typename Space::memory_space MemorySpace ;
return Impl::<API key>< MemorySpace >::
deallocate_tracked( arg_alloc );
}
template< class Space = typename Kokkos::<API key>::memory_space >
inline
void * kokkos_realloc( void * arg_alloc , const size_t arg_alloc_size )
{
typedef typename Space::memory_space MemorySpace ;
return Impl::<API key>< MemorySpace >::
reallocate_tracked( arg_alloc , arg_alloc_size );
}
} // namespace Kokkos
namespace Kokkos {
/** \brief ScopeGuard
* Some user scope issues have been identified with some Kokkos::finalize calls;
* ScopeGuard aims to correct these issues.
*
* Two requirements for ScopeGuard:
* if Kokkos::is_initialized() in the constructor, don't call Kokkos::initialize or Kokkos::finalize
* it is not copyable or assignable
*/
class ScopeGuard {
public:
ScopeGuard ( int& narg, char* arg[] )
{
sg_init = false;
if ( ! Kokkos::is_initialized() ) {
initialize( narg, arg );
sg_init = true;
}
}
ScopeGuard ( const InitArguments& args = InitArguments() )
{
sg_init = false;
if ( ! Kokkos::is_initialized() ) {
initialize( args );
sg_init = true;
}
}
~ScopeGuard( )
{
if ( Kokkos::is_initialized() && sg_init) {
finalize();
}
}
//private:
bool sg_init;
ScopeGuard& operator=( const ScopeGuard& ) = delete;
ScopeGuard( const ScopeGuard& ) = delete;
};
} // namespace Kokkos
#include <Kokkos_Crs.hpp>
#include <<API key>.hpp>
#endif
|
#ifndef <API key>
#define <API key>
#include "common.h"
#include <vector>
#include <string>
#include <memory>
#include "TimeA2.h"
namespace aria2 {
class DHTNode;
class <API key> {
private:
int family_;
std::shared_ptr<DHTNode> localNode_;
std::vector<std::shared_ptr<DHTNode>> nodes_;
Time serializedTime_;
public:
<API key>(int family);
~<API key>();
const std::shared_ptr<DHTNode>& getLocalNode() const { return localNode_; }
const std::vector<std::shared_ptr<DHTNode>>& getNodes() const
{
return nodes_;
}
Time getSerializedTime() const { return serializedTime_; }
void deserialize(const std::string& filename);
};
} // namespace aria2
#endif // <API key>
|
#include "msm_camera_i2c.h"
int32_t <API key>(struct <API key> *dev_client,
unsigned char *rxdata, int data_length)
{
int32_t rc = 0;
uint16_t saddr = dev_client->client->addr >> 1;
struct i2c_msg msgs[] = {
{
.addr = saddr,
.flags = 0,
.len = dev_client->addr_type,
.buf = rxdata,
},
{
.addr = saddr,
.flags = I2C_M_RD,
.len = data_length,
.buf = rxdata,
},
};
rc = i2c_transfer(dev_client->client->adapter, msgs, 2);
if (rc < 0)
S_I2C_DBG("<API key> failed 0x%x\n", saddr);
return rc;
}
int32_t <API key>(struct <API key> *dev_client,
unsigned char *txdata, int length)
{
int32_t rc = 0;
uint16_t saddr = dev_client->client->addr >> 1;
struct i2c_msg msg[] = {
{
.addr = saddr,
.flags = 0,
.len = length,
.buf = txdata,
},
};
rc = i2c_transfer(dev_client->client->adapter, msg, 1);
if (rc < 0)
S_I2C_DBG("<API key> faild 0x%x\n", saddr);
return 0;
}
int32_t <API key>(struct <API key> *client,
uint16_t addr, uint16_t data,
enum <API key> data_type)
{
int32_t rc = -EFAULT;
unsigned char buf[client->addr_type+data_type];
uint8_t len = 0;
if ((client->addr_type != <API key>
&& client->addr_type != <API key>)
|| (data_type != <API key>
&& data_type != <API key>))
return rc;
S_I2C_DBG("%s reg addr = 0x%x data type: %d\n",
__func__, addr, data_type);
if (client->addr_type == <API key>) {
buf[0] = addr;
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len, buf[len]);
len = 1;
} else if (client->addr_type == <API key>) {
buf[0] = addr >> BITS_PER_BYTE;
buf[1] = addr;
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len, buf[len]);
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len+1, buf[len+1]);
len = 2;
}
S_I2C_DBG("Data: 0x%x\n", data);
if (data_type == <API key>) {
buf[len] = data;
S_I2C_DBG("Byte %d: 0x%x\n", len, buf[len]);
len += 1;
} else if (data_type == <API key>) {
buf[len] = data >> BITS_PER_BYTE;
buf[len+1] = data;
S_I2C_DBG("Byte %d: 0x%x\n", len, buf[len]);
S_I2C_DBG("Byte %d: 0x%x\n", len+1, buf[len+1]);
len += 2;
}
rc = <API key>(client, buf, len);
if (rc < 0)
S_I2C_DBG("%s fail\n", __func__);
return rc;
}
int32_t <API key>(struct <API key> *client,
uint16_t addr, uint8_t *data, uint16_t num_byte)
{
int32_t rc = -EFAULT;
unsigned char buf[client->addr_type+num_byte];
uint8_t len = 0, i = 0;
if ((client->addr_type != <API key>
&& client->addr_type != <API key>)
|| num_byte == 0)
return rc;
S_I2C_DBG("%s reg addr = 0x%x num bytes: %d\n",
__func__, addr, num_byte);
if (client->addr_type == <API key>) {
buf[0] = addr;
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len, buf[len]);
len = 1;
} else if (client->addr_type == <API key>) {
buf[0] = addr >> BITS_PER_BYTE;
buf[1] = addr;
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len, buf[len]);
S_I2C_DBG("%s byte %d: 0x%x\n", __func__, len+1, buf[len+1]);
len = 2;
}
for (i = 0; i < num_byte; i++) {
buf[i+len] = data[i];
S_I2C_DBG("Byte %d: 0x%x\n", i+len, buf[i+len]);
S_I2C_DBG("Data: 0x%x\n", data[i]);
}
rc = <API key>(client, buf, len+num_byte);
if (rc < 0)
S_I2C_DBG("%s fail\n", __func__);
return rc;
}
int32_t <API key>(struct <API key> *client,
uint16_t addr, uint16_t mask,
enum <API key> data_type, uint16_t set_mask)
{
int32_t rc;
uint16_t reg_data;
rc = msm_camera_i2c_read(client, addr, ®_data, data_type);
if (rc < 0) {
S_I2C_DBG("%s read fail\n", __func__);
return rc;
}
S_I2C_DBG("%s addr: 0x%x data: 0x%x setmask: 0x%x\n",
__func__, addr, reg_data, mask);
if (set_mask)
reg_data |= mask;
else
reg_data &= ~mask;
S_I2C_DBG("%s write: 0x%x\n", __func__, reg_data);
rc = <API key>(client, addr, reg_data, data_type);
if (rc < 0)
S_I2C_DBG("%s write fail\n", __func__);
return rc;
}
int32_t <API key>(struct <API key> *client,
uint16_t addr, uint16_t data,
enum <API key> data_type)
{
int32_t rc = -EIO;
uint16_t reg_data = 0;
int data_len = 0;
switch (data_type) {
case <API key>:
case <API key>:
data_len = data_type;
break;
case <API key>:
case <API key>:
data_len = <API key>;
break;
case <API key>:
case <API key>:
data_len = <API key>;
break;
default:
pr_err("%s: Unsupport data type: %d\n", __func__, data_type);
break;
}
rc = msm_camera_i2c_read(client,
addr, ®_data, data_len);
if (rc < 0)
return rc;
rc = 0;
switch (data_type) {
case <API key>:
case <API key>:
if (data == reg_data)
return rc;
break;
case <API key>:
case <API key>:
if ((reg_data & data) == data)
return rc;
break;
case <API key>:
case <API key>:
if (!(reg_data & data))
return rc;
break;
default:
pr_err("%s: Unsupport data type: %d\n", __func__, data_type);
break;
}
S_I2C_DBG("%s: Register and data does not match\n", __func__);
rc = 1;
return rc;
}
int32_t msm_camera_i2c_poll(struct <API key> *client,
uint16_t addr, uint16_t data,
enum <API key> data_type)
{
int32_t rc = -EIO;
int i;
S_I2C_DBG("%s: addr: 0x%x data: 0x%x dt: %d\n",
__func__, addr, data, data_type);
for (i = 0; i < 20; i++) {
rc = <API key>(client,
addr, data, data_type);
if (rc == 0 || rc < 0)
break;
usleep_range(10000, 11000);
}
return rc;
}
int32_t <API key>(struct <API key> *client,
struct <API key> *reg_conf_tbl, uint16_t size,
enum <API key> data_type)
{
int i;
int32_t rc = -EFAULT;
for (i = 0; i < size; i++) {
enum <API key> dt;
if (reg_conf_tbl->cmd_type == <API key>) {
rc = msm_camera_i2c_poll(client, reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_addr, reg_conf_tbl->dt);
} else {
if (reg_conf_tbl->dt == 0)
dt = data_type;
else
dt = reg_conf_tbl->dt;
switch (dt) {
case <API key>:
case <API key>:
rc = <API key>(
client,
reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_data, dt);
break;
case <API key>:
rc = <API key>(client,
reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_data,
<API key>, 1);
break;
case <API key>:
rc = <API key>(client,
reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_data,
<API key>, 0);
break;
case <API key>:
rc = <API key>(client,
reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_data,
<API key>, 1);
break;
case <API key>:
rc = <API key>(client,
reg_conf_tbl->reg_addr,
reg_conf_tbl->reg_data,
<API key>, 0);
break;
default:
pr_err("%s: Unsupport data type: %d\n",
__func__, dt);
break;
}
}
if (rc < 0)
break;
reg_conf_tbl++;
}
return rc;
}
int32_t msm_camera_i2c_read(struct <API key> *client,
uint16_t addr, uint16_t *data,
enum <API key> data_type)
{
int32_t rc = -EFAULT;
unsigned char buf[client->addr_type+data_type];
if ((client->addr_type != <API key>
&& client->addr_type != <API key>)
|| (data_type != <API key>
&& data_type != <API key>))
return rc;
if (client->addr_type == <API key>) {
buf[0] = addr;
} else if (client->addr_type == <API key>) {
buf[0] = addr >> BITS_PER_BYTE;
buf[1] = addr;
}
rc = <API key>(client, buf, data_type);
if (rc < 0) {
S_I2C_DBG("%s fail\n", __func__);
return rc;
}
if (data_type == <API key>)
*data = buf[0];
else
*data = buf[0] << 8 | buf[1];
S_I2C_DBG("%s addr = 0x%x data: 0x%x\n", __func__, addr, *data);
return rc;
}
int32_t <API key>(struct <API key> *client,
uint16_t addr, uint8_t *data, uint16_t num_byte)
{
int32_t rc = -EFAULT;
unsigned char buf[client->addr_type+num_byte];
int i;
if ((client->addr_type != <API key>
&& client->addr_type != <API key>)
|| num_byte == 0)
return rc;
if (client->addr_type == <API key>) {
buf[0] = addr;
} else if (client->addr_type == <API key>) {
buf[0] = addr >> BITS_PER_BYTE;
buf[1] = addr;
}
rc = <API key>(client, buf, num_byte);
if (rc < 0) {
S_I2C_DBG("%s fail\n", __func__);
return rc;
}
S_I2C_DBG("%s addr = 0x%x", __func__, addr);
for (i = 0; i < num_byte; i++) {
data[i] = buf[i];
S_I2C_DBG("Byte %d: 0x%x\n", i, buf[i]);
S_I2C_DBG("Data: 0x%x\n", data[i]);
}
return rc;
}
int32_t <API key>(struct <API key> *client,
struct <API key> *array, uint16_t index)
{
int32_t rc;
rc = <API key>(client,
(struct <API key> *) array[index].conf,
array[index].size, array[index].data_type);
if (array[index].delay > 20)
msleep(array[index].delay);
else
usleep_range(array[index].delay*1000,
(array[index].delay+1)*1000);
return rc;
}
int32_t <API key>(struct <API key> *client,
struct <API key> *conf,
uint16_t enum_val)
{
int32_t rc = -1, i;
for (i = 0; i < conf->num_enum; i++) {
if (conf->conf_enum[i] == enum_val)
break;
if (conf->conf_enum[i] > enum_val)
break;
}
if (i == conf->num_enum)
i = conf->num_enum - 1;
if (i >= conf->num_index)
return rc;
rc = <API key>(client,
&conf->conf[i*conf->num_conf], conf->num_conf);
if (conf->delay > 20)
msleep(conf->delay);
else
usleep_range(conf->delay*1000,
(conf->delay+1)*1000);
return rc;
}
int32_t <API key>(struct <API key> *client,
struct <API key> *array, uint16_t size)
{
int32_t rc = 0, i;
for (i = 0; i < size; i++) {
rc = <API key>(client, array, i);
if (rc < 0)
break;
}
return rc;
}
|
package cameo;
import java.util.ArrayList;
import processing.core.PApplet;
import processing.core.PVector;
import themidibus.MidiBus;
public class Cameo extends PApplet {
MidiBus midi;
int channel = 0;
int pitch = 0;
int velocity = 0;
int note;
int value = 0;
int background_color;
int foreground_color;
int[] colors;
ArrayList<PVector> grid;
int cols;
int rows;
static float xStep;
float yStep;
static float cosValX;
static float cosValY;
float noiseY;
float cosIncX;
float cosIncY;
static float cosCoeffX;
static float cosCoeffY;
ArrayList<Square> squares;
static ArrayList<Link> linksO;
static ArrayList<Link> linksD;
static ArrayList<PVector> linksOPos;
static ArrayList<PVector> linksDPos;
static float linksOStrokeWeight;
static float linksOBrightness;
static float linksOLerpInc;
static float linksDStrokeWeight;
static float linksDBrightness;
static float linksDLerpInc;
ArrayList<Particle> particles;
static float alphaX;
static float sizeX;
static float lineAlphaX;
static float alphaY;
static float sizeY;
static float lineAlphaY;
static float lineAlpha;
static float lineSize;
static ArrayList<Comet> comets;
static ArrayList<PVector> cometsPos;
static ArrayList<Comet> cometsL;
static ArrayList<PVector> cometsLPos;
static float cometsScale;
float cometsScaleInc;
static float cometsBrightness;
static float cometsLerpInc;
static float cometsVertexRange;
static float cometsLScale;
float cometsLScaleInc;
static float cometsLBrightness;
static float cometsLLerpInc;
static float cometsLVertexRange;
float cometsMaxScale;
static boolean intro = true;
ArrayList<PVector> introGrid;
ArrayList<Particle> introParticles;
ArrayList<Comet> introComets;
ArrayList<Link> introLinks;
boolean end;
public void setup() {
colorMode(HSB, 360, 100, 100);
//MidiBus.list();
//midi = new MidiBus(this, 0, 1);
println("
println("handMade.setup(this);");
println("comets = new ArrayList<Comet>();");
println(">>done");
println("dusts = new ArrayList<Dust>();");
println(">>done");
println("links = new ArrayList<Link>();");
println(">>done");
println("handMade.start();");
println("
background_color = 0;
foreground_color = 255;
colors = new int[5];
//RGB
colors[0] = color(242, 235, 144);
colors[1] = color(241, 208, 225);
colors[2] = color(141, 195, 223);
colors[3] = color(163, 209, 181);
colors[4] = color(245, 192, 140);
//HSB
colors[0] = color(56, 41, 95);
colors[1] = color(329, 14, 95);
colors[2] = color(200, 37, 87);
colors[3] = color(143, 22, 82);
colors[4] = color(30, 43, 96);
cosValX = 0;
cosValY = 0;
noiseY = 0;
cosIncX = 0.001f;
cosIncY = 0.001f;
cosCoeffX = 0.1f;
cosCoeffY = 0.1f;
alphaX = 255;
lineAlphaX = 0;
sizeX = 5;
alphaY = 255;
lineAlphaY = 0;
sizeY = 5;
lineAlpha = 0;
lineSize = 0;
squares = new ArrayList<Square>();
linksO = new ArrayList<Link>();
linksD = new ArrayList<Link>();
linksOPos = new ArrayList<PVector>();
linksDPos = new ArrayList<PVector>();
linksOBrightness = 255;
linksDBrightness = 255;
particles = new ArrayList<Particle>();
comets = new ArrayList<Comet>();
cometsPos = new ArrayList<PVector>();
cometsL = new ArrayList<Comet>();
cometsLPos = new ArrayList<PVector>();
cometsScale = 1;
cometsScaleInc = 0f;
cometsVertexRange = xStep*0.25f*0.3f;
cometsBrightness = 255;
cometsLerpInc = 0.005f;
cometsLScale = 1;
cometsLScaleInc = 0f;
cometsLVertexRange = xStep*0.65f*0.2f;
cometsLBrightness = 255;
cometsLLerpInc = 0.005f;
cometsMaxScale = 0;
cols = 8;
rows = 5;
xStep = width/cols;
yStep = height/rows;
grid = new ArrayList<PVector>();
for(float x = xStep; x < width; x += xStep){
for(float y = yStep; y < height; y += yStep){
grid.add(new PVector(x, y));
particles.add(new Particle(x, y, this));
linksOPos.add(new PVector(x, y));
linksDPos.add(new PVector(x, y));
cometsPos.add(new PVector(x, y));
cometsLPos.add(new PVector(x, y));
}
}
introGrid = new ArrayList<PVector>();
introParticles = new ArrayList<Particle>();
introLinks = new ArrayList<Link>();
introComets = new ArrayList<Comet>();
cols = 8;
rows = 2;
xStep = width/cols;
yStep = height/rows;
for(float x = xStep; x < width; x += xStep){
for(float y = yStep; y < height; y += yStep){
introGrid.add(new PVector(x, y));
introParticles.add(new Particle(x, y, this));
}
}
//reset it for repopulation purposes
cols = 8;
rows = 5;
xStep = width/cols;
yStep = height/rows;
end = false;
}
public void settings(){
size(1024, 768);
//fullScreen();
}
public void update(){
keepInRangeElements();
for(int i = 0; i < squares.size(); i++){
squares.get(i).update();
}
for(int i = 0; i < linksO.size(); i++){
linksO.get(i).update();
}
for(int i = 0; i < linksD.size(); i++){
linksD.get(i).update();
}
for(int i = 0; i < particles.size(); i++){
particles.get(i).update();
}
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).update();
}
for(int i = 0; i < comets.size(); i++){
comets.get(i).update();
}
if(intro){
for(int i = 0; i < introParticles.size(); i++){
introParticles.get(i).update();
}
}
cosValX += cosIncX;
cosValY += cosIncY;
cometsScale += cometsScaleInc;
cometsLScale += cometsLScaleInc;
}
public void draw() {
// scale(0.5f);
// translate(750, 320);
// scale(0.65f);
// translate(440, 150);
update();
noCursor();
background(background_color);
colorMode(HSB);
rectMode(CENTER);
strokeCap(SQUARE);
fill(255);
strokeWeight(1);
stroke(255);
if(intro){
for(int i = 0; i < introParticles.size(); i++){
introParticles.get(i).display();
}
}else{
for(int i = 0; i < particles.size(); i++){
particles.get(i).display();
//text(" "+particles.get(i).pos, particles.get(i).pos.x, particles.get(i).pos.y);
}
}
for(int i = 0; i < squares.size(); i++){
squares.get(i).display();
}
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).display();
}
for(int i = 0; i < comets.size(); i++){
comets.get(i).display();
}
for(int i = 0; i < linksO.size(); i++){
linksO.get(i).display();
}
for(int i = 0; i < linksD.size(); i++){
linksD.get(i).display();
}
//debug();
// textAlign(CENTER);
// textSize(64);
// fill(255);
// text("c o n n e c t", width*0.5f, height*0.5f);
if(end){
fill(0);
rect(0, 0, width, height);
}
}
public void addSquare(){
int index = (int)(random(grid.size()));
PVector p = grid.get(index);
int color = colors[(int)(random(colors.length))];
squares.add(new Square(p, xStep, yStep, 0, color, this));
}
public void singleBeat(){
int index = (int)(random(squares.size()));
squares.get(index).canBeat = true;
}
public void moveVertex(int type, int number){
if(type == 0 && comets.size() > 0){
if(number == 0){
int index = (int)(random(comets.size()));
Comet c = comets.get(index);
int i = (int)random(c.sides);
c.targetVariations[i] += random(-cometsVertexRange, cometsVertexRange*2);
c.lerpValVariations[i] = 0;
}else{
int i = (int)random(comets.get(0).sides);
for(int index = 0; index < comets.size(); index++){
comets.get(index).targetVariations[i] += random(-cometsVertexRange, cometsVertexRange*2);
comets.get(index).lerpValVariations[i] = 0;
}
}
}else if(type == 1 && cometsL.size() > 0){
if(number == 0){
int index = (int)(random(cometsL.size()));
Comet c = cometsL.get(index);
int i = (int)random(c.sides);
c.targetVariations[i] += random(-cometsLVertexRange, cometsLVertexRange);
c.lerpValVariations[i] = 0;
}else{
int i = (int)random(cometsL.get(0).sides);;
for(int index = 0; index < cometsL.size(); index++){
cometsL.get(index).targetVariations[i] += random(-cometsLVertexRange, cometsLVertexRange*2);
cometsL.get(index).lerpValVariations[i] = 0;
}
}
}
}
public void rotateComet(int type, int number){
if(type == 0 && comets.size() > 0){
if(number == 0){
int index = (int)(random(comets.size()));
Comet c = comets.get(index);
c.targetRotation += 90;
c.lerpValRotation = 0;
}else{
for(int i = 0; i < comets.size(); i++){
comets.get(i).targetRotation += 90;
comets.get(i).lerpValRotation = 0;
}
}
}else if(type == 1 && cometsL.size() > 0){
if(number == 0){
int index = (int)(random(cometsL.size()));
Comet c = cometsL.get(index);
c.targetRotation += 90;
c.lerpValRotation = 0;
}else{
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).targetRotation += 90;
cometsL.get(i).lerpValRotation = 0;
}
}
}
}
public void resetLerp(int type){
if(type == 0){
for(int i = 0; i < comets.size(); i++){
if(comets.get(i).canUpdate)
comets.get(i).lerpValRad = 0;
}
}else{
for(int i = 0; i < cometsL.size(); i++){
if(cometsL.get(i).canUpdate)
cometsL.get(i).lerpValRad = 0;
}
}
}
public void addLink(int dir){
if(dir == 0 && linksOPos.size() > rows-2){
if(linksOPos.size() == rows-1){
clearLinks(0);
return;
}
if(!intro){
int index = max(0, (int)(random(linksOPos.size()-rows)));
int index2 = max(0, min(index+1, grid.size()));
PVector orig = linksOPos.get(index);
PVector dest = grid.get(index2);
linksOPos.remove(orig);
int color = colors[(int)(random(colors.length))];
linksO.add(new Link(orig, dest, 0.1f, color, dir, this));
}else{
int index = max(0, (int)(random(introGrid.size()-rows)));
int index2 = max(0, min(index+1, introGrid.size()));
PVector orig = introGrid.get(index);
PVector dest = introGrid.get(index2);
int color = colors[(int)(random(colors.length))];
linksO.add(new Link(orig, dest, 0.1f, color, dir, this));
}
}else if(dir == 1 && linksDPos.size() > 0){
if(linksDPos.size() == 1){
clearLinks(1);
return;
}
int index = max(0, (int)(random(linksDPos.size()-rows)));
PVector orig = linksDPos.get(index);
linksDPos.remove(orig);
int index2 = max(0, min((int)(random(grid.size())), grid.size()-1));
PVector dest = grid.get(index2);
int color = colors[(int)(random(colors.length))];
linksD.add(new Link(orig, dest, 0.1f, color, dir, this));
}
}
public void resetLink(int type, int number){
if(type == 0 && linksO.size() > 0){
if(number == 0){
linksO.get((int)(random(linksO.size()))).lerpVal = 0;
}else{
for(int i = 0; i < linksO.size(); i++){
linksO.get(i).lerpVal = 0;
}
}
}else if(type == 1 && linksD.size() > 0){
if(number == 0){
linksD.get((int)(random(linksD.size()))).lerpVal = 0;
}else{
for(int i = 0; i < linksD.size(); i++){
linksD.get(i).lerpVal = 0;
}
}
}
}
public void addComet(int dir){
if(dir == 0 && cometsPos.size() == 0)
clearComets(0);
if(dir == 1 && cometsLPos.size() == 0)
clearComets(1);
if(dir == 0 && cometsPos.size() > 0){
PVector p;
if(!intro){
int index = (int)(random(cometsPos.size()));
p = cometsPos.get(index);
cometsPos.remove(p);
int color = colors[(int)(random(colors.length))];
comets.add(new Comet(p, xStep, color, dir, this));
}else{
int index = (int)(random(introGrid.size()));
p = introGrid.get(index);
int color = colors[(int)(random(colors.length))];
comets.add(new Comet(p, xStep*0.5f, color, dir, this));
}
}else if(dir == 1 && cometsLPos.size() > 0){
PVector p;
if(!intro){
int index = (int)(random(cometsLPos.size()));
p = cometsLPos.get(index);
cometsLPos.remove(p);
int color = colors[(int)(random(colors.length))];
cometsL.add(new Comet(p, xStep, color, dir, this));
}else{
int index = (int)(random(introGrid.size()));
p = introGrid.get(index);
int color = colors[(int)(random(colors.length))];
cometsL.add(new Comet(p, xStep*0.5f, color, dir, this));
}
}
}
public void clearSquares(){
squares.clear();
}
public void clearLinks(int dir){
if(dir == 0){
for(int i = 0; i < linksO.size(); i++){
linksO.get(i).decrease = true;
}
}else{
for(int i = 0; i < linksD.size(); i++){
linksD.get(i).decrease = true;
}
}
}
public void clearComets(int dir){
if(dir == 0){
for(int i = 0; i < comets.size(); i++){
comets.get(i).disappear = true;
}
//repopulate(cometsPos);
}else{
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).disappear = true;
}
//repopulate(cometsLPos);
}
}
public void repopulate(ArrayList<PVector> al){
for(float x = xStep; x < width; x += xStep){
for(float y = yStep; y < height; y += yStep){
al.add(new PVector(x, y));
}
}
}
public void removeComet(int type){
if(type == 0 && comets.size() > 0){
int index = (int)random(comets.size());
comets.get(index).disappear = true;
}else if(type == 1 && cometsL.size() > 0){
int index = (int)random(cometsL.size());
cometsL.get(index).disappear = true;
}
}
public void removeLink(int type){
if(type == 0 && linksO.size() > 0){
int index = (int)random(linksO.size());
linksO.get(index).decrease = true;
}else if(type == 1 && linksD.size() > 0){
int index = (int)random(linksD.size());
linksD.get(index).decrease = true;
}
}
public void selectComet(float v, int type){
if(type == 0){
if(v < -1 && comets.size() > 0){
for(int i = 0; i < comets.size(); i++){
comets.get(i).canUpdate = false;
}
int i = (int)random(comets.size());
comets.get(i).canUpdate = true;
}else if(v > 1){
for(int i = 0; i < comets.size(); i++){
comets.get(i).canUpdate = true;
}
}
}else{
if(v < -1 && cometsL.size() > 0){
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).canUpdate = false;
}
int i = (int)random(cometsL.size());
cometsL.get(i).canUpdate = true;
}else if(v > 1){
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).canUpdate = true;
}
}
}
}
public void selectOne(String s){
if(s == "particle"){
for(int i = 0; i < particles.size(); i++){
particles.get(i).canUpdate = false;
}
int i = (int)(random(particles.size()));
particles.get(i).canUpdate = true;
}else if(s == "particleAdd"){
int i = (int)(random(particles.size()));
particles.get(i).canUpdate = true;
}else if(s == "particleIntro"){
for(int i = 0; i < introParticles.size(); i++){
introParticles.get(i).canUpdate = false;
}
int i = (int)(random(introParticles.size()));
introParticles.get(i).canUpdate = true;
}else if(s == "particleAddIntro"){
int i = (int)(random(introParticles.size()));
introParticles.get(i).canUpdate = true;
}
}
public void selectAll(String s){
if(s == "particle"){
for(int i = 0; i < particles.size(); i++){
particles.get(i).canUpdate = true;
}
}else if(s == "particleIntro"){
for(int i = 0; i < introParticles.size(); i++){
introParticles.get(i).canUpdate = true;
}
}
}
public void randomScale(float v){
cometsMaxScale += v*0.01f;
cometsMaxScale = constrain(cometsMaxScale, 0, 1);
for(int i = 0; i < comets.size(); i++){
comets.get(i).scaleVarCoeff = cometsMaxScale;
}
for(int i = 0; i < cometsL.size(); i++){
cometsL.get(i).scaleVarCoeff = cometsMaxScale;
}
}
public void debug(){
textAlign(LEFT);
textSize(8);
fill(100, 255, 100);
text("framerate: "+frameRate, 10, 10);
text("ch: "+channel, 10, 20);
text("pitch: "+pitch, 10, 30);
text("vel: "+velocity, 10, 40);
text("note: "+note, 10, 50);
text("val: "+value, 10, 60);
text("squares: "+squares.size(), 10, 70);
text("linksOPos: "+linksOPos.size(), 10, 80);
text("linksDPos: "+linksDPos.size(), 10, 90);
text("grid: "+grid.size(), 10, 100);
text("cometsScaleInc: "+cometsScaleInc, 10, 210);
text("cometsLScaleInc: "+cometsLScaleInc, 10, 120);
text("cometsScale: "+cometsScale, 10, 130);
text("cometsLScale: "+cometsLScale, 10, 140);
text("comets: "+comets.size(), 10, 150);
text("cometspos: "+cometsPos.size(), 10, 160);
}
public void noteOn(int c, int p, int v){
channel = c;
pitch = p;
velocity = v;
if(c == 0){
switch(p){
case 44:
addComet(0);
break;
case 45:
resetLerp(0);
break;
case 46:
moveVertex(0, 1);
break;
case 47:
rotateComet(0, 0);
break;
case 48:
rotateComet(0, 1);
break;
case 36:
addComet(1);
break;
case 37:
resetLerp(1);
break;
case 38:
moveVertex(1, 1);
break;
case 39:
rotateComet(1, 0);
break;
case 40:
rotateComet(1, 1);
break;
case 49:
addLink(0);
break;
case 50:
resetLink(0, 0);
break;
case 51:
resetLink(0, 1);
break;
case 41:
addLink(1);
break;
case 42:
resetLink(1, 0);
break;
case 43:
resetLink(1, 1);
break;
default:
break;
}
}else if(c == 1){
switch(p){
case 44:
if(!intro)
selectOne("particle");
else
selectOne("particleIntro");
break;
case 45:
if(!intro)
selectOne("particleAdd");
else
selectOne("particleAddIntro");
break;
case 36:
if(!intro)
selectAll("particle");
else
selectAll("particleIntro");
break;
case 50:
clearComets(0);
break;
case 51:
clearLinks(0);
break;
case 42:
clearComets(1);
break;
case 43:
clearLinks(1);
break;
default:
break;
}
}
}
public void controllerChange(int c, int n, int v){
channel = c;
note = n;
value = v;
v = v - 64;//normalize
if(n == 7){//reset stuff
if(v < -1)
resetElements();
else if(v > 1)
resetGrid();
}
if(c == 0){
switch(n){
case 10:
cometsScaleInc += v*0.1f;
break;
case 11:
cometsBrightness += v*4f;
break;
case 12:
cometsLerpInc += v*0.001f;
break;
case 13:
cometsVertexRange += v;
break;
case 14:
linksOStrokeWeight += v*0.5f;
break;
case 15:
linksOBrightness += v*5f;
break;
case 16:
linksOLerpInc += v*0.001f;
break;
case 17:
selectComet(v, 1);
case 18:
randomScale(v);
break;
case 19:
cometsLBrightness += v*4f;
break;
case 20:
cometsLLerpInc += v*0.001f;
break;
case 21:
cometsLVertexRange += v;
break;
case 22:
linksDStrokeWeight += v*0.5f;
break;
case 23:
linksDBrightness += v*5f;
break;
case 24:
linksDLerpInc += v*0.001f;
break;
case 25:
selectComet(v, 0);
break;
default:
break;
}
}else if(c == 1){
switch(n){
case 10:
alphaX += v*4f;
break;
case 11:
cosIncX += v*0.01f;
break;
case 12:
cosCoeffX += v*1f;
break;
case 13:
sizeX += v;
break;
case 14:
lineAlphaX += v*4f;
break;
case 15:
lineAlpha += v*4f;
break;
case 16:
break;
case 17:
break;
case 18:
alphaY += v*4f;
break;
case 19:
cosIncY += v*0.01f;
break;
case 20:
cosCoeffY += v*1f;
break;
case 21:
sizeY += v;
break;
case 22:
lineAlphaY += v*4f;
break;
case 23:
lineSize += v;
break;
case 24:
break;
default:
break;
}
}
keepInRangeGrid();
}
public void resetGrid(){
cosCoeffX = 0;
cosCoeffY = 0;
alphaX = 255;
alphaY = 255;
lineAlphaX = 0;
lineAlphaY = 0;
lineAlpha = 0;
sizeX = 2;
sizeY = 2;
}
public void resetElements(){
cometsPos.clear();
clearComets(0);
repopulate(cometsPos);
cometsLPos.clear();
clearComets(1);
repopulate(cometsLPos);
linksOPos.clear();
clearLinks(0);
repopulate(linksOPos);
linksDPos.clear();
clearLinks(1);
repopulate(linksDPos);
}
public void keepInRangeElements(){
cometsScaleInc = constrain(cometsScaleInc, 0.0f, 10.0f);
cometsBrightness = constrain(cometsBrightness, 0, 255);
cometsLerpInc = constrain(cometsLerpInc, 0.005f, 0.2f);
cometsVertexRange = constrain(cometsVertexRange, xStep*0.25f*0.1f, xStep*0.25f*0.5f);
cometsLScaleInc = constrain(cometsLScaleInc, 0.0f, 10.0f);
cometsLBrightness = constrain(cometsLBrightness, 0, 255);
cometsLLerpInc = constrain(cometsLLerpInc, 0.0025f, 0.2f);
cometsLVertexRange = constrain(cometsLVertexRange, xStep*0.65f*0.1f, xStep*0.65f*0.5f);
linksOStrokeWeight = constrain(linksOStrokeWeight, 5, 50);
linksOBrightness = constrain(linksOBrightness, 0, 255);
linksOLerpInc = constrain(linksOLerpInc, 0.005f, 0.1f);
linksDStrokeWeight = constrain(linksDStrokeWeight, 5, 50);
linksDBrightness = constrain(linksDBrightness, 0, 255);
linksDLerpInc = constrain(linksDLerpInc, 0.005f, 0.1f);
}
public void keepInRangeGrid(){
alphaX = constrain(alphaX, 0, 255);
cosIncX = constrain(cosIncX, 0.00025f, 0.2f);
cosCoeffX = constrain(cosCoeffX, 0, 360);
sizeX = constrain(sizeX, 5, 20);
lineAlphaX = constrain(lineAlphaX, 0, 255);
alphaY = constrain(alphaY, 0, 255);
cosIncY = constrain(cosIncY, 0.00025f, 0.2f);
cosCoeffY = constrain(cosCoeffY, 0, 360);
sizeY = constrain(sizeY, 5, 20);
lineAlphaY = constrain(lineAlphaY, 0, 255);
lineAlpha = constrain(lineAlpha, 0, 255);
lineSize = constrain(lineSize, 1, 5);
}
public void keyPressed(){
if(key == ' '){
resetGrid();
resetElements();
intro = false;
}
if(key == 'o'){
clearLinks(0);
}else if(key == 'l'){
clearComets(1);
}else if(key == 'c'){
clearComets(0);
}else if(key == 'd'){
clearLinks(1);
}else if(keyCode == RIGHT){
selectComet(2, 0);//select one
}else if(keyCode == LEFT){
selectComet(-2, 0); //select all
}else if(keyCode == UP){
selectComet(2, 1);
}else if(keyCode == DOWN){
selectComet(-2, 1);
}else if(key == 'v'){
removeComet(0);
}else if(key == ';'){
removeComet(1);
}else if(key == 'f'){
removeLink(1);
}else if(key == 'p'){
removeLink(0);
}else if(key == 'q'){
setup();
}else if(key == 'r'){
linksOPos.clear();
repopulate(linksOPos);
}else if(key == 't'){
linksDPos.clear();
repopulate(linksDPos);
}else if (key == 'w'){
intro = true;
}
}
public void mousePressed(){
addComet(0);
}
public static void main(String _args[]) {
PApplet.main(new String[] { cameo.Cameo.class.getName() });
}
}
|
//# tArrayAccessor.cc: Test program for the ArrayAccessor class
//
//# Associated Universities, Inc. Washington DC, USA.
//
//# This program is free software; you can redistribute it and/or modify it
//
//
//# any later version.
//
//# This program is distributed in the hope that it will be useful, but WITHOUT
//
//
//# more details.
//
//
//# with this program; if not, write to the Free Software Foundation, Inc.,
//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//
//
//# Includes
#include <casacore/casa/aips.h>
#include <casacore/casa/Arrays/ArrayAccessor.h>
#include <casacore/casa/Arrays/ArrayMath.h>
#include <casacore/casa/Arrays/Cube.h>
#include <casacore/casa/Exceptions/Error.h>
#include <casacore/casa/Utilities/Assert.h>
#include <casacore/casa/iostream.h>
#include <casacore/casa/namespace.h>
int main() {
// Size test cube
const uInt N0=10;
const uInt N1=20;
const uInt N2=30;
// Test cube
Cube<Int> cub(N0,N1,N2);
indgen(cub);
try {
cout << "
Int inx(0);
for (uInt i=0; i<N2; ++i) {
for (uInt j=0; j<N1; ++j) {
for (uInt k=0; k<N0; ++k) AlwaysAssertExit(cub(k,j,i) == inx++);
}
}
cout << "Cube of dimensions (" << N0 << "," << N1 << "," << N2 <<
") properly filled" << endl;
cout << "
cout << "Testing Axis<> constructors
inx = 0;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(); ++i) {
for (ArrayAccessor<Int, Axis<1> > j(i); j!=j.end(); ++j) {
for (ArrayAccessor<Int, Axis<0> > k(j); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
cout << "ok" << endl <<
"
cout << "Testing AxisN constructors
inx = 0;
for (ArrayAccessor<Int, AxisN> i(cub, AxisN(2)); i!=i.end(); ++i) {
for (ArrayAccessor<Int, AxisN> j(i, AxisN(1)); j!=j.end(); ++j) {
for (ArrayAccessor<Int, AxisN> k(j, AxisN(0)); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
cout << "ok" << endl <<
"
cout << "Testing Mixed Axis<> and AxisN constructors
inx = 0;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(); ++i) {
for (ArrayAccessor<Int, AxisN> j(i, AxisN(1)); j!=j.end(); ++j) {
for (ArrayAccessor<Int, Axis<0> > k(j); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
inx = 0;
for (ArrayAccessor<Int, AxisN> i(cub, AxisN(2)); i!=i.end(); ++i) {
for (ArrayAccessor<Int, Axis<1> > j(i); j!=j.end(); ++j) {
for (ArrayAccessor<Int, AxisN> k(j, AxisN(0)); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
cout << "ok" << endl <<
"
cout << "Testing Axis<> assignments
inx = 0;
{
ArrayAccessor<Int, Axis<2> > i(cub);
ArrayAccessor<Int, Axis<1> > j;
ArrayAccessor<Int, Axis<0> > k;
ArrayAccessor<Int, Axis<0> > l;
for (; i!=i.end(); ++i) {
for (j = i; j!=j.end(); ++j) {
for (k =j; k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx);
l = k;
AlwaysAssertExit(*l == inx++);
}
}
}
}
cout << "ok" << endl <<
"
cout << "Testing AxisN assignments
inx = 0;
{
ArrayAccessor<Int, AxisN> i(cub, AxisN(2));
ArrayAccessor<Int, AxisN> j(AxisN(1));
ArrayAccessor<Int, AxisN> k(AxisN(0));
ArrayAccessor<Int, AxisN> l(AxisN(0));
for (; i!=i.end(); ++i) {
for (j = i; j!=j.end(); ++j) {
for (k =j; k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx);
l = k;
AlwaysAssertExit(*l == inx++);
}
}
}
}
cout << "ok" << endl <<
"
cout << "Testing Mixed Axis<> and AxisN assignments
inx = 0;
{
ArrayAccessor<Int, Axis<2> > i(cub);
ArrayAccessor<Int, AxisN> j(AxisN(1));
ArrayAccessor<Int, Axis<0> > k;
ArrayAccessor<Int, AxisN> l(AxisN(0));
for (; i!=i.end(); ++i) {
for (j = i; j!=j.end(); ++j) {
for (k =j; k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx);
l = k;
AlwaysAssertExit(*l == inx++);
}
}
}
}
inx = 0;
{
ArrayAccessor<Int, AxisN> i(cub, AxisN(2));
ArrayAccessor<Int, Axis<1> > j;
ArrayAccessor<Int, AxisN> k(AxisN(0));
ArrayAccessor<Int, Axis<0> > l;
for (; i!=i.end(); ++i) {
for (j = i; j!=j.end(); ++j) {
for (k =j; k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx);
l = k;
AlwaysAssertExit(*l == inx++);
}
}
}
}
cout << "ok" << endl <<
"
cout << "Testing Axis<> init
inx = 0;
{
ArrayAccessor<Int, Axis<2> > i(cub);
for (; i!=i.end(); ++i) {
for (ArrayAccessor<Int, Axis<1> > j(i); j!=j.end(); ++j) {
for (ArrayAccessor<Int, Axis<0> > k(j); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
inx = 0;
for (i.init(cub); i!=i.end(); ++i) {
for (ArrayAccessor<Int, Axis<1> > j(i); j!=j.end(); ++j) {
for (ArrayAccessor<Int, Axis<0> > k(j); k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
}
cout << "ok" << endl <<
"
cout << "Testing AxisN init
inx = 0;
{
ArrayAccessor<Int, AxisN> i(cub, AxisN(2));
ArrayAccessor<Int, AxisN> j(AxisN(1));
ArrayAccessor<Int, AxisN> k(AxisN(0));
for (; i!=i.end(); ++i) {
for (j = i; j!=j.end(); ++j) {
for (k = j; k!=k.end(); ++k) {
AlwaysAssertExit(*k == inx++);
}
}
}
inx = 0;
j.init(AxisN(0));
k.init(AxisN(1));
for (i.init(cub, AxisN(2)); i!=i.end(); ++i) {
for (k = i; k!=k.end(); ++k) {
for (j = k; j!=j.end(); ++j) {
AlwaysAssertExit(*j == inx++);
}
}
}
}
cout << "ok" << endl <<
"
cout << "Testing Axis<> prev, next, index
inx = 0;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(); ++i) {
for (ArrayAccessor<Int, Axis<1> > j(i); j!=j.end(); ++j) {
AlwaysAssertExit(*j == inx);
AlwaysAssertExit(j.next<Axis<0> >() == inx+1);
AlwaysAssertExit(j.index<Axis<0> >(2) == inx+2);
AlwaysAssertExit(j.next(AxisN(0)) == inx+1);
AlwaysAssertExit(j.index(2, AxisN(0)) == inx+2);
if (j == j.end()-1) {
AlwaysAssertExit(j.prev<Axis<0> >() == inx-1);
AlwaysAssertExit(j.prev(AxisN(0)) == inx-1);
}
inx += N0;
}
}
cout << "ok" << endl <<
"
cout << "Testing += -=
inx = 0;
Int ln = N0*N1;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(-4); ++i) {
AlwaysAssertExit(*i == inx);
++i; AlwaysAssertExit(*i == inx+1*ln);
i++; AlwaysAssertExit(*i == inx+2*ln);
--i; AlwaysAssertExit(*i == inx+1*ln);
i--; AlwaysAssertExit(*i == inx);
i += 3; AlwaysAssertExit(*i == inx+3*ln);
i -= 1; AlwaysAssertExit(*i == inx+2*ln);
i -= 2;
inx += ln;
}
cout << "ok" << endl <<
"
cout << "Testing dereferencing
inx = 0;
uInt cnt = 0;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(-2); ++i) {
AlwaysAssertExit(*i == inx);
AlwaysAssertExit(i.data() == &cub(0,0,cnt));
AlwaysAssertExit(&(i.baseArray()) == &cub);
AlwaysAssertExit(i[2] == inx+2*ln);
AlwaysAssertExit(i.step() == uInt(ln));
inx += ln;
++cnt;
}
cout << "ok" << endl <<
"
cout << "Testing end(), begin(), rbegin(), rend()
inx = 0;
for (ArrayAccessor<Int, Axis<2> > i(cub); i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
AlwaysAssertExit(i.begin() == &cub(0,0,0));
AlwaysAssertExit(i.end() == i.begin()+N2*ln);
AlwaysAssertExit(i.rbegin() == i.end()-ln);
AlwaysAssertExit(i.rend() == i.begin()-ln);
AlwaysAssertExit(i.begin(-2) == i.begin()-2*ln);
AlwaysAssertExit(i.end(-1) == i.begin()+N2*ln-ln);
AlwaysAssertExit(i.rbegin(+5) == i.end()-ln+5*ln);
AlwaysAssertExit(i.rend(1) == i.begin());
inx += ln;
}
cout << "ok" << endl <<
"
cout << "Testing Axis<> and AxisN reset()
inx = 0;
{
ArrayAccessor<Int, Axis<2> > i(cub);
for (; i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
inx = 0;
for (i.reset(); i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
inx = 2*ln;
for (i.reset(i.begin(2)); i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
}
{
inx = 0;
ArrayAccessor<Int, AxisN> i(cub, AxisN(2));
for (; i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
inx = 0;
for (i.reset(); i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
inx = 2*ln;
for (i.reset(i.begin(2)); i!=i.end(); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
}
cout << "ok" << endl <<
"
cout << "Testing Axis<> and AxisN split loops
inx = 0;
{
ArrayAccessor<Int, Axis<2> > i(cub);
ArrayAccessor<Int, Axis<2> > j;
for (; i!=i.end(-2); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
for (j = i; j!=j.end(); ++j) {
AlwaysAssertExit(*j == inx);
inx += ln;
}
}
inx = 0;
{
ArrayAccessor<Int, AxisN> i(cub, AxisN(2));
ArrayAccessor<Int, AxisN> j(AxisN(2));
for (; i!=i.end(-2); ++i) {
AlwaysAssertExit(*i == inx);
inx += ln;
}
for (j = i; j!=j.end(); ++j) {
AlwaysAssertExit(*j == inx);
inx += ln;
}
}
cout << "ok" << endl <<
"
} catch (AipsError& x) {
cout << x.getMesg() << endl;
return 1;
}
return 0;
}
|
/* Common style */
.grideeeeee {
margin: 40px auto 120px;
max-width: 1000px;
width: 90%;
}
.grideee a {
float: left;
width: 240px;
height: 240px;
color: #333;
margin-bottom:15px;
font-size:15px !important;
margin-right:15px;
}
.grideee figure {
position: relative;
overflow: hidden;
margin: 5px;
background: #333;
}
.grideee figure img {
position: relative;
display: block;
width: 100%;
opacity: 0.7;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;
}
.grideee figcaption {
position: absolute;
top: 0;
z-index: 11;
padding: 10px;
width: 100%;
height: 100%;
text-align: center;
}
.grideee figcaption h2 {
margin: 0 0 20px 0;
color: #3498db;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 300;
font-size: 130%;
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.grideee figcaption p {
padding: 0 20px;
color: #aaa;
font-weight: 300;
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
transition: opacity 0.3s, transform 0.3s;
}
.grideee figcaption h2,
.grideee figcaption p {
-webkit-transform: translateY(50px);
transform: translateY(50px);
}
.grideee figure button {
position: absolute;
padding: 4px 20px;
border: none;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
transition: opacity 0.3s, transform 0.3s;
}
.grideee figcaption,
.grideee figcaption h2,
.grideee figcaption p,
.grideee figure button {
-<API key>: hidden;
backface-visibility: hidden;
}
/* Style for SVG */
.grideee svg {
position: absolute;
top: -1px; /* fixes rendering issue in FF */
z-index: 10;
width: 100%;
height: 100%;
}
.grideee svg path {
fill: #fff;
}
/* Hover effects */
.grideee a:hover figure img {
opacity: 1;
}
.grideee a:hover figcaption h2,
.grideee a:hover figcaption p {
-webkit-transform: translateY(10);
transform: translateY(10);
}
.grideee a:hover figcaption p {
opacity: 0;
}
.container .grideee figure button {
top: 50%;
left: 50%;
border: 3px solid #0bf;
background: #fff;
color: #0bf;
opacity: 0;
-webkit-transform: translateY(-50%) translateX(-50%) scale(0.25);
transform: translateY(-50%) translateX(-50%) scale(0.25);
}
.container .grideee a:hover figure button{
opacity: 1;
-webkit-transform: translateY(-50%) translateX(-50%) scale(1);
transform: translateY(-50%) translateX(-50%) scale(1);
}
/* Media Queries */
/* Let's redefine the width of each anchor and the margins */
@media screen and (max-width: 58em) {
.grideee a {
width: 33.333%;
}
.grideee a:nth-child(odd) {
margin: 0;
}
.grideee a:nth-child(3n-1) {
margin: 30px 0 -30px 0;
}
}
@media screen and (max-width: 45em) {
.grideee {
max-width: 500px;
}
.grideee a {
width: 50%;
}
.grideee a:nth-child(3n-1) {
margin: 0;
}
.grideee a:nth-child(even) {
margin: 30px 0 -30px 0;
}
.grideee figcaption h2 {
margin-bottom: 0px;
-webkit-transform: translateY(30px);
transform: translateY(30px);
}
.grideee figcaption p {
margin: 0;
padding: 0 10px;
}
}
@media screen and (max-width: 27em) {
.grideee {
max-width: 250px;
}
.grideee a {
width: 100%;
}
.grideee a:nth-child(even) {
margin: 0;
}
}
|
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>Paper Tiger: src/packets/player_info.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Paper Tiger
</div>
<div id="projectbrief">An open-source Terraria server written in C</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="<API key>">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="<API key>.html">src</a></li><li class="navelem"><a class="el" href="<API key>.html">packets</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">player_info.h</div> </div>
</div><!--header
<div class="contents">
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef _HAVE_PLAYER_INFO_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define _HAVE_PLAYER_INFO_H</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define <API key> 0x04</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * Base length + name length + 1</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define <API key> 29</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <uv.h></span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "../talloc/talloc.h"</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "../colour.h"</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">struct </span><a class="code" href="structplayer.html">player</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">struct </span><a class="code" href="structpacket.html">packet</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structplayer__info.html"> 43</a></span> <span class="keyword">struct </span><a class="code" href="structplayer__info.html">player_info</a> {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  uint8_t id;</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  uint8_t skin_variant;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  uint8_t hair;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">char</span> *name;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  uint8_t hair_dye;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  uint8_t hide_visuals;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  uint8_t hide_visuals2;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  uint8_t hide_misc;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> hair_colour;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> skin_colour;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> eye_colour;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> shirt_colour;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> under_shirt_colour;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> pants_colour;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">struct </span><a class="code" href="structcolour.html">colour</a> shoe_colour;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  uint8_t difficulty;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> };</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">int</span> player_info_new(<a class="code" href="group__talloc.html#<API key>">TALLOC_CTX</a> *ctx, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structplayer.html">player</a> *<a class="code" href="structplayer.html">player</a>, <span class="keyword">struct</span> <a class="code" href="structpacket.html">packet</a> **out_packet);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keywordtype">int</span> player_info_write(<a class="code" href="group__talloc.html#<API key>">TALLOC_CTX</a> *context, <span class="keyword">struct</span> <a class="code" href="structpacket.html">packet</a> *<a class="code" href="structpacket.html">packet</a>, uv_buf_t *buf);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keywordtype">int</span> player_info_read(<span class="keyword">struct</span> <a class="code" href="structpacket.html">packet</a> *<a class="code" href="structpacket.html">packet</a>, <span class="keyword">const</span> uv_buf_t *buf);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">int</span> player_info_handle(<span class="keyword">struct</span> <a class="code" href="structplayer.html">player</a> *<a class="code" href="structplayer.html">player</a>, <span class="keyword">struct</span> <a class="code" href="structpacket.html">packet</a> *<a class="code" href="structpacket.html">packet</a>);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#endif //_HAVE_player_info_H</span></div>
<div class="ttc" id="<API key>"><div class="ttname"><a href="group__talloc.html#<API key>">TALLOC_CTX</a></div><div class="ttdeci">void TALLOC_CTX</div><div class="ttdoc">Define a talloc parent type. </div><div class="ttdef"><b>Definition:</b> talloc.h:74</div></div>
<div class="ttc" id="structpacket_html"><div class="ttname"><a href="structpacket.html">packet</a></div><div class="ttdef"><b>Definition:</b> packet.h:38</div></div>
<div class="ttc" id="structcolour_html"><div class="ttname"><a href="structcolour.html">colour</a></div><div class="ttdef"><b>Definition:</b> colour.h:31</div></div>
<div class="ttc" id="<API key>"><div class="ttname"><a href="structplayer__info.html">player_info</a></div><div class="ttdef"><b>Definition:</b> player_info.h:43</div></div>
<div class="ttc" id="structplayer_html"><div class="ttname"><a href="structplayer.html">player</a></div><div class="ttdef"><b>Definition:</b> player.h:36</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
|
{php $bootstrap_type = 3;}
{template 'header'}
{php $this->pay($params);}
{template 'footerbar'}
<script>
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
});
</script>
|
# OpenKore - Sit/stand task
# Basically, this means that you're allowed to modify and distribute
# this software. However, if you distribute modified versions, you MUST
# also distribute the source code.
# MODULE DESCRIPTION: Sit/stand task.
# A task for sitting or standing. This task will keep sending sit or
# stand messages to the server until the character is actually sitting
# or standing.
package Task::SitStand;
use strict;
use Time::HiRes qw(time);
use Modules 'register';
use Task;
use base qw(Task);
use Globals qw(%timeout $net);
use Network;
use Skill;
use Translation qw(T);
use Utils qw(timeOut);
use Utils::Exceptions;
# Mutexes used by this task.
use constant MUTEXES => ['movement'];
# Error codes
use enum qw(NO_SIT_STAND_SKILL);
# Task::SitStand->new(options...)
# Create a new Task::SitStand object.
# The following options are allowed:
# - All options allowed for Task->new(), except 'mutexes'.
# - <tt>mode</tt> (required) - Either 'sit' or 'stand'. An ArgumentException will be thrown if you specify something else.
# - <tt>wait</tt> - Wait the specified number of seconds before actually trying to sit or stand. The default is 0.
sub new {
my $class = shift;
my %args = @_;
my $self = $class->SUPER::new(@_, mutexes => MUTEXES);
unless ($args{actor}->isa('Actor') and $args{mode} eq 'sit' || $args{mode} eq 'stand') {
ArgumentException->throw("Invalid arguments.");
}
$self->{$_} = $args{$_} for qw(actor mode);
$self->{wait}{timeout} = $args{wait};
$self->{retry}{timeout} = $timeout{ai_stand_wait}{timeout} || 1;
# $self->{sitSkill} = new Skill(handle => 'NV_BASIC');
return $self;
}
# Overrided method.
sub activate {
my ($self) = @_;
$self->SUPER::activate();
$self->{wait}{time} = time;
}
# Overrided method.
sub interrupt {
my ($self) = @_;
$self->SUPER::interrupt();
$self->{interruptionTime} = time;
}
# Overrided method.
sub resume {
my ($self) = @_;
$self->SUPER::resume();
$self->{wait}{time} += time - $self->{interruptionTime};
$self->{retry}{time} += time - $self->{interruptionTime};
}
# Overrided method.
sub iterate {
my ($self) = @_;
$self->SUPER::iterate();
return unless ($net->getState() == Network::IN_GAME);
unless ($self->{mode} eq 'sit' xor $self->{actor}{sitting}) {
$self->setDone();
$timeout{ai_sit}{time} = $timeout{ai_sit_wait}{time} = 0;
} elsif ($self->{actor}->getSkillLevel(new Skill(handle => 'NV_BASIC')) < 3 && ($self->{actor}{jobID} == 0 || $self->{actor}{jobID} == 161)) { # Check NV_BASIC skill only for Novice and High Novice
$self->setError(NO_SIT_STAND_SKILL, T("Basic Skill level 3 is required in order to sit or stand."));
} elsif (timeOut($self->{wait}) && timeOut($self->{retry})) {
if ($self->{mode} eq 'stand') {
$self->{actor}->sendStand;
} else {
$self->{actor}->sendSit;
}
$self->{retry}{time} = time;
}
}
1;
|
<?php
/**
* REST API Legacy Orders controller
*
* Handles requests to the /orders endpoint.
*
* @author WooThemes
* @category API
* @package WooCommerce/API
* @since 3.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* REST API Legacy Orders controller class.
*
* @package WooCommerce/API
* @extends <API key>
*/
class <API key> extends <API key> {
/**
* Endpoint namespace.
*
* @var string
*/
protected $namespace = 'wc/v2';
/**
* Query args.
*
* @deprecated 3.0
*
* @param array $args
* @param WP_REST_Request $request
* @return array
*/
public function query_args( $args, $request ) {
global $wpdb;
// Set post_status.
if ( 'any' !== $request['status'] ) {
$args['post_status'] = 'wc-' . $request['status'];
} else {
$args['post_status'] = 'any';
}
if ( ! empty( $request['customer'] ) ) {
if ( ! empty( $args['meta_query'] ) ) {
$args['meta_query'] = array();
}
$args['meta_query'][] = array(
'key' => '_customer_user',
'value' => $request['customer'],
'type' => 'NUMERIC',
);
}
// Search by product.
if ( ! empty( $request['product'] ) ) {
$order_ids = $wpdb->get_col( $wpdb->prepare( "
SELECT order_id
FROM {$wpdb->prefix}<API key>
WHERE order_item_id IN ( SELECT order_item_id FROM {$wpdb->prefix}<API key> WHERE meta_key = '_product_id' AND meta_value = %d )
AND order_item_type = 'line_item'
", $request['product'] ) );
// Force WP_Query return empty if don't found any order.
$order_ids = ! empty( $order_ids ) ? $order_ids : array( 0 );
$args['post__in'] = $order_ids;
}
// Search.
if ( ! empty( $args['s'] ) ) {
$order_ids = wc_order_search( $args['s'] );
if ( ! empty( $order_ids ) ) {
unset( $args['s'] );
$args['post__in'] = array_merge( $order_ids, array( 0 ) );
}
}
return $args;
}
/**
* Prepare a single order output for response.
*
* @deprecated 3.0
*
* @param WP_Post $post Post object.
* @param WP_REST_Request $request Request object.
* @return WP_REST_Response $data
*/
public function <API key>( $post, $request ) {
$this->request = $request;
$statuses = <API key>();
$order = wc_get_order( $post );
$data = array_merge( array( 'id' => $order->get_id() ), $order->get_data() );
$format_decimal = array( 'discount_total', 'discount_tax', 'shipping_total', 'shipping_tax', 'shipping_total', 'shipping_tax', 'cart_tax', 'total', 'total_tax' );
$format_date = array( 'date_created', 'date_modified', 'date_completed', 'date_paid' );
$format_line_items = array( 'line_items', 'tax_lines', 'shipping_lines', 'fee_lines', 'coupon_lines' );
// Format decimal values.
foreach ( $format_decimal as $key ) {
$data[ $key ] = wc_format_decimal( $data[ $key ], $this->request['dp'] );
}
// Format date values.
foreach ( $format_date as $key ) {
$data[ $key ] = $data[ $key ] ? <API key>( get_gmt_from_date( date( 'Y-m-d H:i:s', $data[ $key ] ) ) ) : false;
}
// Format the order status.
$data['status'] = 'wc-' === substr( $data['status'], 0, 3 ) ? substr( $data['status'], 3 ) : $data['status'];
// Format line items.
foreach ( $format_line_items as $key ) {
$data[ $key ] = array_values( array_map( array( $this, 'get_order_item_data' ), $data[ $key ] ) );
}
// Refunds.
$data['refunds'] = array();
foreach ( $order->get_refunds() as $refund ) {
$data['refunds'][] = array(
'id' => $refund->get_id(),
'refund' => $refund->get_reason() ? $refund->get_reason() : '',
'total' => '-' . wc_format_decimal( $refund->get_amount(), $this->request['dp'] ),
);
}
$context = ! empty( $request['context'] ) ? $request['context'] : 'view';
$data = $this-><API key>( $data, $request );
$data = $this-><API key>( $data, $context );
$response = <API key>( $data );
$response->add_links( $this->prepare_links( $order, $request ) );
/**
* Filter the data for a response.
*
* The dynamic portion of the hook name, $this->post_type, refers to post_type of the post being
* prepared for the response.
*
* @param WP_REST_Response $response The response object.
* @param WP_Post $post Post object.
* @param WP_REST_Request $request Request object.
*/
return apply_filters( "<API key>{$this->post_type}", $response, $post, $request );
}
/**
* Prepare a single order for create.
*
* @deprecated 3.0
*
* @param WP_REST_Request $request Request object.
* @return WP_Error|WC_Order $data Object.
*/
protected function <API key>( $request ) {
$id = isset( $request['id'] ) ? absint( $request['id'] ) : 0;
$order = new WC_Order( $id );
$schema = $this->get_item_schema();
$data_keys = array_keys( array_filter( $schema['properties'], array( $this, '<API key>' ) ) );
// Handle all writable props
foreach ( $data_keys as $key ) {
$value = $request[ $key ];
if ( ! is_null( $value ) ) {
switch ( $key ) {
case 'billing' :
case 'shipping' :
$this->update_address( $order, $value, $key );
break;
case 'line_items' :
case 'shipping_lines' :
case 'fee_lines' :
case 'coupon_lines' :
if ( is_array( $value ) ) {
foreach ( $value as $item ) {
if ( is_array( $item ) ) {
if ( $this->item_is_null( $item ) || ( isset( $item['quantity'] ) && 0 === $item['quantity'] ) ) {
$order->remove_item( $item['id'] );
} else {
$this->set_item( $order, $key, $item );
}
}
}
}
break;
case 'meta_data' :
if ( is_array( $value ) ) {
foreach ( $value as $meta ) {
$order->update_meta_data( $meta['key'], $meta['value'], isset( $meta['id'] ) ? $meta['id'] : '' );
}
}
break;
default :
if ( is_callable( array( $order, "set_{$key}" ) ) ) {
$order->{"set_{$key}"}( $value );
}
break;
}
}
}
/**
* Filter the data for the insert.
*
* The dynamic portion of the hook name, $this->post_type, refers to post_type of the post being
* prepared for the response.
*
* @param WC_Order $order The Order object.
* @param WP_REST_Request $request Request object.
*/
return apply_filters( "<API key>{$this->post_type}", $order, $request );
}
/**
* Create base WC Order object.
*
* @deprecated 3.0.0
*
* @param array $data
* @return WC_Order
*/
protected function create_base_order( $data ) {
return wc_create_order( $data );
}
/**
* Create order.
*
* @deprecated 3.0.0
*
* @param WP_REST_Request $request Full details about the request.
* @return int|WP_Error
*/
protected function create_order( $request ) {
try {
// Make sure customer exists.
if ( ! is_null( $request['customer_id'] ) && 0 !== $request['customer_id'] && false === get_user_by( 'id', $request['customer_id'] ) ) {
throw new WC_REST_Exception( '<API key>',__( 'Customer ID is invalid.', 'woocommerce' ), 400 );
}
$order = $this-><API key>( $request );
$order->set_created_via( 'rest-api' );
$order-><API key>( 'yes' === get_option( '<API key>' ) );
$order->calculate_totals();
$order->save();
// Handle set paid.
if ( true === $request['set_paid'] ) {
$order->payment_complete( $request['transaction_id'] );
}
return $order->get_id();
} catch ( WC_Data_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), $e->getErrorData() );
} catch ( WC_REST_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
}
}
/**
* Update order.
*
* @deprecated 3.0.0
*
* @param WP_REST_Request $request Full details about the request.
* @return int|WP_Error
*/
protected function update_order( $request ) {
try {
$order = $this-><API key>( $request );
$order->save();
// Handle set paid.
if ( $order->needs_payment() && true === $request['set_paid'] ) {
$order->payment_complete( $request['transaction_id'] );
}
// If items have changed, recalculate order totals.
if ( isset( $request['billing'] ) || isset( $request['shipping'] ) || isset( $request['line_items'] ) || isset( $request['shipping_lines'] ) || isset( $request['fee_lines'] ) || isset( $request['coupon_lines'] ) ) {
$order->calculate_totals();
}
return $order->get_id();
} catch ( WC_Data_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), $e->getErrorData() );
} catch ( WC_REST_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
}
}
}
|
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/writeback.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/tracepoint.h>
#include "internal.h"
/*
* 4MB minimal write chunk size
*/
#define MIN_WRITEBACK_PAGES (4096UL >> (PAGE_CACHE_SHIFT - 10))
/*
* Passed into wb_writeback(), essentially a subset of writeback_control
*/
struct wb_writeback_work {
long nr_pages;
struct super_block *sb;
unsigned long *older_than_this;
enum <API key> sync_mode;
unsigned int tagged_writepages:1;
unsigned int for_kupdate:1;
unsigned int range_cyclic:1;
unsigned int for_background:1;
enum wb_reason reason; /* why was writeback initiated? */
struct list_head list; /* pending work list */
struct completion *done; /* set if the caller waits */
};
/*
* We don't actually have pdflush, but this one is exported though /proc...
*/
int nr_pdflush_threads;
/**
* <API key> - determine whether there is writeback in progress
* @bdi: the device's backing_dev_info structure.
*
* Determine whether there is writeback waiting to be handled against a
* backing device.
*/
int <API key>(struct backing_dev_info *bdi)
{
return test_bit(<API key>, &bdi->state);
}
EXPORT_SYMBOL(<API key>);
static inline struct backing_dev_info *inode_to_bdi(struct inode *inode)
{
struct super_block *sb = inode->i_sb;
if (strcmp(sb->s_type->name, "bdev") == 0)
return inode->i_mapping->backing_dev_info;
return sb->s_bdi;
}
static inline struct inode *wb_inode(struct list_head *head)
{
return list_entry(head, struct inode, i_wb_list);
}
/*
* Include the creation of the trace points after defining the
* wb_writeback_work structure and inline functions so that the definition
* remains local to this file.
*/
#define CREATE_TRACE_POINTS
#include <trace/events/writeback.h>
/* Wakeup flusher thread or forker thread to fork it. Requires bdi->wb_lock. */
static void bdi_wakeup_flusher(struct backing_dev_info *bdi)
{
if (bdi->wb.task) {
wake_up_process(bdi->wb.task);
} else {
/*
* The bdi thread isn't there, wake up the forker thread which
* will create and run it.
*/
wake_up_process(<API key>.wb.task);
}
}
static void bdi_queue_work(struct backing_dev_info *bdi,
struct wb_writeback_work *work)
{
<API key>(bdi, work);
spin_lock_bh(&bdi->wb_lock);
list_add_tail(&work->list, &bdi->work_list);
if (!bdi->wb.task)
<API key>(bdi, work);
bdi_wakeup_flusher(bdi);
spin_unlock_bh(&bdi->wb_lock);
}
static void
<API key>(struct backing_dev_info *bdi, long nr_pages,
bool range_cyclic, enum wb_reason reason)
{
struct wb_writeback_work *work;
/*
* This is WB_SYNC_NONE writeback, so if allocation fails just
* wakeup the thread for old dirty data writeback
*/
work = kzalloc(sizeof(*work), GFP_ATOMIC);
if (!work) {
if (bdi->wb.task) {
<API key>(bdi);
wake_up_process(bdi->wb.task);
}
return;
}
work->sync_mode = WB_SYNC_NONE;
work->nr_pages = nr_pages;
work->range_cyclic = range_cyclic;
work->reason = reason;
bdi_queue_work(bdi, work);
}
/**
* bdi_start_writeback - start writeback
* @bdi: the backing device to write from
* @nr_pages: the number of pages to write
* @reason: reason why some writeback work was initiated
*
* Description:
* This does WB_SYNC_NONE opportunistic writeback. The IO is only
* started when this function returns, we make no guarantees on
* completion. Caller need not hold sb s_umount semaphore.
*
*/
void bdi_start_writeback(struct backing_dev_info *bdi, long nr_pages,
enum wb_reason reason)
{
<API key>(bdi, nr_pages, true, reason);
}
/**
* <API key> - start background writeback
* @bdi: the backing device to write from
*
* Description:
* This makes sure WB_SYNC_NONE background writeback happens. When
* this function returns, it is only guaranteed that for given BDI
* some IO is happening if we are over background dirty threshold.
* Caller need not hold sb s_umount semaphore.
*/
void <API key>(struct backing_dev_info *bdi)
{
/*
* We just wake up the flusher thread. It will perform background
* writeback as soon as there is no other work to do.
*/
<API key>(bdi);
spin_lock_bh(&bdi->wb_lock);
bdi_wakeup_flusher(bdi);
spin_unlock_bh(&bdi->wb_lock);
}
/*
* Remove the inode from the writeback list it is on.
*/
void inode_wb_list_del(struct inode *inode)
{
struct backing_dev_info *bdi = inode_to_bdi(inode);
spin_lock(&bdi->wb.list_lock);
list_del_init(&inode->i_wb_list);
spin_unlock(&bdi->wb.list_lock);
}
/*
* Redirty an inode: set its when-it-was dirtied timestamp and move it to the
* furthest end of its superblock's dirty-inode list.
*
* Before stamping the inode's ->dirtied_when, we check to see whether it is
* already the <API key> inode on the b_dirty list. If that is
* the case then the inode must have been redirtied while it was being written
* out and we don't reset its dirtied_when.
*/
static void redirty_tail(struct inode *inode, struct bdi_writeback *wb)
{
assert_spin_locked(&wb->list_lock);
if (!list_empty(&wb->b_dirty)) {
struct inode *tail;
tail = wb_inode(wb->b_dirty.next);
if (time_before(inode->dirtied_when, tail->dirtied_when))
inode->dirtied_when = jiffies;
}
list_move(&inode->i_wb_list, &wb->b_dirty);
}
/*
* requeue inode for re-scanning after bdi->b_io list is exhausted.
*/
static void requeue_io(struct inode *inode, struct bdi_writeback *wb)
{
assert_spin_locked(&wb->list_lock);
list_move(&inode->i_wb_list, &wb->b_more_io);
}
static void inode_sync_complete(struct inode *inode)
{
/*
* Prevent speculative execution through
* spin_unlock(&wb->list_lock);
*/
smp_mb();
wake_up_bit(&inode->i_state, __I_SYNC);
}
static bool inode_dirtied_after(struct inode *inode, unsigned long t)
{
bool ret = time_after(inode->dirtied_when, t);
#ifndef CONFIG_64BIT
/*
* For inodes being constantly redirtied, dirtied_when can get stuck.
* It _appears_ to be in the future, but is actually in distant past.
* This test is necessary to prevent such wrapped-around relative times
* from permanently stopping the whole bdi writeback.
*/
ret = ret && time_before_eq(inode->dirtied_when, jiffies);
#endif
return ret;
}
/*
* Move expired (dirtied after work->older_than_this) dirty inodes from
* @delaying_queue to @dispatch_queue.
*/
static int move_expired_inodes(struct list_head *delaying_queue,
struct list_head *dispatch_queue,
struct wb_writeback_work *work)
{
LIST_HEAD(tmp);
struct list_head *pos, *node;
struct super_block *sb = NULL;
struct inode *inode;
int do_sb_sort = 0;
int moved = 0;
while (!list_empty(delaying_queue)) {
inode = wb_inode(delaying_queue->prev);
if (work->older_than_this &&
inode_dirtied_after(inode, *work->older_than_this))
break;
if (sb && sb != inode->i_sb)
do_sb_sort = 1;
sb = inode->i_sb;
list_move(&inode->i_wb_list, &tmp);
moved++;
}
/* just one sb in list, splice to dispatch_queue and we're done */
if (!do_sb_sort) {
list_splice(&tmp, dispatch_queue);
goto out;
}
/* Move inodes from one superblock together */
while (!list_empty(&tmp)) {
sb = wb_inode(tmp.prev)->i_sb;
<API key>(pos, node, &tmp) {
inode = wb_inode(pos);
if (inode->i_sb == sb)
list_move(&inode->i_wb_list, dispatch_queue);
}
}
out:
return moved;
}
static void queue_io(struct bdi_writeback *wb, struct wb_writeback_work *work)
{
int moved;
assert_spin_locked(&wb->list_lock);
list_splice_init(&wb->b_more_io, &wb->b_io);
moved = move_expired_inodes(&wb->b_dirty, &wb->b_io, work);
<API key>(wb, work, moved);
}
static int write_inode(struct inode *inode, struct writeback_control *wbc)
{
if (inode->i_sb->s_op->write_inode && !is_bad_inode(inode))
return inode->i_sb->s_op->write_inode(inode, wbc);
return 0;
}
/*
* Wait for writeback on an inode to complete.
*/
static void <API key>(struct inode *inode,
struct bdi_writeback *wb)
{
DEFINE_WAIT_BIT(wq, &inode->i_state, __I_SYNC);
wait_queue_head_t *wqh;
wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
while (inode->i_state & I_SYNC) {
spin_unlock(&inode->i_lock);
spin_unlock(&wb->list_lock);
__wait_on_bit(wqh, &wq, inode_wait, <API key>);
spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock);
}
}
/*
* Write out an inode's dirty pages. Called under wb->list_lock and
* inode->i_lock. Either the caller has an active reference on the inode or
* the inode has I_WILL_FREE set.
*
* If `wait' is set, wait on the writeout.
*
* The whole writeout design is quite complex and fragile. We want to avoid
* starvation of particular inodes when others are being redirtied, prevent
* livelocks, etc.
*/
static int
<API key>(struct inode *inode, struct bdi_writeback *wb,
struct writeback_control *wbc)
{
struct address_space *mapping = inode->i_mapping;
long nr_to_write = wbc->nr_to_write;
unsigned dirty;
int ret;
assert_spin_locked(&wb->list_lock);
assert_spin_locked(&inode->i_lock);
if (!atomic_read(&inode->i_count))
WARN_ON(!(inode->i_state & (I_WILL_FREE|I_FREEING)));
else
WARN_ON(inode->i_state & I_WILL_FREE);
if (inode->i_state & I_SYNC) {
/*
* If this inode is locked for writeback and we are not doing
* <API key>, move it to b_more_io so that
* writeback can proceed with the other inodes on s_io.
*
* We'll have another go at writing back this inode when we
* completed a full scan of b_io.
*/
if (wbc->sync_mode != WB_SYNC_ALL) {
requeue_io(inode, wb);
<API key>(inode, wbc,
nr_to_write);
return 0;
}
/*
* It's a data-integrity sync. We must wait.
*/
<API key>(inode, wb);
}
BUG_ON(inode->i_state & I_SYNC);
/* Set I_SYNC, reset I_DIRTY_PAGES */
inode->i_state |= I_SYNC;
inode->i_state &= ~I_DIRTY_PAGES;
spin_unlock(&inode->i_lock);
spin_unlock(&wb->list_lock);
ret = do_writepages(mapping, wbc);
/*
* Make sure to wait on the data before writing out the metadata.
* This is important for filesystems that modify metadata on data
* I/O completion.
*/
if (wbc->sync_mode == WB_SYNC_ALL) {
int err = filemap_fdatawait(mapping);
if (ret == 0)
ret = err;
}
/*
* Some filesystems may redirty the inode during the writeback
* due to delalloc, clear dirty metadata flags right before
* write_inode()
*/
spin_lock(&inode->i_lock);
dirty = inode->i_state & I_DIRTY;
inode->i_state &= ~(I_DIRTY_SYNC | I_DIRTY_DATASYNC);
spin_unlock(&inode->i_lock);
/* Don't write the inode if only I_DIRTY_PAGES was set */
if (dirty & (I_DIRTY_SYNC | I_DIRTY_DATASYNC)) {
int err = write_inode(inode, wbc);
if (ret == 0)
ret = err;
}
spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock);
inode->i_state &= ~I_SYNC;
if (!(inode->i_state & I_FREEING)) {
/*
* Sync livelock prevention. Each inode is tagged and synced in
* one shot. If still dirty, it will be redirty_tail()'ed below.
* Update the dirty time to prevent enqueue and sync it again.
*/
if ((inode->i_state & I_DIRTY) &&
(wbc->sync_mode == WB_SYNC_ALL || wbc->tagged_writepages))
inode->dirtied_when = jiffies;
if (mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) {
/*
* We didn't write back all the pages. nfs_writepages()
* sometimes bales out without doing anything.
*/
inode->i_state |= I_DIRTY_PAGES;
if (wbc->nr_to_write <= 0) {
/*
* slice used up: queue for next turn
*/
requeue_io(inode, wb);
} else {
/*
* Writeback blocked by something other than
* congestion. Delay the inode for some time to
* avoid spinning on the CPU (100% iowait)
* retrying writeback of the dirty page/inode
* that cannot be performed immediately.
*/
redirty_tail(inode, wb);
}
} else if (inode->i_state & I_DIRTY) {
/*
* Filesystems can dirty the inode during writeback
* operations, such as delayed allocation during
* submission or metadata updates after data IO
* completion.
*/
redirty_tail(inode, wb);
} else {
/*
* The inode is clean. At this point we either have
* a reference to the inode or it's on it's way out.
* No need to add it back to the LRU.
*/
list_del_init(&inode->i_wb_list);
}
}
inode_sync_complete(inode);
<API key>(inode, wbc, nr_to_write);
return ret;
}
static long <API key>(struct backing_dev_info *bdi,
struct wb_writeback_work *work)
{
long pages;
/*
* WB_SYNC_ALL mode does livelock avoidance by syncing dirty
* inodes/pages in one big loop. Setting wbc.nr_to_write=LONG_MAX
* here avoids calling into writeback_inodes_wb() more than once.
*
* The intended call sequence for WB_SYNC_ALL writeback is:
*
* wb_writeback()
* writeback_sb_inodes() <== called only once
* write_cache_pages() <== called once for each inode
* (quickly) tag currently dirty pages
* (maybe slowly) sync all tagged pages
*/
if (work->sync_mode == WB_SYNC_ALL || work->tagged_writepages)
pages = LONG_MAX;
else {
pages = min(bdi->avg_write_bandwidth / 2,
global_dirty_limit / DIRTY_SCOPE);
pages = min(pages, work->nr_pages);
pages = round_down(pages + MIN_WRITEBACK_PAGES,
MIN_WRITEBACK_PAGES);
}
return pages;
}
/*
* Write a portion of b_io inodes which belong to @sb.
*
* If @only_this_sb is true, then find and write all such
* inodes. Otherwise write only ones which go sequentially
* in reverse order.
*
* Return the number of pages and/or inodes written.
*/
static long writeback_sb_inodes(struct super_block *sb,
struct bdi_writeback *wb,
struct wb_writeback_work *work)
{
struct writeback_control wbc = {
.sync_mode = work->sync_mode,
.tagged_writepages = work->tagged_writepages,
.for_kupdate = work->for_kupdate,
.for_background = work->for_background,
.range_cyclic = work->range_cyclic,
.range_start = 0,
.range_end = LLONG_MAX,
};
unsigned long start_time = jiffies;
long write_chunk;
long wrote = 0; /* count both pages and inodes */
while (!list_empty(&wb->b_io)) {
struct inode *inode = wb_inode(wb->b_io.prev);
if (inode->i_sb != sb) {
if (work->sb) {
/*
* We only want to write back data for this
* superblock, move all inodes not belonging
* to it back onto the dirty list.
*/
redirty_tail(inode, wb);
continue;
}
/*
* The inode belongs to a different superblock.
* Bounce back to the caller to unpin this and
* pin the next superblock.
*/
break;
}
/*
* Don't bother with new inodes or inodes beeing freed, first
* kind does not need peridic writeout yet, and for the latter
* kind writeout is handled by the freer.
*/
spin_lock(&inode->i_lock);
if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) {
spin_unlock(&inode->i_lock);
redirty_tail(inode, wb);
continue;
}
__iget(inode);
write_chunk = <API key>(wb->bdi, work);
wbc.nr_to_write = write_chunk;
wbc.pages_skipped = 0;
<API key>(inode, wb, &wbc);
work->nr_pages -= write_chunk - wbc.nr_to_write;
wrote += write_chunk - wbc.nr_to_write;
if (!(inode->i_state & I_DIRTY))
wrote++;
if (wbc.pages_skipped) {
/*
* writeback is not making progress due to locked
* buffers. Skip this inode for now.
*/
redirty_tail(inode, wb);
}
spin_unlock(&inode->i_lock);
spin_unlock(&wb->list_lock);
iput(inode);
cond_resched();
spin_lock(&wb->list_lock);
/*
* bail out to wb_writeback() often enough to check
* background threshold and other termination conditions.
*/
if (wrote) {
if (<API key>(start_time + HZ / 10UL))
break;
if (work->nr_pages <= 0)
break;
}
}
return wrote;
}
static long <API key>(struct bdi_writeback *wb,
struct wb_writeback_work *work)
{
unsigned long start_time = jiffies;
long wrote = 0;
while (!list_empty(&wb->b_io)) {
struct inode *inode = wb_inode(wb->b_io.prev);
struct super_block *sb = inode->i_sb;
if (!grab_super_passive(sb)) {
/*
* grab_super_passive() may fail consistently due to
* s_umount being grabbed by someone else. Don't use
* requeue_io() to avoid busy retrying the inode/sb.
*/
redirty_tail(inode, wb);
continue;
}
wrote += writeback_sb_inodes(sb, wb, work);
drop_super(sb);
/* refer to the same tests at the end of writeback_sb_inodes */
if (wrote) {
if (<API key>(start_time + HZ / 10UL))
break;
if (work->nr_pages <= 0)
break;
}
}
/* Leave any unwritten inodes on b_io */
return wrote;
}
long writeback_inodes_wb(struct bdi_writeback *wb, long nr_pages,
enum wb_reason reason)
{
struct wb_writeback_work work = {
.nr_pages = nr_pages,
.sync_mode = WB_SYNC_NONE,
.range_cyclic = 1,
.reason = reason,
};
spin_lock(&wb->list_lock);
if (list_empty(&wb->b_io))
queue_io(wb, &work);
<API key>(wb, &work);
spin_unlock(&wb->list_lock);
return nr_pages - work.nr_pages;
}
static bool over_bground_thresh(struct backing_dev_info *bdi)
{
unsigned long background_thresh, dirty_thresh;
global_dirty_limits(&background_thresh, &dirty_thresh);
if (bdi_stat(bdi, BDI_RECLAIMABLE) >
bdi_dirty_limit(bdi, background_thresh))
return true;
return false;
}
/*
* Called under wb->list_lock. If there are multiple wb per bdi,
* only the flusher working on the first wb should do it.
*/
static void wb_update_bandwidth(struct bdi_writeback *wb,
unsigned long start_time)
{
<API key>(wb->bdi, 0, 0, 0, 0, 0, start_time);
}
/*
* Explicit flushing or periodic writeback of "old" data.
*
* Define "old": the first time one of an inode's pages is dirtied, we mark the
* dirtying-time in the inode's address_space. So this periodic writeback code
* just walks the superblock inode list, writing back any inodes which are
* older than a specific point in time.
*
* Try to run once per <API key>. But if a writeback event
* takes longer than a <API key> interval, then leave a
* one-second gap.
*
* older_than_this takes precedence over nr_to_write. So we'll only write back
* all dirty pages if they are all attached to "old" mappings.
*/
static long wb_writeback(struct bdi_writeback *wb,
struct wb_writeback_work *work)
{
unsigned long wb_start = jiffies;
long nr_pages = work->nr_pages;
unsigned long oldest_jif;
struct inode *inode;
long progress;
oldest_jif = jiffies;
work->older_than_this = &oldest_jif;
spin_lock(&wb->list_lock);
for (;;) {
/*
* Stop writeback when nr_pages has been consumed
*/
if (work->nr_pages <= 0)
break;
/*
* Background writeout and kupdate-style writeback may
* run forever. Stop them if there is other work to do
* so that e.g. sync can proceed. They'll be restarted
* after the other works are all done.
*/
if ((work->for_background || work->for_kupdate) &&
!list_empty(&wb->bdi->work_list))
break;
/*
* For background writeout, stop when we are below the
* background dirty threshold
*/
if (work->for_background && !over_bground_thresh(wb->bdi))
break;
/*
* Kupdate and background works are special and we want to
* include all inodes that need writing. Livelock avoidance is
* handled by these works yielding to any other work so we are
* safe.
*/
if (work->for_kupdate) {
oldest_jif = jiffies -
msecs_to_jiffies(<API key> * 10);
} else if (work->for_background)
oldest_jif = jiffies;
<API key>(wb->bdi, work);
if (list_empty(&wb->b_io))
queue_io(wb, work);
if (work->sb)
progress = writeback_sb_inodes(work->sb, wb, work);
else
progress = <API key>(wb, work);
<API key>(wb->bdi, work);
wb_update_bandwidth(wb, wb_start);
/*
* Did we write something? Try for more
*
* Dirty inodes are moved to b_io for writeback in batches.
* The completion of the current batch does not necessarily
* mean the overall work is done. So we keep looping as long
* as made some progress on cleaning pages or inodes.
*/
if (progress)
continue;
/*
* No more inodes for IO, bail
*/
if (list_empty(&wb->b_more_io))
break;
/*
* Nothing written. Wait for some inode to
* become available for writeback. Otherwise
* we'll just busyloop.
*/
if (!list_empty(&wb->b_more_io)) {
<API key>(wb->bdi, work);
inode = wb_inode(wb->b_more_io.prev);
spin_lock(&inode->i_lock);
<API key>(inode, wb);
spin_unlock(&inode->i_lock);
}
}
spin_unlock(&wb->list_lock);
return nr_pages - work->nr_pages;
}
/*
* Return the next wb_writeback_work struct that hasn't been processed yet.
*/
static struct wb_writeback_work *
get_next_work_item(struct backing_dev_info *bdi)
{
struct wb_writeback_work *work = NULL;
spin_lock_bh(&bdi->wb_lock);
if (!list_empty(&bdi->work_list)) {
work = list_entry(bdi->work_list.next,
struct wb_writeback_work, list);
list_del_init(&work->list);
}
spin_unlock_bh(&bdi->wb_lock);
return work;
}
/*
* Add in the number of potentially dirty inodes, because each inode
* write can dirty pagecache in the underlying blockdev.
*/
static unsigned long get_nr_dirty_pages(void)
{
return global_page_state(NR_FILE_DIRTY) +
global_page_state(NR_UNSTABLE_NFS) +
get_nr_dirty_inodes();
}
static long <API key>(struct bdi_writeback *wb)
{
if (over_bground_thresh(wb->bdi)) {
struct wb_writeback_work work = {
.nr_pages = LONG_MAX,
.sync_mode = WB_SYNC_NONE,
.for_background = 1,
.range_cyclic = 1,
.reason = <API key>,
};
return wb_writeback(wb, &work);
}
return 0;
}
static long <API key>(struct bdi_writeback *wb)
{
unsigned long expired;
long nr_pages;
/*
* When set to zero, disable periodic writeback
*/
if (!<API key>)
return 0;
expired = wb->last_old_flush +
msecs_to_jiffies(<API key> * 10);
if (time_before(jiffies, expired))
return 0;
wb->last_old_flush = jiffies;
nr_pages = get_nr_dirty_pages();
if (nr_pages) {
struct wb_writeback_work work = {
.nr_pages = nr_pages,
.sync_mode = WB_SYNC_NONE,
.for_kupdate = 1,
.range_cyclic = 1,
.reason = WB_REASON_PERIODIC,
};
return wb_writeback(wb, &work);
}
return 0;
}
/*
* Retrieve work items and do the writeback they describe
*/
long wb_do_writeback(struct bdi_writeback *wb, int force_wait)
{
struct backing_dev_info *bdi = wb->bdi;
struct wb_writeback_work *work;
long wrote = 0;
set_bit(<API key>, &wb->bdi->state);
while ((work = get_next_work_item(bdi)) != NULL) {
/*
* Override sync mode, in case we must wait for completion
* because this thread is exiting now.
*/
if (force_wait)
work->sync_mode = WB_SYNC_ALL;
/* This trace causes an ICE in gcc4.7
* For more information look into this commits message.
* <API key>(bdi, work);
*/
wrote += wb_writeback(wb, work);
/*
* Notify the caller of completion if this is a synchronous
* work item, otherwise just free it.
*/
if (work->done)
complete(work->done);
else
kfree(work);
}
/*
* Check for periodic writeback, kupdated() style
*/
wrote += <API key>(wb);
wrote += <API key>(wb);
clear_bit(<API key>, &wb->bdi->state);
return wrote;
}
/*
* Handle writeback of dirty data for the device backed by this bdi. Also
* wakes up periodically and does kupdated style flushing.
*/
int <API key>(void *data)
{
struct bdi_writeback *wb = data;
struct backing_dev_info *bdi = wb->bdi;
long pages_written;
current->flags |= PF_SWAPWRITE;
set_freezable();
wb->last_active = jiffies;
/*
* Our parent may run at a different priority, just set us to normal
*/
set_user_nice(current, 0);
<API key>(bdi);
while (!<API key>(NULL)) {
/*
* Remove own delayed wake-up timer, since we are already awake
* and we'll take care of the preriodic write-back.
*/
del_timer(&wb->wakeup_timer);
pages_written = wb_do_writeback(wb, 0);
<API key>(pages_written);
if (pages_written)
wb->last_active = jiffies;
set_current_state(TASK_INTERRUPTIBLE);
if (!list_empty(&bdi->work_list) || kthread_should_stop()) {
__set_current_state(TASK_RUNNING);
continue;
}
if (wb_has_dirty_io(wb) && <API key>)
schedule_timeout(msecs_to_jiffies(<API key> * 10));
else {
/*
* We have nothing to do, so can go sleep without any
* timeout and save power. When a work is queued or
* something is made dirty - we will be woken up.
*/
schedule();
}
}
/* Flush any work that raced with us exiting */
if (!list_empty(&bdi->work_list))
wb_do_writeback(wb, 1);
<API key>(bdi);
return 0;
}
/*
* Start writeback of `nr_pages' pages. If `nr_pages' is zero, write back
* the whole world.
*/
void <API key>(long nr_pages, enum wb_reason reason)
{
struct backing_dev_info *bdi;
if (!nr_pages) {
nr_pages = global_page_state(NR_FILE_DIRTY) +
global_page_state(NR_UNSTABLE_NFS);
}
rcu_read_lock();
<API key>(bdi, &bdi_list, bdi_list) {
if (!bdi_has_dirty_io(bdi))
continue;
<API key>(bdi, nr_pages, false, reason);
}
rcu_read_unlock();
}
static noinline void <API key>(struct inode *inode)
{
if (inode->i_ino || strcmp(inode->i_sb->s_id, "bdev")) {
struct dentry *dentry;
const char *name = "?";
dentry = d_find_alias(inode);
if (dentry) {
spin_lock(&dentry->d_lock);
name = (const char *) dentry->d_name.name;
}
printk(KERN_DEBUG
"%s(%d): dirtied inode %lu (%s) on %s\n",
current->comm, task_pid_nr(current), inode->i_ino,
name, inode->i_sb->s_id);
if (dentry) {
spin_unlock(&dentry->d_lock);
dput(dentry);
}
}
}
/**
* __mark_inode_dirty - internal function
* @inode: inode to mark
* @flags: what kind of dirty (i.e. I_DIRTY_SYNC)
* Mark an inode as dirty. Callers should use mark_inode_dirty or
* <API key>.
*
* Put the inode on the super block's dirty list.
*
* CAREFUL! We mark it dirty unconditionally, but move it onto the
* dirty list only if it is hashed or if it refers to a blockdev.
* If it was not hashed, it will never be added to the dirty list
* even if it is later hashed, as it will have been marked dirty already.
*
* In short, make sure you hash any inodes _before_ you start marking
* them dirty.
*
* Note that for blockdevs, inode->dirtied_when represents the dirtying time of
* the block-special inode (/dev/hda1) itself. And the ->dirtied_when field of
* the kernel-internal blockdev inode represents the dirtying time of the
* blockdev's pages. This is why for I_DIRTY_PAGES we always use
* page->mapping->host, so the page-dirtying time is recorded in the internal
* blockdev inode.
*/
void __mark_inode_dirty(struct inode *inode, int flags)
{
struct super_block *sb = inode->i_sb;
struct backing_dev_info *bdi = NULL;
/*
* Don't do this for I_DIRTY_PAGES - that doesn't actually
* dirty the inode itself
*/
if (flags & (I_DIRTY_SYNC | I_DIRTY_DATASYNC)) {
if (sb->s_op->dirty_inode)
sb->s_op->dirty_inode(inode, flags);
}
/*
* make sure that changes are seen by all cpus before we test i_state
* -- mikulas
*/
smp_mb();
/* avoid the locking if we can */
if ((inode->i_state & flags) == flags)
return;
if (unlikely(block_dump > 1))
<API key>(inode);
spin_lock(&inode->i_lock);
if ((inode->i_state & flags) != flags) {
const int was_dirty = inode->i_state & I_DIRTY;
inode->i_state |= flags;
/*
* If the inode is being synced, just update its dirty state.
* The unlocker will place the inode on the appropriate
* superblock list, based upon its state.
*/
if (inode->i_state & I_SYNC)
goto out_unlock_inode;
/*
* Only add valid (hashed) inodes to the superblock's
* dirty list. Add blockdev inodes as well.
*/
if (!S_ISBLK(inode->i_mode)) {
if (inode_unhashed(inode))
goto out_unlock_inode;
}
if (inode->i_state & I_FREEING)
goto out_unlock_inode;
/*
* If the inode was already on b_dirty/b_io/b_more_io, don't
* reposition it (that would break b_dirty time-ordering).
*/
if (!was_dirty) {
bool wakeup_bdi = false;
bdi = inode_to_bdi(inode);
if (<API key>(bdi)) {
WARN(!test_bit(BDI_registered, &bdi->state),
"bdi-%s not registered\n", bdi->name);
/*
* If this is the first dirty inode for this
* bdi, we have to wake-up the corresponding
* bdi thread to make sure background
* write-back happens later.
*/
if (!wb_has_dirty_io(&bdi->wb))
wakeup_bdi = true;
}
spin_unlock(&inode->i_lock);
spin_lock(&bdi->wb.list_lock);
inode->dirtied_when = jiffies;
list_move(&inode->i_wb_list, &bdi->wb.b_dirty);
spin_unlock(&bdi->wb.list_lock);
if (wakeup_bdi)
<API key>(bdi);
return;
}
}
out_unlock_inode:
spin_unlock(&inode->i_lock);
}
EXPORT_SYMBOL(__mark_inode_dirty);
static void wait_sb_inodes(struct super_block *sb)
{
struct inode *inode, *old_inode = NULL;
/*
* We need to be protected against the filesystem going from
* r/o to r/w or vice versa.
*/
WARN_ON(!rwsem_is_locked(&sb->s_umount));
spin_lock(&inode_sb_list_lock);
/*
* Data integrity sync. Must wait for all pages under writeback,
* because there may have been pages dirtied before our sync
* call, but which had writeout started before we write it out.
* In which case, the inode may not be on the dirty list, but
* we still have to wait for that writeout.
*/
list_for_each_entry(inode, &sb->s_inodes, i_sb_list) {
struct address_space *mapping = inode->i_mapping;
spin_lock(&inode->i_lock);
if ((inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) ||
(mapping->nrpages == 0)) {
spin_unlock(&inode->i_lock);
continue;
}
__iget(inode);
spin_unlock(&inode->i_lock);
spin_unlock(&inode_sb_list_lock);
/*
* We hold a reference to 'inode' so it couldn't have been
* removed from s_inodes list while we dropped the
* inode_sb_list_lock. We cannot iput the inode now as we can
* be holding the last reference and we cannot iput it under
* inode_sb_list_lock. So we keep the reference and iput it
* later.
*/
iput(old_inode);
old_inode = inode;
filemap_fdatawait(mapping);
cond_resched();
spin_lock(&inode_sb_list_lock);
}
spin_unlock(&inode_sb_list_lock);
iput(old_inode);
}
/**
* <API key> - writeback dirty inodes from given super_block
* @sb: the superblock
* @nr: the number of pages to write
* @reason: reason why some writeback work initiated
*
* Start writeback on some inodes on this super_block. No guarantees are made
* on how many (if any) will be written, and this function does not wait
* for IO completion of submitted IO.
*/
void <API key>(struct super_block *sb,
unsigned long nr,
enum wb_reason reason)
{
<API key>(done);
struct wb_writeback_work work = {
.sb = sb,
.sync_mode = WB_SYNC_NONE,
.tagged_writepages = 1,
.done = &done,
.nr_pages = nr,
.reason = reason,
};
WARN_ON(!rwsem_is_locked(&sb->s_umount));
bdi_queue_work(sb->s_bdi, &work);
wait_for_completion(&done);
}
EXPORT_SYMBOL(<API key>);
/**
* writeback_inodes_sb - writeback dirty inodes from given super_block
* @sb: the superblock
* @reason: reason why some writeback work was initiated
*
* Start writeback on some inodes on this super_block. No guarantees are made
* on how many (if any) will be written, and this function does not wait
* for IO completion of submitted IO.
*/
void writeback_inodes_sb(struct super_block *sb, enum wb_reason reason)
{
return <API key>(sb, get_nr_dirty_pages(), reason);
}
EXPORT_SYMBOL(writeback_inodes_sb);
/**
* <API key> - start writeback if none underway
* @sb: the superblock
* @reason: reason why some writeback work was initiated
*
* Invoke writeback_inodes_sb if no writeback is currently underway.
* Returns 1 if writeback was started, 0 if not.
*/
int <API key>(struct super_block *sb, enum wb_reason reason)
{
if (!<API key>(sb->s_bdi)) {
down_read(&sb->s_umount);
writeback_inodes_sb(sb, reason);
up_read(&sb->s_umount);
return 1;
} else
return 0;
}
EXPORT_SYMBOL(<API key>);
/**
* <API key> - start writeback if none underway
* @sb: the superblock
* @nr: the number of pages to write
* @reason: reason why some writeback work was initiated
*
* Invoke writeback_inodes_sb if no writeback is currently underway.
* Returns 1 if writeback was started, 0 if not.
*/
int <API key>(struct super_block *sb,
unsigned long nr,
enum wb_reason reason)
{
if (!<API key>(sb->s_bdi)) {
down_read(&sb->s_umount);
<API key>(sb, nr, reason);
up_read(&sb->s_umount);
return 1;
} else
return 0;
}
EXPORT_SYMBOL(<API key>);
/**
* sync_inodes_sb - sync sb inode pages
* @sb: the superblock
*
* This function writes and waits on any dirty inode belonging to this
* super_block.
*/
void sync_inodes_sb(struct super_block *sb)
{
<API key>(done);
struct wb_writeback_work work = {
.sb = sb,
.sync_mode = WB_SYNC_ALL,
.nr_pages = LONG_MAX,
.range_cyclic = 0,
.done = &done,
.reason = WB_REASON_SYNC,
};
WARN_ON(!rwsem_is_locked(&sb->s_umount));
bdi_queue_work(sb->s_bdi, &work);
wait_for_completion(&done);
wait_sb_inodes(sb);
}
EXPORT_SYMBOL(sync_inodes_sb);
/**
* write_inode_now - write an inode to disk
* @inode: inode to write to disk
* @sync: whether the write should be synchronous or not
*
* This function commits an inode to disk immediately if it is dirty. This is
* primarily needed by knfsd.
*
* The caller must either have a ref on the inode or must have set I_WILL_FREE.
*/
int write_inode_now(struct inode *inode, int sync)
{
struct bdi_writeback *wb = &inode_to_bdi(inode)->wb;
int ret;
struct writeback_control wbc = {
.nr_to_write = LONG_MAX,
.sync_mode = sync ? WB_SYNC_ALL : WB_SYNC_NONE,
.range_start = 0,
.range_end = LLONG_MAX,
};
if (!<API key>(inode->i_mapping))
wbc.nr_to_write = 0;
might_sleep();
spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock);
ret = <API key>(inode, wb, &wbc);
spin_unlock(&inode->i_lock);
spin_unlock(&wb->list_lock);
return ret;
}
EXPORT_SYMBOL(write_inode_now);
/**
* sync_inode - write an inode and its pages to disk.
* @inode: the inode to sync
* @wbc: controls the writeback mode
*
* sync_inode() will write an inode and its pages to disk. It will also
* correctly update the inode on its superblock's dirty inode lists and will
* update inode->i_state.
*
* The caller must have a ref on the inode.
*/
int sync_inode(struct inode *inode, struct writeback_control *wbc)
{
struct bdi_writeback *wb = &inode_to_bdi(inode)->wb;
int ret;
spin_lock(&wb->list_lock);
spin_lock(&inode->i_lock);
ret = <API key>(inode, wb, wbc);
spin_unlock(&inode->i_lock);
spin_unlock(&wb->list_lock);
return ret;
}
EXPORT_SYMBOL(sync_inode);
/**
* sync_inode_metadata - write an inode to disk
* @inode: the inode to sync
* @wait: wait for I/O to complete.
*
* Write an inode to disk and adjust its dirty state after completion.
*
* Note: only writes the actual inode, no associated data or other metadata.
*/
int sync_inode_metadata(struct inode *inode, int wait)
{
struct writeback_control wbc = {
.sync_mode = wait ? WB_SYNC_ALL : WB_SYNC_NONE,
.nr_to_write = 0, /* metadata-only */
};
return sync_inode(inode, &wbc);
}
EXPORT_SYMBOL(sync_inode_metadata);
|
namespace LJH.Inventory.UI.Controls
{
partial class UC
{
<summary>
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
</summary>
<param name="disposing"> true false</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
<summary>
-
</summary>
private void InitializeComponent()
{
this.txtWidth = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.txtHeight = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
// txtWidth
this.txtWidth.FormattingEnabled = true;
this.txtWidth.Location = new System.Drawing.Point(0, 3);
this.txtWidth.Name = "txtWidth";
this.txtWidth.Size = new System.Drawing.Size(65, 20);
this.txtWidth.TabIndex = 8;
this.txtWidth.TextChanged += new System.EventHandler(this.cmb_TextChanged);
// label1
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(71, 7);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(11, 12);
this.label1.TabIndex = 10;
this.label1.Text = "*";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// txtHeight
this.txtHeight.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtHeight.FormattingEnabled = true;
this.txtHeight.Location = new System.Drawing.Point(86, 3);
this.txtHeight.Name = "txtHeight";
this.txtHeight.Size = new System.Drawing.Size(69, 20);
this.txtHeight.TabIndex = 11;
this.txtHeight.TextChanged += new System.EventHandler(this.cmb_TextChanged);
// UCSpecification
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.txtHeight);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtWidth);
this.Name = "UCSpecification";
this.Size = new System.Drawing.Size(158, 27);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ComboBox txtWidth;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox txtHeight;
}
}
|
#include <sound/driver.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <sound/core.h>
#include <sound/seq_kernel.h>
#include <sound/seq_midi_event.h>
#include <sound/asoundef.h>
MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@suse.cz>");
MODULE_DESCRIPTION("MIDI byte <-> sequencer event coder");
MODULE_LICENSE("GPL");
/* queue type */
/* from 0 to 7 are normal commands (note off, on, etc.) */
#define ST_NOTEOFF 0
#define ST_NOTEON 1
#define ST_SPECIAL 8
#define ST_SYSEX ST_SPECIAL
/* from 8 to 15 are events for 0xf0-0xf7 */
/* status event types */
typedef void (*event_encode_t)(snd_midi_event_t *dev, snd_seq_event_t *ev);
typedef void (*event_decode_t)(snd_seq_event_t *ev, unsigned char *buf);
/*
* prototypes
*/
static void note_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void one_param_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void songpos_event(snd_midi_event_t *dev, snd_seq_event_t *ev);
static void note_decode(snd_seq_event_t *ev, unsigned char *buf);
static void one_param_decode(snd_seq_event_t *ev, unsigned char *buf);
static void pitchbend_decode(snd_seq_event_t *ev, unsigned char *buf);
static void two_param_decode(snd_seq_event_t *ev, unsigned char *buf);
static void songpos_decode(snd_seq_event_t *ev, unsigned char *buf);
/*
* event list
*/
static struct status_event_list_t {
int event;
int qlen;
event_encode_t encode;
event_decode_t decode;
} status_event[] = {
/* 0x80 - 0xf0 */
{<API key>, 2, note_event, note_decode},
{<API key>, 2, note_event, note_decode},
{<API key>, 2, note_event, note_decode},
{<API key>, 2, <API key>, two_param_decode},
{<API key>, 1, <API key>, one_param_decode},
{<API key>, 1, <API key>, one_param_decode},
{<API key>, 2, <API key>, pitchbend_decode},
{<API key>, 0, NULL, NULL}, /* 0xf0 */
/* 0xf0 - 0xff */
{<API key>, 1, NULL, NULL}, /* sysex: 0xf0 */
{<API key>, 1, one_param_event, one_param_decode}, /* 0xf1 */
{<API key>, 2, songpos_event, songpos_decode}, /* 0xf2 */
{<API key>, 1, one_param_event, one_param_decode}, /* 0xf3 */
{<API key>, 0, NULL, NULL}, /* 0xf4 */
{<API key>, 0, NULL, NULL}, /* 0xf5 */
{<API key>, 0, NULL, NULL}, /* 0xf6 */
{<API key>, 0, NULL, NULL}, /* 0xf7 */
{<API key>, 0, NULL, NULL}, /* 0xf8 */
{<API key>, 0, NULL, NULL}, /* 0xf9 */
{<API key>, 0, NULL, NULL}, /* 0xfa */
{<API key>, 0, NULL, NULL}, /* 0xfb */
{<API key>, 0, NULL, NULL}, /* 0xfc */
{<API key>, 0, NULL, NULL}, /* 0xfd */
{<API key>, 0, NULL, NULL}, /* 0xfe */
{<API key>, 0, NULL, NULL}, /* 0xff */
};
static int extra_decode_ctrl14(snd_midi_event_t *dev, unsigned char *buf, int len, snd_seq_event_t *ev);
static int extra_decode_xrpn(snd_midi_event_t *dev, unsigned char *buf, int count, snd_seq_event_t *ev);
static struct extra_event_list_t {
int event;
int (*decode)(snd_midi_event_t *dev, unsigned char *buf, int len, snd_seq_event_t *ev);
} extra_event[] = {
{<API key>, extra_decode_ctrl14},
{<API key>, extra_decode_xrpn},
{<API key>, extra_decode_xrpn},
};
/*
* new/delete record
*/
int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev)
{
snd_midi_event_t *dev;
*rdev = NULL;
dev = (snd_midi_event_t *)snd_kcalloc(sizeof(snd_midi_event_t), GFP_KERNEL);
if (dev == NULL)
return -ENOMEM;
if (bufsize > 0) {
dev->buf = kmalloc(bufsize, GFP_KERNEL);
if (dev->buf == NULL) {
kfree(dev);
return -ENOMEM;
}
}
dev->bufsize = bufsize;
dev->lastcmd = 0xff;
spin_lock_init(&dev->lock);
*rdev = dev;
return 0;
}
void snd_midi_event_free(snd_midi_event_t *dev)
{
if (dev != NULL) {
if (dev->buf)
kfree(dev->buf);
kfree(dev);
}
}
/*
* initialize record
*/
inline static void reset_encode(snd_midi_event_t *dev)
{
dev->read = 0;
dev->qlen = 0;
dev->type = 0;
}
void <API key>(snd_midi_event_t *dev)
{
unsigned long flags;
spin_lock_irqsave(&dev->lock, flags);
reset_encode(dev);
<API key>(&dev->lock, flags);
}
void <API key>(snd_midi_event_t *dev)
{
unsigned long flags;
spin_lock_irqsave(&dev->lock, flags);
dev->lastcmd = 0xff;
<API key>(&dev->lock, flags);
}
void snd_midi_event_init(snd_midi_event_t *dev)
{
<API key>(dev);
<API key>(dev);
}
void <API key>(snd_midi_event_t *dev, int on)
{
dev->nostat = on ? 1 : 0;
}
/*
* resize buffer
*/
int <API key>(snd_midi_event_t *dev, int bufsize)
{
unsigned char *new_buf, *old_buf;
unsigned long flags;
if (bufsize == dev->bufsize)
return 0;
new_buf = kmalloc(bufsize, GFP_KERNEL);
if (new_buf == NULL)
return -ENOMEM;
spin_lock_irqsave(&dev->lock, flags);
old_buf = dev->buf;
dev->buf = new_buf;
dev->bufsize = bufsize;
reset_encode(dev);
<API key>(&dev->lock, flags);
if (old_buf)
kfree(old_buf);
return 0;
}
/*
* read bytes and encode to sequencer event if finished
* return the size of encoded bytes
*/
long <API key>(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev)
{
long result = 0;
int rc;
ev->type = <API key>;
while (count
rc = <API key>(dev, *buf++, ev);
result++;
if (rc < 0)
return rc;
else if (rc > 0)
return result;
}
return result;
}
/*
* read one byte and encode to sequencer event:
* return 1 if MIDI bytes are encoded to an event
* 0 data is not finished
* negative for error
*/
int <API key>(snd_midi_event_t *dev, int c, snd_seq_event_t *ev)
{
int rc = 0;
unsigned long flags;
c &= 0xff;
if (c >= <API key>) {
/* real-time event */
ev->type = status_event[ST_SPECIAL + c - 0xf0].event;
ev->flags &= ~<API key>;
ev->flags |= <API key>;
return 1;
}
spin_lock_irqsave(&dev->lock, flags);
if (dev->qlen > 0) {
/* rest of command */
dev->buf[dev->read++] = c;
if (dev->type != ST_SYSEX)
dev->qlen
} else {
/* new command */
dev->read = 1;
if (c & 0x80) {
dev->buf[0] = c;
if ((c & 0xf0) == 0xf0) /* special events */
dev->type = (c & 0x0f) + ST_SPECIAL;
else
dev->type = (c >> 4) & 0x07;
dev->qlen = status_event[dev->type].qlen;
} else {
/* process this byte as argument */
dev->buf[dev->read++] = c;
dev->qlen = status_event[dev->type].qlen - 1;
}
}
if (dev->qlen == 0) {
ev->type = status_event[dev->type].event;
ev->flags &= ~<API key>;
ev->flags |= <API key>;
if (status_event[dev->type].encode) /* set data values */
status_event[dev->type].encode(dev, ev);
rc = 1;
} else if (dev->type == ST_SYSEX) {
if (c == <API key> ||
dev->read >= dev->bufsize) {
ev->flags &= ~<API key>;
ev->flags |= <API key>;
ev->type = <API key>;
ev->data.ext.len = dev->read;
ev->data.ext.ptr = dev->buf;
if (c != <API key>)
dev->read = 0; /* continue to parse */
else
reset_encode(dev); /* all parsed */
rc = 1;
}
}
<API key>(&dev->lock, flags);
return rc;
}
/* encode note event */
static void note_event(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.note.channel = dev->buf[0] & 0x0f;
ev->data.note.note = dev->buf[1];
ev->data.note.velocity = dev->buf[2];
}
/* encode one parameter controls */
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.control.channel = dev->buf[0] & 0x0f;
ev->data.control.value = dev->buf[1];
}
/* encode pitch wheel change */
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.control.channel = dev->buf[0] & 0x0f;
ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1] - 8192;
}
/* encode midi control change */
static void <API key>(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.control.channel = dev->buf[0] & 0x0f;
ev->data.control.param = dev->buf[1];
ev->data.control.value = dev->buf[2];
}
/* encode one parameter value*/
static void one_param_event(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.control.value = dev->buf[1];
}
/* encode song position */
static void songpos_event(snd_midi_event_t *dev, snd_seq_event_t *ev)
{
ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1];
}
/*
* decode from a sequencer event to midi bytes
* return the size of decoded midi events
*/
long <API key>(snd_midi_event_t *dev, unsigned char *buf, long count, snd_seq_event_t *ev)
{
unsigned int cmd, type;
if (ev->type == <API key>)
return -ENOENT;
for (type = 0; type < ARRAY_SIZE(status_event); type++) {
if (ev->type == status_event[type].event)
goto __found;
}
for (type = 0; type < ARRAY_SIZE(extra_event); type++) {
if (ev->type == extra_event[type].event)
return extra_event[type].decode(dev, buf, count, ev);
}
return -ENOENT;
__found:
if (type >= ST_SPECIAL)
cmd = 0xf0 + (type - ST_SPECIAL);
else
/* data.note.channel and data.control.channel is identical */
cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f);
if (cmd == <API key>) {
<API key>(dev);
return <API key>(ev, count, buf, 1, 0);
} else {
int qlen;
unsigned char xbuf[4];
unsigned long flags;
spin_lock_irqsave(&dev->lock, flags);
if ((cmd & 0xf0) == 0xf0 || dev->lastcmd != cmd || dev->nostat) {
dev->lastcmd = cmd;
<API key>(&dev->lock, flags);
xbuf[0] = cmd;
if (status_event[type].decode)
status_event[type].decode(ev, xbuf + 1);
qlen = status_event[type].qlen + 1;
} else {
<API key>(&dev->lock, flags);
if (status_event[type].decode)
status_event[type].decode(ev, xbuf + 0);
qlen = status_event[type].qlen;
}
if (count < qlen)
return -ENOMEM;
memcpy(buf, xbuf, qlen);
return qlen;
}
}
/* decode note event */
static void note_decode(snd_seq_event_t *ev, unsigned char *buf)
{
buf[0] = ev->data.note.note & 0x7f;
buf[1] = ev->data.note.velocity & 0x7f;
}
/* decode one parameter controls */
static void one_param_decode(snd_seq_event_t *ev, unsigned char *buf)
{
buf[0] = ev->data.control.value & 0x7f;
}
/* decode pitch wheel change */
static void pitchbend_decode(snd_seq_event_t *ev, unsigned char *buf)
{
int value = ev->data.control.value + 8192;
buf[0] = value & 0x7f;
buf[1] = (value >> 7) & 0x7f;
}
/* decode midi control change */
static void two_param_decode(snd_seq_event_t *ev, unsigned char *buf)
{
buf[0] = ev->data.control.param & 0x7f;
buf[1] = ev->data.control.value & 0x7f;
}
/* decode song position */
static void songpos_decode(snd_seq_event_t *ev, unsigned char *buf)
{
buf[0] = ev->data.control.value & 0x7f;
buf[1] = (ev->data.control.value >> 7) & 0x7f;
}
/* decode 14bit control */
static int extra_decode_ctrl14(snd_midi_event_t *dev, unsigned char *buf, int count, snd_seq_event_t *ev)
{
unsigned char cmd;
int idx = 0;
cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f);
if (ev->data.control.param < 0x20) {
if (count < 4)
return -ENOMEM;
if (dev->nostat && count < 6)
return -ENOMEM;
if (cmd != dev->lastcmd || dev->nostat) {
if (count < 5)
return -ENOMEM;
buf[idx++] = dev->lastcmd = cmd;
}
buf[idx++] = ev->data.control.param;
buf[idx++] = (ev->data.control.value >> 7) & 0x7f;
if (dev->nostat)
buf[idx++] = cmd;
buf[idx++] = ev->data.control.param + 0x20;
buf[idx++] = ev->data.control.value & 0x7f;
} else {
if (count < 2)
return -ENOMEM;
if (cmd != dev->lastcmd || dev->nostat) {
if (count < 3)
return -ENOMEM;
buf[idx++] = dev->lastcmd = cmd;
}
buf[idx++] = ev->data.control.param & 0x7f;
buf[idx++] = ev->data.control.value & 0x7f;
}
return idx;
}
/* decode reg/nonreg param */
static int extra_decode_xrpn(snd_midi_event_t *dev, unsigned char *buf, int count, snd_seq_event_t *ev)
{
unsigned char cmd;
char *cbytes;
static char cbytes_nrpn[4] = { <API key>,
<API key>,
<API key>,
<API key> };
static char cbytes_rpn[4] = { <API key>,
<API key>,
<API key>,
<API key> };
unsigned char bytes[4];
int idx = 0, i;
if (count < 8)
return -ENOMEM;
if (dev->nostat && count < 12)
return -ENOMEM;
cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f);
bytes[0] = ev->data.control.param & 0x007f;
bytes[1] = (ev->data.control.param & 0x3f80) >> 7;
bytes[2] = ev->data.control.value & 0x007f;
bytes[3] = (ev->data.control.value & 0x3f80) >> 7;
if (cmd != dev->lastcmd && !dev->nostat) {
if (count < 9)
return -ENOMEM;
buf[idx++] = dev->lastcmd = cmd;
}
cbytes = ev->type == <API key> ? cbytes_nrpn : cbytes_rpn;
for (i = 0; i < 4; i++) {
if (dev->nostat)
buf[idx++] = dev->lastcmd = cmd;
buf[idx++] = cbytes[i];
buf[idx++] = bytes[i];
}
return idx;
}
/*
* exports
*/
EXPORT_SYMBOL(snd_midi_event_new);
EXPORT_SYMBOL(snd_midi_event_free);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(snd_midi_event_init);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(<API key>);
EXPORT_SYMBOL(<API key>);
|
public class BeerBlast {
static final String COMMAND = "java BeerBlast slave";
public static void main(String[] args) throws Exception {
if (args.length == 1 && args[0].equals("slave")) {
for (int i = 99; i > 0; i
System.out.println(i + " bottles of beer on the wall");
System.out.println(i + " bottles of beer");
System.out.println("You take one down, pass it around,");
System.out.println((i-1) + " bottles of beer on the wall");
System.out.println();
}
} else {
// Master
Process process = Runtime.getRuntime().exec(COMMAND);
int exitValue = process.waitFor();
System.out.println("exit value = " + exitValue);
}
}
}
|
#include <linux/module.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
#include <linux/vmalloc.h>
#include <linux/wl12xx.h>
#include <linux/interrupt.h>
#include "wlcore.h"
#include "debug.h"
#include "wl12xx_80211.h"
#include "io.h"
#include "tx.h"
#include "ps.h"
#include "init.h"
#include "debugfs.h"
#include "testmode.h"
#include "scan.h"
#include "hw_ops.h"
#include "sysfs.h"
#define WL1271_BOOT_RETRIES 3
static char *fwlog_param;
static int fwlog_mem_blocks = -1;
static int bug_on_recovery = -1;
static int no_recovery = -1;
static void <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
bool reset_tx_queues);
static void <API key>(struct wl1271 *wl);
static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif);
static int <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;
if (WARN_ON(wlvif->bss_type != BSS_TYPE_STA_BSS))
return -EINVAL;
if (!test_bit(<API key>, &wlvif->flags))
return 0;
if (test_and_set_bit(<API key>, &wlvif->flags))
return 0;
ret = <API key>(wl, wlvif, wlvif->sta.hlid);
if (ret < 0)
return ret;
wl1271_info("Association completed.");
return 0;
}
static void wl1271_reg_notify(struct wiphy *wiphy,
struct regulatory_request *request)
{
struct <API key> *band;
struct ieee80211_channel *ch;
int i;
struct ieee80211_hw *hw = <API key>(wiphy);
struct wl1271 *wl = hw->priv;
band = wiphy->bands[IEEE80211_BAND_5GHZ];
for (i = 0; i < band->n_channels; i++) {
ch = &band->channels[i];
if (ch->flags & <API key>)
continue;
if (ch->flags & <API key>)
ch->flags |= <API key>;
}
<API key>(wl);
}
static int <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif,
bool enable)
{
int ret = 0;
/* we should hold wl->mutex */
ret = <API key>(wl, wlvif, enable);
if (ret < 0)
goto out;
if (enable)
set_bit(<API key>, &wlvif->flags);
else
clear_bit(<API key>, &wlvif->flags);
out:
return ret;
}
/*
* this function is being called when the rx_streaming interval
* has beed changed or rx_streaming should be disabled
*/
int <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret = 0;
int period = wl->conf.rx_streaming.interval;
/* don't reconfigure if rx_streaming is disabled */
if (!test_bit(<API key>, &wlvif->flags))
goto out;
/* reconfigure/disable according to new streaming_period */
if (period &&
test_bit(<API key>, &wlvif->flags) &&
(wl->conf.rx_streaming.always ||
test_bit(<API key>, &wl->flags)))
ret = <API key>(wl, wlvif, true);
else {
ret = <API key>(wl, wlvif, false);
/* don't cancel_work_sync since we might deadlock */
del_timer_sync(&wlvif->rx_streaming_timer);
}
out:
return ret;
}
static void <API key>(struct work_struct *work)
{
int ret;
struct wl12xx_vif *wlvif = container_of(work, struct wl12xx_vif,
<API key>);
struct wl1271 *wl = wlvif->wl;
mutex_lock(&wl->mutex);
if (test_bit(<API key>, &wlvif->flags) ||
!test_bit(<API key>, &wlvif->flags) ||
(!wl->conf.rx_streaming.always &&
!test_bit(<API key>, &wl->flags)))
goto out;
if (!wl->conf.rx_streaming.interval)
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif, true);
if (ret < 0)
goto out_sleep;
/* stop it after some time of inactivity */
mod_timer(&wlvif->rx_streaming_timer,
jiffies + msecs_to_jiffies(wl->conf.rx_streaming.duration));
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static void <API key>(struct work_struct *work)
{
int ret;
struct wl12xx_vif *wlvif = container_of(work, struct wl12xx_vif,
<API key>);
struct wl1271 *wl = wlvif->wl;
mutex_lock(&wl->mutex);
if (!test_bit(<API key>, &wlvif->flags))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif, false);
if (ret)
goto out_sleep;
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static void <API key>(unsigned long data)
{
struct wl12xx_vif *wlvif = (struct wl12xx_vif *)data;
struct wl1271 *wl = wlvif->wl;
<API key>(wl->hw, &wlvif-><API key>);
}
/* wl->mutex must be taken */
void <API key>(struct wl1271 *wl)
{
/* if the watchdog is not armed, don't do anything */
if (wl->tx_allocated_blocks == 0)
return;
cancel_delayed_work(&wl->tx_watchdog_work);
<API key>(wl->hw, &wl->tx_watchdog_work,
msecs_to_jiffies(wl->conf.tx.tx_watchdog_timeout));
}
static void <API key>(struct work_struct *work)
{
struct delayed_work *dwork;
struct wl1271 *wl;
dwork = container_of(work, struct delayed_work, work);
wl = container_of(dwork, struct wl1271, tx_watchdog_work);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/* Tx went out in the meantime - everything is ok */
if (unlikely(wl->tx_allocated_blocks == 0))
goto out;
/*
* if a ROC is in progress, we might not have any Tx for a long
* time (e.g. pending Tx on the non-ROC channels)
*/
if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) {
wl1271_debug(DEBUG_TX, "No Tx (in FW) for %d ms due to ROC",
wl->conf.tx.tx_watchdog_timeout);
<API key>(wl);
goto out;
}
/*
* if a scan is in progress, we might not have any Tx for a long
* time
*/
if (wl->scan.state != <API key>) {
wl1271_debug(DEBUG_TX, "No Tx (in FW) for %d ms due to scan",
wl->conf.tx.tx_watchdog_timeout);
<API key>(wl);
goto out;
}
/*
* AP might cache a frame for a long time for a sleeping station,
* so rearm the timer if there's an AP interface with stations. If
* Tx is genuinely stuck we will most hopefully discover it when all
* stations are removed due to inactivity.
*/
if (wl->active_sta_count) {
wl1271_debug(DEBUG_TX, "No Tx (in FW) for %d ms. AP has "
" %d stations",
wl->conf.tx.tx_watchdog_timeout,
wl->active_sta_count);
<API key>(wl);
goto out;
}
wl1271_error("Tx stuck (in FW) for %d ms. Starting recovery",
wl->conf.tx.tx_watchdog_timeout);
<API key>(wl);
out:
mutex_unlock(&wl->mutex);
}
static void wlcore_adjust_conf(struct wl1271 *wl)
{
/* Adjust settings according to optional module parameters */
/* Firmware Logger params */
if (fwlog_mem_blocks != -1) {
if (fwlog_mem_blocks >= <API key> &&
fwlog_mem_blocks <= <API key>) {
wl->conf.fwlog.mem_blocks = fwlog_mem_blocks;
} else {
wl1271_error(
"Illegal fwlog_mem_blocks=%d using default %d",
fwlog_mem_blocks, wl->conf.fwlog.mem_blocks);
}
}
if (fwlog_param) {
if (!strcmp(fwlog_param, "continuous")) {
wl->conf.fwlog.mode = <API key>;
} else if (!strcmp(fwlog_param, "ondemand")) {
wl->conf.fwlog.mode = <API key>;
} else if (!strcmp(fwlog_param, "dbgpins")) {
wl->conf.fwlog.mode = <API key>;
wl->conf.fwlog.output = <API key>;
} else if (!strcmp(fwlog_param, "disable")) {
wl->conf.fwlog.mem_blocks = 0;
wl->conf.fwlog.output = <API key>;
} else {
wl1271_error("Unknown fwlog parameter %s", fwlog_param);
}
}
if (bug_on_recovery != -1)
wl->conf.recovery.bug_on_recovery = (u8) bug_on_recovery;
if (no_recovery != -1)
wl->conf.recovery.no_recovery = (u8) no_recovery;
}
static void <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
u8 hlid, u8 tx_pkts)
{
bool fw_ps;
fw_ps = test_bit(hlid, (unsigned long *)&wl->ap_fw_ps_map);
/*
* Wake up from high level PS if the STA is asleep with too little
* packets in FW or if the STA is awake.
*/
if (!fw_ps || tx_pkts < <API key>)
wl12xx_ps_link_end(wl, wlvif, hlid);
/*
* Start high-level PS if the STA is asleep with enough blocks in FW.
* Make an exception if this is the only connected link. In this
* case FW-memory congestion is less of a problem.
* Note that a single connected STA means 2*ap_count + 1 active links,
* since we must account for the global and broadcast AP links
* for each AP. The "fw_ps" check assures us the other link is a STA
* connected to the AP. Otherwise the FW would not set the PSM bit.
*/
else if (wl->active_link_count > (wl->ap_count*2 + 1) && fw_ps &&
tx_pkts >= <API key>)
<API key>(wl, wlvif, hlid, true);
}
static void <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct wl_fw_status *status)
{
u32 cur_fw_ps_map;
u8 hlid;
cur_fw_ps_map = status->link_ps_bitmap;
if (wl->ap_fw_ps_map != cur_fw_ps_map) {
wl1271_debug(DEBUG_PSM,
"link ps prev 0x%x cur 0x%x changed 0x%x",
wl->ap_fw_ps_map, cur_fw_ps_map,
wl->ap_fw_ps_map ^ cur_fw_ps_map);
wl->ap_fw_ps_map = cur_fw_ps_map;
}
for_each_set_bit(hlid, wlvif->ap.sta_hlid_map, wl->num_links)
<API key>(wl, wlvif, hlid,
wl->links[hlid].allocated_pkts);
}
static int wlcore_fw_status(struct wl1271 *wl, struct wl_fw_status *status)
{
struct wl12xx_vif *wlvif;
struct timespec ts;
u32 old_tx_blk_count = wl->tx_blocks_available;
int avail, freed_blocks;
int i;
int ret;
struct wl1271_link *lnk;
ret = <API key>(wl, <API key>,
wl->raw_fw_status,
wl->fw_status_len, false);
if (ret < 0)
return ret;
<API key>(wl, wl->raw_fw_status, wl->fw_status);
wl1271_debug(DEBUG_IRQ, "intr: 0x%x (fw_rx_counter = %d, "
"drv_rx_counter = %d, tx_results_counter = %d)",
status->intr,
status->fw_rx_counter,
status->drv_rx_counter,
status->tx_results_counter);
for (i = 0; i < NUM_TX_QUEUES; i++) {
/* prevent wrap-around in freed-packets counter */
wl->tx_allocated_pkts[i] -=
(status->counters.tx_released_pkts[i] -
wl->tx_pkts_freed[i]) & 0xff;
wl->tx_pkts_freed[i] = status->counters.tx_released_pkts[i];
}
for_each_set_bit(i, wl->links_map, wl->num_links) {
u8 diff;
lnk = &wl->links[i];
/* prevent wrap-around in freed-packets counter */
diff = (status->counters.tx_lnk_free_pkts[i] -
lnk->prev_freed_pkts) & 0xff;
if (diff == 0)
continue;
lnk->allocated_pkts -= diff;
lnk->prev_freed_pkts = status->counters.tx_lnk_free_pkts[i];
/* accumulate the prev_freed_pkts counter */
lnk->total_freed_pkts += diff;
}
/* prevent wrap-around in total blocks counter */
if (likely(wl->tx_blocks_freed <= status->total_released_blks))
freed_blocks = status->total_released_blks -
wl->tx_blocks_freed;
else
freed_blocks = 0x100000000LL - wl->tx_blocks_freed +
status->total_released_blks;
wl->tx_blocks_freed = status->total_released_blks;
wl->tx_allocated_blocks -= freed_blocks;
/*
* If the FW freed some blocks:
* If we still have allocated blocks - re-arm the timer, Tx is
* not stuck. Otherwise, cancel the timer (no Tx currently).
*/
if (freed_blocks) {
if (wl->tx_allocated_blocks)
<API key>(wl);
else
cancel_delayed_work(&wl->tx_watchdog_work);
}
avail = status->tx_total - wl->tx_allocated_blocks;
/*
* The FW might change the total number of TX memblocks before
* we get a notification about blocks being released. Thus, the
* available blocks calculation might yield a temporary result
* which is lower than the actual available blocks. Keeping in
* mind that only blocks that were allocated can be moved from
* TX to RX, tx_blocks_available should never decrease here.
*/
wl->tx_blocks_available = max((int)wl->tx_blocks_available,
avail);
/* if more blocks are available now, tx work can be scheduled */
if (wl->tx_blocks_available > old_tx_blk_count)
clear_bit(<API key>, &wl->flags);
/* for AP update num of allocated TX blocks per link and ps status */
<API key>(wl, wlvif) {
<API key>(wl, wlvif, status);
}
/* update the host-chipset time offset */
getnstimeofday(&ts);
wl->time_offset = (timespec_to_ns(&ts) >> 10) -
(s64)(status->fw_localtime);
wl->fw_fast_lnk_map = status->link_fast_bitmap;
return 0;
}
static void <API key>(struct wl1271 *wl)
{
struct sk_buff *skb;
/* Pass all received frames to the network stack */
while ((skb = skb_dequeue(&wl->deferred_rx_queue)))
ieee80211_rx_ni(wl->hw, skb);
/* Return sent skbs to the network stack */
while ((skb = skb_dequeue(&wl->deferred_tx_queue)))
<API key>(wl->hw, skb);
}
static void <API key>(struct work_struct *work)
{
struct wl1271 *wl =
container_of(work, struct wl1271, netstack_work);
do {
<API key>(wl);
} while (skb_queue_len(&wl->deferred_rx_queue));
}
#define <API key> 256
static int wlcore_irq_locked(struct wl1271 *wl)
{
int ret = 0;
u32 intr;
int loopcount = <API key>;
bool done = false;
unsigned int defer_count;
unsigned long flags;
/*
* In case edge triggered interrupt must be used, we cannot iterate
* more than once without introducing race conditions with the hardirq.
*/
if (wl->platform_quirks & <API key>)
loopcount = 1;
wl1271_debug(DEBUG_IRQ, "IRQ work");
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
while (!done && loopcount
/*
* In order to avoid a race with the hardirq, clear the flag
* before acknowledging the chip. Since the mutex is held,
* <API key> cannot be called concurrently.
*/
clear_bit(<API key>, &wl->flags);
<API key>();
ret = wlcore_fw_status(wl, wl->fw_status);
if (ret < 0)
goto out;
<API key>(wl);
intr = wl->fw_status->intr;
intr &= <API key>;
if (!intr) {
done = true;
continue;
}
if (unlikely(intr & <API key>)) {
wl1271_error("HW watchdog interrupt received! starting recovery.");
wl->watchdog_recovery = true;
ret = -EIO;
/* restarting the chip. ignore any other interrupt. */
goto out;
}
if (unlikely(intr & <API key>)) {
wl1271_error("SW watchdog interrupt received! "
"starting recovery.");
wl->watchdog_recovery = true;
ret = -EIO;
/* restarting the chip. ignore any other interrupt. */
goto out;
}
if (likely(intr & <API key>)) {
wl1271_debug(DEBUG_IRQ, "<API key>");
ret = wlcore_rx(wl, wl->fw_status);
if (ret < 0)
goto out;
/* Check if any tx blocks were freed */
spin_lock_irqsave(&wl->wl_lock, flags);
if (!test_bit(<API key>, &wl->flags) &&
<API key>(wl) > 0) {
<API key>(&wl->wl_lock, flags);
/*
* In order to avoid starvation of the TX path,
* call the work function directly.
*/
ret = <API key>(wl);
if (ret < 0)
goto out;
} else {
<API key>(&wl->wl_lock, flags);
}
/* check for tx results */
ret = <API key>(wl);
if (ret < 0)
goto out;
/* Make sure the deferred queues don't get too long */
defer_count = skb_queue_len(&wl->deferred_tx_queue) +
skb_queue_len(&wl->deferred_rx_queue);
if (defer_count > <API key>)
<API key>(wl);
}
if (intr & <API key>) {
wl1271_debug(DEBUG_IRQ, "<API key>");
ret = wl1271_event_handle(wl, 0);
if (ret < 0)
goto out;
}
if (intr & <API key>) {
wl1271_debug(DEBUG_IRQ, "<API key>");
ret = wl1271_event_handle(wl, 1);
if (ret < 0)
goto out;
}
if (intr & <API key>)
wl1271_debug(DEBUG_IRQ,
"<API key>");
if (intr & <API key>)
wl1271_debug(DEBUG_IRQ, "<API key>");
}
wl1271_ps_elp_sleep(wl);
out:
return ret;
}
static irqreturn_t wlcore_irq(int irq, void *cookie)
{
int ret;
unsigned long flags;
struct wl1271 *wl = cookie;
/* complete the ELP completion */
spin_lock_irqsave(&wl->wl_lock, flags);
set_bit(<API key>, &wl->flags);
if (wl->elp_compl) {
complete(wl->elp_compl);
wl->elp_compl = NULL;
}
if (test_bit(<API key>, &wl->flags)) {
/* don't enqueue a work right now. mark it as pending */
set_bit(<API key>, &wl->flags);
wl1271_debug(DEBUG_IRQ, "should not enqueue work");
disable_irq_nosync(wl->irq);
pm_wakeup_event(wl->dev, 0);
<API key>(&wl->wl_lock, flags);
return IRQ_HANDLED;
}
<API key>(&wl->wl_lock, flags);
/* TX might be handled here, avoid redundant work */
set_bit(<API key>, &wl->flags);
cancel_work_sync(&wl->tx_work);
mutex_lock(&wl->mutex);
ret = wlcore_irq_locked(wl);
if (ret)
<API key>(wl);
spin_lock_irqsave(&wl->wl_lock, flags);
/* In case TX was not handled here, queue TX work */
clear_bit(<API key>, &wl->flags);
if (!test_bit(<API key>, &wl->flags) &&
<API key>(wl) > 0)
<API key>(wl->hw, &wl->tx_work);
<API key>(&wl->wl_lock, flags);
mutex_unlock(&wl->mutex);
return IRQ_HANDLED;
}
struct vif_counter_data {
u8 counter;
struct ieee80211_vif *cur_vif;
bool cur_vif_running;
};
static void <API key>(void *data, u8 *mac,
struct ieee80211_vif *vif)
{
struct vif_counter_data *counter = data;
counter->counter++;
if (counter->cur_vif == vif)
counter->cur_vif_running = true;
}
/* caller must not hold wl->mutex, as it might deadlock */
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *cur_vif,
struct vif_counter_data *data)
{
memset(data, 0, sizeof(*data));
data->cur_vif = cur_vif;
<API key>(hw, <API key>,
<API key>, data);
}
static int <API key>(struct wl1271 *wl, bool plt)
{
const struct firmware *fw;
const char *fw_name;
enum wl12xx_fw_type fw_type;
int ret;
if (plt) {
fw_type = WL12XX_FW_TYPE_PLT;
fw_name = wl->plt_fw_name;
} else {
/*
* we can't call <API key>() here because
* wl->mutex is taken, so use the cached last_vif_count value
*/
if (wl->last_vif_count > 1 && wl->mr_fw_name) {
fw_type = <API key>;
fw_name = wl->mr_fw_name;
} else {
fw_type = <API key>;
fw_name = wl->sr_fw_name;
}
}
if (wl->fw_type == fw_type)
return 0;
wl1271_debug(DEBUG_BOOT, "booting firmware %s", fw_name);
ret = request_firmware(&fw, fw_name, wl->dev);
if (ret < 0) {
wl1271_error("could not get firmware %s: %d", fw_name, ret);
return ret;
}
if (fw->size % 4) {
wl1271_error("firmware size is not multiple of 32 bits: %zu",
fw->size);
ret = -EILSEQ;
goto out;
}
vfree(wl->fw);
wl->fw_type = WL12XX_FW_TYPE_NONE;
wl->fw_len = fw->size;
wl->fw = vmalloc(wl->fw_len);
if (!wl->fw) {
wl1271_error("could not allocate memory for the firmware");
ret = -ENOMEM;
goto out;
}
memcpy(wl->fw, fw->data, wl->fw_len);
ret = 0;
wl->fw_type = fw_type;
out:
release_firmware(fw);
return ret;
}
void <API key>(struct wl1271 *wl)
{
/* Avoid a recursive recovery */
if (wl->state == WLCORE_STATE_ON) {
WARN_ON(!test_bit(<API key>,
&wl->flags));
wl->state = <API key>;
set_bit(<API key>, &wl->flags);
<API key>(wl);
<API key>(wl);
<API key>(wl->hw, &wl->recovery_work);
}
}
size_t wl12xx_copy_fwlog(struct wl1271 *wl, u8 *memblock, size_t maxlen)
{
size_t len;
/* Make sure we have enough room */
len = min_t(size_t, maxlen, PAGE_SIZE - wl->fwlog_size);
/* Fill the FW log file, consumed by the sysfs fwlog entry */
memcpy(wl->fwlog + wl->fwlog_size, memblock, len);
wl->fwlog_size += len;
return len;
}
static void <API key>(struct wl1271 *wl)
{
struct <API key> part, old_part;
u32 addr;
u32 offset;
u32 end_of_log;
u8 *block;
int ret;
if ((wl->quirks & <API key>) ||
(wl->conf.fwlog.mem_blocks == 0))
return;
wl1271_info("Reading FW panic log");
block = kmalloc(wl->fw_mem_block_size, GFP_KERNEL);
if (!block)
return;
/*
* Make sure the chip is awake and the logger isn't active.
* Do not send a stop fwlog command if the fw is hanged or if
* dbgpins are used (due to some fw bug).
*/
if (<API key>(wl))
goto out;
if (!wl->watchdog_recovery &&
wl->conf.fwlog.output != <API key>)
<API key>(wl);
/* Read the first memory block address */
ret = wlcore_fw_status(wl, wl->fw_status);
if (ret < 0)
goto out;
addr = wl->fw_status->log_start_addr;
if (!addr)
goto out;
if (wl->conf.fwlog.mode == <API key>) {
offset = sizeof(addr) + sizeof(struct <API key>);
end_of_log = wl->fwlog_end;
} else {
offset = sizeof(addr);
end_of_log = addr;
}
old_part = wl->curr_part;
memset(&part, 0, sizeof(part));
/* Traverse the memory blocks linked list */
do {
part.mem.start = <API key>(wl, addr);
part.mem.size = PAGE_SIZE;
ret = <API key>(wl, &part);
if (ret < 0) {
wl1271_error("%s: set_partition start=0x%X size=%d",
__func__, part.mem.start, part.mem.size);
goto out;
}
memset(block, 0, wl->fw_mem_block_size);
ret = wlcore_read_hwaddr(wl, addr, block,
wl->fw_mem_block_size, false);
if (ret < 0)
goto out;
/*
* Memory blocks are linked to one another. The first 4 bytes
* of each memory block hold the hardware address of the next
* one. The last memory block points to the first one in
* on demand mode and is equal to 0x2000000 in continuous mode.
*/
addr = le32_to_cpup((__le32 *)block);
if (!wl12xx_copy_fwlog(wl, block + offset,
wl->fw_mem_block_size - offset))
break;
} while (addr && (addr != end_of_log));
<API key>(&wl->fwlog_waitq);
out:
kfree(block);
<API key>(wl, &old_part);
}
static void <API key>(struct wl1271 *wl)
{
u32 pc = 0;
u32 hint_sts = 0;
int ret;
wl1271_info("Hardware recovery in progress. FW ver: %s",
wl->chip.fw_ver_str);
/* change partitions momentarily so we can read the FW pc */
ret = <API key>(wl, &wl->ptable[PART_BOOT]);
if (ret < 0)
return;
ret = wlcore_read_reg(wl, REG_PC_ON_RECOVERY, &pc);
if (ret < 0)
return;
ret = wlcore_read_reg(wl, <API key>, &hint_sts);
if (ret < 0)
return;
wl1271_info("pc: 0x%x, hint_sts: 0x%08x count: %d",
pc, hint_sts, ++wl->recovery_count);
<API key>(wl, &wl->ptable[PART_WORK]);
}
static void <API key>(struct work_struct *work)
{
struct wl1271 *wl =
container_of(work, struct wl1271, recovery_work);
struct wl12xx_vif *wlvif;
struct ieee80211_vif *vif;
mutex_lock(&wl->mutex);
if (wl->state == WLCORE_STATE_OFF || wl->plt)
goto out_unlock;
if (!test_bit(<API key>, &wl->flags)) {
if (wl->conf.fwlog.output == <API key>)
<API key>(wl);
<API key>(wl);
}
BUG_ON(wl->conf.recovery.bug_on_recovery &&
!test_bit(<API key>, &wl->flags));
if (wl->conf.recovery.no_recovery) {
wl1271_info("No recovery (chosen on module load). Fw will remain stuck.");
goto out_unlock;
}
/* Prevent spurious TX during FW restart */
wlcore_stop_queues(wl, <API key>);
/* reboot the chipset */
while (!list_empty(&wl->wlvif_list)) {
wlvif = list_first_entry(&wl->wlvif_list,
struct wl12xx_vif, list);
vif = wl12xx_wlvif_to_vif(wlvif);
<API key>(wl, vif, false);
}
<API key>(wl);
<API key>(wl->hw);
/*
* Its safe to enable TX now - the queues are stopped after a request
* to restart the HW.
*/
wlcore_wake_queues(wl, <API key>);
out_unlock:
wl->watchdog_recovery = false;
clear_bit(<API key>, &wl->flags);
mutex_unlock(&wl->mutex);
}
static int wlcore_fw_wakeup(struct wl1271 *wl)
{
return wlcore_raw_write32(wl, <API key>, ELPCTRL_WAKE_UP);
}
static int wl1271_setup(struct wl1271 *wl)
{
wl->raw_fw_status = kzalloc(wl->fw_status_len, GFP_KERNEL);
if (!wl->raw_fw_status)
goto err;
wl->fw_status = kzalloc(sizeof(*wl->fw_status), GFP_KERNEL);
if (!wl->fw_status)
goto err;
wl->tx_res_if = kzalloc(sizeof(*wl->tx_res_if), GFP_KERNEL);
if (!wl->tx_res_if)
goto err;
return 0;
err:
kfree(wl->fw_status);
kfree(wl->raw_fw_status);
return -ENOMEM;
}
static int wl12xx_set_power_on(struct wl1271 *wl)
{
int ret;
msleep(<API key>);
ret = wl1271_power_on(wl);
if (ret < 0)
goto out;
msleep(<API key>);
wl1271_io_reset(wl);
wl1271_io_init(wl);
ret = <API key>(wl, &wl->ptable[PART_BOOT]);
if (ret < 0)
goto fail;
/* ELP module wake up */
ret = wlcore_fw_wakeup(wl);
if (ret < 0)
goto fail;
out:
return ret;
fail:
wl1271_power_off(wl);
return ret;
}
static int wl12xx_chip_wakeup(struct wl1271 *wl, bool plt)
{
int ret = 0;
ret = wl12xx_set_power_on(wl);
if (ret < 0)
goto out;
/*
* For wl127x based devices we could use the default block
* size (512 bytes), but due to a bug in the sdio driver, we
* need to set it explicitly after the chip is powered on. To
* simplify the code and since the performance impact is
* negligible, we use the same block size for all different
* chip types.
*
* Check if the bus supports blocksize alignment and, if it
* doesn't, make sure we don't have the quirk.
*/
if (!<API key>(wl))
wl->quirks &= ~<API key>;
/* TODO: make sure the lower driver has set things up correctly */
ret = wl1271_setup(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, plt);
if (ret < 0)
goto out;
out:
return ret;
}
int wl1271_plt_start(struct wl1271 *wl, const enum plt_mode plt_mode)
{
int retries = WL1271_BOOT_RETRIES;
struct wiphy *wiphy = wl->hw->wiphy;
static const char* const PLT_MODE[] = {
"PLT_OFF",
"PLT_ON",
"PLT_FEM_DETECT",
"PLT_CHIP_AWAKE"
};
int ret;
mutex_lock(&wl->mutex);
wl1271_notice("power up");
if (wl->state != WLCORE_STATE_OFF) {
wl1271_error("cannot go into PLT state because not "
"in off state: %d", wl->state);
ret = -EBUSY;
goto out;
}
/* Indicate to lower levels that we are now in PLT mode */
wl->plt = true;
wl->plt_mode = plt_mode;
while (retries) {
retries
ret = wl12xx_chip_wakeup(wl, true);
if (ret < 0)
goto power_off;
if (plt_mode != PLT_CHIP_AWAKE) {
ret = wl->ops->plt_init(wl);
if (ret < 0)
goto power_off;
}
wl->state = WLCORE_STATE_ON;
wl1271_notice("firmware booted in PLT mode %s (%s)",
PLT_MODE[plt_mode],
wl->chip.fw_ver_str);
/* update hw/fw version info in wiphy struct */
wiphy->hw_version = wl->chip.id;
strncpy(wiphy->fw_version, wl->chip.fw_ver_str,
sizeof(wiphy->fw_version));
goto out;
power_off:
wl1271_power_off(wl);
}
wl->plt = false;
wl->plt_mode = PLT_OFF;
wl1271_error("firmware boot in PLT mode failed despite %d retries",
WL1271_BOOT_RETRIES);
out:
mutex_unlock(&wl->mutex);
return ret;
}
int wl1271_plt_stop(struct wl1271 *wl)
{
int ret = 0;
wl1271_notice("power down");
/*
* Interrupts must be disabled before setting the state to OFF.
* Otherwise, the interrupt handler might be called and exit without
* reading the interrupt status.
*/
<API key>(wl);
mutex_lock(&wl->mutex);
if (!wl->plt) {
mutex_unlock(&wl->mutex);
/*
* This will not necessarily enable interrupts as interrupts
* may have been disabled when op_stop was called. It will,
* however, balance the above call to disable_interrupts().
*/
<API key>(wl);
wl1271_error("cannot power down because not in PLT "
"state: %d", wl->state);
ret = -EBUSY;
goto out;
}
mutex_unlock(&wl->mutex);
<API key>(wl);
cancel_work_sync(&wl->netstack_work);
cancel_work_sync(&wl->recovery_work);
<API key>(&wl->elp_work);
<API key>(&wl->tx_watchdog_work);
mutex_lock(&wl->mutex);
wl1271_power_off(wl);
wl->flags = 0;
wl->sleep_<API key>;
wl->state = WLCORE_STATE_OFF;
wl->plt = false;
wl->plt_mode = PLT_OFF;
wl->rx_counter = 0;
mutex_unlock(&wl->mutex);
out:
return ret;
}
static void wl1271_op_tx(struct ieee80211_hw *hw,
struct <API key> *control,
struct sk_buff *skb)
{
struct wl1271 *wl = hw->priv;
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
struct ieee80211_vif *vif = info->control.vif;
struct wl12xx_vif *wlvif = NULL;
unsigned long flags;
int q, mapping;
u8 hlid;
if (!vif) {
wl1271_debug(DEBUG_TX, "DROP skb with no vif");
<API key>(hw, skb);
return;
}
wlvif = wl12xx_vif_to_data(vif);
mapping = <API key>(skb);
q = wl1271_tx_get_queue(mapping);
hlid = wl12xx_tx_get_hlid(wl, wlvif, skb, control->sta);
spin_lock_irqsave(&wl->wl_lock, flags);
/*
* drop the packet if the link is invalid or the queue is stopped
* for any reason but watermark. Watermark is a "soft"-stop so we
* allow these packets through.
*/
if (hlid == <API key> ||
(!test_bit(hlid, wlvif->links_map)) ||
(<API key>(wl, wlvif, q) &&
!<API key>(wl, wlvif, q,
<API key>))) {
wl1271_debug(DEBUG_TX, "DROP skb hlid %d q %d", hlid, q);
<API key>(hw, skb);
goto out;
}
wl1271_debug(DEBUG_TX, "queue skb hlid %d q %d len %d",
hlid, q, skb->len);
skb_queue_tail(&wl->links[hlid].tx_queue[q], skb);
wl->tx_queue_count[q]++;
wlvif->tx_queue_count[q]++;
/*
* The workqueue is slow to process the tx_queue and we need stop
* the queue here, otherwise the queue will get too long.
*/
if (wlvif->tx_queue_count[q] >= <API key> &&
!<API key>(wl, wlvif, q,
<API key>)) {
wl1271_debug(DEBUG_TX, "op_tx: stopping queues for q %d", q);
<API key>(wl, wlvif, q,
<API key>);
}
/*
* The chip specific setup must run before the first TX packet -
* before that, the tx_work will not be initialized!
*/
if (!test_bit(<API key>, &wl->flags) &&
!test_bit(<API key>, &wl->flags))
<API key>(wl->hw, &wl->tx_work);
out:
<API key>(&wl->wl_lock, flags);
}
int <API key>(struct wl1271 *wl)
{
unsigned long flags;
int q;
/* no need to queue a new dummy packet if one is already pending */
if (test_bit(<API key>, &wl->flags))
return 0;
q = wl1271_tx_get_queue(<API key>(wl->dummy_packet));
spin_lock_irqsave(&wl->wl_lock, flags);
set_bit(<API key>, &wl->flags);
wl->tx_queue_count[q]++;
<API key>(&wl->wl_lock, flags);
/* The FW is low on RX memory blocks, so send the dummy packet asap */
if (!test_bit(<API key>, &wl->flags))
return <API key>(wl);
/*
* If the FW TX is busy, TX work will be scheduled by the threaded
* interrupt handler function
*/
return 0;
}
/*
* The size of the dummy packet should be at least 1400 bytes. However, in
* order to minimize the number of bus transactions, aligning it to 512 bytes
* boundaries could be beneficial, performance wise
*/
#define <API key> (ALIGN(1400, 512))
static struct sk_buff *<API key>(struct wl1271 *wl)
{
struct sk_buff *skb;
struct ieee80211_hdr_3addr *hdr;
unsigned int dummy_packet_size;
dummy_packet_size = <API key> -
sizeof(struct wl1271_tx_hw_descr) - sizeof(*hdr);
skb = dev_alloc_skb(<API key>);
if (!skb) {
wl1271_warning("Failed to allocate a dummy packet skb");
return NULL;
}
skb_reserve(skb, sizeof(struct wl1271_tx_hw_descr));
hdr = (struct ieee80211_hdr_3addr *) skb_put(skb, sizeof(*hdr));
memset(hdr, 0, sizeof(*hdr));
hdr->frame_control = cpu_to_le16(<API key> |
<API key> |
IEEE80211_FCTL_TODS);
memset(skb_put(skb, dummy_packet_size), 0, dummy_packet_size);
/* Dummy packets require the TID to be management */
skb->priority = WL1271_TID_MGMT;
/* Initialize all fields that might be used */
<API key>(skb, 0);
memset(IEEE80211_SKB_CB(skb), 0, sizeof(struct ieee80211_tx_info));
return skb;
}
#ifdef CONFIG_PM
static int
<API key>(struct <API key> *p)
{
int num_fields = 0, in_field = 0, fields_size = 0;
int i, pattern_len = 0;
if (!p->mask) {
wl1271_warning("No mask in WoWLAN pattern");
return -EINVAL;
}
/*
* The pattern is broken up into segments of bytes at different offsets
* that need to be checked by the FW filter. Each segment is called
* a field in the FW API. We verify that the total number of fields
* required for this pattern won't exceed FW limits (8)
* as well as the total fields buffer won't exceed the FW limit.
* Note that if there's a pattern which crosses Ethernet/IP header
* boundary a new field is required.
*/
for (i = 0; i < p->pattern_len; i++) {
if (test_bit(i, (unsigned long *)p->mask)) {
if (!in_field) {
in_field = 1;
pattern_len = 1;
} else {
if (i == <API key>) {
num_fields++;
fields_size += pattern_len +
<API key>;
pattern_len = 1;
} else
pattern_len++;
}
} else {
if (in_field) {
in_field = 0;
fields_size += pattern_len +
<API key>;
num_fields++;
}
}
}
if (in_field) {
fields_size += pattern_len + <API key>;
num_fields++;
}
if (num_fields > <API key>) {
wl1271_warning("RX Filter too complex. Too many segments");
return -EINVAL;
}
if (fields_size > <API key>) {
wl1271_warning("RX filter pattern is too big");
return -E2BIG;
}
return 0;
}
struct wl12xx_rx_filter *<API key>(void)
{
return kzalloc(sizeof(struct wl12xx_rx_filter), GFP_KERNEL);
}
void <API key>(struct wl12xx_rx_filter *filter)
{
int i;
if (filter == NULL)
return;
for (i = 0; i < filter->num_fields; i++)
kfree(filter->fields[i].pattern);
kfree(filter);
}
int <API key>(struct wl12xx_rx_filter *filter,
u16 offset, u8 flags,
u8 *pattern, u8 len)
{
struct <API key> *field;
if (filter->num_fields == <API key>) {
wl1271_warning("Max fields per RX filter. can't alloc another");
return -EINVAL;
}
field = &filter->fields[filter->num_fields];
field->pattern = kzalloc(len, GFP_KERNEL);
if (!field->pattern) {
wl1271_warning("Failed to allocate RX filter pattern");
return -ENOMEM;
}
filter->num_fields++;
field->offset = cpu_to_le16(offset);
field->flags = flags;
field->len = len;
memcpy(field->pattern, pattern, len);
return 0;
}
int <API key>(struct wl12xx_rx_filter *filter)
{
int i, fields_size = 0;
for (i = 0; i < filter->num_fields; i++)
fields_size += filter->fields[i].len +
sizeof(struct <API key>) -
sizeof(u8 *);
return fields_size;
}
void <API key>(struct wl12xx_rx_filter *filter,
u8 *buf)
{
int i;
struct <API key> *field;
for (i = 0; i < filter->num_fields; i++) {
field = (struct <API key> *)buf;
field->offset = filter->fields[i].offset;
field->flags = filter->fields[i].flags;
field->len = filter->fields[i].len;
memcpy(&field->pattern, filter->fields[i].pattern, field->len);
buf += sizeof(struct <API key>) -
sizeof(u8 *) + field->len;
}
}
/*
* Allocates an RX filter returned through f
* which needs to be freed using rx_filter_free()
*/
static int
<API key>(struct <API key> *p,
struct wl12xx_rx_filter **f)
{
int i, j, ret = 0;
struct wl12xx_rx_filter *filter;
u16 offset;
u8 flags, len;
filter = <API key>();
if (!filter) {
wl1271_warning("Failed to alloc rx filter");
ret = -ENOMEM;
goto err;
}
i = 0;
while (i < p->pattern_len) {
if (!test_bit(i, (unsigned long *)p->mask)) {
i++;
continue;
}
for (j = i; j < p->pattern_len; j++) {
if (!test_bit(j, (unsigned long *)p->mask))
break;
if (i < <API key> &&
j >= <API key>)
break;
}
if (i < <API key>) {
offset = i;
flags = <API key>;
} else {
offset = i - <API key>;
flags = <API key>;
}
len = j - i;
ret = <API key>(filter,
offset,
flags,
&p->pattern[i], len);
if (ret)
goto err;
i = j;
}
filter->action = FILTER_SIGNAL;
*f = filter;
return 0;
err:
<API key>(filter);
*f = NULL;
return ret;
}
static int <API key>(struct wl1271 *wl,
struct cfg80211_wowlan *wow)
{
int i, ret;
if (!wow || wow->any || !wow->n_patterns) {
ret = <API key>(wl, 0,
FILTER_SIGNAL);
if (ret)
goto out;
ret = <API key>(wl);
if (ret)
goto out;
return 0;
}
if (WARN_ON(wow->n_patterns > <API key>))
return -EINVAL;
/* Validate all incoming patterns before clearing current FW state */
for (i = 0; i < wow->n_patterns; i++) {
ret = <API key>(&wow->patterns[i]);
if (ret) {
wl1271_warning("Bad wowlan pattern %d", i);
return ret;
}
}
ret = <API key>(wl, 0, FILTER_SIGNAL);
if (ret)
goto out;
ret = <API key>(wl);
if (ret)
goto out;
/* Translate WoWLAN patterns into filters */
for (i = 0; i < wow->n_patterns; i++) {
struct <API key> *p;
struct wl12xx_rx_filter *filter = NULL;
p = &wow->patterns[i];
ret = <API key>(p, &filter);
if (ret) {
wl1271_warning("Failed to create an RX filter from "
"wowlan pattern %d", i);
goto out;
}
ret = <API key>(wl, i, 1, filter);
<API key>(filter);
if (ret)
goto out;
}
ret = <API key>(wl, 1, FILTER_DROP);
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct cfg80211_wowlan *wow)
{
int ret = 0;
if (!test_bit(<API key>, &wlvif->flags))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, wow);
if (ret < 0)
goto out_sleep;
if ((wl->conf.conn.<API key> ==
wl->conf.conn.wake_up_event) &&
(wl->conf.conn.<API key> ==
wl->conf.conn.listen_interval))
goto out_sleep;
ret = <API key>(wl, wlvif,
wl->conf.conn.<API key>,
wl->conf.conn.<API key>);
if (ret < 0)
wl1271_error("suspend: set wake up conditions failed: %d", ret);
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif)
{
int ret = 0;
if (!test_bit(<API key>, &wlvif->flags))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif, true);
wl1271_ps_elp_sleep(wl);
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct cfg80211_wowlan *wow)
{
if (wlvif->bss_type == BSS_TYPE_STA_BSS)
return <API key>(wl, wlvif, wow);
if (wlvif->bss_type == BSS_TYPE_AP_BSS)
return <API key>(wl, wlvif);
return 0;
}
static void <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret = 0;
bool is_ap = wlvif->bss_type == BSS_TYPE_AP_BSS;
bool is_sta = wlvif->bss_type == BSS_TYPE_STA_BSS;
if ((!is_ap) && (!is_sta))
return;
if (is_sta && !test_bit(<API key>, &wlvif->flags))
return;
ret = <API key>(wl);
if (ret < 0)
return;
if (is_sta) {
<API key>(wl, NULL);
if ((wl->conf.conn.<API key> ==
wl->conf.conn.wake_up_event) &&
(wl->conf.conn.<API key> ==
wl->conf.conn.listen_interval))
goto out_sleep;
ret = <API key>(wl, wlvif,
wl->conf.conn.wake_up_event,
wl->conf.conn.listen_interval);
if (ret < 0)
wl1271_error("resume: wake up conditions failed: %d",
ret);
} else if (is_ap) {
ret = <API key>(wl, wlvif, false);
}
out_sleep:
wl1271_ps_elp_sleep(wl);
}
static int wl1271_op_suspend(struct ieee80211_hw *hw,
struct cfg80211_wowlan *wow)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 suspend wow=%d", !!wow);
WARN_ON(!wow);
/* we want to perform the recovery before suspending */
if (test_bit(<API key>, &wl->flags)) {
wl1271_warning("postponing suspend to perform recovery");
return -EBUSY;
}
wl1271_tx_flush(wl);
mutex_lock(&wl->mutex);
wl->wow_enabled = true;
<API key>(wl, wlvif) {
ret = <API key>(wl, wlvif, wow);
if (ret < 0) {
mutex_unlock(&wl->mutex);
wl1271_warning("couldn't prepare device to suspend");
return ret;
}
}
mutex_unlock(&wl->mutex);
/* flush any remaining work */
wl1271_debug(DEBUG_MAC80211, "flushing remaining works");
/*
* disable and re-enable interrupts in order to flush
* the threaded_irq
*/
<API key>(wl);
/*
* set suspended flag to avoid triggering a new threaded_irq
* work. no need for spinlock as interrupts are disabled.
*/
set_bit(<API key>, &wl->flags);
<API key>(wl);
flush_work(&wl->tx_work);
flush_delayed_work(&wl->elp_work);
/*
* Cancel the watchdog even if above tx_flush failed. We will detect
* it on resume anyway.
*/
cancel_delayed_work(&wl->tx_watchdog_work);
return 0;
}
static int wl1271_op_resume(struct ieee80211_hw *hw)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
unsigned long flags;
bool run_irq_work = false, pending_recovery;
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 resume wow=%d",
wl->wow_enabled);
WARN_ON(!wl->wow_enabled);
/*
* re-enable irq_work enqueuing, and call irq_work directly if
* there is a pending work.
*/
spin_lock_irqsave(&wl->wl_lock, flags);
clear_bit(<API key>, &wl->flags);
if (test_and_clear_bit(<API key>, &wl->flags))
run_irq_work = true;
<API key>(&wl->wl_lock, flags);
mutex_lock(&wl->mutex);
/* test the recovery flag before calling any SDIO functions */
pending_recovery = test_bit(<API key>,
&wl->flags);
if (run_irq_work) {
wl1271_debug(DEBUG_MAC80211,
"run postponed irq_work directly");
/* don't talk to the HW if recovery is pending */
if (!pending_recovery) {
ret = wlcore_irq_locked(wl);
if (ret)
<API key>(wl);
}
<API key>(wl);
}
if (pending_recovery) {
wl1271_warning("queuing forgotten recovery on resume");
<API key>(wl->hw, &wl->recovery_work);
goto out;
}
<API key>(wl, wlvif) {
<API key>(wl, wlvif);
}
out:
wl->wow_enabled = false;
/*
* Set a flag to re-init the watchdog on the first Tx after resume.
* That way we avoid possible conditions where Tx-complete interrupts
* fail to arrive and we perform a spurious recovery.
*/
set_bit(<API key>, &wl->flags);
mutex_unlock(&wl->mutex);
return 0;
}
#endif
static int wl1271_op_start(struct ieee80211_hw *hw)
{
wl1271_debug(DEBUG_MAC80211, "mac80211 start");
/*
* We have to delay the booting of the hardware because
* we need to know the local MAC address before downloading and
* initializing the firmware. The MAC address cannot be changed
* after boot, and without the proper MAC address, the firmware
* will not function properly.
*
* The MAC address is first known when the corresponding interface
* is added. That is where we will initialize the hardware.
*/
return 0;
}
static void <API key>(struct wl1271 *wl)
{
int i;
if (wl->state == WLCORE_STATE_OFF) {
if (test_and_clear_bit(<API key>,
&wl->flags))
<API key>(wl);
return;
}
/*
* this must be before the cancel_work calls below, so that the work
* functions don't perform further work.
*/
wl->state = WLCORE_STATE_OFF;
/*
* Use the nosync variant to disable interrupts, so the mutex could be
* held while doing so without deadlocking.
*/
<API key>(wl);
mutex_unlock(&wl->mutex);
<API key>(wl);
if (!test_bit(<API key>, &wl->flags))
cancel_work_sync(&wl->recovery_work);
<API key>(wl);
<API key>(&wl->scan_complete_work);
cancel_work_sync(&wl->netstack_work);
cancel_work_sync(&wl->tx_work);
<API key>(&wl->elp_work);
<API key>(&wl->tx_watchdog_work);
/* let's notify MAC80211 about the remaining pending TX frames */
mutex_lock(&wl->mutex);
wl12xx_tx_reset(wl);
wl1271_power_off(wl);
/*
* In case a recovery was scheduled, interrupts were disabled to avoid
* an interrupt storm. Now that the power is down, it is safe to
* re-enable interrupts to balance the disable depth
*/
if (test_and_clear_bit(<API key>, &wl->flags))
<API key>(wl);
wl->band = IEEE80211_BAND_2GHZ;
wl->rx_counter = 0;
wl->power_level = <API key>;
wl->channel_type = NL80211_CHAN_NO_HT;
wl->tx_blocks_available = 0;
wl->tx_allocated_blocks = 0;
wl->tx_results_count = 0;
wl->tx_packets_count = 0;
wl->time_offset = 0;
wl->ap_fw_ps_map = 0;
wl->ap_ps_map = 0;
wl->sleep_<API key>;
memset(wl->roles_map, 0, sizeof(wl->roles_map));
memset(wl->links_map, 0, sizeof(wl->links_map));
memset(wl->roc_map, 0, sizeof(wl->roc_map));
memset(wl->session_ids, 0, sizeof(wl->session_ids));
memset(wl->rx_filter_enabled, 0, sizeof(wl->rx_filter_enabled));
wl->active_sta_count = 0;
wl->active_link_count = 0;
/* The system link is always allocated */
wl->links[WL12XX_SYSTEM_HLID].allocated_pkts = 0;
wl->links[WL12XX_SYSTEM_HLID].prev_freed_pkts = 0;
__set_bit(WL12XX_SYSTEM_HLID, wl->links_map);
/*
* this is performed after the cancel_work calls and the associated
* mutex_lock, so that <API key> does not accidentally
* get executed before all these vars have been reset.
*/
wl->flags = 0;
wl->tx_blocks_freed = 0;
for (i = 0; i < NUM_TX_QUEUES; i++) {
wl->tx_pkts_freed[i] = 0;
wl->tx_allocated_pkts[i] = 0;
}
<API key>(wl);
kfree(wl->raw_fw_status);
wl->raw_fw_status = NULL;
kfree(wl->fw_status);
wl->fw_status = NULL;
kfree(wl->tx_res_if);
wl->tx_res_if = NULL;
kfree(wl->target_mem_map);
wl->target_mem_map = NULL;
/*
* FW channels must be re-calibrated after recovery,
* save current Reg-Domain channel configuration and clear it.
*/
memcpy(wl->reg_ch_conf_pending, wl->reg_ch_conf_last,
sizeof(wl->reg_ch_conf_pending));
memset(wl->reg_ch_conf_last, 0, sizeof(wl->reg_ch_conf_last));
}
static void wlcore_op_stop(struct ieee80211_hw *hw)
{
struct wl1271 *wl = hw->priv;
wl1271_debug(DEBUG_MAC80211, "mac80211 stop");
mutex_lock(&wl->mutex);
<API key>(wl);
mutex_unlock(&wl->mutex);
}
static void <API key>(struct work_struct *work)
{
struct delayed_work *dwork;
struct wl1271 *wl;
struct ieee80211_vif *vif;
struct wl12xx_vif *wlvif;
int ret;
dwork = container_of(work, struct delayed_work, work);
wlvif = container_of(dwork, struct wl12xx_vif, channel_switch_work);
wl = wlvif->wl;
wl1271_info("channel switch failed (role_id: %d).", wlvif->role_id);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/* check the channel switch is still ongoing */
if (!test_and_clear_bit(<API key>, &wlvif->flags))
goto out;
vif = wl12xx_wlvif_to_vif(wlvif);
<API key>(vif, false);
ret = <API key>(wl);
if (ret < 0)
goto out;
<API key>(wl, wlvif);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static void <API key>(struct work_struct *work)
{
struct delayed_work *dwork;
struct wl1271 *wl;
struct ieee80211_vif *vif;
struct wl12xx_vif *wlvif;
dwork = container_of(work, struct delayed_work, work);
wlvif = container_of(dwork, struct wl12xx_vif, <API key>);
wl = wlvif->wl;
wl1271_info("Connection loss work (role_id: %d).", wlvif->role_id);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/* Call mac80211 connection loss */
if (!test_bit(<API key>, &wlvif->flags))
goto out;
vif = wl12xx_wlvif_to_vif(wlvif);
<API key>(vif);
out:
mutex_unlock(&wl->mutex);
}
static void <API key>(struct work_struct *work)
{
struct delayed_work *dwork;
struct wl1271 *wl;
struct wl12xx_vif *wlvif;
unsigned long time_spare;
int ret;
dwork = container_of(work, struct delayed_work, work);
wlvif = container_of(dwork, struct wl12xx_vif,
<API key>);
wl = wlvif->wl;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/*
* Make sure a second really passed since the last auth reply. Maybe
* a second auth reply arrived while we were stuck on the mutex.
* Check for a little less than the timeout to protect from scheduler
* irregularities.
*/
time_spare = jiffies +
msecs_to_jiffies(<API key> - 50);
if (!time_after(time_spare, wlvif-><API key>))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
/* cancel the ROC if active */
<API key>(wl, wlvif, NULL, false);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static int <API key>(struct wl1271 *wl, u8 *idx)
{
u8 policy = find_first_zero_bit(wl->rate_policies_map,
<API key>);
if (policy >= <API key>)
return -EBUSY;
__set_bit(policy, wl->rate_policies_map);
*idx = policy;
return 0;
}
static void <API key>(struct wl1271 *wl, u8 *idx)
{
if (WARN_ON(*idx >= <API key>))
return;
__clear_bit(*idx, wl->rate_policies_map);
*idx = <API key>;
}
static int <API key>(struct wl1271 *wl, u8 *idx)
{
u8 policy = find_first_zero_bit(wl->klv_templates_map,
<API key>);
if (policy >= <API key>)
return -EBUSY;
__set_bit(policy, wl->klv_templates_map);
*idx = policy;
return 0;
}
static void <API key>(struct wl1271 *wl, u8 *idx)
{
if (WARN_ON(*idx >= <API key>))
return;
__clear_bit(*idx, wl->klv_templates_map);
*idx = <API key>;
}
static u8 <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
switch (wlvif->bss_type) {
case BSS_TYPE_AP_BSS:
if (wlvif->p2p)
return WL1271_ROLE_P2P_GO;
else
return WL1271_ROLE_AP;
case BSS_TYPE_STA_BSS:
if (wlvif->p2p)
return WL1271_ROLE_P2P_CL;
else
return WL1271_ROLE_STA;
case BSS_TYPE_IBSS:
return WL1271_ROLE_IBSS;
default:
wl1271_error("invalid bss_type: %d", wlvif->bss_type);
}
return <API key>;
}
static int <API key>(struct wl1271 *wl, struct ieee80211_vif *vif)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int i;
/* clear everything but the persistent data */
memset(wlvif, 0, offsetof(struct wl12xx_vif, persistent));
switch (<API key>(vif)) {
case <API key>:
wlvif->p2p = 1;
/* fall-through */
case <API key>:
wlvif->bss_type = BSS_TYPE_STA_BSS;
break;
case <API key>:
wlvif->bss_type = BSS_TYPE_IBSS;
break;
case <API key>:
wlvif->p2p = 1;
/* fall-through */
case NL80211_IFTYPE_AP:
wlvif->bss_type = BSS_TYPE_AP_BSS;
break;
default:
wlvif->bss_type = MAX_BSS_TYPE;
return -EOPNOTSUPP;
}
wlvif->role_id = <API key>;
wlvif->dev_role_id = <API key>;
wlvif->dev_hlid = <API key>;
if (wlvif->bss_type == BSS_TYPE_STA_BSS ||
wlvif->bss_type == BSS_TYPE_IBSS) {
/* init sta/ibss data */
wlvif->sta.hlid = <API key>;
<API key>(wl, &wlvif->sta.basic_rate_idx);
<API key>(wl, &wlvif->sta.ap_rate_idx);
<API key>(wl, &wlvif->sta.p2p_rate_idx);
<API key>(wl, &wlvif->sta.klv_template_id);
wlvif->basic_rate_set = <API key>;
wlvif->basic_rate = <API key>;
wlvif->rate_set = <API key>;
} else {
/* init ap data */
wlvif->ap.bcast_hlid = <API key>;
wlvif->ap.global_hlid = <API key>;
<API key>(wl, &wlvif->ap.mgmt_rate_idx);
<API key>(wl, &wlvif->ap.bcast_rate_idx);
for (i = 0; i < <API key>; i++)
<API key>(wl,
&wlvif->ap.ucast_rate_idx[i]);
wlvif->basic_rate_set = <API key>;
/*
* TODO: check if basic_rate shouldn't be
* <API key>(wl, wlvif->basic_rate_set);
* instead (the same thing for STA above).
*/
wlvif->basic_rate = <API key>;
/* TODO: this seems to be used only for STA, check it */
wlvif->rate_set = <API key>;
}
wlvif->bitrate_masks[IEEE80211_BAND_2GHZ] = wl->conf.tx.basic_rate;
wlvif->bitrate_masks[IEEE80211_BAND_5GHZ] = wl->conf.tx.basic_rate_5;
wlvif->beacon_int = <API key>;
/*
* mac80211 configures some values globally, while we treat them
* per-interface. thus, on init, we have to copy them from wl
*/
wlvif->band = wl->band;
wlvif->channel = wl->channel;
wlvif->power_level = wl->power_level;
wlvif->channel_type = wl->channel_type;
INIT_WORK(&wlvif-><API key>,
<API key>);
INIT_WORK(&wlvif-><API key>,
<API key>);
INIT_DELAYED_WORK(&wlvif->channel_switch_work,
<API key>);
INIT_DELAYED_WORK(&wlvif-><API key>,
<API key>);
INIT_DELAYED_WORK(&wlvif-><API key>,
<API key>);
INIT_LIST_HEAD(&wlvif->list);
setup_timer(&wlvif->rx_streaming_timer, <API key>,
(unsigned long) wlvif);
return 0;
}
static int wl12xx_init_fw(struct wl1271 *wl)
{
int retries = WL1271_BOOT_RETRIES;
bool booted = false;
struct wiphy *wiphy = wl->hw->wiphy;
int ret;
while (retries) {
retries
ret = wl12xx_chip_wakeup(wl, false);
if (ret < 0)
goto power_off;
ret = wl->ops->boot(wl);
if (ret < 0)
goto power_off;
ret = wl1271_hw_init(wl);
if (ret < 0)
goto irq_disable;
booted = true;
break;
irq_disable:
mutex_unlock(&wl->mutex);
/* Unlocking the mutex in the middle of handling is
inherently unsafe. In this case we deem it safe to do,
because we need to let any possibly pending IRQ out of
the system (and while we are WLCORE_STATE_OFF the IRQ
work function will not do anything.) Also, any other
possible concurrent operations will fail due to the
current state, hence the wl1271 struct should be safe. */
<API key>(wl);
<API key>(wl);
cancel_work_sync(&wl->netstack_work);
mutex_lock(&wl->mutex);
power_off:
wl1271_power_off(wl);
}
if (!booted) {
wl1271_error("firmware boot failed despite %d retries",
WL1271_BOOT_RETRIES);
goto out;
}
wl1271_info("firmware booted (%s)", wl->chip.fw_ver_str);
/* update hw/fw version info in wiphy struct */
wiphy->hw_version = wl->chip.id;
strncpy(wiphy->fw_version, wl->chip.fw_ver_str,
sizeof(wiphy->fw_version));
/*
* Now we know if 11a is supported (info from the NVS), so disable
* 11a channels if not supported
*/
if (!wl->enable_11a)
wiphy->bands[IEEE80211_BAND_5GHZ]->n_channels = 0;
wl1271_debug(DEBUG_MAC80211, "11a is %ssupported",
wl->enable_11a ? "" : "not ");
wl->state = WLCORE_STATE_ON;
out:
return ret;
}
static bool <API key>(struct wl12xx_vif *wlvif)
{
return wlvif->dev_hlid != <API key>;
}
/*
* Check whether a fw switch (i.e. moving from one loaded
* fw to another) is needed. This function is also responsible
* for updating wl->last_vif_count, so it must be called before
* loading a non-plt fw (so the correct fw (single-role/multi-role)
* will be used).
*/
static bool <API key>(struct wl1271 *wl,
struct vif_counter_data vif_counter_data,
bool add)
{
enum wl12xx_fw_type current_fw = wl->fw_type;
u8 vif_count = vif_counter_data.counter;
if (test_bit(<API key>, &wl->flags))
return false;
/* increase the vif count if this is a new vif */
if (add && !vif_counter_data.cur_vif_running)
vif_count++;
wl->last_vif_count = vif_count;
/* no need for fw change if the device is OFF */
if (wl->state == WLCORE_STATE_OFF)
return false;
/* no need for fw change if a single fw is used */
if (!wl->mr_fw_name)
return false;
if (vif_count > 1 && current_fw == <API key>)
return true;
if (vif_count <= 1 && current_fw == <API key>)
return true;
return false;
}
/*
* Enter "forced psm". Make sure the sta is in psm against the ap,
* to make the fw switch a bit more <API key>.
*/
static void <API key>(struct wl1271 *wl)
{
struct wl12xx_vif *wlvif;
<API key>(wl, wlvif) {
wl1271_ps_set_mode(wl, wlvif, <API key>);
}
}
struct <API key> {
unsigned long hw_queue_map[BITS_TO_LONGS(<API key>)];
/* current vif */
struct ieee80211_vif *vif;
/* is the current vif among those iterated */
bool cur_running;
};
static void <API key>(void *data, u8 *mac,
struct ieee80211_vif *vif)
{
struct <API key> *iter_data = data;
if (WARN_ON_ONCE(vif->hw_queue[0] == <API key>))
return;
if (iter_data->cur_running || vif == iter_data->vif) {
iter_data->cur_running = true;
return;
}
__set_bit(vif->hw_queue[0] / NUM_TX_QUEUES, iter_data->hw_queue_map);
}
static int <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif)
{
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
struct <API key> iter_data = {};
int i, q_base;
iter_data.vif = vif;
/* mark all bits taken by active interfaces */
<API key>(wl->hw,
<API key>,
<API key>, &iter_data);
/* the current vif is already running in mac80211 (resume/recovery) */
if (iter_data.cur_running) {
wlvif->hw_queue_base = vif->hw_queue[0];
wl1271_debug(DEBUG_MAC80211,
"using pre-allocated hw queue base %d",
wlvif->hw_queue_base);
/* interface type might have changed type */
goto adjust_cab_queue;
}
q_base = find_first_zero_bit(iter_data.hw_queue_map,
<API key>);
if (q_base >= <API key>)
return -EBUSY;
wlvif->hw_queue_base = q_base * NUM_TX_QUEUES;
wl1271_debug(DEBUG_MAC80211, "allocating hw queue base: %d",
wlvif->hw_queue_base);
for (i = 0; i < NUM_TX_QUEUES; i++) {
wl->queue_stop_reasons[wlvif->hw_queue_base + i] = 0;
/* register hw queues in mac80211 */
vif->hw_queue[i] = wlvif->hw_queue_base + i;
}
adjust_cab_queue:
/* the last places are reserved for cab queues per interface */
if (wlvif->bss_type == BSS_TYPE_AP_BSS)
vif->cab_queue = NUM_TX_QUEUES * <API key> +
wlvif->hw_queue_base / NUM_TX_QUEUES;
else
vif->cab_queue = <API key>;
return 0;
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct vif_counter_data vif_count;
int ret = 0;
u8 role_type;
if (wl->plt) {
wl1271_error("Adding Interface not allowed while in PLT mode");
return -EBUSY;
}
vif->driver_flags |= <API key> |
<API key>;
wl1271_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %pM",
<API key>(vif), vif->addr);
<API key>(hw, vif, &vif_count);
mutex_lock(&wl->mutex);
ret = <API key>(wl);
if (ret < 0)
goto out_unlock;
/*
* in some very corner case HW recovery scenarios its possible to
* get here before <API key> is complete, so
* opt out if that is the case.
*/
if (test_bit(<API key>, &wl->flags) ||
test_bit(<API key>, &wlvif->flags)) {
ret = -EBUSY;
goto out;
}
ret = <API key>(wl, vif);
if (ret < 0)
goto out;
wlvif->wl = wl;
role_type = <API key>(wl, wlvif);
if (role_type == <API key>) {
ret = -EINVAL;
goto out;
}
ret = <API key>(wl, wlvif);
if (ret < 0)
goto out;
if (<API key>(wl, vif_count, true)) {
<API key>(wl);
set_bit(<API key>, &wl->flags);
mutex_unlock(&wl->mutex);
<API key>(&wl->recovery_work);
return 0;
}
/*
* TODO: after the nvs issue will be solved, move this block
* to start(), and make sure here the driver is ON.
*/
if (wl->state == WLCORE_STATE_OFF) {
/*
* we still need this in order to configure the fw
* while uploading the nvs
*/
memcpy(wl->addresses[0].addr, vif->addr, ETH_ALEN);
ret = wl12xx_init_fw(wl);
if (ret < 0)
goto out;
}
ret = <API key>(wl, vif->addr,
role_type, &wlvif->role_id);
if (ret < 0)
goto out;
ret = <API key>(wl, vif);
if (ret < 0)
goto out;
list_add(&wlvif->list, &wl->wlvif_list);
set_bit(<API key>, &wlvif->flags);
if (wlvif->bss_type == BSS_TYPE_AP_BSS)
wl->ap_count++;
else
wl->sta_count++;
out:
wl1271_ps_elp_sleep(wl);
out_unlock:
mutex_unlock(&wl->mutex);
return ret;
}
static void <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
bool reset_tx_queues)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int i, ret;
bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS);
wl1271_debug(DEBUG_MAC80211, "mac80211 remove interface");
if (!test_and_clear_bit(<API key>, &wlvif->flags))
return;
/* because of hardware recovery, we may get here twice */
if (wl->state == WLCORE_STATE_OFF)
return;
wl1271_info("down");
if (wl->scan.state != <API key> &&
wl->scan_wlvif == wlvif) {
/*
* Rearm the tx watchdog just before idling scan. This
* prevents just-finished scans from triggering the watchdog
*/
<API key>(wl);
wl->scan.state = <API key>;
memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch));
wl->scan_wlvif = NULL;
wl->scan.req = NULL;
<API key>(wl->hw, true);
}
if (wl->sched_vif == wlvif)
wl->sched_vif = NULL;
if (wl->roc_vif == vif) {
wl->roc_vif = NULL;
<API key>(wl->hw);
}
if (!test_bit(<API key>, &wl->flags)) {
/* disable active roles */
ret = <API key>(wl);
if (ret < 0)
goto deinit;
if (wlvif->bss_type == BSS_TYPE_STA_BSS ||
wlvif->bss_type == BSS_TYPE_IBSS) {
if (<API key>(wlvif))
wl12xx_stop_dev(wl, wlvif);
}
ret = <API key>(wl, &wlvif->role_id);
if (ret < 0)
goto deinit;
wl1271_ps_elp_sleep(wl);
}
deinit:
<API key>(wl, wlvif);
/* clear all hlids (except system_hlid) */
wlvif->dev_hlid = <API key>;
if (wlvif->bss_type == BSS_TYPE_STA_BSS ||
wlvif->bss_type == BSS_TYPE_IBSS) {
wlvif->sta.hlid = <API key>;
<API key>(wl, &wlvif->sta.basic_rate_idx);
<API key>(wl, &wlvif->sta.ap_rate_idx);
<API key>(wl, &wlvif->sta.p2p_rate_idx);
<API key>(wl, &wlvif->sta.klv_template_id);
} else {
wlvif->ap.bcast_hlid = <API key>;
wlvif->ap.global_hlid = <API key>;
<API key>(wl, &wlvif->ap.mgmt_rate_idx);
<API key>(wl, &wlvif->ap.bcast_rate_idx);
for (i = 0; i < <API key>; i++)
<API key>(wl,
&wlvif->ap.ucast_rate_idx[i]);
wl1271_free_ap_keys(wl, wlvif);
}
dev_kfree_skb(wlvif->probereq);
wlvif->probereq = NULL;
if (wl->last_wlvif == wlvif)
wl->last_wlvif = NULL;
list_del(&wlvif->list);
memset(wlvif->ap.sta_hlid_map, 0, sizeof(wlvif->ap.sta_hlid_map));
wlvif->role_id = <API key>;
wlvif->dev_role_id = <API key>;
if (is_ap)
wl->ap_count
else
wl->sta_count
/*
* Last AP, have more stations. Configure sleep auth according to STA.
* Don't do thin on unintended recovery.
*/
if (test_bit(<API key>, &wl->flags) &&
!test_bit(<API key>, &wl->flags))
goto unlock;
if (wl->ap_count == 0 && is_ap) {
/* mask ap events */
wl->event_mask &= ~wl->ap_event_mask;
wl1271_event_unmask(wl);
}
if (wl->ap_count == 0 && is_ap && wl->sta_count) {
u8 sta_auth = wl->conf.conn.sta_sleep_auth;
/* Configure for power according to debugfs */
if (sta_auth != WL1271_PSM_ILLEGAL)
<API key>(wl, sta_auth);
/* Configure for ELP power saving */
else
<API key>(wl, WL1271_PSM_ELP);
}
unlock:
mutex_unlock(&wl->mutex);
del_timer_sync(&wlvif->rx_streaming_timer);
cancel_work_sync(&wlvif-><API key>);
cancel_work_sync(&wlvif-><API key>);
<API key>(&wlvif-><API key>);
<API key>(&wlvif->channel_switch_work);
<API key>(&wlvif-><API key>);
mutex_lock(&wl->mutex);
}
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct wl12xx_vif *iter;
struct vif_counter_data vif_count;
<API key>(hw, vif, &vif_count);
mutex_lock(&wl->mutex);
if (wl->state == WLCORE_STATE_OFF ||
!test_bit(<API key>, &wlvif->flags))
goto out;
/*
* wl->vif can be null here if someone shuts down the interface
* just when hardware recovery has been started.
*/
<API key>(wl, iter) {
if (iter != wlvif)
continue;
<API key>(wl, vif, true);
break;
}
WARN_ON(iter != wlvif);
if (<API key>(wl, vif_count, false)) {
<API key>(wl);
set_bit(<API key>, &wl->flags);
<API key>(wl);
}
out:
mutex_unlock(&wl->mutex);
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
enum nl80211_iftype new_type, bool p2p)
{
struct wl1271 *wl = hw->priv;
int ret;
set_bit(<API key>, &wl->flags);
<API key>(hw, vif);
vif->type = new_type;
vif->p2p = p2p;
ret = <API key>(hw, vif);
clear_bit(<API key>, &wl->flags);
return ret;
}
static int wlcore_join(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;
bool is_ibss = (wlvif->bss_type == BSS_TYPE_IBSS);
/*
* One of the side effects of the JOIN command is that is clears
* WPA/WPA2 keys from the chipset. Performing a JOIN while associated
* to a WPA/WPA2 access point will therefore kill the data-path.
* Currently the only valid scenario for JOIN during association
* is on roaming, in which case we will also be given new keys.
* Keep the below message for now, unless it starts bothering
* users who really like to roam a lot :)
*/
if (test_bit(<API key>, &wlvif->flags))
wl1271_info("JOIN while associated.");
/* clear encryption type */
wlvif->encryption_type = KEY_NONE;
if (is_ibss)
ret = <API key>(wl, wlvif);
else {
if (wl->quirks & <API key>) {
/*
* TODO: this is an ugly workaround for wl12xx fw
* bug - we are not able to tx/rx after the first
* start_sta, so make dummy start+stop calls,
* and then call start_sta again.
* this should be fixed in the fw.
*/
<API key>(wl, wlvif);
<API key>(wl, wlvif);
}
ret = <API key>(wl, wlvif);
}
return ret;
}
static int wl1271_ssid_set(struct wl12xx_vif *wlvif, struct sk_buff *skb,
int offset)
{
u8 ssid_len;
const u8 *ptr = cfg80211_find_ie(WLAN_EID_SSID, skb->data + offset,
skb->len - offset);
if (!ptr) {
wl1271_error("No SSID in IEs!");
return -ENOENT;
}
ssid_len = ptr[1];
if (ssid_len > <API key>) {
wl1271_error("SSID is too long!");
return -EINVAL;
}
wlvif->ssid_len = ssid_len;
memcpy(wlvif->ssid, ptr+2, ssid_len);
return 0;
}
static int wlcore_set_ssid(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
struct sk_buff *skb;
int ieoffset;
/* we currently only support setting the ssid from the ap probe req */
if (wlvif->bss_type != BSS_TYPE_STA_BSS)
return -EINVAL;
skb = <API key>(wl->hw, vif);
if (!skb)
return -EINVAL;
ieoffset = offsetof(struct ieee80211_mgmt,
u.probe_req.variable);
wl1271_ssid_set(wlvif, skb, ieoffset);
dev_kfree_skb(skb);
return 0;
}
static int wlcore_set_assoc(struct wl1271 *wl, struct wl12xx_vif *wlvif,
struct ieee80211_bss_conf *bss_conf,
u32 sta_rate_set)
{
int ieoffset;
int ret;
wlvif->aid = bss_conf->aid;
wlvif->channel_type = <API key>(&bss_conf->chandef);
wlvif->beacon_int = bss_conf->beacon_int;
wlvif->wmm_enabled = bss_conf->qos;
set_bit(<API key>, &wlvif->flags);
/*
* with wl1271, we don't need to update the
* beacon_int and dtim_period, because the firmware
* updates it by itself when the first beacon is
* received after a join.
*/
ret = <API key>(wl, wlvif, wlvif->aid);
if (ret < 0)
return ret;
/*
* Get a template for hardware connection maintenance
*/
dev_kfree_skb(wlvif->probereq);
wlvif->probereq = <API key>(wl,
wlvif,
NULL);
ieoffset = offsetof(struct ieee80211_mgmt,
u.probe_req.variable);
wl1271_ssid_set(wlvif, wlvif->probereq, ieoffset);
/* enable the connection monitoring feature */
ret = <API key>(wl, wlvif, true);
if (ret < 0)
return ret;
/*
* The join command disable the keep-alive mode, shut down its process,
* and also clear the template config, so we need to reset it all after
* the join. The acx_aid starts the keep-alive process, and the order
* of the commands below is relevant.
*/
ret = <API key>(wl, wlvif, true);
if (ret < 0)
return ret;
ret = wl1271_acx_aid(wl, wlvif, wlvif->aid);
if (ret < 0)
return ret;
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
ret = <API key>(wl, wlvif,
wlvif->sta.klv_template_id,
<API key>);
if (ret < 0)
return ret;
/*
* The default fw psm configuration is AUTO, while mac80211 default
* setting is off (ACTIVE), so sync the fw with the correct value.
*/
ret = wl1271_ps_set_mode(wl, wlvif, STATION_ACTIVE_MODE);
if (ret < 0)
return ret;
if (sta_rate_set) {
wlvif->rate_set =
<API key>(wl,
sta_rate_set,
wlvif->band);
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
}
return ret;
}
static int wlcore_unset_assoc(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;
bool sta = wlvif->bss_type == BSS_TYPE_STA_BSS;
/* make sure we are connected (sta) joined */
if (sta &&
!test_and_clear_bit(<API key>, &wlvif->flags))
return false;
/* make sure we are joined (ibss) */
if (!sta &&
test_and_clear_bit(<API key>, &wlvif->flags))
return false;
if (sta) {
/* use defaults when not associated */
wlvif->aid = 0;
/* free probe-request template */
dev_kfree_skb(wlvif->probereq);
wlvif->probereq = NULL;
/* disable connection monitor features */
ret = <API key>(wl, wlvif, false);
if (ret < 0)
return ret;
/* Disable the keep-alive feature */
ret = <API key>(wl, wlvif, false);
if (ret < 0)
return ret;
/* disable beacon filtering */
ret = <API key>(wl, wlvif, false);
if (ret < 0)
return ret;
}
if (test_and_clear_bit(<API key>, &wlvif->flags)) {
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
<API key>(wl, wlvif);
<API key>(vif, false);
cancel_delayed_work(&wlvif->channel_switch_work);
}
/* invalidate keep-alive template */
<API key>(wl, wlvif,
wlvif->sta.klv_template_id,
<API key>);
return 0;
}
static void <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
wlvif->basic_rate_set = wlvif->bitrate_masks[wlvif->band];
wlvif->rate_set = wlvif->basic_rate_set;
}
static void <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif,
bool idle)
{
bool cur_idle = !test_bit(WLVIF_FLAG_ACTIVE, &wlvif->flags);
if (idle == cur_idle)
return;
if (idle) {
clear_bit(WLVIF_FLAG_ACTIVE, &wlvif->flags);
} else {
/* The current firmware only supports sched_scan in idle */
if (wl->sched_vif == wlvif)
wl->ops->sched_scan_stop(wl, wlvif);
set_bit(WLVIF_FLAG_ACTIVE, &wlvif->flags);
}
}
static int wl12xx_config_vif(struct wl1271 *wl, struct wl12xx_vif *wlvif,
struct ieee80211_conf *conf, u32 changed)
{
int ret;
if (conf->power_level != wlvif->power_level) {
ret = wl1271_acx_tx_power(wl, wlvif, conf->power_level);
if (ret < 0)
return ret;
wlvif->power_level = conf->power_level;
}
return 0;
}
static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
struct ieee80211_conf *conf = &hw->conf;
int ret = 0;
wl1271_debug(DEBUG_MAC80211, "mac80211 config psm %s power %d %s"
" changed 0x%x",
conf->flags & IEEE80211_CONF_PS ? "on" : "off",
conf->power_level,
conf->flags & IEEE80211_CONF_IDLE ? "idle" : "in use",
changed);
mutex_lock(&wl->mutex);
if (changed & <API key>)
wl->power_level = conf->power_level;
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
/* configure each interface */
<API key>(wl, wlvif) {
ret = wl12xx_config_vif(wl, wlvif, conf, changed);
if (ret < 0)
goto out_sleep;
}
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
struct <API key> {
bool enabled;
int mc_list_length;
u8 mc_list[<API key>][ETH_ALEN];
};
static u64 <API key>(struct ieee80211_hw *hw,
struct netdev_hw_addr_list *mc_list)
{
struct <API key> *fp;
struct netdev_hw_addr *ha;
fp = kzalloc(sizeof(*fp), GFP_ATOMIC);
if (!fp) {
wl1271_error("Out of memory setting filters.");
return 0;
}
/* update multicast filtering parameters */
fp->mc_list_length = 0;
if (<API key>(mc_list) > <API key>) {
fp->enabled = false;
} else {
fp->enabled = true;
<API key>(ha, mc_list) {
memcpy(fp->mc_list[fp->mc_list_length],
ha->addr, ETH_ALEN);
fp->mc_list_length++;
}
}
return (u64)(unsigned long)fp;
}
#define <API key> (FIF_PROMISC_IN_BSS | \
FIF_ALLMULTI | \
FIF_FCSFAIL | \
<API key> | \
FIF_CONTROL | \
FIF_OTHER_BSS)
static void <API key>(struct ieee80211_hw *hw,
unsigned int changed,
unsigned int *total, u64 multicast)
{
struct <API key> *fp = (void *)(unsigned long)multicast;
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 configure filter changed %x"
" total %x", changed, *total);
mutex_lock(&wl->mutex);
*total &= <API key>;
changed &= <API key>;
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
<API key>(wl, wlvif) {
if (wlvif->bss_type != BSS_TYPE_AP_BSS) {
if (*total & FIF_ALLMULTI)
ret = <API key>(wl, wlvif,
false,
NULL, 0);
else if (fp)
ret = <API key>(wl, wlvif,
fp->enabled,
fp->mc_list,
fp->mc_list_length);
if (ret < 0)
goto out_sleep;
}
}
/*
* the fw doesn't provide an api to configure the filters. instead,
* the filters configuration is based on the active roles / ROC
* state.
*/
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
kfree(fp);
}
static int <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif,
u8 id, u8 key_type, u8 key_size,
const u8 *key, u8 hlid, u32 tx_seq_32,
u16 tx_seq_16)
{
struct wl1271_ap_key *ap_key;
int i;
wl1271_debug(DEBUG_CRYPT, "record ap key id %d", (int)id);
if (key_size > MAX_KEY_SIZE)
return -EINVAL;
/*
* Find next free entry in ap_keys. Also check we are not replacing
* an existing key.
*/
for (i = 0; i < MAX_NUM_KEYS; i++) {
if (wlvif->ap.recorded_keys[i] == NULL)
break;
if (wlvif->ap.recorded_keys[i]->id == id) {
wl1271_warning("trying to record key replacement");
return -EINVAL;
}
}
if (i == MAX_NUM_KEYS)
return -EBUSY;
ap_key = kzalloc(sizeof(*ap_key), GFP_KERNEL);
if (!ap_key)
return -ENOMEM;
ap_key->id = id;
ap_key->key_type = key_type;
ap_key->key_size = key_size;
memcpy(ap_key->key, key, key_size);
ap_key->hlid = hlid;
ap_key->tx_seq_32 = tx_seq_32;
ap_key->tx_seq_16 = tx_seq_16;
wlvif->ap.recorded_keys[i] = ap_key;
return 0;
}
static void wl1271_free_ap_keys(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int i;
for (i = 0; i < MAX_NUM_KEYS; i++) {
kfree(wlvif->ap.recorded_keys[i]);
wlvif->ap.recorded_keys[i] = NULL;
}
}
static int <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int i, ret = 0;
struct wl1271_ap_key *key;
bool wep_key_added = false;
for (i = 0; i < MAX_NUM_KEYS; i++) {
u8 hlid;
if (wlvif->ap.recorded_keys[i] == NULL)
break;
key = wlvif->ap.recorded_keys[i];
hlid = key->hlid;
if (hlid == <API key>)
hlid = wlvif->ap.bcast_hlid;
ret = <API key>(wl, wlvif, KEY_ADD_OR_REPLACE,
key->id, key->key_type,
key->key_size, key->key,
hlid, key->tx_seq_32,
key->tx_seq_16);
if (ret < 0)
goto out;
if (key->key_type == KEY_WEP)
wep_key_added = true;
}
if (wep_key_added) {
ret = <API key>(wl, wlvif->default_key,
wlvif->ap.bcast_hlid);
if (ret < 0)
goto out;
}
out:
wl1271_free_ap_keys(wl, wlvif);
return ret;
}
static int wl1271_set_key(struct wl1271 *wl, struct wl12xx_vif *wlvif,
u16 action, u8 id, u8 key_type,
u8 key_size, const u8 *key, u32 tx_seq_32,
u16 tx_seq_16, struct ieee80211_sta *sta)
{
int ret;
bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS);
if (is_ap) {
struct wl1271_station *wl_sta;
u8 hlid;
if (sta) {
wl_sta = (struct wl1271_station *)sta->drv_priv;
hlid = wl_sta->hlid;
} else {
hlid = wlvif->ap.bcast_hlid;
}
if (!test_bit(<API key>, &wlvif->flags)) {
/*
* We do not support removing keys after AP shutdown.
* Pretend we do to make mac80211 happy.
*/
if (action != KEY_ADD_OR_REPLACE)
return 0;
ret = <API key>(wl, wlvif, id,
key_type, key_size,
key, hlid, tx_seq_32,
tx_seq_16);
} else {
ret = <API key>(wl, wlvif, action,
id, key_type, key_size,
key, hlid, tx_seq_32,
tx_seq_16);
}
if (ret < 0)
return ret;
} else {
const u8 *addr;
static const u8 bcast_addr[ETH_ALEN] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
addr = sta ? sta->addr : bcast_addr;
if (is_zero_ether_addr(addr)) {
/* We dont support TX only encryption */
return -EOPNOTSUPP;
}
/* The wl1271 does not allow to remove unicast keys - they
will be cleared automatically on next CMD_JOIN. Ignore the
request silently, as we dont want the mac80211 to emit
an error message. */
if (action == KEY_REMOVE && !<API key>(addr))
return 0;
/* don't remove key if hlid was already deleted */
if (action == KEY_REMOVE &&
wlvif->sta.hlid == <API key>)
return 0;
ret = <API key>(wl, wlvif, action,
id, key_type, key_size,
key, addr, tx_seq_32,
tx_seq_16);
if (ret < 0)
return ret;
}
return 0;
}
static int wlcore_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
struct ieee80211_vif *vif,
struct ieee80211_sta *sta,
struct ieee80211_key_conf *key_conf)
{
struct wl1271 *wl = hw->priv;
int ret;
bool might_change_spare =
key_conf->cipher == <API key> ||
key_conf->cipher == <API key>;
if (might_change_spare) {
/*
* stop the queues and flush to ensure the next packets are
* in sync with FW spare block accounting
*/
wlcore_stop_queues(wl, <API key>);
wl1271_tx_flush(wl);
}
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out_wake_queues;
}
ret = <API key>(wl);
if (ret < 0)
goto out_wake_queues;
ret = wlcore_hw_set_key(wl, cmd, vif, sta, key_conf);
wl1271_ps_elp_sleep(wl);
out_wake_queues:
if (might_change_spare)
wlcore_wake_queues(wl, <API key>);
mutex_unlock(&wl->mutex);
return ret;
}
int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
struct ieee80211_vif *vif,
struct ieee80211_sta *sta,
struct ieee80211_key_conf *key_conf)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
u32 tx_seq_32 = 0;
u16 tx_seq_16 = 0;
u8 key_type;
u8 hlid;
wl1271_debug(DEBUG_MAC80211, "mac80211 set key");
wl1271_debug(DEBUG_CRYPT, "CMD: 0x%x sta: %p", cmd, sta);
wl1271_debug(DEBUG_CRYPT, "Key: algo:0x%x, id:%d, len:%d flags 0x%x",
key_conf->cipher, key_conf->keyidx,
key_conf->keylen, key_conf->flags);
wl1271_dump(DEBUG_CRYPT, "KEY: ", key_conf->key, key_conf->keylen);
if (wlvif->bss_type == BSS_TYPE_AP_BSS)
if (sta) {
struct wl1271_station *wl_sta = (void *)sta->drv_priv;
hlid = wl_sta->hlid;
} else {
hlid = wlvif->ap.bcast_hlid;
}
else
hlid = wlvif->sta.hlid;
if (hlid != <API key>) {
u64 tx_seq = wl->links[hlid].total_freed_pkts;
tx_seq_32 = <API key>(tx_seq);
tx_seq_16 = <API key>(tx_seq);
}
switch (key_conf->cipher) {
case <API key>:
case <API key>:
key_type = KEY_WEP;
key_conf->hw_key_idx = key_conf->keyidx;
break;
case <API key>:
key_type = KEY_TKIP;
key_conf->hw_key_idx = key_conf->keyidx;
break;
case <API key>:
key_type = KEY_AES;
key_conf->flags |= <API key>;
break;
case <API key>:
key_type = KEY_GEM;
break;
default:
wl1271_error("Unknown key algo 0x%x", key_conf->cipher);
return -EOPNOTSUPP;
}
switch (cmd) {
case SET_KEY:
ret = wl1271_set_key(wl, wlvif, KEY_ADD_OR_REPLACE,
key_conf->keyidx, key_type,
key_conf->keylen, key_conf->key,
tx_seq_32, tx_seq_16, sta);
if (ret < 0) {
wl1271_error("Could not add or replace key");
return ret;
}
/*
* reconfiguring arp response if the unicast (or common)
* encryption key type was changed
*/
if (wlvif->bss_type == BSS_TYPE_STA_BSS &&
(sta || key_type == KEY_WEP) &&
wlvif->encryption_type != key_type) {
wlvif->encryption_type = key_type;
ret = <API key>(wl, wlvif);
if (ret < 0) {
wl1271_warning("build arp rsp failed: %d", ret);
return ret;
}
}
break;
case DISABLE_KEY:
ret = wl1271_set_key(wl, wlvif, KEY_REMOVE,
key_conf->keyidx, key_type,
key_conf->keylen, key_conf->key,
0, 0, sta);
if (ret < 0) {
wl1271_error("Could not remove key");
return ret;
}
break;
default:
wl1271_error("Unsupported key cmd 0x%x", cmd);
return -EOPNOTSUPP;
}
return ret;
}
EXPORT_SYMBOL_GPL(wlcore_set_key);
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
int key_idx)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 set default key idx %d",
key_idx);
/* we don't handle unsetting of default key */
if (key_idx == -1)
return;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out_unlock;
}
ret = <API key>(wl);
if (ret < 0)
goto out_unlock;
wlvif->default_key = key_idx;
/* the default WEP key needs to be configured at least once */
if (wlvif->encryption_type == KEY_WEP) {
ret = <API key>(wl,
key_idx,
wlvif->sta.hlid);
if (ret < 0)
goto out_sleep;
}
out_sleep:
wl1271_ps_elp_sleep(wl);
out_unlock:
mutex_unlock(&wl->mutex);
}
void <API key>(struct wl1271 *wl)
{
int ret;
if (!(wl->quirks & <API key>))
return;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl);
if (ret < 0) {
<API key>(wl);
goto out;
}
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct <API key> *req)
{
struct wl1271 *wl = hw->priv;
int ret;
u8 *ssid = NULL;
size_t len = 0;
wl1271_debug(DEBUG_MAC80211, "mac80211 hw scan");
if (req->n_ssids) {
ssid = req->ssids[0].ssid;
len = req->ssids[0].ssid_len;
}
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
/*
* We cannot return -EBUSY here because cfg80211 will expect
* a call to <API key> if we do - in this case
* there won't be any call.
*/
ret = -EAGAIN;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
/* fail if there is any role in ROC */
if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) {
/* don't allow scanning right now */
ret = -EBUSY;
goto out_sleep;
}
ret = wlcore_scan(hw->priv, vif, ssid, len, req);
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 cancel hw scan");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
if (wl->scan.state == <API key>)
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
if (wl->scan.state != <API key>) {
ret = wl->ops->scan_stop(wl, wlvif);
if (ret < 0)
goto out_sleep;
}
/*
* Rearm the tx watchdog just before idling scan. This
* prevents just-finished scans from triggering the watchdog
*/
<API key>(wl);
wl->scan.state = <API key>;
memset(wl->scan.scanned_ch, 0, sizeof(wl->scan.scanned_ch));
wl->scan_wlvif = NULL;
wl->scan.req = NULL;
<API key>(wl->hw, true);
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
<API key>(&wl->scan_complete_work);
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct <API key> *req,
struct <API key> *ies)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
wl1271_debug(DEBUG_MAC80211, "<API key>");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = wl->ops->sched_scan_start(wl, wlvif, req, ies);
if (ret < 0)
goto out_sleep;
wl->sched_vif = wlvif;
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
wl1271_debug(DEBUG_MAC80211, "<API key>");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
wl->ops->sched_scan_stop(wl, wlvif);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return 0;
}
static int <API key>(struct ieee80211_hw *hw, u32 value)
{
struct wl1271 *wl = hw->priv;
int ret = 0;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, value);
if (ret < 0)
wl1271_warning("<API key> failed: %d", ret);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static int <API key>(struct ieee80211_hw *hw, u32 value)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
int ret = 0;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
<API key>(wl, wlvif) {
ret = <API key>(wl, wlvif, value);
if (ret < 0)
wl1271_warning("set rts threshold failed: %d", ret);
}
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static void wl12xx_remove_ie(struct sk_buff *skb, u8 eid, int ieoffset)
{
int len;
const u8 *next, *end = skb->data + skb->len;
u8 *ie = (u8 *)cfg80211_find_ie(eid, skb->data + ieoffset,
skb->len - ieoffset);
if (!ie)
return;
len = ie[1] + 2;
next = ie + len;
memmove(ie, next, end - next);
skb_trim(skb, skb->len - len);
}
static void <API key>(struct sk_buff *skb,
unsigned int oui, u8 oui_type,
int ieoffset)
{
int len;
const u8 *next, *end = skb->data + skb->len;
u8 *ie = (u8 *)<API key>(oui, oui_type,
skb->data + ieoffset,
skb->len - ieoffset);
if (!ie)
return;
len = ie[1] + 2;
next = ie + len;
memmove(ie, next, end - next);
skb_trim(skb, skb->len - len);
}
static int <API key>(struct wl1271 *wl, u32 rates,
struct ieee80211_vif *vif)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct sk_buff *skb;
int ret;
skb = <API key>(wl->hw, vif);
if (!skb)
return -EOPNOTSUPP;
ret = <API key>(wl, wlvif->role_id,
<API key>,
skb->data,
skb->len, 0,
rates);
dev_kfree_skb(skb);
if (ret < 0)
goto out;
wl1271_debug(DEBUG_AP, "probe response updated");
set_bit(<API key>, &wlvif->flags);
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
u8 *probe_rsp_data,
size_t probe_rsp_len,
u32 rates)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;
u8 probe_rsp_templ[<API key>];
int ssid_ie_offset, ie_offset, templ_len;
const u8 *ptr;
/* no need to change probe response if the SSID is set correctly */
if (wlvif->ssid_len > 0)
return <API key>(wl, wlvif->role_id,
<API key>,
probe_rsp_data,
probe_rsp_len, 0,
rates);
if (probe_rsp_len + bss_conf->ssid_len > <API key>) {
wl1271_error("probe_rsp template too big");
return -EINVAL;
}
/* start searching from IE offset */
ie_offset = offsetof(struct ieee80211_mgmt, u.probe_resp.variable);
ptr = cfg80211_find_ie(WLAN_EID_SSID, probe_rsp_data + ie_offset,
probe_rsp_len - ie_offset);
if (!ptr) {
wl1271_error("No SSID in beacon!");
return -EINVAL;
}
ssid_ie_offset = ptr - probe_rsp_data;
ptr += (ptr[1] + 2);
memcpy(probe_rsp_templ, probe_rsp_data, ssid_ie_offset);
/* insert SSID from bss_conf */
probe_rsp_templ[ssid_ie_offset] = WLAN_EID_SSID;
probe_rsp_templ[ssid_ie_offset + 1] = bss_conf->ssid_len;
memcpy(probe_rsp_templ + ssid_ie_offset + 2,
bss_conf->ssid, bss_conf->ssid_len);
templ_len = ssid_ie_offset + 2 + bss_conf->ssid_len;
memcpy(probe_rsp_templ + ssid_ie_offset + 2 + bss_conf->ssid_len,
ptr, probe_rsp_len - (ptr - probe_rsp_data));
templ_len += probe_rsp_len - (ptr - probe_rsp_data);
return <API key>(wl, wlvif->role_id,
<API key>,
probe_rsp_templ,
templ_len, 0,
rates);
}
static int <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf,
u32 changed)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret = 0;
if (changed & <API key>) {
if (bss_conf->use_short_slot)
ret = wl1271_acx_slot(wl, wlvif, SLOT_TIME_SHORT);
else
ret = wl1271_acx_slot(wl, wlvif, SLOT_TIME_LONG);
if (ret < 0) {
wl1271_warning("Set slot time failed %d", ret);
goto out;
}
}
if (changed & <API key>) {
if (bss_conf->use_short_preamble)
<API key>(wl, wlvif, ACX_PREAMBLE_SHORT);
else
<API key>(wl, wlvif, ACX_PREAMBLE_LONG);
}
if (changed & <API key>) {
if (bss_conf->use_cts_prot)
ret = <API key>(wl, wlvif,
CTSPROTECT_ENABLE);
else
ret = <API key>(wl, wlvif,
CTSPROTECT_DISABLE);
if (ret < 0) {
wl1271_warning("Set ctsprotect failed %d", ret);
goto out;
}
}
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
bool is_ap)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct ieee80211_hdr *hdr;
u32 min_rate;
int ret;
int ieoffset = offsetof(struct ieee80211_mgmt, u.beacon.variable);
struct sk_buff *beacon = <API key>(wl->hw, vif);
u16 tmpl_id;
if (!beacon) {
ret = -EINVAL;
goto out;
}
wl1271_debug(DEBUG_MASTER, "beacon updated");
ret = wl1271_ssid_set(wlvif, beacon, ieoffset);
if (ret < 0) {
dev_kfree_skb(beacon);
goto out;
}
min_rate = <API key>(wl, wlvif->basic_rate_set);
tmpl_id = is_ap ? CMD_TEMPL_AP_BEACON :
CMD_TEMPL_BEACON;
ret = <API key>(wl, wlvif->role_id, tmpl_id,
beacon->data,
beacon->len, 0,
min_rate);
if (ret < 0) {
dev_kfree_skb(beacon);
goto out;
}
wlvif->wmm_enabled =
<API key>(WLAN_OUI_MICROSOFT,
<API key>,
beacon->data + ieoffset,
beacon->len - ieoffset);
/*
* In case we already have a probe-resp beacon set explicitly
* by usermode, don't use the beacon data.
*/
if (test_bit(<API key>, &wlvif->flags))
goto end_bcn;
/* remove TIM ie from probe response */
wl12xx_remove_ie(beacon, WLAN_EID_TIM, ieoffset);
/*
* remove p2p ie from probe response.
* the fw reponds to probe requests that don't include
* the p2p ie. probe requests with p2p ie will be passed,
* and will be responded by the supplicant (the spec
* forbids including the p2p ie when responding to probe
* requests that didn't include it).
*/
<API key>(beacon, WLAN_OUI_WFA,
<API key>, ieoffset);
hdr = (struct ieee80211_hdr *) beacon->data;
hdr->frame_control = cpu_to_le16(<API key> |
<API key>);
if (is_ap)
ret = <API key>(wl, vif,
beacon->data,
beacon->len,
min_rate);
else
ret = <API key>(wl, wlvif->role_id,
<API key>,
beacon->data,
beacon->len, 0,
min_rate);
end_bcn:
dev_kfree_skb(beacon);
if (ret < 0)
goto out;
out:
return ret;
}
static int <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf,
u32 changed)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS);
int ret = 0;
if (changed & <API key>) {
wl1271_debug(DEBUG_MASTER, "beacon interval updated: %d",
bss_conf->beacon_int);
wlvif->beacon_int = bss_conf->beacon_int;
}
if ((changed & <API key>) && is_ap) {
u32 rate = <API key>(wl, wlvif->basic_rate_set);
<API key>(wl, rate, vif);
}
if (changed & BSS_CHANGED_BEACON) {
ret = <API key>(wl, vif, is_ap);
if (ret < 0)
goto out;
}
out:
if (ret != 0)
wl1271_error("beacon info change failed: %d", ret);
return ret;
}
/* AP mode changes */
static void <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf,
u32 changed)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret = 0;
if (changed & <API key>) {
u32 rates = bss_conf->basic_rates;
wlvif->basic_rate_set = <API key>(wl, rates,
wlvif->band);
wlvif->basic_rate = <API key>(wl,
wlvif->basic_rate_set);
ret = <API key>(wl, wlvif);
if (ret < 0) {
wl1271_error("AP rate policy change failed %d", ret);
goto out;
}
ret = <API key>(wl, vif);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif->basic_rate, vif);
if (ret < 0)
goto out;
ret = <API key>(wl, vif, true);
if (ret < 0)
goto out;
}
ret = <API key>(wl, vif, bss_conf, changed);
if (ret < 0)
goto out;
if (changed & <API key>) {
if (bss_conf->enable_beacon) {
if (!test_bit(<API key>, &wlvif->flags)) {
ret = <API key>(wl, wlvif);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif);
if (ret < 0)
goto out;
set_bit(<API key>, &wlvif->flags);
wl1271_debug(DEBUG_AP, "started AP");
}
} else {
if (test_bit(<API key>, &wlvif->flags)) {
/*
* AP might be in ROC in case we have just
* sent auth reply. handle it.
*/
if (test_bit(wlvif->role_id, wl->roc_map))
wl12xx_croc(wl, wlvif->role_id);
ret = <API key>(wl, wlvif);
if (ret < 0)
goto out;
clear_bit(<API key>, &wlvif->flags);
clear_bit(<API key>,
&wlvif->flags);
wl1271_debug(DEBUG_AP, "stopped AP");
}
}
}
ret = <API key>(wl, vif, bss_conf, changed);
if (ret < 0)
goto out;
/* Handle HT information change */
if ((changed & BSS_CHANGED_HT) &&
(bss_conf->chandef.width != <API key>)) {
ret = <API key>(wl, wlvif,
bss_conf->ht_operation_mode);
if (ret < 0) {
wl1271_warning("Set ht information failed %d", ret);
goto out;
}
}
out:
return;
}
static int wlcore_set_bssid(struct wl1271 *wl, struct wl12xx_vif *wlvif,
struct ieee80211_bss_conf *bss_conf,
u32 sta_rate_set)
{
u32 rates;
int ret;
wl1271_debug(DEBUG_MAC80211,
"changed_bssid: %pM, aid: %d, bcn_int: %d, brates: 0x%x sta_rate_set: 0x%x",
bss_conf->bssid, bss_conf->aid,
bss_conf->beacon_int,
bss_conf->basic_rates, sta_rate_set);
wlvif->beacon_int = bss_conf->beacon_int;
rates = bss_conf->basic_rates;
wlvif->basic_rate_set =
<API key>(wl, rates,
wlvif->band);
wlvif->basic_rate =
<API key>(wl,
wlvif->basic_rate_set);
if (sta_rate_set)
wlvif->rate_set =
<API key>(wl,
sta_rate_set,
wlvif->band);
/* we only support sched_scan while not connected */
if (wl->sched_vif == wlvif)
wl->ops->sched_scan_stop(wl, wlvif);
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
ret = <API key>(wl, wl12xx_wlvif_to_vif(wlvif));
if (ret < 0)
return ret;
wlcore_set_ssid(wl, wlvif);
set_bit(WLVIF_FLAG_IN_USE, &wlvif->flags);
return 0;
}
static int wlcore_clear_bssid(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;
/* revert back to minimum rates for the current band */
<API key>(wl, wlvif);
wlvif->basic_rate = <API key>(wl, wlvif->basic_rate_set);
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
if (wlvif->bss_type == BSS_TYPE_STA_BSS &&
test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) {
ret = <API key>(wl, wlvif);
if (ret < 0)
return ret;
}
clear_bit(WLVIF_FLAG_IN_USE, &wlvif->flags);
return 0;
}
/* STA/IBSS mode changes */
static void <API key>(struct wl1271 *wl,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf,
u32 changed)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
bool do_join = false;
bool is_ibss = (wlvif->bss_type == BSS_TYPE_IBSS);
bool ibss_joined = false;
u32 sta_rate_set = 0;
int ret;
struct ieee80211_sta *sta;
bool sta_exists = false;
struct <API key> sta_ht_cap;
if (is_ibss) {
ret = <API key>(wl, vif, bss_conf,
changed);
if (ret < 0)
goto out;
}
if (changed & BSS_CHANGED_IBSS) {
if (bss_conf->ibss_joined) {
set_bit(<API key>, &wlvif->flags);
ibss_joined = true;
} else {
wlcore_unset_assoc(wl, wlvif);
<API key>(wl, wlvif);
}
}
if ((changed & <API key>) && ibss_joined)
do_join = true;
/* Need to update the SSID (for filtering etc) */
if ((changed & BSS_CHANGED_BEACON) && ibss_joined)
do_join = true;
if ((changed & <API key>) && ibss_joined) {
wl1271_debug(DEBUG_ADHOC, "ad-hoc beaconing: %s",
bss_conf->enable_beacon ? "enabled" : "disabled");
do_join = true;
}
if (changed & BSS_CHANGED_IDLE && !is_ibss)
<API key>(wl, wlvif, bss_conf->idle);
if (changed & BSS_CHANGED_CQM) {
bool enable = false;
if (bss_conf->cqm_rssi_thold)
enable = true;
ret = <API key>(wl, wlvif, enable,
bss_conf->cqm_rssi_thold,
bss_conf->cqm_rssi_hyst);
if (ret < 0)
goto out;
wlvif->rssi_thold = bss_conf->cqm_rssi_thold;
}
if (changed & (BSS_CHANGED_BSSID | BSS_CHANGED_HT |
BSS_CHANGED_ASSOC)) {
rcu_read_lock();
sta = ieee80211_find_sta(vif, bss_conf->bssid);
if (sta) {
u8 *rx_mask = sta->ht_cap.mcs.rx_mask;
/* save the supp_rates of the ap */
sta_rate_set = sta->supp_rates[wlvif->band];
if (sta->ht_cap.ht_supported)
sta_rate_set |=
(rx_mask[0] << HW_HT_RATES_OFFSET) |
(rx_mask[1] << <API key>);
sta_ht_cap = sta->ht_cap;
sta_exists = true;
}
rcu_read_unlock();
}
if (changed & BSS_CHANGED_BSSID) {
if (!is_zero_ether_addr(bss_conf->bssid)) {
ret = wlcore_set_bssid(wl, wlvif, bss_conf,
sta_rate_set);
if (ret < 0)
goto out;
/* Need to update the BSSID (for filtering etc) */
do_join = true;
} else {
ret = wlcore_clear_bssid(wl, wlvif);
if (ret < 0)
goto out;
}
}
if (changed & BSS_CHANGED_IBSS) {
wl1271_debug(DEBUG_ADHOC, "ibss_joined: %d",
bss_conf->ibss_joined);
if (bss_conf->ibss_joined) {
u32 rates = bss_conf->basic_rates;
wlvif->basic_rate_set =
<API key>(wl, rates,
wlvif->band);
wlvif->basic_rate =
<API key>(wl,
wlvif->basic_rate_set);
/* by default, use 11b + OFDM rates */
wlvif->rate_set = <API key>;
ret = <API key>(wl, wlvif);
if (ret < 0)
goto out;
}
}
if ((changed & <API key>) && bss_conf->dtim_period) {
/* enable beacon filtering */
ret = <API key>(wl, wlvif, true);
if (ret < 0)
goto out;
}
ret = <API key>(wl, vif, bss_conf, changed);
if (ret < 0)
goto out;
if (do_join) {
ret = wlcore_join(wl, wlvif);
if (ret < 0) {
wl1271_warning("cmd join failed %d", ret);
goto out;
}
}
if (changed & BSS_CHANGED_ASSOC) {
if (bss_conf->assoc) {
ret = wlcore_set_assoc(wl, wlvif, bss_conf,
sta_rate_set);
if (ret < 0)
goto out;
if (test_bit(<API key>, &wlvif->flags))
<API key>(wl, wlvif);
} else {
wlcore_unset_assoc(wl, wlvif);
}
}
if (changed & BSS_CHANGED_PS) {
if ((bss_conf->ps) &&
test_bit(<API key>, &wlvif->flags) &&
!test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) {
int ps_mode;
char *ps_mode_str;
if (wl->conf.conn.forced_ps) {
ps_mode = <API key>;
ps_mode_str = "forced";
} else {
ps_mode = <API key>;
ps_mode_str = "auto";
}
wl1271_debug(DEBUG_PSM, "%s ps enabled", ps_mode_str);
ret = wl1271_ps_set_mode(wl, wlvif, ps_mode);
if (ret < 0)
wl1271_warning("enter %s ps failed %d",
ps_mode_str, ret);
} else if (!bss_conf->ps &&
test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) {
wl1271_debug(DEBUG_PSM, "auto ps disabled");
ret = wl1271_ps_set_mode(wl, wlvif,
STATION_ACTIVE_MODE);
if (ret < 0)
wl1271_warning("exit auto ps failed %d", ret);
}
}
/* Handle new association with HT. Do this after join. */
if (sta_exists) {
bool enabled =
bss_conf->chandef.width != <API key>;
ret = <API key>(wl,
&sta_ht_cap,
enabled,
wlvif->rate_set,
wlvif->sta.hlid);
if (ret < 0) {
wl1271_warning("Set ht cap failed %d", ret);
goto out;
}
if (enabled) {
ret = <API key>(wl, wlvif,
bss_conf->ht_operation_mode);
if (ret < 0) {
wl1271_warning("Set ht information failed %d",
ret);
goto out;
}
}
}
/* Handle arp filtering. Done after join. */
if ((changed & <API key>) ||
(!is_ibss && (changed & BSS_CHANGED_QOS))) {
__be32 addr = bss_conf->arp_addr_list[0];
wlvif->sta.qos = bss_conf->qos;
WARN_ON(wlvif->bss_type != BSS_TYPE_STA_BSS);
if (bss_conf->arp_addr_cnt == 1 && bss_conf->assoc) {
wlvif->ip_addr = addr;
/*
* The template should have been configured only upon
* association. however, it seems that the correct ip
* isn't being set (when sending), so we have to
* reconfigure the template upon every ip change.
*/
ret = <API key>(wl, wlvif);
if (ret < 0) {
wl1271_warning("build arp rsp failed: %d", ret);
goto out;
}
ret = <API key>(wl, wlvif,
(<API key> |
<API key>),
addr);
} else {
wlvif->ip_addr = 0;
ret = <API key>(wl, wlvif, 0, addr);
}
if (ret < 0)
goto out;
}
out:
return;
}
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf,
u32 changed)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
bool is_ap = (wlvif->bss_type == BSS_TYPE_AP_BSS);
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 bss info role %d changed 0x%x",
wlvif->role_id, (int)changed);
/*
* make sure to cancel pending disconnections if our association
* state changed
*/
if (!is_ap && (changed & BSS_CHANGED_ASSOC))
<API key>(&wlvif-><API key>);
if (is_ap && (changed & <API key>) &&
!bss_conf->enable_beacon)
wl1271_tx_flush(wl);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
if (unlikely(!test_bit(<API key>, &wlvif->flags)))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
if ((changed & BSS_CHANGED_TXPOWER) &&
bss_conf->txpower != wlvif->power_level) {
ret = wl1271_acx_tx_power(wl, wlvif, bss_conf->txpower);
if (ret < 0)
goto out;
wlvif->power_level = bss_conf->txpower;
}
if (is_ap)
<API key>(wl, vif, bss_conf, changed);
else
<API key>(wl, vif, bss_conf, changed);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static int <API key>(struct ieee80211_hw *hw,
struct <API key> *ctx)
{
wl1271_debug(DEBUG_MAC80211, "mac80211 add chanctx %d (type %d)",
<API key>(ctx->def.chan->center_freq),
<API key>(&ctx->def));
return 0;
}
static void <API key>(struct ieee80211_hw *hw,
struct <API key> *ctx)
{
wl1271_debug(DEBUG_MAC80211, "mac80211 remove chanctx %d (type %d)",
<API key>(ctx->def.chan->center_freq),
<API key>(&ctx->def));
}
static void <API key>(struct ieee80211_hw *hw,
struct <API key> *ctx,
u32 changed)
{
wl1271_debug(DEBUG_MAC80211,
"mac80211 change chanctx %d (type %d) changed 0x%x",
<API key>(ctx->def.chan->center_freq),
<API key>(&ctx->def), changed);
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct <API key> *ctx)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int channel = <API key>(
ctx->def.chan->center_freq);
wl1271_debug(DEBUG_MAC80211,
"mac80211 assign chanctx (role %d) %d (type %d)",
wlvif->role_id, channel, <API key>(&ctx->def));
mutex_lock(&wl->mutex);
wlvif->band = ctx->def.chan->band;
wlvif->channel = channel;
wlvif->channel_type = <API key>(&ctx->def);
/* update default rates according to the band */
<API key>(wl, wlvif);
mutex_unlock(&wl->mutex);
return 0;
}
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct <API key> *ctx)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
wl1271_debug(DEBUG_MAC80211,
"mac80211 unassign chanctx (role %d) %d (type %d)",
wlvif->role_id,
<API key>(ctx->def.chan->center_freq),
<API key>(&ctx->def));
wl1271_tx_flush(wl);
}
static int wl1271_op_conf_tx(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, u16 queue,
const struct <API key> *params)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
u8 ps_scheme;
int ret = 0;
mutex_lock(&wl->mutex);
wl1271_debug(DEBUG_MAC80211, "mac80211 conf tx %d", queue);
if (params->uapsd)
ps_scheme = <API key>;
else
ps_scheme = <API key>;
if (!test_bit(<API key>, &wlvif->flags))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
/*
* the txop is confed in units of 32us by the mac80211,
* we need us
*/
ret = wl1271_acx_ac_cfg(wl, wlvif, wl1271_tx_get_queue(queue),
params->cw_min, params->cw_max,
params->aifs, params->txop << 5);
if (ret < 0)
goto out_sleep;
ret = wl1271_acx_tid_cfg(wl, wlvif, wl1271_tx_get_queue(queue),
<API key>,
wl1271_tx_get_queue(queue),
ps_scheme, <API key>,
0, 0);
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static u64 wl1271_op_get_tsf(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
u64 mactime = ULLONG_MAX;
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 get tsf");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = wl12xx_acx_tsf_info(wl, wlvif, &mactime);
if (ret < 0)
goto out_sleep;
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return mactime;
}
static int <API key>(struct ieee80211_hw *hw, int idx,
struct survey_info *survey)
{
struct ieee80211_conf *conf = &hw->conf;
if (idx != 0)
return -ENOENT;
survey->channel = conf->chandef.chan;
survey->filled = 0;
return 0;
}
static int wl1271_allocate_sta(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct ieee80211_sta *sta)
{
struct wl1271_station *wl_sta;
int ret;
if (wl->active_sta_count >= wl->max_ap_stations) {
wl1271_warning("could not allocate HLID - too much stations");
return -EBUSY;
}
wl_sta = (struct wl1271_station *)sta->drv_priv;
ret = <API key>(wl, wlvif, &wl_sta->hlid);
if (ret < 0) {
wl1271_warning("could not allocate HLID - too many links");
return -EBUSY;
}
/* use the previous security seq, if this is a recovery/resume */
wl->links[wl_sta->hlid].total_freed_pkts = wl_sta->total_freed_pkts;
set_bit(wl_sta->hlid, wlvif->ap.sta_hlid_map);
memcpy(wl->links[wl_sta->hlid].addr, sta->addr, ETH_ALEN);
wl->active_sta_count++;
return 0;
}
void wl1271_free_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid)
{
struct wl1271_station *wl_sta;
struct ieee80211_sta *sta;
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
if (!test_bit(hlid, wlvif->ap.sta_hlid_map))
return;
clear_bit(hlid, wlvif->ap.sta_hlid_map);
__clear_bit(hlid, &wl->ap_ps_map);
__clear_bit(hlid, (unsigned long *)&wl->ap_fw_ps_map);
/*
* save the last used PN in the private part of iee80211_sta,
* in case of recovery/suspend
*/
rcu_read_lock();
sta = ieee80211_find_sta(vif, wl->links[hlid].addr);
if (sta) {
wl_sta = (void *)sta->drv_priv;
wl_sta->total_freed_pkts = wl->links[hlid].total_freed_pkts;
/*
* increment the initial seq number on recovery to account for
* transmitted packets that we haven't yet got in the FW status
*/
if (test_bit(<API key>, &wl->flags))
wl_sta->total_freed_pkts +=
<API key>;
}
rcu_read_unlock();
wl12xx_free_link(wl, wlvif, &hlid);
wl->active_sta_count
/*
* rearm the tx watchdog when the last STA is freed - give the FW a
* chance to return STA-buffered packets before complaining.
*/
if (wl->active_sta_count == 0)
<API key>(wl);
}
static int wl12xx_sta_add(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct ieee80211_sta *sta)
{
struct wl1271_station *wl_sta;
int ret = 0;
u8 hlid;
wl1271_debug(DEBUG_MAC80211, "mac80211 add sta %d", (int)sta->aid);
ret = wl1271_allocate_sta(wl, wlvif, sta);
if (ret < 0)
return ret;
wl_sta = (struct wl1271_station *)sta->drv_priv;
hlid = wl_sta->hlid;
ret = wl12xx_cmd_add_peer(wl, wlvif, sta, hlid);
if (ret < 0)
wl1271_free_sta(wl, wlvif, hlid);
return ret;
}
static int wl12xx_sta_remove(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct ieee80211_sta *sta)
{
struct wl1271_station *wl_sta;
int ret = 0, id;
wl1271_debug(DEBUG_MAC80211, "mac80211 remove sta %d", (int)sta->aid);
wl_sta = (struct wl1271_station *)sta->drv_priv;
id = wl_sta->hlid;
if (WARN_ON(!test_bit(id, wlvif->ap.sta_hlid_map)))
return -EINVAL;
ret = <API key>(wl, wlvif, wl_sta->hlid);
if (ret < 0)
return ret;
wl1271_free_sta(wl, wlvif, wl_sta->hlid);
return ret;
}
static void <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif)
{
if (find_first_bit(wl->roc_map,
WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES)
return;
if (WARN_ON(wlvif->role_id == <API key>))
return;
wl12xx_roc(wl, wlvif, wlvif->role_id, wlvif->band, wlvif->channel);
}
/*
* when wl_sta is NULL, we treat this call as if coming from a
* pending auth reply.
* wl->mutex must be taken and the FW must be awake when the call
* takes place.
*/
void <API key>(struct wl1271 *wl, struct wl12xx_vif *wlvif,
struct wl1271_station *wl_sta, bool in_conn)
{
if (in_conn) {
if (WARN_ON(wl_sta && wl_sta->in_connection))
return;
if (!wlvif-><API key> &&
!wlvif->inconn_count)
<API key>(wl, wlvif);
if (wl_sta) {
wl_sta->in_connection = true;
wlvif->inconn_count++;
} else {
wlvif-><API key> = true;
}
} else {
if (wl_sta && !wl_sta->in_connection)
return;
if (WARN_ON(!wl_sta && !wlvif-><API key>))
return;
if (WARN_ON(wl_sta && !wlvif->inconn_count))
return;
if (wl_sta) {
wl_sta->in_connection = false;
wlvif->inconn_count
} else {
wlvif-><API key> = false;
}
if (!wlvif->inconn_count && !wlvif-><API key> &&
test_bit(wlvif->role_id, wl->roc_map))
wl12xx_croc(wl, wlvif->role_id);
}
}
static int <API key>(struct wl1271 *wl,
struct wl12xx_vif *wlvif,
struct ieee80211_sta *sta,
enum ieee80211_sta_state old_state,
enum ieee80211_sta_state new_state)
{
struct wl1271_station *wl_sta;
bool is_ap = wlvif->bss_type == BSS_TYPE_AP_BSS;
bool is_sta = wlvif->bss_type == BSS_TYPE_STA_BSS;
int ret;
wl_sta = (struct wl1271_station *)sta->drv_priv;
/* Add station (AP mode) */
if (is_ap &&
old_state == <API key> &&
new_state == IEEE80211_STA_NONE) {
ret = wl12xx_sta_add(wl, wlvif, sta);
if (ret)
return ret;
<API key>(wl, wlvif, wl_sta, true);
}
/* Remove station (AP mode) */
if (is_ap &&
old_state == IEEE80211_STA_NONE &&
new_state == <API key>) {
/* must not fail */
wl12xx_sta_remove(wl, wlvif, sta);
<API key>(wl, wlvif, wl_sta, false);
}
/* Authorize station (AP mode) */
if (is_ap &&
new_state == <API key>) {
ret = <API key>(wl, wlvif, wl_sta->hlid);
if (ret < 0)
return ret;
ret = <API key>(wl, &sta->ht_cap, true,
wl_sta->hlid);
if (ret)
return ret;
<API key>(wl, wlvif, wl_sta, false);
}
/* Authorize station */
if (is_sta &&
new_state == <API key>) {
set_bit(<API key>, &wlvif->flags);
ret = <API key>(wl, wlvif);
if (ret)
return ret;
}
if (is_sta &&
old_state == <API key> &&
new_state == IEEE80211_STA_ASSOC) {
clear_bit(<API key>, &wlvif->flags);
clear_bit(<API key>, &wlvif->flags);
}
/* clear ROCs on failure or authorization */
if (is_sta &&
(new_state == <API key> ||
new_state == <API key>)) {
if (test_bit(wlvif->role_id, wl->roc_map))
wl12xx_croc(wl, wlvif->role_id);
}
if (is_sta &&
old_state == <API key> &&
new_state == IEEE80211_STA_NONE) {
if (find_first_bit(wl->roc_map,
WL12XX_MAX_ROLES) >= WL12XX_MAX_ROLES) {
WARN_ON(wlvif->role_id == <API key>);
wl12xx_roc(wl, wlvif, wlvif->role_id,
wlvif->band, wlvif->channel);
}
}
return 0;
}
static int wl12xx_op_sta_state(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_sta *sta,
enum ieee80211_sta_state old_state,
enum ieee80211_sta_state new_state)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 sta %d state=%d->%d",
sta->aid, old_state, new_state);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EBUSY;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl, wlvif, sta, old_state, new_state);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
if (new_state < old_state)
return 0;
return ret;
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
enum <API key> action,
struct ieee80211_sta *sta, u16 tid, u16 *ssn,
u8 buf_size)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret;
u8 hlid, *ba_bitmap;
wl1271_debug(DEBUG_MAC80211, "mac80211 ampdu action %d tid %d", action,
tid);
/* sanity check - the fields in FW are only 8bits wide */
if (WARN_ON(tid > 0xFF))
return -ENOTSUPP;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EAGAIN;
goto out;
}
if (wlvif->bss_type == BSS_TYPE_STA_BSS) {
hlid = wlvif->sta.hlid;
} else if (wlvif->bss_type == BSS_TYPE_AP_BSS) {
struct wl1271_station *wl_sta;
wl_sta = (struct wl1271_station *)sta->drv_priv;
hlid = wl_sta->hlid;
} else {
ret = -EINVAL;
goto out;
}
ba_bitmap = &wl->links[hlid].ba_bitmap;
ret = <API key>(wl);
if (ret < 0)
goto out;
wl1271_debug(DEBUG_MAC80211, "mac80211 ampdu: Rx tid %d action %d",
tid, action);
switch (action) {
case <API key>:
if (!wlvif->ba_support || !wlvif->ba_allowed) {
ret = -ENOTSUPP;
break;
}
if (wl->ba_rx_session_count >= wl-><API key>) {
ret = -EBUSY;
wl1271_error("exceeded max RX BA sessions");
break;
}
if (*ba_bitmap & BIT(tid)) {
ret = -EINVAL;
wl1271_error("cannot enable RX BA session on active "
"tid: %d", tid);
break;
}
ret = <API key>(wl, tid, *ssn, true,
hlid);
if (!ret) {
*ba_bitmap |= BIT(tid);
wl->ba_rx_session_count++;
}
break;
case <API key>:
if (!(*ba_bitmap & BIT(tid))) {
/*
* this happens on reconfig - so only output a debug
* message for now, and don't fail the function.
*/
wl1271_debug(DEBUG_MAC80211,
"no active RX BA session on tid: %d",
tid);
ret = 0;
break;
}
ret = <API key>(wl, tid, 0, false,
hlid);
if (!ret) {
*ba_bitmap &= ~BIT(tid);
wl->ba_rx_session_count
}
break;
/*
* The BA initiator session management in FW independently.
* Falling break here on purpose for all TX APDU commands.
*/
case <API key>:
case <API key>:
case <API key>:
case <API key>:
case <API key>:
ret = -EINVAL;
break;
default:
wl1271_error("Incorrect ampdu action id=%x\n", action);
ret = -EINVAL;
}
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
const struct <API key> *mask)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct wl1271 *wl = hw->priv;
int i, ret = 0;
wl1271_debug(DEBUG_MAC80211, "mac80211 set_bitrate_mask 0x%x 0x%x",
mask->control[NL80211_BAND_2GHZ].legacy,
mask->control[NL80211_BAND_5GHZ].legacy);
mutex_lock(&wl->mutex);
for (i = 0; i < WLCORE_NUM_BANDS; i++)
wlvif->bitrate_masks[i] =
<API key>(wl,
mask->control[i].legacy,
i);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
if (wlvif->bss_type == BSS_TYPE_STA_BSS &&
!test_bit(<API key>, &wlvif->flags)) {
ret = <API key>(wl);
if (ret < 0)
goto out;
<API key>(wl, wlvif);
wlvif->basic_rate =
<API key>(wl, wlvif->basic_rate_set);
ret = <API key>(wl, wlvif);
wl1271_ps_elp_sleep(wl);
}
out:
mutex_unlock(&wl->mutex);
return ret;
}
static void <API key>(struct ieee80211_hw *hw,
struct <API key> *ch_switch)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif;
int ret;
wl1271_debug(DEBUG_MAC80211, "mac80211 channel switch");
wl1271_tx_flush(wl);
mutex_lock(&wl->mutex);
if (unlikely(wl->state == WLCORE_STATE_OFF)) {
<API key>(wl, wlvif) {
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
<API key>(vif, false);
}
goto out;
} else if (unlikely(wl->state != WLCORE_STATE_ON)) {
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
/* TODO: change mac80211 to pass vif as param */
<API key>(wl, wlvif) {
unsigned long delay_usec;
ret = wl->ops->channel_switch(wl, wlvif, ch_switch);
if (ret)
goto out_sleep;
set_bit(<API key>, &wlvif->flags);
/* indicate failure 5 seconds after channel switch time */
delay_usec = <API key>(wlvif->beacon_int) *
ch_switch->count;
<API key>(hw, &wlvif->channel_switch_work,
usecs_to_jiffies(delay_usec) +
msecs_to_jiffies(5000));
}
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
}
static void wlcore_op_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
{
struct wl1271 *wl = hw->priv;
wl1271_tx_flush(wl);
}
static int <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_channel *chan,
int duration,
enum ieee80211_roc_type type)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct wl1271 *wl = hw->priv;
int channel, ret = 0;
channel = <API key>(chan->center_freq);
wl1271_debug(DEBUG_MAC80211, "mac80211 roc %d (%d)",
channel, wlvif->role_id);
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/* return EBUSY if we can't ROC right now */
if (WARN_ON(wl->roc_vif ||
find_first_bit(wl->roc_map,
WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES)) {
ret = -EBUSY;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = wl12xx_start_dev(wl, wlvif, chan->band, channel);
if (ret < 0)
goto out_sleep;
wl->roc_vif = vif;
<API key>(hw, &wl->roc_complete_work,
msecs_to_jiffies(duration));
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static int <API key>(struct wl1271 *wl)
{
struct wl12xx_vif *wlvif;
int ret;
/* already completed */
if (unlikely(!wl->roc_vif))
return 0;
wlvif = wl12xx_vif_to_data(wl->roc_vif);
if (!test_bit(<API key>, &wlvif->flags))
return -EBUSY;
ret = wl12xx_stop_dev(wl, wlvif);
if (ret < 0)
return ret;
wl->roc_vif = NULL;
return 0;
}
static int <API key>(struct wl1271 *wl)
{
int ret;
wl1271_debug(DEBUG_MAC80211, "roc complete");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON)) {
ret = -EBUSY;
goto out;
}
ret = <API key>(wl);
if (ret < 0)
goto out;
ret = <API key>(wl);
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static void <API key>(struct work_struct *work)
{
struct delayed_work *dwork;
struct wl1271 *wl;
int ret;
dwork = container_of(work, struct delayed_work, work);
wl = container_of(dwork, struct wl1271, roc_complete_work);
ret = <API key>(wl);
if (!ret)
<API key>(wl->hw);
}
static int <API key>(struct ieee80211_hw *hw)
{
struct wl1271 *wl = hw->priv;
wl1271_debug(DEBUG_MAC80211, "mac80211 croc");
/* TODO: per-vif */
wl1271_tx_flush(wl);
/*
* we can't just flush_work here, because it might deadlock
* (as we might get called from the same workqueue)
*/
<API key>(&wl->roc_complete_work);
<API key>(wl);
return 0;
}
static void <API key>(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_sta *sta,
u32 changed)
{
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
struct wl1271 *wl = hw->priv;
<API key>(wl, wlvif, sta, changed);
}
static int wlcore_op_get_rssi(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_sta *sta,
s8 *rssi_dbm)
{
struct wl1271 *wl = hw->priv;
struct wl12xx_vif *wlvif = wl12xx_vif_to_data(vif);
int ret = 0;
wl1271_debug(DEBUG_MAC80211, "mac80211 get_rssi");
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
ret = <API key>(wl);
if (ret < 0)
goto out_sleep;
ret = <API key>(wl, wlvif, rssi_dbm);
if (ret < 0)
goto out_sleep;
out_sleep:
wl1271_ps_elp_sleep(wl);
out:
mutex_unlock(&wl->mutex);
return ret;
}
static bool <API key>(struct ieee80211_hw *hw)
{
struct wl1271 *wl = hw->priv;
bool ret = false;
mutex_lock(&wl->mutex);
if (unlikely(wl->state != WLCORE_STATE_ON))
goto out;
/* packets are considered pending if in the TX queue or the FW */
ret = (<API key>(wl) > 0) || (wl->tx_frames_cnt > 0);
out:
mutex_unlock(&wl->mutex);
return ret;
}
/* can't be const, mac80211 writes to this */
static struct ieee80211_rate wl1271_rates[] = {
{ .bitrate = 10,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 20,
.hw_value = <API key>,
.hw_value_short = <API key>,
.flags = <API key> },
{ .bitrate = 55,
.hw_value = <API key>,
.hw_value_short = <API key>,
.flags = <API key> },
{ .bitrate = 110,
.hw_value = <API key>,
.hw_value_short = <API key>,
.flags = <API key> },
{ .bitrate = 60,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 90,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 120,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 180,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 240,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 360,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 480,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 540,
.hw_value = <API key>,
.hw_value_short = <API key>, },
};
/* can't be const, mac80211 writes to this */
static struct ieee80211_channel wl1271_channels[] = {
{ .hw_value = 1, .center_freq = 2412, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 2, .center_freq = 2417, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 3, .center_freq = 2422, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 4, .center_freq = 2427, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 5, .center_freq = 2432, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 6, .center_freq = 2437, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 7, .center_freq = 2442, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 8, .center_freq = 2447, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 9, .center_freq = 2452, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 10, .center_freq = 2457, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 11, .center_freq = 2462, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 12, .center_freq = 2467, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 13, .center_freq = 2472, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 14, .center_freq = 2484, .max_power = WLCORE_MAX_TXPWR },
};
/* can't be const, mac80211 writes to this */
static struct <API key> wl1271_band_2ghz = {
.channels = wl1271_channels,
.n_channels = ARRAY_SIZE(wl1271_channels),
.bitrates = wl1271_rates,
.n_bitrates = ARRAY_SIZE(wl1271_rates),
};
/* 5 GHz data rates for WL1273 */
static struct ieee80211_rate wl1271_rates_5ghz[] = {
{ .bitrate = 60,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 90,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 120,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 180,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 240,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 360,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 480,
.hw_value = <API key>,
.hw_value_short = <API key>, },
{ .bitrate = 540,
.hw_value = <API key>,
.hw_value_short = <API key>, },
};
/* 5 GHz band channels for WL1273 */
static struct ieee80211_channel <API key>[] = {
{ .hw_value = 8, .center_freq = 5040, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 12, .center_freq = 5060, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 16, .center_freq = 5080, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 34, .center_freq = 5170, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 36, .center_freq = 5180, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 38, .center_freq = 5190, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 40, .center_freq = 5200, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 42, .center_freq = 5210, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 44, .center_freq = 5220, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 46, .center_freq = 5230, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 48, .center_freq = 5240, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 52, .center_freq = 5260, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 56, .center_freq = 5280, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 60, .center_freq = 5300, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 64, .center_freq = 5320, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 100, .center_freq = 5500, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 104, .center_freq = 5520, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 108, .center_freq = 5540, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 112, .center_freq = 5560, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 116, .center_freq = 5580, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 120, .center_freq = 5600, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 124, .center_freq = 5620, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 128, .center_freq = 5640, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 132, .center_freq = 5660, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 136, .center_freq = 5680, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 140, .center_freq = 5700, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 149, .center_freq = 5745, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 153, .center_freq = 5765, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 157, .center_freq = 5785, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 161, .center_freq = 5805, .max_power = WLCORE_MAX_TXPWR },
{ .hw_value = 165, .center_freq = 5825, .max_power = WLCORE_MAX_TXPWR },
};
static struct <API key> wl1271_band_5ghz = {
.channels = <API key>,
.n_channels = ARRAY_SIZE(<API key>),
.bitrates = wl1271_rates_5ghz,
.n_bitrates = ARRAY_SIZE(wl1271_rates_5ghz),
};
static const struct ieee80211_ops wl1271_ops = {
.start = wl1271_op_start,
.stop = wlcore_op_stop,
.add_interface = <API key>,
.remove_interface = <API key>,
.change_interface = <API key>,
#ifdef CONFIG_PM
.suspend = wl1271_op_suspend,
.resume = wl1271_op_resume,
#endif
.config = wl1271_op_config,
.prepare_multicast = <API key>,
.configure_filter = <API key>,
.tx = wl1271_op_tx,
.set_key = wlcore_op_set_key,
.hw_scan = wl1271_op_hw_scan,
.cancel_hw_scan = <API key>,
.sched_scan_start = <API key>,
.sched_scan_stop = <API key>,
.bss_info_changed = <API key>,
.set_frag_threshold = <API key>,
.set_rts_threshold = <API key>,
.conf_tx = wl1271_op_conf_tx,
.get_tsf = wl1271_op_get_tsf,
.get_survey = <API key>,
.sta_state = wl12xx_op_sta_state,
.ampdu_action = <API key>,
.tx_frames_pending = <API key>,
.set_bitrate_mask = <API key>,
.<API key> = <API key>,
.channel_switch = <API key>,
.flush = wlcore_op_flush,
.remain_on_channel = <API key>,
.<API key> = <API key>,
.add_chanctx = <API key>,
.remove_chanctx = <API key>,
.change_chanctx = <API key>,
.assign_vif_chanctx = <API key>,
.<API key> = <API key>,
.sta_rc_update = <API key>,
.get_rssi = wlcore_op_get_rssi,
<API key>(wl1271_tm_cmd)
};
u8 wlcore_rate_to_idx(struct wl1271 *wl, u8 rate, enum ieee80211_band band)
{
u8 idx;
BUG_ON(band >= 2);
if (unlikely(rate >= wl->hw_tx_rate_tbl_size)) {
wl1271_error("Illegal RX rate from HW: %d", rate);
return 0;
}
idx = wl->band_rate_to_idx[band][rate];
if (unlikely(idx == <API key>)) {
wl1271_error("Unsupported RX rate from HW: %d", rate);
return 0;
}
return idx;
}
static void <API key>(struct wl1271 *wl, u32 oui, u32 nic)
{
int i;
wl1271_debug(DEBUG_PROBE, "base address: oui %06x nic %06x",
oui, nic);
if (nic + <API key> - wl->num_mac_addr > 0xffffff)
wl1271_warning("NIC part of the MAC address wraps around!");
for (i = 0; i < wl->num_mac_addr; i++) {
wl->addresses[i].addr[0] = (u8)(oui >> 16);
wl->addresses[i].addr[1] = (u8)(oui >> 8);
wl->addresses[i].addr[2] = (u8) oui;
wl->addresses[i].addr[3] = (u8)(nic >> 16);
wl->addresses[i].addr[4] = (u8)(nic >> 8);
wl->addresses[i].addr[5] = (u8) nic;
nic++;
}
/* we may be one address short at the most */
WARN_ON(wl->num_mac_addr + 1 < <API key>);
/*
* turn on the LAA bit in the first address and use it as
* the last address.
*/
if (wl->num_mac_addr < <API key>) {
int idx = <API key> - 1;
memcpy(&wl->addresses[idx], &wl->addresses[0],
sizeof(wl->addresses[0]));
/* LAA bit */
wl->addresses[idx].addr[2] |= BIT(1);
}
wl->hw->wiphy->n_addresses = <API key>;
wl->hw->wiphy->addresses = wl->addresses;
}
static int wl12xx_get_hw_info(struct wl1271 *wl)
{
int ret;
ret = wl12xx_set_power_on(wl);
if (ret < 0)
return ret;
ret = wlcore_read_reg(wl, REG_CHIP_ID_B, &wl->chip.id);
if (ret < 0)
goto out;
wl->fuse_oui_addr = 0;
wl->fuse_nic_addr = 0;
ret = wl->ops->get_pg_ver(wl, &wl->hw_pg_ver);
if (ret < 0)
goto out;
if (wl->ops->get_mac)
ret = wl->ops->get_mac(wl);
out:
wl1271_power_off(wl);
return ret;
}
static int wl1271_register_hw(struct wl1271 *wl)
{
int ret;
u32 oui_addr = 0, nic_addr = 0;
if (wl->mac80211_registered)
return 0;
if (wl->nvs_len >= 12) {
/* NOTE: The wl->nvs->nvs element must be first, in
* order to simplify the casting, we assume it is at
* the beginning of the wl->nvs structure.
*/
u8 *nvs_ptr = (u8 *)wl->nvs;
oui_addr =
(nvs_ptr[11] << 16) + (nvs_ptr[10] << 8) + nvs_ptr[6];
nic_addr =
(nvs_ptr[5] << 16) + (nvs_ptr[4] << 8) + nvs_ptr[3];
}
/* if the MAC address is zeroed in the NVS derive from fuse */
if (oui_addr == 0 && nic_addr == 0) {
oui_addr = wl->fuse_oui_addr;
/* fuse has the BD_ADDR, the WLAN addresses are the next two */
nic_addr = wl->fuse_nic_addr + 1;
}
<API key>(wl, oui_addr, nic_addr);
ret = <API key>(wl->hw);
if (ret < 0) {
wl1271_error("unable to register mac80211 hw: %d", ret);
goto out;
}
wl->mac80211_registered = true;
wl1271_debugfs_init(wl);
wl1271_notice("loaded");
out:
return ret;
}
static void <API key>(struct wl1271 *wl)
{
if (wl->plt)
wl1271_plt_stop(wl);
<API key>(wl->hw);
wl->mac80211_registered = false;
}
static int <API key>(struct wl1271 *wl)
{
int i;
static const u32 cipher_suites[] = {
<API key>,
<API key>,
<API key>,
<API key>,
<API key>,
};
/* The tx descriptor buffer */
wl->hw->extra_tx_headroom = sizeof(struct wl1271_tx_hw_descr);
if (wl->quirks & <API key>)
wl->hw->extra_tx_headroom += <API key>;
/* unit us */
/* FIXME: find a proper value */
wl->hw->max_listen_interval = wl->conf.conn.max_listen_interval;
wl->hw->flags = <API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key>;
wl->hw->wiphy->cipher_suites = cipher_suites;
wl->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
wl->hw->wiphy->interface_modes = BIT(<API key>) |
BIT(<API key>) | BIT(NL80211_IFTYPE_AP) |
BIT(<API key>) | BIT(<API key>);
wl->hw->wiphy->max_scan_ssids = 1;
wl->hw->wiphy-><API key> = 16;
wl->hw->wiphy->max_match_sets = 16;
/*
* Maximum length of elements in scanning probe request templates
* should be the maximum length possible for a template, without
* the IEEE80211 header of the template
*/
wl->hw->wiphy->max_scan_ie_len = <API key> -
sizeof(struct ieee80211_header);
wl->hw->wiphy-><API key> = <API key> -
sizeof(struct ieee80211_header);
wl->hw->wiphy-><API key> = 5000;
wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD |
<API key> |
<API key>;
/* make sure all our channels fit in the scanned_ch bitmask */
BUILD_BUG_ON(ARRAY_SIZE(wl1271_channels) +
ARRAY_SIZE(<API key>) >
WL1271_MAX_CHANNELS);
/*
* clear channel flags from the previous usage
* and restore max_power & max_antenna_gain values.
*/
for (i = 0; i < ARRAY_SIZE(wl1271_channels); i++) {
wl1271_band_2ghz.channels[i].flags = 0;
wl1271_band_2ghz.channels[i].max_power = WLCORE_MAX_TXPWR;
wl1271_band_2ghz.channels[i].max_antenna_gain = 0;
}
for (i = 0; i < ARRAY_SIZE(<API key>); i++) {
wl1271_band_5ghz.channels[i].flags = 0;
wl1271_band_5ghz.channels[i].max_power = WLCORE_MAX_TXPWR;
wl1271_band_5ghz.channels[i].max_antenna_gain = 0;
}
/*
* We keep local copies of the band structs because we need to
* modify them on a per-device basis.
*/
memcpy(&wl->bands[IEEE80211_BAND_2GHZ], &wl1271_band_2ghz,
sizeof(wl1271_band_2ghz));
memcpy(&wl->bands[IEEE80211_BAND_2GHZ].ht_cap,
&wl->ht_cap[IEEE80211_BAND_2GHZ],
sizeof(*wl->ht_cap));
memcpy(&wl->bands[IEEE80211_BAND_5GHZ], &wl1271_band_5ghz,
sizeof(wl1271_band_5ghz));
memcpy(&wl->bands[IEEE80211_BAND_5GHZ].ht_cap,
&wl->ht_cap[IEEE80211_BAND_5GHZ],
sizeof(*wl->ht_cap));
wl->hw->wiphy->bands[IEEE80211_BAND_2GHZ] =
&wl->bands[IEEE80211_BAND_2GHZ];
wl->hw->wiphy->bands[IEEE80211_BAND_5GHZ] =
&wl->bands[IEEE80211_BAND_5GHZ];
/*
* allow 4 queues per mac address we support +
* 1 cab queue per mac + one global offchannel Tx queue
*/
wl->hw->queues = (NUM_TX_QUEUES + 1) * <API key> + 1;
/* the last queue is the offchannel queue */
wl->hw-><API key> = wl->hw->queues - 1;
wl->hw->max_rates = 1;
wl->hw->wiphy->reg_notifier = wl1271_reg_notify;
/* the FW answers probe-requests in AP-mode */
wl->hw->wiphy->flags |= <API key>;
wl->hw->wiphy->probe_resp_offload =
<API key> |
<API key> |
<API key>;
/* allowed interface combinations */
wl->hw->wiphy->iface_combinations = wl->iface_combinations;
wl->hw->wiphy-><API key> = wl-><API key>;
SET_IEEE80211_DEV(wl->hw, wl->dev);
wl->hw->sta_data_size = sizeof(struct wl1271_station);
wl->hw->vif_data_size = sizeof(struct wl12xx_vif);
wl->hw-><API key> = wl->conf.ht.rx_ba_win_size;
return 0;
}
struct ieee80211_hw *wlcore_alloc_hw(size_t priv_size, u32 aggr_buf_size,
u32 mbox_size)
{
struct ieee80211_hw *hw;
struct wl1271 *wl;
int i, j, ret;
unsigned int order;
hw = ieee80211_alloc_hw(sizeof(*wl), &wl1271_ops);
if (!hw) {
wl1271_error("could not alloc ieee80211_hw");
ret = -ENOMEM;
goto err_hw_alloc;
}
wl = hw->priv;
memset(wl, 0, sizeof(*wl));
wl->priv = kzalloc(priv_size, GFP_KERNEL);
if (!wl->priv) {
wl1271_error("could not alloc wl priv");
ret = -ENOMEM;
goto err_priv_alloc;
}
INIT_LIST_HEAD(&wl->wlvif_list);
wl->hw = hw;
/*
* wl->num_links is not configured yet, so just use WLCORE_MAX_LINKS.
* we don't allocate any additional resource here, so that's fine.
*/
for (i = 0; i < NUM_TX_QUEUES; i++)
for (j = 0; j < WLCORE_MAX_LINKS; j++)
skb_queue_head_init(&wl->links[j].tx_queue[i]);
skb_queue_head_init(&wl->deferred_rx_queue);
skb_queue_head_init(&wl->deferred_tx_queue);
INIT_DELAYED_WORK(&wl->elp_work, wl1271_elp_work);
INIT_WORK(&wl->netstack_work, <API key>);
INIT_WORK(&wl->tx_work, wl1271_tx_work);
INIT_WORK(&wl->recovery_work, <API key>);
INIT_DELAYED_WORK(&wl->scan_complete_work, <API key>);
INIT_DELAYED_WORK(&wl->roc_complete_work, <API key>);
INIT_DELAYED_WORK(&wl->tx_watchdog_work, <API key>);
wl->freezable_wq = <API key>("wl12xx_wq");
if (!wl->freezable_wq) {
ret = -ENOMEM;
goto err_hw;
}
wl->channel = 0;
wl->rx_counter = 0;
wl->power_level = <API key>;
wl->band = IEEE80211_BAND_2GHZ;
wl->channel_type = NL80211_CHAN_NO_HT;
wl->flags = 0;
wl->sg_enabled = true;
wl->sleep_<API key>;
wl->recovery_count = 0;
wl->hw_pg_ver = -1;
wl->ap_ps_map = 0;
wl->ap_fw_ps_map = 0;
wl->quirks = 0;
wl->platform_quirks = 0;
wl->system_hlid = WL12XX_SYSTEM_HLID;
wl->active_sta_count = 0;
wl->active_link_count = 0;
wl->fwlog_size = 0;
init_waitqueue_head(&wl->fwlog_waitq);
/* The system link is always allocated */
__set_bit(WL12XX_SYSTEM_HLID, wl->links_map);
memset(wl->tx_frames_map, 0, sizeof(wl->tx_frames_map));
for (i = 0; i < wl->num_tx_desc; i++)
wl->tx_frames[i] = NULL;
spin_lock_init(&wl->wl_lock);
wl->state = WLCORE_STATE_OFF;
wl->fw_type = WL12XX_FW_TYPE_NONE;
mutex_init(&wl->mutex);
mutex_init(&wl->flush_mutex);
init_completion(&wl-><API key>);
order = get_order(aggr_buf_size);
wl->aggr_buf = (u8 *)__get_free_pages(GFP_KERNEL, order);
if (!wl->aggr_buf) {
ret = -ENOMEM;
goto err_wq;
}
wl->aggr_buf_size = aggr_buf_size;
wl->dummy_packet = <API key>(wl);
if (!wl->dummy_packet) {
ret = -ENOMEM;
goto err_aggr;
}
/* Allocate one page for the FW log */
wl->fwlog = (u8 *)get_zeroed_page(GFP_KERNEL);
if (!wl->fwlog) {
ret = -ENOMEM;
goto err_dummy_packet;
}
wl->mbox_size = mbox_size;
wl->mbox = kmalloc(wl->mbox_size, GFP_KERNEL | GFP_DMA);
if (!wl->mbox) {
ret = -ENOMEM;
goto err_fwlog;
}
wl->buffer_32 = kmalloc(sizeof(*wl->buffer_32), GFP_KERNEL);
if (!wl->buffer_32) {
ret = -ENOMEM;
goto err_mbox;
}
return hw;
err_mbox:
kfree(wl->mbox);
err_fwlog:
free_page((unsigned long)wl->fwlog);
err_dummy_packet:
dev_kfree_skb(wl->dummy_packet);
err_aggr:
free_pages((unsigned long)wl->aggr_buf, order);
err_wq:
destroy_workqueue(wl->freezable_wq);
err_hw:
wl1271_debugfs_exit(wl);
kfree(wl->priv);
err_priv_alloc:
ieee80211_free_hw(hw);
err_hw_alloc:
return ERR_PTR(ret);
}
EXPORT_SYMBOL_GPL(wlcore_alloc_hw);
int wlcore_free_hw(struct wl1271 *wl)
{
/* Unblock any fwlog readers */
mutex_lock(&wl->mutex);
wl->fwlog_size = -1;
<API key>(&wl->fwlog_waitq);
mutex_unlock(&wl->mutex);
wlcore_sysfs_free(wl);
kfree(wl->buffer_32);
kfree(wl->mbox);
free_page((unsigned long)wl->fwlog);
dev_kfree_skb(wl->dummy_packet);
free_pages((unsigned long)wl->aggr_buf, get_order(wl->aggr_buf_size));
wl1271_debugfs_exit(wl);
vfree(wl->fw);
wl->fw = NULL;
wl->fw_type = WL12XX_FW_TYPE_NONE;
kfree(wl->nvs);
wl->nvs = NULL;
kfree(wl->raw_fw_status);
kfree(wl->fw_status);
kfree(wl->tx_res_if);
destroy_workqueue(wl->freezable_wq);
kfree(wl->priv);
ieee80211_free_hw(wl->hw);
return 0;
}
EXPORT_SYMBOL_GPL(wlcore_free_hw);
#ifdef CONFIG_PM
static const struct <API key> <API key> = {
.flags = WIPHY_WOWLAN_ANY,
.n_patterns = <API key>,
.pattern_min_len = 1,
.pattern_max_len = <API key>,
};
#endif
static irqreturn_t wlcore_hardirq(int irq, void *cookie)
{
return IRQ_WAKE_THREAD;
}
static void wlcore_nvs_cb(const struct firmware *fw, void *context)
{
struct wl1271 *wl = context;
struct platform_device *pdev = wl->pdev;
struct wlcore_platdev_data *pdev_data = dev_get_platdata(&pdev->dev);
struct <API key> *pdata = pdev_data->pdata;
unsigned long irqflags;
int ret;
irq_handler_t hardirq_fn = NULL;
if (fw) {
wl->nvs = kmemdup(fw->data, fw->size, GFP_KERNEL);
if (!wl->nvs) {
wl1271_error("Could not allocate nvs data");
goto out;
}
wl->nvs_len = fw->size;
} else {
wl1271_debug(DEBUG_BOOT, "Could not get nvs file %s",
WL12XX_NVS_NAME);
wl->nvs = NULL;
wl->nvs_len = 0;
}
ret = wl->ops->setup(wl);
if (ret < 0)
goto out_free_nvs;
BUG_ON(wl->num_tx_desc > <API key>);
/* adjust some runtime configuration parameters */
wlcore_adjust_conf(wl);
wl->irq = platform_get_irq(pdev, 0);
wl->platform_quirks = pdata->platform_quirks;
wl->if_ops = pdev_data->if_ops;
if (wl->platform_quirks & <API key>) {
irqflags = IRQF_TRIGGER_RISING;
hardirq_fn = wlcore_hardirq;
} else {
irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT;
}
ret = <API key>(wl->irq, hardirq_fn, wlcore_irq,
irqflags, pdev->name, wl);
if (ret < 0) {
wl1271_error("request_irq() failed: %d", ret);
goto out_free_nvs;
}
#ifdef CONFIG_PM
ret = enable_irq_wake(wl->irq);
if (!ret) {
wl->irq_wake_enabled = true;
device_init_wakeup(wl->dev, 1);
if (pdata->pwr_in_suspend)
wl->hw->wiphy->wowlan = &<API key>;
}
#endif
disable_irq(wl->irq);
ret = wl12xx_get_hw_info(wl);
if (ret < 0) {
wl1271_error("couldn't get hw info");
goto out_irq;
}
ret = wl->ops->identify_chip(wl);
if (ret < 0)
goto out_irq;
ret = <API key>(wl);
if (ret)
goto out_irq;
ret = wl1271_register_hw(wl);
if (ret)
goto out_irq;
ret = wlcore_sysfs_init(wl);
if (ret)
goto out_unreg;
wl->initialized = true;
goto out;
out_unreg:
<API key>(wl);
out_irq:
free_irq(wl->irq, wl);
out_free_nvs:
kfree(wl->nvs);
out:
release_firmware(fw);
complete_all(&wl-><API key>);
}
int wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)
{
int ret;
if (!wl->ops || !wl->ptable)
return -EINVAL;
wl->dev = &pdev->dev;
wl->pdev = pdev;
<API key>(pdev, wl);
ret = <API key>(THIS_MODULE, FW_ACTION_HOTPLUG,
WL12XX_NVS_NAME, &pdev->dev, GFP_KERNEL,
wl, wlcore_nvs_cb);
if (ret < 0) {
wl1271_error("<API key> failed: %d", ret);
complete_all(&wl-><API key>);
}
return ret;
}
EXPORT_SYMBOL_GPL(wlcore_probe);
int wlcore_remove(struct platform_device *pdev)
{
struct wl1271 *wl = <API key>(pdev);
wait_for_completion(&wl-><API key>);
if (!wl->initialized)
return 0;
if (wl->irq_wake_enabled) {
device_init_wakeup(wl->dev, 0);
disable_irq_wake(wl->irq);
}
<API key>(wl);
free_irq(wl->irq, wl);
wlcore_free_hw(wl);
return 0;
}
EXPORT_SYMBOL_GPL(wlcore_remove);
u32 wl12xx_debug_level = DEBUG_NONE;
EXPORT_SYMBOL_GPL(wl12xx_debug_level);
module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR);
MODULE_PARM_DESC(debug_level, "wl12xx debugging level");
module_param_named(fwlog, fwlog_param, charp, 0);
MODULE_PARM_DESC(fwlog,
"FW logger options: continuous, ondemand, dbgpins or disable");
module_param(fwlog_mem_blocks, int, S_IRUSR | S_IWUSR);
MODULE_PARM_DESC(fwlog_mem_blocks, "fwlog mem_blocks");
module_param(bug_on_recovery, int, S_IRUSR | S_IWUSR);
MODULE_PARM_DESC(bug_on_recovery, "BUG() on fw recovery");
module_param(no_recovery, int, S_IRUSR | S_IWUSR);
MODULE_PARM_DESC(no_recovery, "Prevent HW recovery. FW will remain stuck.");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");
MODULE_FIRMWARE(WL12XX_NVS_NAME);
|
#ifndef _GE2D_IO_H_
#define _GE2D_IO_H_
#include <linux/io.h>
#include <linux/amlogic/iomap.h>
#include <linux/amlogic/cpu_version.h>
#include "ge2d_log.h"
#define GE2DBUS_REG_ADDR(reg) (((reg - 0x1800) << 2))
struct reg_map_s {
unsigned int phy_addr;
unsigned int size;
void __iomem *vir_addr;
int flag;
};
static struct reg_map_s reg_map = {
.phy_addr = 0xd0160000,
.size = 0x10000,
};
static int check_map_flag(unsigned int addr)
{
if (reg_map.flag)
return 1;
reg_map.vir_addr = ioremap(reg_map.phy_addr, reg_map.size);
if (!reg_map.vir_addr) {
pr_info("failed map phy: 0x%x\n", addr);
return 0;
} else {
reg_map.flag = 1;
pr_info("mapped phy: 0x%x\n", reg_map.phy_addr);
return 1;
}
}
static uint32_t ge2d_reg_read(unsigned int reg)
{
unsigned int addr = 0;
unsigned int val = 0;
if (!is_meson_gxbb_cpu())
return (uint32_t)aml_read_cbus(reg);
addr = GE2DBUS_REG_ADDR(reg);
if (check_map_flag(addr))
val = readl(reg_map.vir_addr + addr);
ge2d_log_dbg2("read(0x%x)=0x%x\n", reg_map.phy_addr + addr, val);
return val;
}
static void ge2d_reg_write(unsigned int reg, unsigned int val)
{
unsigned int ret = 0;
unsigned int addr = 0;
if (!is_meson_gxbb_cpu()) {
aml_write_cbus(reg, val);
return;
}
addr = GE2DBUS_REG_ADDR(reg);
if (check_map_flag(addr)) {
writel(val, reg_map.vir_addr + addr);
/* ret = readl(reg_map.vir_addr + addr); */
}
ge2d_log_dbg2("write(0x%x, 0x%x)=0x%x\n",
reg_map.phy_addr + addr, val, ret);
}
static inline uint32_t ge2d_vcbus_read(uint32_t reg)
{
return (uint32_t)aml_read_vcbus(reg);
};
static inline uint32_t ge2d_reg_get_bits(uint32_t reg,
const uint32_t start,
const uint32_t len)
{
uint32_t val;
val = (ge2d_reg_read(reg) >> (start)) & ((1L << (len)) - 1);
return val;
}
static inline void ge2d_reg_set_bits(uint32_t reg,
const uint32_t value,
const uint32_t start,
const uint32_t len)
{
ge2d_reg_write(reg, ((ge2d_reg_read(reg) &
~(((1L << (len)) - 1) << (start))) |
(((value) & ((1L << (len)) - 1)) << (start))));
}
#endif
|
Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.
Files are compressed with [jade-php](https://github.com/viniwrubleski/jade-php).
|
unitDef = {
unitname = [[corcom1]],
name = [[Battle Commander]],
description = [[Heavy Combat Commander, Builds at 10 m/s]],
acceleration = 0.18,
activateWhenBuilt = true,
amphibious = [[1]],
autoHeal = 5,
brakeRate = 0.375,
buildCostEnergy = 1200,
buildCostMetal = 1200,
buildDistance = 120,
builder = true,
buildoptions = {
},
buildPic = [[corcom.png]],
buildTime = 1200,
canAttack = true,
canCloak = false,
canGuard = true,
canMove = true,
canPatrol = true,
canreclamate = [[1]],
category = [[LAND]],
commander = true,
<API key> = [[0 0 0]],
<API key> = [[45 54 45]],
collisionVolumeTest = 1,
collisionVolumeType = [[CylY]],
corpse = [[DEAD]],
customParams = {
description_de = [[Schwerer Kampfkommandant, Baut mit 10 M/s]],
description_pl = [[Ciezki Dowodca bojowy, moc 10 m/s]],
helptext = [[The Battle Commander emphasizes firepower and armor, at the expense of speed and support equipment.]],
helptext_de = [[Der Battle Commander verbindet Feuerkraft mit starker Panzerung, auf Kosten der Geschwindigkeit und seiner <API key>.]],
helptext_pl = [[Battle to Dowodca, ktory reprezentuje brutalna sile i duza wytrzymalosc; jest jednak wolny i nie moze montowac zbyt wielu modulow wsparcia.]],
level = [[1]],
statsname = [[corcom1]],
soundok = [[heavy_bot_move]],
soundselect = [[bot_select]],
soundbuild = [[builder_start]],
commtype = [[2]],
aimposoffset = [[0 5 0]],
},
energyMake = 6,
energyStorage = 0,
energyUse = 0,
explodeAs = [[ESTOR_BUILDINGEX]],
footprintX = 2,
footprintZ = 2,
hideDamage = false,
iconType = [[commander1]],
idleAutoHeal = 5,
idleTime = 1800,
leaveTracks = true,
losEmitHeight = 40,
mass = 423,
maxDamage = 3000,
maxSlope = 36,
maxVelocity = 1.25,
maxWaterDepth = 5000,
metalMake = 4,
metalStorage = 0,
minCloakDistance = 75,
movementClass = [[AKBOT2]],
noChaseCategory = [[TERRAFORM SATELLITE FIXEDWING GUNSHIP HOVER SHIP SWIM SUB LAND FLOAT SINK TURRET]],
norestrict = [[1]],
objectName = [[corcomAlt.s3o]],
script = [[corcom_alt.lua]],
seismicSignature = 16,
selfDestructAs = [[ESTOR_BUILDINGEX]],
sfxtypes = {
explosiongenerators = {
[[custom:RAIDMUZZLE]],
[[custom:LEVLRMUZZLE]],
[[custom:RAIDMUZZLE]],
},
},
showNanoSpray = false,
showPlayerName = true,
side = [[CORE]],
sightDistance = 500,
smoothAnim = true,
sonarDistance = 300,
TEDClass = [[COMMANDER]],
trackOffset = 0,
trackStrength = 8,
trackStretch = 1,
trackType = [[ComTrack]],
trackWidth = 22,
terraformSpeed = 600,
turnRate = 1148,
upright = true,
workerTime = 10,
weapons = {
[1] = {
def = [[FAKELASER]],
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[FIXEDWING LAND SINK TURRET SHIP SWIM FLOAT GUNSHIP HOVER]],
},
[5] = {
def = [[SHOCK_CANNON]],
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[FIXEDWING LAND SINK TURRET SHIP SWIM FLOAT GUNSHIP HOVER]],
},
},
weaponDefs = {
FAKELASER = {
name = [[Fake Laser]],
areaOfEffect = 12,
beamTime = 0.1,
coreThickness = 0.5,
craterBoost = 0,
craterMult = 0,
damage = {
default = 0,
subs = 0,
},
duration = 0.11,
edgeEffectiveness = 0.99,
explosionGenerator = [[custom:flash1green]],
fireStarter = 70,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0.4,
<API key> = 1,
largeBeamLaser = true,
laserFlareSize = 5.53,
minIntensity = 1,
noSelfDamage = true,
range = 290,
reloadtime = 0.11,
rgbColor = [[0 1 0]],
soundStart = [[weapon/laser/pulse_laser3]],
soundTrigger = true,
sweepfire = false,
texture1 = [[largelaser]],
texture2 = [[flare]],
texture3 = [[flare]],
texture4 = [[smallflare]],
thickness = 5.53,
tolerance = 10000,
turret = true,
weaponType = [[BeamLaser]],
weaponVelocity = 900,
},
SHOCK_CANNON = {
name = [[Riot Cannon]],
areaOfEffect = 144,
avoidFeature = true,
avoidFriendly = true,
burnblow = true,
craterBoost = 1,
craterMult = 2,
damage = {
default = 240,
planes = 240,
subs = 12,
},
edgeEffectiveness = 0.75,
explosionGenerator = [[custom:FLASH64]],
impulseBoost = 60,
impulseFactor = 0.5,
<API key> = 1,
noSelfDamage = true,
range = 270,
reloadtime = 2.2,
soundHit = [[weapon/cannon/generic_cannon]],
soundStart = [[weapon/cannon/outlaw_gun]],
soundStartVolume = 3,
turret = true,
weaponType = [[Cannon]],
weaponVelocity = 750,
},
},
featureDefs = {
DEAD = {
description = [[Wreckage - Battle Commander]],
blocking = true,
category = [[corpses]],
damage = 3000,
energy = 0,
featureDead = [[HEAP]],
featurereclamate = [[SMUDGE01]],
footprintX = 2,
footprintZ = 2,
height = [[20]],
hitdensity = [[100]],
metal = 480,
object = [[corcom_dead.s3o]],
reclaimable = true,
reclaimTime = 480,
seqnamereclamate = [[TREE1RECLAMATE]],
world = [[All Worlds]],
},
HEAP = {
description = [[Debris - Battle Commander]],
blocking = false,
category = [[heaps]],
damage = 3000,
energy = 0,
featurereclamate = [[SMUDGE01]],
footprintX = 2,
footprintZ = 2,
hitdensity = [[100]],
metal = 240,
object = [[debris2x2c.s3o]],
reclaimable = true,
reclaimTime = 240,
seqnamereclamate = [[TREE1RECLAMATE]],
world = [[All Worlds]],
},
},
}
return lowerkeys({ corcom1 = unitDef })
|
package org.jpc.emulator.execution.opcodes.rm;
import org.jpc.emulator.execution.*;
import org.jpc.emulator.execution.decoder.*;
import org.jpc.emulator.processor.*;
import org.jpc.emulator.processor.fpu64.*;
import static org.jpc.emulator.processor.Processor.*;
public class xor_Gw_Ew_mem extends Executable
{
final int op1Index;
final Pointer op2;
public xor_Gw_Ew_mem(int blockStart, int eip, int prefices, PeekableInputStream input)
{
super(blockStart, eip);
int modrm = input.readU8();
op1Index = Modrm.Gw(modrm);
op2 = Modrm.getPointer(prefices, modrm, input);
}
public Branch execute(Processor cpu)
{
Reg op1 = cpu.regs[op1Index];
cpu.of = cpu.af = cpu.cf = false;
cpu.flagResult = (short)(op1.get16() ^ op2.get16(cpu));
op1.set16((short)cpu.flagResult);
cpu.flagStatus = SZP;
return Branch.None;
}
public boolean isBranch()
{
return false;
}
public String toString()
{
return this.getClass().getName();
}
}
|
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-<API key>: 100%; }
body {
margin: 0; }
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block; }
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline; }
audio:not([controls]) {
display: none;
height: 0; }
[hidden],
template {
display: none; }
a {
background: transparent; }
a:active,
a:hover {
outline: 0; }
abbr[title] {
border-bottom: 1px dotted; }
b,
strong {
font-weight: bold; }
dfn {
font-style: italic; }
h1 {
font-size: 2em;
margin: 0.67em 0; }
mark {
background: #ff0;
color: #000; }
small {
font-size: 80%; }
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline; }
sup {
top: -0.5em; }
sub {
bottom: -0.25em; }
img {
border: 0; }
svg:not(:root) {
overflow: hidden; }
figure {
margin: 1em 40px; }
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0; }
pre {
overflow: auto; }
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em; }
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0; }
button {
overflow: visible; }
button,
select {
text-transform: none; }
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer; }
button[disabled],
html input[disabled] {
cursor: default; }
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0; }
input {
line-height: normal; }
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box;
padding: 0; }
input[type="number"]::-<API key>,
input[type="number"]::-<API key> {
height: auto; }
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box; }
input[type="search"]::-<API key>,
input[type="search"]::-<API key> {
-webkit-appearance: none; }
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em; }
legend {
border: 0;
padding: 0; }
textarea {
overflow: auto; }
optgroup {
font-weight: bold; }
table {
border-collapse: collapse;
border-spacing: 0; }
td,
th {
padding: 0; }
@media print {
* {
text-shadow: none !important;
color: #000 !important;
background: transparent !important;
box-shadow: none !important; }
a,
a:visited {
text-decoration: underline; }
a[href]:after {
content: " (" attr(href) ")"; }
abbr[title]:after {
content: " (" attr(title) ")"; }
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: ""; }
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid; }
thead {
display: table-header-group; }
tr,
img {
page-break-inside: avoid; }
img {
max-width: 100% !important; }
p,
h2,
h3 {
orphans: 3;
widows: 3; }
h2,
h3 {
page-break-after: avoid; }
select {
background: #fff !important; }
.navbar {
display: none; }
.table td,
.table th {
background-color: #fff !important; }
.btn > .caret, .comment-reply-link > .caret,
.form-submit #submit > .caret,
.dropup > .btn > .caret,
.dropup > .comment-reply-link > .caret,
.form-submit .dropup > #submit > .caret {
border-top-color: #000 !important; }
.label {
border: 1px solid #000; }
.table {
border-collapse: collapse !important; }
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important; } }
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
html {
font-size: 62.5%;
-<API key>: transparent; }
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.42857;
color: #333333;
background-color: #fff; }
input,
button,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit; }
a {
color: #428bca;
text-decoration: none; }
a:hover, a:focus {
color: #2a6496;
text-decoration: underline; }
a:focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px; }
figure {
margin: 0; }
img {
vertical-align: middle; }
.img-responsive {
display: block;
max-width: 100%;
height: auto; }
.img-rounded {
border-radius: 6px; }
.img-thumbnail {
padding: 4px;
line-height: 1.42857;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: 100%;
height: auto; }
.img-circle {
border-radius: 50%; }
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eeeeee; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit; }
h1 small,
h1 .small, h2 small,
h2 .small, h3 small,
h3 .small, h4 small,
h4 .small, h5 small,
h5 .small, h6 small,
h6 .small,
.h1 small,
.h1 .small, .h2 small,
.h2 .small, .h3 small,
.h3 .small, .h4 small,
.h4 .small, .h5 small,
.h5 .small, .h6 small,
.h6 .small {
font-weight: normal;
line-height: 1;
color: #999999; }
h1, .h1,
h2, .h2,
h3, .h3 {
margin-top: 20px;
margin-bottom: 10px; }
h1 small,
h1 .small, .h1 small,
.h1 .small,
h2 small,
h2 .small, .h2 small,
.h2 .small,
h3 small,
h3 .small, .h3 small,
.h3 .small {
font-size: 65%; }
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: 10px;
margin-bottom: 10px; }
h4 small,
h4 .small, .h4 small,
.h4 .small,
h5 small,
h5 .small, .h5 small,
.h5 .small,
h6 small,
h6 .small, .h6 small,
.h6 .small {
font-size: 75%; }
h1, .h1 {
font-size: 36px; }
h2, .h2 {
font-size: 30px; }
h3, .h3 {
font-size: 24px; }
h4, .h4 {
font-size: 18px; }
h5, .h5 {
font-size: 14px; }
h6, .h6 {
font-size: 12px; }
p {
margin: 0 0 10px; }
.lead {
margin-bottom: 20px;
font-size: 16px;
font-weight: 200;
line-height: 1.4; }
@media (min-width: 768px) {
.lead {
font-size: 21px; } }
small,
.small {
font-size: 85%; }
cite {
font-style: normal; }
.text-left {
text-align: left; }
.text-right {
text-align: right; }
.text-center {
text-align: center; }
.text-justify {
text-align: justify; }
.text-muted {
color: #999999; }
.text-primary {
color: #428bca; }
a.text-primary:hover {
color: #3071a9; }
.text-success {
color: #3c763d; }
a.text-success:hover {
color: #2b542c; }
.text-info {
color: #31708f; }
a.text-info:hover {
color: #245269; }
.text-warning {
color: #8a6d3b; }
a.text-warning:hover {
color: #66512c; }
.text-danger {
color: #a94442; }
a.text-danger:hover {
color: #843534; }
.bg-primary {
color: #fff; }
.bg-primary {
background-color: #428bca; }
a.bg-primary:hover {
background-color: #3071a9; }
.bg-success {
background-color: #dff0d8; }
a.bg-success:hover {
background-color: #c1e2b3; }
.bg-info {
background-color: #d9edf7; }
a.bg-info:hover {
background-color: #afd9ee; }
.bg-warning {
background-color: #fcf8e3; }
a.bg-warning:hover {
background-color: #f7ecb5; }
.bg-danger {
background-color: #f2dede; }
a.bg-danger:hover {
background-color: #e4b9b9; }
.page-header {
padding-bottom: 9px;
margin: 40px 0 20px;
border-bottom: 1px solid #eeeeee; }
ul,
ol {
margin-top: 0;
margin-bottom: 10px; }
ul ul,
ul ol,
ol ul,
ol ol {
margin-bottom: 0; }
.list-unstyled, .list-inline {
padding-left: 0;
list-style: none; }
.list-inline {
margin-left: -5px; }
.list-inline > li {
display: inline-block;
padding-left: 5px;
padding-right: 5px; }
dl {
margin-top: 0;
margin-bottom: 20px; }
dt,
dd {
line-height: 1.42857; }
dt {
font-weight: bold; }
dd {
margin-left: 0; }
@media (min-width: 768px) {
.dl-horizontal dt {
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.dl-horizontal dd {
margin-left: 180px; }
.dl-horizontal dd:before, .dl-horizontal dd:after {
content: " ";
display: table; }
.dl-horizontal dd:after {
clear: both; } }
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #999999; }
.initialism {
font-size: 90%;
text-transform: uppercase; }
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eeeeee; }
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0; }
blockquote footer,
blockquote small,
blockquote .small {
display: block;
font-size: 80%;
line-height: 1.42857;
color: #999999; }
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
content: '\2014 \00A0'; }
.blockquote-reverse,
blockquote.pull-right {
padding-right: 15px;
padding-left: 0;
border-right: 5px solid #eeeeee;
border-left: 0;
text-align: right; }
.blockquote-reverse footer:before,
.blockquote-reverse small:before,
.blockquote-reverse .small:before,
blockquote.pull-right footer:before,
blockquote.pull-right small:before,
blockquote.pull-right .small:before {
content: ''; }
.blockquote-reverse footer:after,
.blockquote-reverse small:after,
.blockquote-reverse .small:after,
blockquote.pull-right footer:after,
blockquote.pull-right small:after,
blockquote.pull-right .small:after {
content: '\00A0 \2014'; }
blockquote:before,
blockquote:after {
content: ""; }
address {
margin-bottom: 20px;
font-style: normal;
line-height: 1.42857; }
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace; }
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
white-space: nowrap;
border-radius: 4px; }
kbd {
padding: 2px 4px;
font-size: 90%;
color: #fff;
background-color: #333;
border-radius: 3px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857;
word-break: break-all;
word-wrap: break-word;
color: #333333;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px; }
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0; }
.pre-scrollable {
max-height: 340px;
overflow-y: scroll; }
.container {
margin-right: auto;
margin-left: auto;
padding-left: 20px;
padding-right: 20px; }
.container:before, .container:after {
content: " ";
display: table; }
.container:after {
clear: both; }
@media (min-width: 768px) {
.container {
width: 760px; } }
@media (min-width: 992px) {
.container {
width: 980px; } }
@media (min-width: 1200px) {
.container {
width: 1180px; } }
.container-fluid {
margin-right: auto;
margin-left: auto;
padding-left: 20px;
padding-right: 20px; }
.container-fluid:before, .container-fluid:after {
content: " ";
display: table; }
.container-fluid:after {
clear: both; }
.row {
margin-left: -20px;
margin-right: -20px; }
.row:before, .row:after {
content: " ";
display: table; }
.row:after {
clear: both; }
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-left: 20px;
padding-right: 20px; }
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left; }
.col-xs-1 {
width: 8.33333%; }
.col-xs-2 {
width: 16.66667%; }
.col-xs-3 {
width: 25%; }
.col-xs-4 {
width: 33.33333%; }
.col-xs-5 {
width: 41.66667%; }
.col-xs-6 {
width: 50%; }
.col-xs-7 {
width: 58.33333%; }
.col-xs-8 {
width: 66.66667%; }
.col-xs-9 {
width: 75%; }
.col-xs-10 {
width: 83.33333%; }
.col-xs-11 {
width: 91.66667%; }
.col-xs-12 {
width: 100%; }
.col-xs-pull-0 {
right: 0%; }
.col-xs-pull-1 {
right: 8.33333%; }
.col-xs-pull-2 {
right: 16.66667%; }
.col-xs-pull-3 {
right: 25%; }
.col-xs-pull-4 {
right: 33.33333%; }
.col-xs-pull-5 {
right: 41.66667%; }
.col-xs-pull-6 {
right: 50%; }
.col-xs-pull-7 {
right: 58.33333%; }
.col-xs-pull-8 {
right: 66.66667%; }
.col-xs-pull-9 {
right: 75%; }
.col-xs-pull-10 {
right: 83.33333%; }
.col-xs-pull-11 {
right: 91.66667%; }
.col-xs-pull-12 {
right: 100%; }
.col-xs-push-0 {
left: 0%; }
.col-xs-push-1 {
left: 8.33333%; }
.col-xs-push-2 {
left: 16.66667%; }
.col-xs-push-3 {
left: 25%; }
.col-xs-push-4 {
left: 33.33333%; }
.col-xs-push-5 {
left: 41.66667%; }
.col-xs-push-6 {
left: 50%; }
.col-xs-push-7 {
left: 58.33333%; }
.col-xs-push-8 {
left: 66.66667%; }
.col-xs-push-9 {
left: 75%; }
.col-xs-push-10 {
left: 83.33333%; }
.col-xs-push-11 {
left: 91.66667%; }
.col-xs-push-12 {
left: 100%; }
.col-xs-offset-0 {
margin-left: 0%; }
.col-xs-offset-1 {
margin-left: 8.33333%; }
.col-xs-offset-2 {
margin-left: 16.66667%; }
.col-xs-offset-3 {
margin-left: 25%; }
.col-xs-offset-4 {
margin-left: 33.33333%; }
.col-xs-offset-5 {
margin-left: 41.66667%; }
.col-xs-offset-6 {
margin-left: 50%; }
.col-xs-offset-7 {
margin-left: 58.33333%; }
.col-xs-offset-8 {
margin-left: 66.66667%; }
.col-xs-offset-9 {
margin-left: 75%; }
.col-xs-offset-10 {
margin-left: 83.33333%; }
.col-xs-offset-11 {
margin-left: 91.66667%; }
.col-xs-offset-12 {
margin-left: 100%; }
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left; }
.col-sm-1 {
width: 8.33333%; }
.col-sm-2 {
width: 16.66667%; }
.col-sm-3 {
width: 25%; }
.col-sm-4 {
width: 33.33333%; }
.col-sm-5 {
width: 41.66667%; }
.col-sm-6 {
width: 50%; }
.col-sm-7 {
width: 58.33333%; }
.col-sm-8 {
width: 66.66667%; }
.col-sm-9 {
width: 75%; }
.col-sm-10 {
width: 83.33333%; }
.col-sm-11 {
width: 91.66667%; }
.col-sm-12 {
width: 100%; }
.col-sm-pull-0 {
right: 0%; }
.col-sm-pull-1 {
right: 8.33333%; }
.col-sm-pull-2 {
right: 16.66667%; }
.col-sm-pull-3 {
right: 25%; }
.col-sm-pull-4 {
right: 33.33333%; }
.col-sm-pull-5 {
right: 41.66667%; }
.col-sm-pull-6 {
right: 50%; }
.col-sm-pull-7 {
right: 58.33333%; }
.col-sm-pull-8 {
right: 66.66667%; }
.col-sm-pull-9 {
right: 75%; }
.col-sm-pull-10 {
right: 83.33333%; }
.col-sm-pull-11 {
right: 91.66667%; }
.col-sm-pull-12 {
right: 100%; }
.col-sm-push-0 {
left: 0%; }
.col-sm-push-1 {
left: 8.33333%; }
.col-sm-push-2 {
left: 16.66667%; }
.col-sm-push-3 {
left: 25%; }
.col-sm-push-4 {
left: 33.33333%; }
.col-sm-push-5 {
left: 41.66667%; }
.col-sm-push-6 {
left: 50%; }
.col-sm-push-7 {
left: 58.33333%; }
.col-sm-push-8 {
left: 66.66667%; }
.col-sm-push-9 {
left: 75%; }
.col-sm-push-10 {
left: 83.33333%; }
.col-sm-push-11 {
left: 91.66667%; }
.col-sm-push-12 {
left: 100%; }
.col-sm-offset-0 {
margin-left: 0%; }
.col-sm-offset-1 {
margin-left: 8.33333%; }
.col-sm-offset-2 {
margin-left: 16.66667%; }
.col-sm-offset-3 {
margin-left: 25%; }
.col-sm-offset-4 {
margin-left: 33.33333%; }
.col-sm-offset-5 {
margin-left: 41.66667%; }
.col-sm-offset-6 {
margin-left: 50%; }
.col-sm-offset-7 {
margin-left: 58.33333%; }
.col-sm-offset-8 {
margin-left: 66.66667%; }
.col-sm-offset-9 {
margin-left: 75%; }
.col-sm-offset-10 {
margin-left: 83.33333%; }
.col-sm-offset-11 {
margin-left: 91.66667%; }
.col-sm-offset-12 {
margin-left: 100%; } }
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left; }
.col-md-1 {
width: 8.33333%; }
.col-md-2 {
width: 16.66667%; }
.col-md-3 {
width: 25%; }
.col-md-4 {
width: 33.33333%; }
.col-md-5 {
width: 41.66667%; }
.col-md-6 {
width: 50%; }
.col-md-7 {
width: 58.33333%; }
.col-md-8 {
width: 66.66667%; }
.col-md-9 {
width: 75%; }
.col-md-10 {
width: 83.33333%; }
.col-md-11 {
width: 91.66667%; }
.col-md-12 {
width: 100%; }
.col-md-pull-0 {
right: 0%; }
.col-md-pull-1 {
right: 8.33333%; }
.col-md-pull-2 {
right: 16.66667%; }
.col-md-pull-3 {
right: 25%; }
.col-md-pull-4 {
right: 33.33333%; }
.col-md-pull-5 {
right: 41.66667%; }
.col-md-pull-6 {
right: 50%; }
.col-md-pull-7 {
right: 58.33333%; }
.col-md-pull-8 {
right: 66.66667%; }
.col-md-pull-9 {
right: 75%; }
.col-md-pull-10 {
right: 83.33333%; }
.col-md-pull-11 {
right: 91.66667%; }
.col-md-pull-12 {
right: 100%; }
.col-md-push-0 {
left: 0%; }
.col-md-push-1 {
left: 8.33333%; }
.col-md-push-2 {
left: 16.66667%; }
.col-md-push-3 {
left: 25%; }
.col-md-push-4 {
left: 33.33333%; }
.col-md-push-5 {
left: 41.66667%; }
.col-md-push-6 {
left: 50%; }
.col-md-push-7 {
left: 58.33333%; }
.col-md-push-8 {
left: 66.66667%; }
.col-md-push-9 {
left: 75%; }
.col-md-push-10 {
left: 83.33333%; }
.col-md-push-11 {
left: 91.66667%; }
.col-md-push-12 {
left: 100%; }
.col-md-offset-0 {
margin-left: 0%; }
.col-md-offset-1 {
margin-left: 8.33333%; }
.col-md-offset-2 {
margin-left: 16.66667%; }
.col-md-offset-3 {
margin-left: 25%; }
.col-md-offset-4 {
margin-left: 33.33333%; }
.col-md-offset-5 {
margin-left: 41.66667%; }
.col-md-offset-6 {
margin-left: 50%; }
.col-md-offset-7 {
margin-left: 58.33333%; }
.col-md-offset-8 {
margin-left: 66.66667%; }
.col-md-offset-9 {
margin-left: 75%; }
.col-md-offset-10 {
margin-left: 83.33333%; }
.col-md-offset-11 {
margin-left: 91.66667%; }
.col-md-offset-12 {
margin-left: 100%; } }
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left; }
.col-lg-1 {
width: 8.33333%; }
.col-lg-2 {
width: 16.66667%; }
.col-lg-3 {
width: 25%; }
.col-lg-4 {
width: 33.33333%; }
.col-lg-5 {
width: 41.66667%; }
.col-lg-6 {
width: 50%; }
.col-lg-7 {
width: 58.33333%; }
.col-lg-8 {
width: 66.66667%; }
.col-lg-9 {
width: 75%; }
.col-lg-10 {
width: 83.33333%; }
.col-lg-11 {
width: 91.66667%; }
.col-lg-12 {
width: 100%; }
.col-lg-pull-0 {
right: 0%; }
.col-lg-pull-1 {
right: 8.33333%; }
.col-lg-pull-2 {
right: 16.66667%; }
.col-lg-pull-3 {
right: 25%; }
.col-lg-pull-4 {
right: 33.33333%; }
.col-lg-pull-5 {
right: 41.66667%; }
.col-lg-pull-6 {
right: 50%; }
.col-lg-pull-7 {
right: 58.33333%; }
.col-lg-pull-8 {
right: 66.66667%; }
.col-lg-pull-9 {
right: 75%; }
.col-lg-pull-10 {
right: 83.33333%; }
.col-lg-pull-11 {
right: 91.66667%; }
.col-lg-pull-12 {
right: 100%; }
.col-lg-push-0 {
left: 0%; }
.col-lg-push-1 {
left: 8.33333%; }
.col-lg-push-2 {
left: 16.66667%; }
.col-lg-push-3 {
left: 25%; }
.col-lg-push-4 {
left: 33.33333%; }
.col-lg-push-5 {
left: 41.66667%; }
.col-lg-push-6 {
left: 50%; }
.col-lg-push-7 {
left: 58.33333%; }
.col-lg-push-8 {
left: 66.66667%; }
.col-lg-push-9 {
left: 75%; }
.col-lg-push-10 {
left: 83.33333%; }
.col-lg-push-11 {
left: 91.66667%; }
.col-lg-push-12 {
left: 100%; }
.col-lg-offset-0 {
margin-left: 0%; }
.col-lg-offset-1 {
margin-left: 8.33333%; }
.col-lg-offset-2 {
margin-left: 16.66667%; }
.col-lg-offset-3 {
margin-left: 25%; }
.col-lg-offset-4 {
margin-left: 33.33333%; }
.col-lg-offset-5 {
margin-left: 41.66667%; }
.col-lg-offset-6 {
margin-left: 50%; }
.col-lg-offset-7 {
margin-left: 58.33333%; }
.col-lg-offset-8 {
margin-left: 66.66667%; }
.col-lg-offset-9 {
margin-left: 75%; }
.col-lg-offset-10 {
margin-left: 83.33333%; }
.col-lg-offset-11 {
margin-left: 91.66667%; }
.col-lg-offset-12 {
margin-left: 100%; } }
table {
max-width: 100%;
background-color: transparent; }
th {
text-align: left; }
.table {
width: 100%;
margin-bottom: 20px; }
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.42857;
vertical-align: top;
border-top: 1px solid #ddd; }
.table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #ddd; }
.table > caption + thead > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > th,
.table > thead:first-child > tr:first-child > td {
border-top: 0; }
.table > tbody + tbody {
border-top: 2px solid #ddd; }
.table .table {
background-color: #fff; }
.table-condensed > thead > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > tfoot > tr > td {
padding: 5px; }
.table-bordered {
border: 1px solid #ddd; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > tfoot > tr > td {
border: 1px solid #ddd; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px; }
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
background-color: #f9f9f9; }
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
background-color: #f5f5f5; }
table col[class*="col-"] {
position: static;
float: none;
display: table-column; }
table td[class*="col-"],
table th[class*="col-"] {
position: static;
float: none;
display: table-cell; }
.table > thead > tr > td.active,
.table > thead > tr > th.active, .table > thead > tr.active > td, .table > thead > tr.active > th,
.table > tbody > tr > td.active,
.table > tbody > tr > th.active,
.table > tbody > tr.active > td,
.table > tbody > tr.active > th,
.table > tfoot > tr > td.active,
.table > tfoot > tr > th.active,
.table > tfoot > tr.active > td,
.table > tfoot > tr.active > th {
background-color: #f5f5f5; }
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr.active:hover > th {
background-color: #e8e8e8; }
.table > thead > tr > td.success,
.table > thead > tr > th.success, .table > thead > tr.success > td, .table > thead > tr.success > th,
.table > tbody > tr > td.success,
.table > tbody > tr > th.success,
.table > tbody > tr.success > td,
.table > tbody > tr.success > th,
.table > tfoot > tr > td.success,
.table > tfoot > tr > th.success,
.table > tfoot > tr.success > td,
.table > tfoot > tr.success > th {
background-color: #dff0d8; }
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th {
background-color: #d0e9c6; }
.table > thead > tr > td.info,
.table > thead > tr > th.info, .table > thead > tr.info > td, .table > thead > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr > th.info,
.table > tbody > tr.info > td,
.table > tbody > tr.info > th,
.table > tfoot > tr > td.info,
.table > tfoot > tr > th.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr.info > th {
background-color: #d9edf7; }
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr.info:hover > th {
background-color: #c4e3f3; }
.table > thead > tr > td.warning,
.table > thead > tr > th.warning, .table > thead > tr.warning > td, .table > thead > tr.warning > th,
.table > tbody > tr > td.warning,
.table > tbody > tr > th.warning,
.table > tbody > tr.warning > td,
.table > tbody > tr.warning > th,
.table > tfoot > tr > td.warning,
.table > tfoot > tr > th.warning,
.table > tfoot > tr.warning > td,
.table > tfoot > tr.warning > th {
background-color: #fcf8e3; }
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th {
background-color: #faf2cc; }
.table > thead > tr > td.danger,
.table > thead > tr > th.danger, .table > thead > tr.danger > td, .table > thead > tr.danger > th,
.table > tbody > tr > td.danger,
.table > tbody > tr > th.danger,
.table > tbody > tr.danger > td,
.table > tbody > tr.danger > th,
.table > tfoot > tr > td.danger,
.table > tfoot > tr > th.danger,
.table > tfoot > tr.danger > td,
.table > tfoot > tr.danger > th {
background-color: #f2dede; }
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th {
background-color: #ebcccc; }
@media (max-width: 767px) {
.table-responsive {
width: 100%;
margin-bottom: 15px;
overflow-y: hidden;
overflow-x: scroll;
-ms-overflow-style: -<API key>;
border: 1px solid #ddd;
-<API key>: touch; }
.table-responsive > .table {
margin-bottom: 0; }
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > tfoot > tr > td {
white-space: nowrap; }
.table-responsive > .table-bordered {
border: 0; }
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0; }
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0; }
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0; } }
fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0; }
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 20px;
font-size: 21px;
line-height: inherit;
color: #333333;
border: 0;
border-bottom: 1px solid #e5e5e5; }
label {
display: inline-block;
margin-bottom: 5px;
font-weight: bold; }
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
input[type="radio"],
input[type="checkbox"] {
margin: 4px 0 0;
margin-top: 1px \9;
/* IE8-9 */
line-height: normal; }
input[type="file"] {
display: block; }
input[type="range"] {
display: block;
width: 100%; }
select[multiple],
select[size] {
height: auto; }
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px; }
output {
display: block;
padding-top: 7px;
font-size: 14px;
line-height: 1.42857;
color: #555555; }
.form-control {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #555555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; }
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); }
.form-control::-moz-placeholder {
color: #999999;
opacity: 1; }
.form-control:-<API key> {
color: #999999; }
.form-control::-<API key> {
color: #999999; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
cursor: not-allowed;
background-color: #eeeeee;
opacity: 1; }
textarea.form-control {
height: auto; }
input[type="search"] {
-webkit-appearance: none; }
input[type="date"] {
line-height: 34px; }
.form-group {
margin-bottom: 15px; }
.radio,
.checkbox {
display: block;
min-height: 20px;
margin-top: 10px;
margin-bottom: 10px;
padding-left: 20px; }
.radio label,
.checkbox label {
display: inline;
font-weight: normal;
cursor: pointer; }
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
float: left;
margin-left: -20px; }
.radio + .radio,
.checkbox + .checkbox {
margin-top: -5px; }
.radio-inline,
.checkbox-inline {
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
vertical-align: middle;
font-weight: normal;
cursor: pointer; }
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
margin-top: 0;
margin-left: 10px; }
input[type="radio"][disabled], fieldset[disabled] input[type="radio"],
input[type="checkbox"][disabled], fieldset[disabled]
input[type="checkbox"],
.radio[disabled], fieldset[disabled]
.radio,
.radio-inline[disabled], fieldset[disabled]
.radio-inline,
.checkbox[disabled], fieldset[disabled]
.checkbox,
.checkbox-inline[disabled], fieldset[disabled]
.checkbox-inline {
cursor: not-allowed; }
.input-sm, .input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn,
.input-group-sm > .input-group-btn > .comment-reply-link,
.form-submit .input-group-sm > .input-group-btn > #submit {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px; }
select.input-sm, .input-group-sm > select.form-control,
.input-group-sm > select.input-group-addon,
.input-group-sm > .input-group-btn > select.btn,
.input-group-sm > .input-group-btn > select.comment-reply-link,
.form-submit .input-group-sm > .input-group-btn > select#submit {
height: 30px;
line-height: 30px; }
textarea.input-sm, .input-group-sm > textarea.form-control,
.input-group-sm > textarea.input-group-addon,
.input-group-sm > .input-group-btn > textarea.btn,
.input-group-sm > .input-group-btn > textarea.comment-reply-link,
.form-submit .input-group-sm > .input-group-btn > textarea#submit,
select[multiple].input-sm,
.input-group-sm > select[multiple].form-control,
.input-group-sm > select[multiple].input-group-addon,
.input-group-sm > .input-group-btn > select[multiple].btn,
.input-group-sm > .input-group-btn > select[multiple].comment-reply-link,
.form-submit .input-group-sm > .input-group-btn > select[multiple]#submit {
height: auto; }
.input-lg, .input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn,
.input-group-lg > .input-group-btn > .comment-reply-link,
.form-submit .input-group-lg > .input-group-btn > #submit {
height: 46px;
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px; }
select.input-lg, .input-group-lg > select.form-control,
.input-group-lg > select.input-group-addon,
.input-group-lg > .input-group-btn > select.btn,
.input-group-lg > .input-group-btn > select.comment-reply-link,
.form-submit .input-group-lg > .input-group-btn > select#submit {
height: 46px;
line-height: 46px; }
textarea.input-lg, .input-group-lg > textarea.form-control,
.input-group-lg > textarea.input-group-addon,
.input-group-lg > .input-group-btn > textarea.btn,
.input-group-lg > .input-group-btn > textarea.comment-reply-link,
.form-submit .input-group-lg > .input-group-btn > textarea#submit,
select[multiple].input-lg,
.input-group-lg > select[multiple].form-control,
.input-group-lg > select[multiple].input-group-addon,
.input-group-lg > .input-group-btn > select[multiple].btn,
.input-group-lg > .input-group-btn > select[multiple].comment-reply-link,
.form-submit .input-group-lg > .input-group-btn > select[multiple]#submit {
height: auto; }
.has-feedback {
position: relative; }
.has-feedback .form-control {
padding-right: 42.5px; }
.has-feedback .<API key> {
position: absolute;
top: 25px;
right: 0;
display: block;
width: 34px;
height: 34px;
line-height: 34px;
text-align: center; }
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline {
color: #3c763d; }
.has-success .form-control {
border-color: #3c763d;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); }
.has-success .form-control:focus {
border-color: #2b542c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; }
.has-success .input-group-addon {
color: #3c763d;
border-color: #3c763d;
background-color: #dff0d8; }
.has-success .<API key> {
color: #3c763d; }
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline {
color: #8a6d3b; }
.has-warning .form-control {
border-color: #8a6d3b;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); }
.has-warning .form-control:focus {
border-color: #66512c;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; }
.has-warning .input-group-addon {
color: #8a6d3b;
border-color: #8a6d3b;
background-color: #fcf8e3; }
.has-warning .<API key> {
color: #8a6d3b; }
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline {
color: #a94442; }
.has-error .form-control {
border-color: #a94442;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); }
.has-error .form-control:focus {
border-color: #843534;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; }
.has-error .input-group-addon {
color: #a94442;
border-color: #a94442;
background-color: #f2dede; }
.has-error .<API key> {
color: #a94442; }
.form-control-static {
margin-bottom: 0; }
.help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #737373; }
@media (min-width: 768px) {
.form-inline .form-group, .navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle; }
.form-inline .form-control, .navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle; }
.form-inline .input-group > .form-control, .navbar-form .input-group > .form-control {
width: 100%; }
.form-inline .control-label, .navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle; }
.form-inline .radio, .navbar-form .radio,
.form-inline .checkbox,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
vertical-align: middle; }
.form-inline .radio input[type="radio"], .navbar-form .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"],
.navbar-form .checkbox input[type="checkbox"] {
float: none;
margin-left: 0; }
.form-inline .has-feedback .<API key>, .navbar-form .has-feedback .<API key> {
top: 0; } }
.form-horizontal .control-label,
.form-horizontal .radio,
.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
margin-top: 0;
margin-bottom: 0;
padding-top: 7px; }
.form-horizontal .radio,
.form-horizontal .checkbox {
min-height: 27px; }
.form-horizontal .form-group {
margin-left: -20px;
margin-right: -20px; }
.form-horizontal .form-group:before, .form-horizontal .form-group:after {
content: " ";
display: table; }
.form-horizontal .form-group:after {
clear: both; }
.form-horizontal .form-control-static {
padding-top: 7px; }
@media (min-width: 768px) {
.form-horizontal .control-label {
text-align: right; } }
.form-horizontal .has-feedback .<API key> {
top: 0;
right: 20px; }
.btn, .comment-reply-link,
.form-submit #submit {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.btn:focus, .comment-reply-link:focus,
.form-submit #submit:focus, .btn:active:focus, .comment-reply-link:active:focus,
.form-submit #submit:active:focus, .btn.active:focus, .active.comment-reply-link:focus,
.form-submit .active#submit:focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px; }
.btn:hover, .comment-reply-link:hover,
.form-submit #submit:hover, .btn:focus, .comment-reply-link:focus,
.form-submit #submit:focus {
color: #333;
text-decoration: none; }
.btn:active, .comment-reply-link:active,
.form-submit #submit:active, .btn.active, .active.comment-reply-link,
.form-submit .active#submit {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }
.btn.disabled, .disabled.comment-reply-link,
.form-submit .disabled#submit, .btn[disabled], [disabled].comment-reply-link,
.form-submit [disabled]#submit, fieldset[disabled] .btn, fieldset[disabled] .comment-reply-link,
fieldset[disabled] .form-submit #submit,
.form-submit fieldset[disabled] #submit {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none; }
.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc; }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active {
color: #333;
background-color: #ebebeb;
border-color: #adadad; }
.open .btn-default.dropdown-toggle {
color: #333;
background-color: #ebebeb;
border-color: #adadad; }
.btn-default:active, .btn-default.active {
background-image: none; }
.open .btn-default.dropdown-toggle {
background-image: none; }
.btn-default.disabled, .btn-default.disabled:hover, .btn-default.disabled:focus, .btn-default.disabled:active, .btn-default.disabled.active, .btn-default[disabled], .btn-default[disabled]:hover, .btn-default[disabled]:focus, .btn-default[disabled]:active, .btn-default[disabled].active, fieldset[disabled] .btn-default, fieldset[disabled] .btn-default:hover, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:active, fieldset[disabled] .btn-default.active {
background-color: #fff;
border-color: #ccc; }
.btn-default .badge {
color: #fff;
background-color: #333; }
.btn-primary {
color: #fff;
background-color: #428bca;
border-color: #357ebd; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
color: #fff;
background-color: #3276b1;
border-color: #285e8e; }
.open .btn-primary.dropdown-toggle {
color: #fff;
background-color: #3276b1;
border-color: #285e8e; }
.btn-primary:active, .btn-primary.active {
background-image: none; }
.open .btn-primary.dropdown-toggle {
background-image: none; }
.btn-primary.disabled, .btn-primary.disabled:hover, .btn-primary.disabled:focus, .btn-primary.disabled:active, .btn-primary.disabled.active, .btn-primary[disabled], .btn-primary[disabled]:hover, .btn-primary[disabled]:focus, .btn-primary[disabled]:active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary, fieldset[disabled] .btn-primary:hover, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary:active, fieldset[disabled] .btn-primary.active {
background-color: #428bca;
border-color: #357ebd; }
.btn-primary .badge {
color: #428bca;
background-color: #fff; }
.btn-success {
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active {
color: #fff;
background-color: #47a447;
border-color: #398439; }
.open .btn-success.dropdown-toggle {
color: #fff;
background-color: #47a447;
border-color: #398439; }
.btn-success:active, .btn-success.active {
background-image: none; }
.open .btn-success.dropdown-toggle {
background-image: none; }
.btn-success.disabled, .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled:active, .btn-success.disabled.active, .btn-success[disabled], .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled]:active, .btn-success[disabled].active, fieldset[disabled] .btn-success, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:active, fieldset[disabled] .btn-success.active {
background-color: #5cb85c;
border-color: #4cae4c; }
.btn-success .badge {
color: #5cb85c;
background-color: #fff; }
.btn-info {
color: #fff;
background-color: #5bc0de;
border-color: #46b8da; }
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active {
color: #fff;
background-color: #39b3d7;
border-color: #269abc; }
.open .btn-info.dropdown-toggle {
color: #fff;
background-color: #39b3d7;
border-color: #269abc; }
.btn-info:active, .btn-info.active {
background-image: none; }
.open .btn-info.dropdown-toggle {
background-image: none; }
.btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info[disabled].active, fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active {
background-color: #5bc0de;
border-color: #46b8da; }
.btn-info .badge {
color: #5bc0de;
background-color: #fff; }
.btn-warning {
color: #fff;
background-color: #f0ad4e;
border-color: #eea236; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active {
color: #fff;
background-color: #ed9c28;
border-color: #d58512; }
.open .btn-warning.dropdown-toggle {
color: #fff;
background-color: #ed9c28;
border-color: #d58512; }
.btn-warning:active, .btn-warning.active {
background-image: none; }
.open .btn-warning.dropdown-toggle {
background-image: none; }
.btn-warning.disabled, .btn-warning.disabled:hover, .btn-warning.disabled:focus, .btn-warning.disabled:active, .btn-warning.disabled.active, .btn-warning[disabled], .btn-warning[disabled]:hover, .btn-warning[disabled]:focus, .btn-warning[disabled]:active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning, fieldset[disabled] .btn-warning:hover, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning:active, fieldset[disabled] .btn-warning.active {
background-color: #f0ad4e;
border-color: #eea236; }
.btn-warning .badge {
color: #f0ad4e;
background-color: #fff; }
.btn-danger {
color: #fff;
background-color: #d9534f;
border-color: #d43f3a; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active {
color: #fff;
background-color: #d2322d;
border-color: #ac2925; }
.open .btn-danger.dropdown-toggle {
color: #fff;
background-color: #d2322d;
border-color: #ac2925; }
.btn-danger:active, .btn-danger.active {
background-image: none; }
.open .btn-danger.dropdown-toggle {
background-image: none; }
.btn-danger.disabled, .btn-danger.disabled:hover, .btn-danger.disabled:focus, .btn-danger.disabled:active, .btn-danger.disabled.active, .btn-danger[disabled], .btn-danger[disabled]:hover, .btn-danger[disabled]:focus, .btn-danger[disabled]:active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger, fieldset[disabled] .btn-danger:hover, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger:active, fieldset[disabled] .btn-danger.active {
background-color: #d9534f;
border-color: #d43f3a; }
.btn-danger .badge {
color: #d9534f;
background-color: #fff; }
.btn-link {
color: #428bca;
font-weight: normal;
cursor: pointer;
border-radius: 0; }
.btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link {
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none; }
.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active {
border-color: transparent; }
.btn-link:hover, .btn-link:focus {
color: #2a6496;
text-decoration: underline;
background-color: transparent; }
.btn-link[disabled]:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:hover, fieldset[disabled] .btn-link:focus {
color: #999999;
text-decoration: none; }
.btn-lg, .btn-group-lg > .btn, .btn-group-lg > .comment-reply-link,
.form-submit .btn-group-lg > #submit {
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px; }
.btn-sm, .btn-group-sm > .btn, .btn-group-sm > .comment-reply-link,
.form-submit .btn-group-sm > #submit {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px; }
.btn-xs, .btn-group-xs > .btn, .btn-group-xs > .comment-reply-link,
.form-submit .btn-group-xs > #submit {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px; }
.btn-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0; }
.btn-block + .btn-block {
margin-top: 5px; }
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%; }
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
transition: opacity 0.15s linear; }
.fade.in {
opacity: 1; }
.collapse {
display: none; }
.collapse.in {
display: block; }
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
transition: height 0.35s ease; }
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent; }
.dropdown {
position: relative; }
.dropdown-toggle:focus {
outline: 0; }
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box; }
.dropdown-menu.pull-right {
right: 0;
left: auto; }
.dropdown-menu .divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5; }
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.42857;
color: #333333;
white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
text-decoration: none;
color: #262626;
background-color: #f5f5f5; }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
color: #fff;
text-decoration: none;
outline: 0;
background-color: #428bca; }
.dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus {
color: #999999; }
.dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
cursor: not-allowed; }
.open > .dropdown-menu {
display: block; }
.open > a {
outline: 0; }
.dropdown-menu-right {
left: auto;
right: 0; }
.dropdown-menu-left {
left: 0;
right: auto; }
.dropdown-header {
display: block;
padding: 3px 20px;
font-size: 12px;
line-height: 1.42857;
color: #999999; }
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990; }
.pull-right > .dropdown-menu {
right: 0;
left: auto; }
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
border-top: 0;
border-bottom: 4px solid;
content: ""; }
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 1px; }
@media (min-width: 768px) {
.navbar-right .dropdown-menu {
right: 0;
left: auto; }
.navbar-right .dropdown-menu-left {
left: 0;
right: auto; } }
.btn-group,
.btn-group-vertical {
position: relative;
display: inline-block;
vertical-align: middle; }
.btn-group > .btn, .btn-group > .comment-reply-link,
.form-submit .btn-group > #submit,
.btn-group-vertical > .btn,
.btn-group-vertical > .comment-reply-link,
.form-submit .btn-group-vertical > #submit {
position: relative;
float: left; }
.btn-group > .btn:hover, .btn-group > .comment-reply-link:hover,
.form-submit .btn-group > #submit:hover, .btn-group > .btn:focus, .btn-group > .comment-reply-link:focus,
.form-submit .btn-group > #submit:focus, .btn-group > .btn:active, .btn-group > .comment-reply-link:active,
.form-submit .btn-group > #submit:active, .btn-group > .btn.active, .btn-group > .active.comment-reply-link,
.form-submit .btn-group > .active#submit,
.btn-group-vertical > .btn:hover,
.btn-group-vertical > .comment-reply-link:hover,
.form-submit .btn-group-vertical > #submit:hover,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .comment-reply-link:focus,
.form-submit .btn-group-vertical > #submit:focus,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .comment-reply-link:active,
.form-submit .btn-group-vertical > #submit:active,
.btn-group-vertical > .btn.active,
.btn-group-vertical > .active.comment-reply-link,
.form-submit .btn-group-vertical > .active#submit {
z-index: 2; }
.btn-group > .btn:focus, .btn-group > .comment-reply-link:focus,
.form-submit .btn-group > #submit:focus,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .comment-reply-link:focus,
.form-submit .btn-group-vertical > #submit:focus {
outline: none; }
.btn-group .btn + .btn, .btn-group .comment-reply-link + .btn,
.btn-group .form-submit #submit + .btn,
.form-submit .btn-group #submit + .btn, .btn-group .btn + .comment-reply-link, .btn-group .comment-reply-link + .comment-reply-link,
.btn-group .form-submit #submit + .comment-reply-link,
.form-submit .btn-group #submit + .comment-reply-link,
.btn-group .form-submit .btn + #submit,
.form-submit .btn-group .btn + #submit,
.btn-group .form-submit .comment-reply-link + #submit,
.form-submit .btn-group .comment-reply-link + #submit,
.btn-group .form-submit #submit + #submit,
.form-submit .btn-group #submit + #submit,
.btn-group .btn + .btn-group,
.btn-group .comment-reply-link + .btn-group,
.btn-group .form-submit #submit + .btn-group,
.form-submit .btn-group #submit + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .comment-reply-link,
.btn-group .form-submit .btn-group + #submit,
.form-submit .btn-group .btn-group + #submit,
.btn-group .btn-group + .btn-group {
margin-left: -1px; }
.btn-toolbar {
margin-left: -5px; }
.btn-toolbar:before, .btn-toolbar:after {
content: " ";
display: table; }
.btn-toolbar:after {
clear: both; }
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
float: left; }
.btn-toolbar > .btn, .btn-toolbar > .comment-reply-link,
.form-submit .btn-toolbar > #submit,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
margin-left: 5px; }
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle), .btn-group > .comment-reply-link:not(:first-child):not(:last-child):not(.dropdown-toggle),
.form-submit .btn-group > #submit:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0; }
.btn-group > .btn:first-child, .btn-group > .comment-reply-link:first-child,
.form-submit .btn-group > #submit:first-child {
margin-left: 0; }
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle), .btn-group > .comment-reply-link:first-child:not(:last-child):not(.dropdown-toggle),
.form-submit .btn-group > #submit:first-child:not(:last-child):not(.dropdown-toggle) {
<API key>: 0;
<API key>: 0; }
.btn-group > .btn:last-child:not(:first-child), .btn-group > .comment-reply-link:last-child:not(:first-child),
.form-submit .btn-group > #submit:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
<API key>: 0;
<API key>: 0; }
.btn-group > .btn-group {
float: left; }
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn, .btn-group > .btn-group:not(:first-child):not(:last-child) > .comment-reply-link,
.form-submit .btn-group > .btn-group:not(:first-child):not(:last-child) > #submit {
border-radius: 0; }
.btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .comment-reply-link:last-child,
.form-submit .btn-group > .btn-group:first-child > #submit:last-child,
.btn-group > .btn-group:first-child > .dropdown-toggle {
<API key>: 0;
<API key>: 0; }
.btn-group > .btn-group:last-child > .btn:first-child, .btn-group > .btn-group:last-child > .comment-reply-link:first-child,
.form-submit .btn-group > .btn-group:last-child > #submit:first-child {
<API key>: 0;
<API key>: 0; }
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0; }
.btn-group > .btn + .dropdown-toggle, .btn-group > .comment-reply-link + .dropdown-toggle,
.form-submit .btn-group > #submit + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px; }
.btn-group > .btn-lg + .dropdown-toggle, .btn-group-lg.btn-group > .btn + .dropdown-toggle, .btn-group-lg.btn-group > .comment-reply-link + .dropdown-toggle,
.form-submit .btn-group-lg.btn-group > #submit + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px; }
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }
.btn-group.open .dropdown-toggle.btn-link {
-webkit-box-shadow: none;
box-shadow: none; }
.btn .caret, .comment-reply-link .caret,
.form-submit #submit .caret {
margin-left: 0; }
.btn-lg .caret, .btn-group-lg > .btn .caret, .btn-group-lg > .comment-reply-link .caret,
.form-submit .btn-group-lg > #submit .caret {
border-width: 5px 5px 0;
border-bottom-width: 0; }
.dropup .btn-lg .caret, .dropup .btn-group-lg > .btn .caret, .dropup .btn-group-lg > .comment-reply-link .caret,
.dropup .form-submit .btn-group-lg > #submit .caret,
.form-submit .dropup .btn-group-lg > #submit .caret {
border-width: 0 5px 5px; }
.btn-group-vertical > .btn, .btn-group-vertical > .comment-reply-link,
.form-submit .btn-group-vertical > #submit,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn,
.btn-group-vertical > .btn-group > .comment-reply-link,
.form-submit .btn-group-vertical > .btn-group > #submit {
display: block;
float: none;
width: 100%;
max-width: 100%; }
.btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after {
content: " ";
display: table; }
.btn-group-vertical > .btn-group:after {
clear: both; }
.btn-group-vertical > .btn-group > .btn, .btn-group-vertical > .btn-group > .comment-reply-link,
.form-submit .btn-group-vertical > .btn-group > #submit {
float: none; }
.btn-group-vertical > .btn + .btn, .btn-group-vertical > .comment-reply-link + .btn,
.form-submit .btn-group-vertical > #submit + .btn, .btn-group-vertical > .btn + .comment-reply-link, .btn-group-vertical > .comment-reply-link + .comment-reply-link,
.form-submit .btn-group-vertical > #submit + .comment-reply-link,
.form-submit .btn-group-vertical > .btn + #submit,
.form-submit .btn-group-vertical > .comment-reply-link + #submit,
.form-submit .btn-group-vertical > #submit + #submit,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .comment-reply-link + .btn-group,
.form-submit .btn-group-vertical > #submit + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .comment-reply-link,
.form-submit .btn-group-vertical > .btn-group + #submit,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0; }
.btn-group-vertical > .btn:not(:first-child):not(:last-child), .btn-group-vertical > .comment-reply-link:not(:first-child):not(:last-child),
.form-submit .btn-group-vertical > #submit:not(:first-child):not(:last-child) {
border-radius: 0; }
.btn-group-vertical > .btn:first-child:not(:last-child), .btn-group-vertical > .comment-reply-link:first-child:not(:last-child),
.form-submit .btn-group-vertical > #submit:first-child:not(:last-child) {
<API key>: 4px;
<API key>: 0;
<API key>: 0; }
.btn-group-vertical > .btn:last-child:not(:first-child), .btn-group-vertical > .comment-reply-link:last-child:not(:first-child),
.form-submit .btn-group-vertical > #submit:last-child:not(:first-child) {
<API key>: 4px;
<API key>: 0;
<API key>: 0; }
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn, .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .comment-reply-link,
.form-submit .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > #submit {
border-radius: 0; }
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .comment-reply-link:last-child,
.form-submit .btn-group-vertical > .btn-group:first-child:not(:last-child) > #submit:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0; }
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child, .btn-group-vertical > .btn-group:last-child:not(:first-child) > .comment-reply-link:first-child,
.form-submit .btn-group-vertical > .btn-group:last-child:not(:first-child) > #submit:first-child {
<API key>: 0;
<API key>: 0; }
.btn-group-justified {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate; }
.btn-group-justified > .btn, .btn-group-justified > .comment-reply-link,
.form-submit .btn-group-justified > #submit,
.btn-group-justified > .btn-group {
float: none;
display: table-cell;
width: 1%; }
.btn-group-justified > .btn-group .btn, .btn-group-justified > .btn-group .comment-reply-link,
.btn-group-justified > .btn-group .form-submit #submit,
.form-submit .btn-group-justified > .btn-group #submit {
width: 100%; }
[data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .comment-reply-link > input[type="radio"],
.form-submit [data-toggle="buttons"] > #submit > input[type="radio"],
[data-toggle="buttons"] > .btn > input[type="checkbox"],
[data-toggle="buttons"] > .comment-reply-link > input[type="checkbox"],
.form-submit [data-toggle="buttons"] > #submit > input[type="checkbox"] {
display: none; }
.input-group {
position: relative;
display: table;
border-collapse: separate; }
.input-group[class*="col-"] {
float: none;
padding-left: 0;
padding-right: 0; }
.input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0; }
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell; }
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0; }
.input-group-addon,
.input-group-btn {
width: 1%;
white-space: nowrap;
vertical-align: middle; }
.input-group-addon {
padding: 6px 12px;
font-size: 14px;
font-weight: normal;
line-height: 1;
color: #555555;
text-align: center;
background-color: #eeeeee;
border: 1px solid #ccc;
border-radius: 4px; }
.input-group-addon.input-sm,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .input-group-addon.btn,
.input-group-sm > .input-group-btn > .input-group-addon.comment-reply-link,
.form-submit .input-group-sm > .input-group-btn > .input-group-addon#submit {
padding: 5px 10px;
font-size: 12px;
border-radius: 3px; }
.input-group-addon.input-lg,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .input-group-addon.btn,
.input-group-lg > .input-group-btn > .input-group-addon.comment-reply-link,
.form-submit .input-group-lg > .input-group-btn > .input-group-addon#submit {
padding: 10px 16px;
font-size: 18px;
border-radius: 6px; }
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0; }
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .comment-reply-link,
.form-submit .input-group-btn:first-child > #submit,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .btn-group > .comment-reply-link,
.form-submit .input-group-btn:first-child > .btn-group > #submit,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .comment-reply-link:not(:last-child):not(.dropdown-toggle),
.form-submit .input-group-btn:last-child > #submit:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn,
.input-group-btn:last-child > .btn-group:not(:last-child) > .comment-reply-link,
.form-submit .input-group-btn:last-child > .btn-group:not(:last-child) > #submit {
<API key>: 0;
<API key>: 0; }
.input-group-addon:first-child {
border-right: 0; }
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .comment-reply-link,
.form-submit .input-group-btn:last-child > #submit,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .btn-group > .comment-reply-link,
.form-submit .input-group-btn:last-child > .btn-group > #submit,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .comment-reply-link:not(:first-child),
.form-submit .input-group-btn:first-child > #submit:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn,
.input-group-btn:first-child > .btn-group:not(:first-child) > .comment-reply-link,
.form-submit .input-group-btn:first-child > .btn-group:not(:first-child) > #submit {
<API key>: 0;
<API key>: 0; }
.input-group-addon:last-child {
border-left: 0; }
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap; }
.input-group-btn > .btn, .input-group-btn > .comment-reply-link,
.form-submit .input-group-btn > #submit {
position: relative; }
.input-group-btn > .btn + .btn, .input-group-btn > .comment-reply-link + .btn,
.form-submit .input-group-btn > #submit + .btn, .input-group-btn > .btn + .comment-reply-link, .input-group-btn > .comment-reply-link + .comment-reply-link,
.form-submit .input-group-btn > #submit + .comment-reply-link,
.form-submit .input-group-btn > .btn + #submit,
.form-submit .input-group-btn > .comment-reply-link + #submit,
.form-submit .input-group-btn > #submit + #submit {
margin-left: -1px; }
.input-group-btn > .btn:hover, .input-group-btn > .comment-reply-link:hover,
.form-submit .input-group-btn > #submit:hover, .input-group-btn > .btn:focus, .input-group-btn > .comment-reply-link:focus,
.form-submit .input-group-btn > #submit:focus, .input-group-btn > .btn:active, .input-group-btn > .comment-reply-link:active,
.form-submit .input-group-btn > #submit:active {
z-index: 2; }
.input-group-btn:first-child > .btn, .input-group-btn:first-child > .comment-reply-link,
.form-submit .input-group-btn:first-child > #submit,
.input-group-btn:first-child > .btn-group {
margin-right: -1px; }
.input-group-btn:last-child > .btn, .input-group-btn:last-child > .comment-reply-link,
.form-submit .input-group-btn:last-child > #submit,
.input-group-btn:last-child > .btn-group {
margin-left: -1px; }
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none; }
.nav:before, .nav:after {
content: " ";
display: table; }
.nav:after {
clear: both; }
.nav > li {
position: relative;
display: block; }
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee; }
.nav > li.disabled > a {
color: #999999; }
.nav > li.disabled > a:hover, .nav > li.disabled > a:focus {
color: #999999;
text-decoration: none;
background-color: transparent;
cursor: not-allowed; }
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
background-color: #eeeeee;
border-color: #428bca; }
.nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5; }
.nav > li > a > img {
max-width: none; }
.nav-tabs {
border-bottom: 1px solid #ddd; }
.nav-tabs > li {
float: left;
margin-bottom: -1px; }
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.42857;
border: 1px solid transparent;
border-radius: 4px 4px 0 0; }
.nav-tabs > li > a:hover {
border-color: #eeeeee #eeeeee #ddd; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
color: #555555;
background-color: #fff;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default; }
.nav-pills > li {
float: left; }
.nav-pills > li > a {
border-radius: 4px; }
.nav-pills > li + li {
margin-left: 2px; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
color: #fff;
background-color: #428bca; }
.nav-stacked > li {
float: none; }
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0; }
.nav-justified, .nav-tabs.nav-justified {
width: 100%; }
.nav-justified > li, .nav-tabs.nav-justified > li {
float: none; }
.nav-justified > li > a, .nav-tabs.nav-justified > li > a {
text-align: center;
margin-bottom: 5px; }
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto; }
@media (min-width: 768px) {
.nav-justified > li, .nav-tabs.nav-justified > li {
display: table-cell;
width: 1%; }
.nav-justified > li > a, .nav-tabs.nav-justified > li > a {
margin-bottom: 0; } }
.nav-tabs-justified, .nav-tabs.nav-justified {
border-bottom: 0; }
.nav-tabs-justified > li > a, .nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 4px; }
.nav-tabs-justified > .active > a, .nav-tabs.nav-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid #ddd; }
@media (min-width: 768px) {
.nav-tabs-justified > li > a, .nav-tabs.nav-justified > li > a {
border-bottom: 1px solid #ddd;
border-radius: 4px 4px 0 0; }
.nav-tabs-justified > .active > a, .nav-tabs.nav-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #fff; } }
.tab-content > .tab-pane {
display: none; }
.tab-content > .active {
display: block; }
.nav-tabs .dropdown-menu {
margin-top: -1px;
<API key>: 0;
<API key>: 0; }
.navbar {
position: relative;
min-height: 50px;
margin-bottom: 20px;
border: 1px solid transparent; }
.navbar:before, .navbar:after {
content: " ";
display: table; }
.navbar:after {
clear: both; }
@media (min-width: 768px) {
.navbar {
border-radius: 4px; } }
.navbar-header:before, .navbar-header:after {
content: " ";
display: table; }
.navbar-header:after {
clear: both; }
@media (min-width: 768px) {
.navbar-header {
float: left; } }
.navbar-collapse {
max-height: 340px;
overflow-x: visible;
padding-right: 20px;
padding-left: 20px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-<API key>: touch; }
.navbar-collapse:before, .navbar-collapse:after {
content: " ";
display: table; }
.navbar-collapse:after {
clear: both; }
.navbar-collapse.in {
overflow-y: auto; }
@media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
box-shadow: none; }
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important; }
.navbar-collapse.in {
overflow-y: visible; }
.navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0; } }
.container > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-header,
.container-fluid > .navbar-collapse {
margin-right: -20px;
margin-left: -20px; }
@media (min-width: 768px) {
.container > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-header,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0; } }
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px; }
@media (min-width: 768px) {
.navbar-static-top {
border-radius: 0; } }
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030; }
@media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0; } }
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px; }
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0; }
.navbar-brand {
float: left;
padding: 15px 20px;
font-size: 18px;
line-height: 20px;
height: 50px; }
.navbar-brand:hover, .navbar-brand:focus {
text-decoration: none; }
@media (min-width: 768px) {
.navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand {
margin-left: -20px; } }
.navbar-toggle {
position: relative;
float: right;
margin-right: 20px;
padding: 9px 10px;
margin-top: 8px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px; }
.navbar-toggle:focus {
outline: none; }
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px; }
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px; }
@media (min-width: 768px) {
.navbar-toggle {
display: none; } }
.navbar-nav {
margin: 7.5px -20px; }
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px; }
@media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none; }
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px; }
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px; }
.navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none; } }
@media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0; }
.navbar-nav > li {
float: left; }
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px; }
.navbar-nav.navbar-right:last-child {
margin-right: -20px; } }
@media (min-width: 768px) {
.navbar-left {
float: left !important; }
.navbar-right {
float: right !important; } }
.navbar-form {
margin-left: -20px;
margin-right: -20px;
padding: 10px 20px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 8px;
margin-bottom: 8px; }
@media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px; } }
@media (min-width: 768px) {
.navbar-form {
width: auto;
border: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none; }
.navbar-form.navbar-right:last-child {
margin-right: -20px; } }
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
<API key>: 0;
<API key>: 0; }
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
<API key>: 0;
<API key>: 0; }
.navbar-btn {
margin-top: 8px;
margin-bottom: 8px; }
.navbar-btn.btn-sm, .btn-group-sm > .navbar-btn.btn, .btn-group-sm > .navbar-btn.comment-reply-link,
.form-submit .btn-group-sm > .navbar-btn#submit {
margin-top: 10px;
margin-bottom: 10px; }
.navbar-btn.btn-xs, .btn-group-xs > .navbar-btn.btn, .btn-group-xs > .navbar-btn.comment-reply-link,
.form-submit .btn-group-xs > .navbar-btn#submit {
margin-top: 14px;
margin-bottom: 14px; }
.navbar-text {
margin-top: 15px;
margin-bottom: 15px; }
@media (min-width: 768px) {
.navbar-text {
float: left;
margin-left: 20px;
margin-right: 20px; }
.navbar-text.navbar-right:last-child {
margin-right: 0; } }
.navbar-default {
background-color: #f8f8f8;
border-color: #e7e7e7; }
.navbar-default .navbar-brand {
color: #777; }
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
color: #5e5e5e;
background-color: transparent; }
.navbar-default .navbar-text {
color: #777; }
.navbar-default .navbar-nav > li > a {
color: #777; }
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
color: #333;
background-color: transparent; }
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
color: #555;
background-color: #e7e7e7; }
.navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus {
color: #ccc;
background-color: transparent; }
.navbar-default .navbar-toggle {
border-color: #ddd; }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
background-color: #ddd; }
.navbar-default .navbar-toggle .icon-bar {
background-color: #888; }
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: #e7e7e7; }
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
background-color: #e7e7e7;
color: #555; }
@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777; }
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
background-color: transparent; }
.navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #555;
background-color: #e7e7e7; }
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #ccc;
background-color: transparent; } }
.navbar-default .navbar-link {
color: #777; }
.navbar-default .navbar-link:hover {
color: #333; }
.navbar-inverse {
background-color: #222;
border-color: #090909; }
.navbar-inverse .navbar-brand {
color: #999999; }
.navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus {
color: #fff;
background-color: transparent; }
.navbar-inverse .navbar-text {
color: #999999; }
.navbar-inverse .navbar-nav > li > a {
color: #999999; }
.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus {
color: #fff;
background-color: transparent; }
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
color: #fff;
background-color: #090909; }
.navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444;
background-color: transparent; }
.navbar-inverse .navbar-toggle {
border-color: #333; }
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
background-color: #333; }
.navbar-inverse .navbar-toggle .icon-bar {
background-color: #fff; }
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #101010; }
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
background-color: #090909;
color: #fff; }
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: #090909; }
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: #090909; }
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #999999; }
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #fff;
background-color: transparent; }
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #fff;
background-color: #090909; }
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444;
background-color: transparent; } }
.navbar-inverse .navbar-link {
color: #999999; }
.navbar-inverse .navbar-link:hover {
color: #fff; }
.pagination {
display: inline-block;
padding-left: 0;
margin: 20px 0;
border-radius: 4px; }
.pagination > li {
display: inline; }
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 6px 12px;
line-height: 1.42857;
text-decoration: none;
color: #428bca;
background-color: #fff;
border: 1px solid #ddd;
margin-left: -1px; }
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
<API key>: 4px;
<API key>: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
<API key>: 4px;
<API key>: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
color: #2a6496;
background-color: #eeeeee;
border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
z-index: 2;
color: #fff;
background-color: #428bca;
border-color: #428bca;
cursor: default; }
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #999999;
background-color: #fff;
border-color: #ddd;
cursor: not-allowed; }
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 10px 16px;
font-size: 18px; }
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
<API key>: 6px;
<API key>: 6px; }
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
<API key>: 6px;
<API key>: 6px; }
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 5px 10px;
font-size: 12px; }
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
<API key>: 3px;
<API key>: 3px; }
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
<API key>: 3px;
<API key>: 3px; }
.pager {
padding-left: 0;
margin: 20px 0;
list-style: none;
text-align: center; }
.pager:before, .pager:after {
content: " ";
display: table; }
.pager:after {
clear: both; }
.pager li {
display: inline; }
.pager li > a,
.pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 15px; }
.pager li > a:hover,
.pager li > a:focus {
text-decoration: none;
background-color: #eeeeee; }
.pager .next > a,
.pager .next > span {
float: right; }
.pager .previous > a,
.pager .previous > span {
float: left; }
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
color: #999999;
background-color: #fff;
cursor: not-allowed; }
.jumbotron {
padding: 30px;
margin-bottom: 30px;
color: inherit;
background-color: #eeeeee; }
.jumbotron h1,
.jumbotron .h1 {
color: inherit; }
.jumbotron p {
margin-bottom: 15px;
font-size: 21px;
font-weight: 200; }
.container .jumbotron {
border-radius: 6px; }
.jumbotron .container {
max-width: 100%; }
@media screen and (min-width: 768px) {
.jumbotron {
padding-top: 48px;
padding-bottom: 48px; }
.container .jumbotron {
padding-left: 60px;
padding-right: 60px; }
.jumbotron h1,
.jumbotron .h1 {
font-size: 63px; } }
.thumbnail {
display: block;
padding: 4px;
margin-bottom: 20px;
line-height: 1.42857;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out; }
.thumbnail > img,
.thumbnail a > img {
display: block;
max-width: 100%;
height: auto;
margin-left: auto;
margin-right: auto; }
.thumbnail .caption {
padding: 9px;
color: #333333; }
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: #428bca; }
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px; }
.alert h4 {
margin-top: 0;
color: inherit; }
.alert .alert-link {
font-weight: bold; }
.alert > p,
.alert > ul {
margin-bottom: 0; }
.alert > p + p {
margin-top: 5px; }
.alert-dismissable {
padding-right: 35px; }
.alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit; }
.alert-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #3c763d; }
.alert-success hr {
border-top-color: #c9e2b3; }
.alert-success .alert-link {
color: #2b542c; }
.alert-info {
background-color: #d9edf7;
border-color: #bce8f1;
color: #31708f; }
.alert-info hr {
border-top-color: #a6e1ec; }
.alert-info .alert-link {
color: #245269; }
.alert-warning {
background-color: #fcf8e3;
border-color: #faebcc;
color: #8a6d3b; }
.alert-warning hr {
border-top-color: #f7e1b5; }
.alert-warning .alert-link {
color: #66512c; }
.alert-danger {
background-color: #f2dede;
border-color: #ebccd1;
color: #a94442; }
.alert-danger hr {
border-top-color: #e4b9c0; }
.alert-danger .alert-link {
color: #843534; }
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); }
.well blockquote {
border-color: #ddd;
border-color: rgba(0, 0, 0, 0.15); }
.well-lg {
padding: 24px;
border-radius: 6px; }
.well-sm {
padding: 9px;
border-radius: 3px; }
.close {
float: right;
font-size: 21px;
font-weight: bold;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: 0.2;
filter: alpha(opacity=20); }
.close:hover, .close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50); }
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none; }
.carousel {
position: relative; }
.carousel-inner {
position: relative;
overflow: hidden;
width: 100%; }
.carousel-inner > .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left; }
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
line-height: 1; }
.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
display: block; }
.carousel-inner > .active {
left: 0; }
.carousel-inner > .next,
.carousel-inner > .prev {
position: absolute;
top: 0;
width: 100%; }
.carousel-inner > .next {
left: 100%; }
.carousel-inner > .prev {
left: -100%; }
.carousel-inner > .next.left,
.carousel-inner > .prev.right {
left: 0; }
.carousel-inner > .active.left {
left: -100%; }
.carousel-inner > .active.right {
left: 100%; }
.carousel-control {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 15%;
opacity: 0.5;
filter: alpha(opacity=50);
font-size: 20px;
color: #fff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.carousel-control.left {
background-image: -<API key>(left, color-stop(rgba(0, 0, 0, 0.5) 0%), color-stop(rgba(0, 0, 0, 0.0001) 100%));
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); }
.carousel-control.right {
left: auto;
right: 0;
background-image: -<API key>(left, color-stop(rgba(0, 0, 0, 0.0001) 0%), color-stop(rgba(0, 0, 0, 0.5) 100%));
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); }
.carousel-control:hover, .carousel-control:focus {
outline: none;
color: #fff;
text-decoration: none;
opacity: 0.9;
filter: alpha(opacity=90); }
.carousel-control .icon-prev,
.carousel-control .icon-next,
.carousel-control .<API key>,
.carousel-control .<API key> {
position: absolute;
top: 50%;
z-index: 5;
display: inline-block; }
.carousel-control .icon-prev,
.carousel-control .<API key> {
left: 50%; }
.carousel-control .icon-next,
.carousel-control .<API key> {
right: 50%; }
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 20px;
height: 20px;
margin-top: -10px;
margin-left: -10px;
font-family: serif; }
.carousel-control .icon-prev:before {
content: '\2039'; }
.carousel-control .icon-next:before {
content: '\203a'; }
.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
z-index: 15;
width: 60%;
margin-left: -30%;
padding-left: 0;
list-style: none;
text-align: center; }
.carousel-indicators li {
display: inline-block;
width: 10px;
height: 10px;
margin: 1px;
text-indent: -999px;
border: 1px solid #fff;
border-radius: 10px;
cursor: pointer;
background-color: #000 \9;
background-color: transparent; }
.carousel-indicators .active {
margin: 0;
width: 12px;
height: 12px;
background-color: #fff; }
.carousel-caption {
position: absolute;
left: 15%;
right: 15%;
bottom: 20px;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #fff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.carousel-caption .btn, .carousel-caption .comment-reply-link,
.carousel-caption .form-submit #submit,
.form-submit .carousel-caption #submit {
text-shadow: none; }
@media screen and (min-width: 768px) {
.carousel-control .<API key>,
.carousel-control .<API key>,
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 30px;
height: 30px;
margin-top: -15px;
margin-left: -15px;
font-size: 30px; }
.carousel-caption {
left: 20%;
right: 20%;
padding-bottom: 30px; }
.carousel-indicators {
bottom: 20px; } }
.clearfix:before, .clearfix:after {
content: " ";
display: table; }
.clearfix:after {
clear: both; }
.center-block {
display: block;
margin-left: auto;
margin-right: auto; }
.pull-right {
float: right !important; }
.pull-left {
float: left !important; }
.hide {
display: none !important; }
.show {
display: block !important; }
.invisible {
visibility: hidden; }
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0; }
.hidden {
display: none !important;
visibility: hidden !important; }
.affix {
position: fixed; }
@-ms-viewport {
width: device-width; }
.visible-xs, .visible-sm, .visible-md, .visible-lg {
display: none !important; }
@media (max-width: 767px) {
.visible-xs {
display: block !important; }
table.visible-xs {
display: table; }
tr.visible-xs {
display: table-row !important; }
th.visible-xs,
td.visible-xs {
display: table-cell !important; } }
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm {
display: block !important; }
table.visible-sm {
display: table; }
tr.visible-sm {
display: table-row !important; }
th.visible-sm,
td.visible-sm {
display: table-cell !important; } }
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important; }
table.visible-md {
display: table; }
tr.visible-md {
display: table-row !important; }
th.visible-md,
td.visible-md {
display: table-cell !important; } }
@media (min-width: 1200px) {
.visible-lg {
display: block !important; }
table.visible-lg {
display: table; }
tr.visible-lg {
display: table-row !important; }
th.visible-lg,
td.visible-lg {
display: table-cell !important; } }
@media (max-width: 767px) {
.hidden-xs {
display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) {
.hidden-sm {
display: none !important; } }
@media (min-width: 992px) and (max-width: 1199px) {
.hidden-md {
display: none !important; } }
@media (min-width: 1200px) {
.hidden-lg {
display: none !important; } }
.visible-print {
display: none !important; }
@media print {
.visible-print {
display: block !important; }
table.visible-print {
display: table; }
tr.visible-print {
display: table-row !important; }
th.visible-print,
td.visible-print {
display: table-cell !important; } }
@media print {
.hidden-print {
display: none !important; } }
* {
word-wrap: break-word;
outline: none; }
body.basic {
font-size: 16px;
color: #444;
font-family: "Source Sans Pro", sans-serif; }
a, .entry-title i {
-webkit-transition: all 0.25s linear;
transition: all 0.25s linear;
text-decoration: underline; }
a:hover, .entry-title i:hover {
text-decoration: none; }
.basic h1, .basic h2, .basic h3, .basic h4, .basic h5, .basic h6 {
color: #444;
font-family: "Source Sans Pro", sans-serif;
font-weight: normal; }
.basic h1 a, .basic h2 a, .basic h3 a, .basic h4 a, .basic h5 a, .basic h6 a {
color: #5cb9c1; }
.basic a {
color: #5cb9c1;
text-decoration: underline; }
.basic a.btn, .basic a.comment-reply-link,
.basic .form-submit a#submit,
.form-submit .basic a#submit {
color: #fff; }
.basic a:hover {
color: #444;
background-color: #DADCDE;
text-decoration: none; }
pre {
margin: 1em 0; }
.alert {
font-size: 14px; }
blockquote {
background-color: #eee;
font-style: italic; }
blockquote cite {
display: block;
text-align: right; }
img {
max-width: 100%;
height: auto; }
table {
width: 100%;
background: #fff; }
table td, table th {
padding: 8px;
border: 1px solid #CCC;
text-align: left; }
table th {
background: #DADCDE;
font-weight: bold; }
table caption {
padding: 1em 0;
text-align: center; }
dt {
font-weight: bold; }
dd {
line-height: 1.4;
margin: 4px 0 0;
padding: 0 0 .5em 0; }
input, textarea {
-moz-border-radius: 6px;
-<API key>: 6px;
border-radius: 6px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 8px;
border: 1px solid #CCC;
font-size: 14px;
color: #555; }
.navbar-brand {
text-transform: none;
font-size: 28px;
text-decoration: none;
height: 70px;
padding-right: 50px; }
.navbar-brand:hover small {
color: #aaa; }
.navbar-brand small {
font-size: 13px;
color: #777;
font-weight: normal;
display: block;
margin-top: 5px; }
#site-logo {
margin-right: 4px;
max-height: 30px;
margin-top: -5px; }
#site-description {
margin: 0;
font-size: 18px;
line-height: 1; }
#site-description.margin-top {
margin-top: 90px; }
.header-img {
width: 100%;
display: block;
max-width: none; }
@media (min-width: 769px) {
.navbar-nav > li {
border-top: 5px solid #fff; }
.navbar-nav > li.active, .navbar-nav > li.open {
border-color: #777; }
.navbar-nav > li a {
padding: 20px 25px 25px; } }
.navbar-toggle {
margin-top: 19px; }
.header-img {
width: 100%; }
.navbar {
margin: 0 -20px;
border-radius: 0;
border: 0 !important;
text-transform: uppercase;
font-size: 14px; }
.navbar a {
text-decoration: none; }
.dropdown-menu {
padding: 0; }
.navbar-inverse .dropdown-menu {
background: #080808; }
.navbar-inverse .dropdown-menu > li > a {
color: #999; }
.navbar-inverse .dropdown-menu a:hover {
background: #444 !important;
color: #fff !important; }
.navbar-inverse .dropdown-menu > .active > a,
.navbar-inverse .dropdown-menu > .active > a:hover,
.navbar-inverse .dropdown-menu > .active > a:focus {
background-color: #444; }
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: inherit;
background-color: transparent;
border-color: #777; }
#menu-social {
margin-top: 20px;
overflow: hidden; }
@media (max-width: 768px) {
#menu-social {
float: none;
margin-bottom: 10px; } }
#menu-social ul {
list-style: none;
padding: 0;
margin: 0; }
#menu-social ul li {
display: inline-block;
position: relative; }
.fixed-navbar #menu-social ul {
margin-right: 15px; }
#menu-social a {
color: #fff; }
#menu-social a:before {
content: '\f007';
float: left;
text-align: center;
margin: 0 0 0 3px;
font-family: FontAwesome;
font-size: 16px;
background: rgba(0, 0, 0, 0.7);
width: 30px;
height: 30px;
line-height: 30px; }
#menu-social a:hover:before {
background: rgba(0, 0, 0, 0.85); }
#menu-social a[href*="facebook.com"]:before {
content: '\f09a'; }
#menu-social a[href*="twitter.com"]:before {
content: '\f099'; }
#menu-social a[href*="dribbble.com"]:before {
content: '\f17d'; }
#menu-social a[href*="plus.google.com"]:before {
content: '\f0d5'; }
#menu-social a[href*="pinterest.com"]:before {
content: '\f0d2'; }
#menu-social a[href*="github.com"]:before {
content: '\f113'; }
#menu-social a[href*="tumblr.com"]:before {
content: '\f173'; }
#menu-social a[href*="youtube.com"]:before {
content: '\f16a'; }
#menu-social a[href*="flickr.com"]:before {
content: '\f16e'; }
#menu-social a[href*="vimeo.com"]:before {
content: '\f194'; }
#menu-social a[href*="instagram.com"]:before {
content: '\f16d'; }
#menu-social a[href*="linkedin.com"]:before {
content: '\f0e1'; }
#menu-social a[href*="bitbucket.org"]:before {
content: '\f171'; }
#menu-social a[href*="yelp.com"]:before {
content: '\f1e9'; }
#menu-social a[href*="slideshare.net"]:before {
content: '\f1e7'; }
#menu-social a[href*="xing.net"]:before {
content: '\f168'; }
#menu-social a[href*="/feed"]:before {
content: '\f09e'; }
.navbar-inverse #menu-social a {
color: #666; }
.navbar-inverse #menu-social a:before {
background: rgba(0, 0, 0, 0.5); }
.navbar-inverse #menu-social a:hover {
color: #888; }
.navbar-inverse #menu-social a:hover:before {
background: rgba(0, 0, 0, 0.75); }
#home-carousel .carousel-caption {
top: 0;
left: 50%;
right: 0;
bottom: 0;
background: #E0FFF7; }
@media (max-width: 600px) {
#home-carousel .carousel-caption {
left: 0;
top: auto; } }
#home-carousel .carousel-caption .caption-inner {
padding-top: 10%; }
@media (max-width: 600px) {
#home-carousel .carousel-caption .caption-inner {
padding: 0; } }
#home-carousel .carousel-caption .btn-container {
text-align: center; }
#home-carousel .carousel-caption .btn-container .btn, #home-carousel .carousel-caption .btn-container .comment-reply-link,
#home-carousel .carousel-caption .btn-container .form-submit #submit,
.form-submit #home-carousel .carousel-caption .btn-container #submit {
background: transparent;
color: #000;
text-transform: uppercase;
border-color: #000;
padding: 10px 40px;
font-size: 14px;
margin-top: 30px; }
@media (max-width: 600px) {
#home-carousel .carousel-caption .btn-container .btn, #home-carousel .carousel-caption .btn-container .comment-reply-link,
#home-carousel .carousel-caption .btn-container .form-submit #submit,
.form-submit #home-carousel .carousel-caption .btn-container #submit {
margin-top: 10px; } }
#home-carousel h3 a,
#home-carousel p {
color: #000;
text-shadow: none;
text-decoration: none; }
#home-carousel h3 {
font-size: 40px;
margin-bottom: 10px; }
@media (max-width: 768px) {
#home-carousel h3 {
font-size: 28px;
margin-top: 0;
margin-bottom: 0; } }
#home-carousel p {
font-size: 16px;
text-align: left; }
@media (max-width: 600px) {
#home-carousel p.carousel-excerpt {
display: none; } }
#home-carousel h3,
#home-carousel p {
width: 70%;
margin-left: auto;
margin-right: auto; }
#home-carousel .item {
max-height: 600px;
overflow: hidden; }
#home-carousel img {
width: 50%; }
@media (max-width: 600px) {
#home-carousel img {
width: 100%; } }
.carousel-inner h3 {
color: #fff; }
.carousel-control {
width: 5%;
z-index: 10;
background: none !important; }
.carousel-control i {
color: #000;
position: absolute;
top: 50%;
left: 50%;
font-size: 18px;
margin: -25px 0 0 -22px;
padding: 12px 16px;
border: 1px solid #000; }
@media (max-width: 768px) {
.carousel-control {
margin: 0 15px; } }
.home-top {
padding: 0;
width: 100%; }
.home-jumbotron {
padding-top: 60px;
padding-bottom: 60px;
font-size: 16px;
line-height: 1.6; }
.home-jumbotron h1 {
margin: 0 0 20px;
text-align: center;
text-transform: uppercase;
font-size: 24px; }
.home-jumbotron .textwidget {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2; }
@media (max-width: 480px) {
.home-jumbotron .textwidget {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1; } }
#home-page-widgets {
padding-top: 60px; }
@media (max-width: 768px) {
#home-page-widgets {
margin: 0; } }
.home-widget {
margin: 0 0 30px;
padding: 20px;
font-size: 16px;
line-height: 1.6; }
.home-widget .widget-container {
border: 1px solid #CCC;
padding: 20px; }
.home-widget img {
margin-top: 0; }
.home-widget-title {
margin-bottom: 15px;
font-size: 24px; }
.home-widget-title a {
text-decoration: none; }
.<API key> i {
-moz-border-radius: 2em;
-<API key>: 2em;
border-radius: 2em;
font-size: 28px;
margin: 10px auto 0;
display: block; }
.<API key> h3,
.<API key> i,
.<API key> .btn-container {
text-align: center; }
.<API key> h3 {
margin-top: 5px; }
.<API key> .btn, .<API key> .comment-reply-link,
.<API key> .form-submit #submit,
.form-submit .<API key> #submit {
margin-top: 20px; }
.<API key> a:hover {
text-decoration: none; }
#page {
margin-left: auto;
margin-right: auto; }
#primary {
margin: 50px 0; }
#primary.centered {
float: none !important;
margin-left: auto;
margin-right: auto; }
@media (max-width: 992px) {
#primary {
float: none !important; } }
article {
margin-bottom: 20px;
font-size: 16px; }
article .time {
color: inherit; }
article footer {
margin-top: 10px; }
.first-post {
margin-bottom: 20px; }
.entry-header {
text-align: center; }
.entry-title {
margin-top: 0; }
.entry-title i {
color: #5cb9c1;
text-decoration: none; }
.single .entry-title,
.entry-title a {
border: 1px solid #5cb9c1;
display: inline-block;
margin: 0 auto 20px;
line-height: 1.2;
text-align: center;
text-transform: uppercase;
padding: 3px 8px;
color: #444;
text-decoration: none; }
.entry-title a:hover {
color: #fff;
background-color: #5cb9c1; }
.entry-title a:hover i {
color: #fff; }
.basic .entry-title {
font-size: 1.625em;
}
.entry-meta {
line-height: 1.2;
margin: 5px 0 20px;
color: #444;
text-align: center; }
.entry-meta.top-entry-meta {
margin: 0 0 5px; }
.entry-meta.top-entry-meta i {
margin-right: 6px; }
.entry-meta.col-md-3 i {
width: 14px; }
.basic .entry-meta {
font-size: 14px; }
.entry-meta a {
color: #5cb9c1;
text-decoration: none; }
.entry-meta .post-cat a {
color: #fff;
background-color: #5cb9c1;
display: inline-block;
font-size: .929em;
/* 13/14 */
padding: 5px 10px;
text-decoration: none;
text-transform: uppercase;
margin-bottom: 3px; }
.entry-title + .entry-meta {
margin-top: 5px; }
.single .entry-title,
.entry-title a {
border-color: #5cb9c1; }
.entry-meta a,
.tags a {
color: #5cb9c1; }
.entry-title a:hover,
.post-cat a {
background: #5cb9c1;
color: #fff; }
.post-format {
margin: 0 0 3px;
font-size: 1.5em;
/* 24/16 */ }
.post-format i {
margin-right: 5px; }
.entry-content {
position: relative;
line-height: 1.5; }
.entry-attachment {
margin-top: 20px; }
.entry-caption {
font-size: 12px;
margin: 5px 0 15px;
text-align: right; }
.edit-link {
margin: 1em 0; }
.more-link {
color: #444;
text-decoration: none;
font-size: 14px;
font-style: italic; }
.pullquote {
color: #444;
border: 0;
padding: 1em 0;
margin: 1em 1.625em 1em 0;
text-align: right;
width: 33%;
float: left;
border-top: 1px solid #CCC;
border-bottom: 1px solid #CCC;
background: transparent; }
.pullquote p {
font-size: 21px;
line-height: 1.4;
font-weight: bold; }
.pullquote.alignright {
margin: 1em 0 1em 1.625em;
text-align: left;
float: right; }
@media (max-width: 480px) {
.pullquote {
width: 100%;
margin: 0 0 .5em 0;
float: none;
text-align: left; } }
@media (max-width: 768px) {
.columns {
-webkit-column-count: 1 !important;
-moz-column-count: 1 !important;
column-count: 1 !important; } }
article.error404 i {
font-size: 200px;
display: block;
margin-bottom: 20px; }
article.error404 .entry-title {
margin-bottom: 1em; }
.format-aside p {
margin-top: 0; }
.format-quote .entry-content {
font-style: italic;
font-size: 28px;
line-height: 1.4; }
.format-quote blockquote,
.format-quote blockquote p {
margin: 0;
border: 0;
padding: 0;
font-weight: normal;
font-size: 21px;
line-height: 1.4;
background: transparent; }
.format-quote cite {
margin-top: 1em;
font-size: 16px;
text-align: right;
display: block; }
.format-quote cite:before {
content: '\2013 \00A0'; }
.format-status .post-format {
margin-bottom: 10px; }
.format-status .avatar {
float: left;
margin: 0 17px 0 0; }
.format-status .author {
font-size: 18px;
margin: 0; }
.format-status .entry-content {
padding-left: 77px;
clear: none;
display: inherit; }
.format-status .entry-content p {
margin-top: 0; }
.format-status time {
font-size: 13px;
color: #666;
margin: 5px 0 10px;
display: inline-block; }
.format-link p {
font-size: 16px;
margin: 0;
font-weight: normal;
line-height: inherit; }
.format-link p.tags {
font-size: 14px; }
.format-link footer p {
margin: 1em 0; }
.format-link .entry-content a {
font-size: 24px; }
.format-audio .entry-title i {
margin-right: 7px; }
.format-image .entry-title i {
margin-right: 7px; }
.format-video .entry-title i {
margin-right: 7px; }
iframe {
max-width: 100%; }
.<API key> {
width: 100%;
position: relative;
padding: 0; }
.<API key> iframe,
.<API key> object,
.<API key> embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%; }
.format-gallery .entry-title i {
margin-right: 7px; }
.gallery {
margin: 20px -20px; }
.gallery > p {
margin: 0;
height: 0; }
.gallery-item {
margin-bottom: 20px;
float: left;
padding: 0 20px; }
.gallery-item .gallery-icon img {
width: 100%; }
.gallery-item .gallery-caption {
display: none; }
.gallery-columns-1 .gallery-item {
width: 100%; }
.gallery-columns-2 .gallery-item {
width: 50%; }
.gallery-columns-3 .gallery-item {
width: 33.33%; }
.gallery-columns-4 .gallery-item {
width: 25%; }
.gallery-columns-5 .gallery-item {
width: 20%; }
.gallery-columns-6 .gallery-item {
width: 16.66%; }
.gallery-columns-7 .gallery-item {
width: 14.28%; }
.gallery-columns-8 .gallery-item {
width: 12.5%; }
.gallery-columns-9 .gallery-item {
width: 11.11%; }
@media (max-width: 480px) {
.gallery .gallery-item {
width: 100%;
margin-bottom: 20px; } }
.tags {
font-size: 14px;
margin-bottom: 0;
padding: 5px 0 3px;
border-top: 1px solid #CCC;
border-bottom: 1px solid #CCC; }
.tags span {
margin-right: 5px; }
.tags a {
margin: 0 2px 5px 0;
display: inline-block;
color: #5cb9c1;
text-decoration: none; }
.tags a:hover {
background: #DADCDE; }
.navigation {
padding: 20px 0 40px; }
.infinite-scroll .navigation {
display: none; }
.navigation .nav-previous,
.navigation .nav-next {
float: left;
position: relative; }
.navigation .nav-previous a,
.navigation .nav-next a {
position: absolute;
top: 50%;
left: 0;
display: block;
color: #222;
border: 1px solid #222;
text-decoration: none;
font-size: 12px;
width: 40px;
height: 40px; }
.navigation .nav-previous a:hover,
.navigation .nav-next a:hover {
color: #fff;
background-color: #222; }
.navigation .nav-previous a:before,
.navigation .nav-next a:before {
cursor: pointer;
content: "\f104";
font-family: FontAwesome;
display: block;
text-align: center;
line-height: 40px;
font-size: 24px; }
.navigation .nav-next {
float: right;
position: relative; }
.navigation .nav-next a {
right: 0;
left: inherit; }
.navigation .nav-next a:before {
content: "\f105"; }
.navigation a {
text-decoration: none; }
.infinite-loader .spinner {
left: 50% !important; }
#infinite-handle {
padding: 40px 0;
clear: both; }
#infinite-handle span {
-moz-border-radius: 3px;
-<API key>: 3px;
border-radius: 3px;
width: 160px;
margin: auto;
display: block;
text-align: center;
font-size: 16px;
padding: 8px 0; }
#infinite-handle span:hover {
background: #DADCDE; }
#posts-pagination {
font-size: 14px;
padding: 20px 0; }
#posts-pagination .next,
#posts-pagination .previous {
max-width: 48%; }
#posts-pagination a {
color: #444;
white-space: normal;
display: block;
text-align: left;
text-decoration: none; }
#posts-pagination a:hover {
color: #5cb9c1; }
#posts-pagination .next a {
text-align: right; }
.comments-area {
border-top: 1px solid #CCC; }
.comments-area .commentlist,
.comments-area .children {
list-style: none;
padding: 0; }
.comments-area #comments-title {
padding: 10px 0;
font-size: 24px; }
.comment-form input {
clear: both;
display: block; }
.comment-form input[type="checkbox"] {
display: inline-block; }
.commentlist .comment,
.commentlist .pingback {
padding-bottom: 20px; }
.commentlist .comment .avatar {
float: left; }
.commentlist .comment .comment-author,
.commentlist .comment .comment-meta {
padding-left: 70px; }
.commentlist .comment .comment-text {
font-size: 15px;
margin-top: 10px; }
.commentlist .comment .comment-author {
font-size: 16px; }
.commentlist .comment .comment-meta {
font-size: 12px;
color: #888;
margin-bottom: 30px; }
.commentlist .comment .reply a {
background-color: #444;
color: #fff;
display: inline; }
.commentlist .children {
margin: 20px 0 0; }
.commentlist .children > .comment {
padding-left: 70px !important; }
.commentlist .comment-body {
display: block;
z-index: 100;
position: relative;
margin-bottom: 30px; }
.commentlist .bypostauthor > .comment-body {
border: 1px solid #5cb9c1;
padding: 10px; }
.commentlist .reply {
margin-top: 20px; }
.commentlist .reply a {
padding: 2px 6px; }
.comment-respond textarea {
width: 100%; }
.comment-respond .form-allowed-tags {
font-size: 14px; }
.comment-respond .form-allowed-tags code {
white-space: normal; }
.comment-respond label {
font-weight: normal;
width: 15%; }
@media (max-width: 480px) {
.comment-respond label {
width: auto; } }
.comment-reply-title {
font-size: 1em;
text-transform: uppercase; }
.form-submit #submit {
background-color: #444;
color: #fff; }
.form-submit #submit:hover {
background-color: #5e5e5e;
color: #fff; }
#<API key> {
font-size: 14px;
font-weight: normal;
float: right; }
#archive-header {
margin-bottom: 40px;
text-align: center; }
.page-title {
color: #5cb9c1;
margin: auto;
font-size: 1.25em;
/* 20/16 */
text-transform: uppercase; }
.page-header {
margin-bottom: 30px; }
.page-header h1 {
margin: 0; }
.page-header .navigation {
padding: 20px 0 0;
font-size: 14px;
float: right; }
@media (max-width: 480px) {
.page-header .navigation {
float: left; } }
.archive-meta {
color: #5cb9c1;
margin: 0;
font-size: 13px;
font-weight: normal;
padding: 5px 0 0;
line-height: 1.4; }
.archive-meta p {
margin: 0; }
.page .entry-title {
margin-bottom: 15px; }
#secondary,
#tertiary {
margin: 50px 0; }
@media (max-width: 480px) {
#secondary,
#tertiary {
margin-top: 0; } }
.jumbo-headline ul,
.home-widget ul,
.footer-widget ul,
.widget ul {
list-style: none;
padding: 0; }
.jumbo-headline ul li,
.home-widget ul li,
.footer-widget ul li,
.widget ul li {
margin-bottom: 5px; }
.jumbo-headline ul.sub-menu,
.home-widget ul.sub-menu,
.footer-widget ul.sub-menu,
.widget ul.sub-menu {
padding-left: 15px; }
.jumbo-headline ul a,
.home-widget ul a,
.footer-widget ul a,
.widget ul a {
text-decoration: none; }
.widget {
width: 100%;
font-size: 0.875em;
/* 14px/16px */
margin-bottom: 20px;
padding-bottom: 20px; }
.widget ul li {
border-bottom: 1px solid #CCC; }
.widget ul li a {
color: #444;
padding: 10px 3px 0; }
.widget ul li a:hover {
color: #5cb9c1; }
.widget .search-form label,
.widget .search-field {
width: 100%; }
.widget select {
max-width: 100%; }
.widget .tagcloud {
padding: 0 0 20px;
text-align: center; }
.widget.widget_search {
border-bottom: none; }
.widget_categories ul li {
margin: 0;
border: 0; }
.widget_categories ul li a {
border-bottom: 1px solid #CCC;
padding: 5px 3px;
display: block; }
.widget_categories ul li .children a {
padding-left: 15px; }
.widget-title {
background-color: #CCC;
color: #444;
font-size: .9375em;
/* 15/16 */
margin: 0 0 10px;
padding: 3px 5px;
text-transform: uppercase; }
.widget_rss ul {
list-style: none;
padding: 0; }
.widget_rss ul li {
padding-bottom: 15px; }
.widget_rss ul li .rsswidget {
font-size: 18px;
line-height: 1.1;
display: block; }
.widget_rss ul li .rsswidget:hover {
margin: 0 !important; }
.widget_rss ul li .rssSummary {
margin-top: 5px; }
.widget_rss ul li .rss-date {
font-size: 12px;
color: #888; }
.widget_rss ul li cite {
font-style: italic; }
.line.active {
border-top: 1px solid #DADCDE;
width: 100%;
display: block;
margin-bottom: 20px; }
.footer-widget {
margin: 10px 0 30px;
font-size: 14px; }
.footer-widget #calendar_wrap caption {
color: #fff;
margin-bottom: 10px; }
.footer-widget ul li {
margin-bottom: 5px; }
.footer-widget .widget-title {
padding: 10px 0 5px;
font-size: 16px; }
#extended-footer {
background: #565b65; }
#extended-footer,
#footer {
padding-top: 10px; }
#extended-footer,
#extended-footer .widget-title,
#extended-footer a,
#footer,
#footer .widget-title,
#footer a {
color: #fff; }
#extended-footer .widget-title,
#footer .widget-title {
background: none; }
#footer {
background: #383a42;
font-size: 13px;
position: relative;
z-index: 100;
clear: both; }
#footer .row {
margin-bottom: 0; }
#footer #footer-content {
padding-top: 15px;
padding-bottom: 15px; }
@media (max-width: 768px) {
#footer #footer-content span {
display: block;
float: none !important;
text-align: center; } }
#footer a:hover {
color: #666; }
text-align: center; }
#footer .footer-notice {
margin-bottom: 10px; }
.<API key> main article {
padding-bottom: 0;
margin-bottom: 40px; }
.grid-template .col-md-4:nth-child(3n+1) {
clear: both; }
.grid-template .entry-title {
margin-bottom: 5px; }
.grid-template img {
padding: 0;
background: none;
border: 0;
width: 100%; }
.grid-wrapper {
border: 1px solid #CCC;
padding: 20px;
margin-bottom: 40px;
min-height: 220px;
font-size: 14px; }
.archive.author #archive-header .avatar {
-moz-border-radius: 50em;
-<API key>: 50em;
border-radius: 50em;
float: left;
display: block; }
.archive.author #archive-header h1,
.archive.author #archive-header h2 {
padding-left: 100px; }
#author-info {
overflow: hidden;
margin-bottom: 20px;
padding: 20px; }
#author-info .author-text {
padding-left: 90px; }
#author-info h4 {
margin: 0 0 5px;
font-size: 18px; }
#author-info .author-text p {
font-size: 14px;
line-height: 1.4; }
#author-info img {
float: left;
border-color: #e2e2e2;
background: #fff; }
.sticky-container {
margin: 0 0 20px;
visibility: hidden; }
.sticky-container .item {
width: 20%;
position: relative; }
.sticky-container .item.wide {
width: 40%; }
.sticky-container .item.wide p span {
padding: 20px 40px; }
.sticky-container .item img {
width: 100%; }
.sticky-container .item p {
-webkit-transition: opacity 0.4s ease-in-out;
transition: opacity 0.4s ease-in-out;
position: absolute;
left: 0;
bottom: 0;
right: 0;
top: 0;
text-align: center;
background: #006565;
margin: 0;
opacity: 0;
font-size: 18px;
text-transform: uppercase; }
.sticky-container .item p.yellow {
background: #FCBE43; }
.sticky-container .item p.red {
background: #FF3F33; }
.sticky-container .item p.mint {
background: #C9EFDE; }
.sticky-container .item p.green {
background: #95B600; }
.sticky-container .item p.light-blue {
background: #9BD7E8; }
.sticky-container .item p.blue {
background: #27BCC4; }
.sticky-container .item p.mint, .sticky-container .item p.yellow, .sticky-container .item p.light-blue {
color: #444; }
.sticky-container .item p.show, .sticky-container .item p:hover {
opacity: 1; }
.sticky-container .item p span {
padding: 20px;
display: block;
position: absolute;
width: 100%;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-weight: 600;
line-height: 1.1; }
.sticky-container .item p span small {
text-transform: none;
font-size: 14px;
font-weight: 400;
margin-bottom: 5px;
display: block; }
.sticky-container .item a {
text-decoration: none;
color: #fff; }
@media (max-width: 768px) {
.sticky-container {
margin-bottom: 40px; } }
@media (max-width: 600px) {
.sticky-container .item {
width: 100% !important; } }
h1 {
font-size: 32px; }
h2 {
font-size: 28px; }
h3 {
font-size: 26px; }
h4 {
font-size: 24px; }
h5 {
font-size: 22px; }
h6 {
font-size: 20px; }
.navbar-default {
background-color: #fff;
border-bottom: 1px solid #e7e7e7; }
.with-social {
margin-right: 0 !important; }
.tab-content {
padding: 15px;
background: #fff;
border: 1px solid #ddd;
border-top: 0; }
pre {
font-size: 12px; }
.btn, .comment-reply-link,
.form-submit #submit,
input,
textarea {
-moz-border-radius: 0;
-<API key>: 0;
border-radius: 0;
text-decoration: none; }
[rel="tooltip"]:hover {
text-decoration: none; }
.from-the-blog .page-header {
margin-top: 0; }
.nav-tabs > li > a {
text-decoration: none; }
/*.dropdown-submenu {
position:relative;
}
.dropdown-submenu > .dropdown-menu {
<API key>: 0;
<API key>: 0;
top:0;
left:100%;
margin-top:-6px;
margin-left:-1px;
}
.dropdown-submenu:hover > .dropdown-menu {
display: block;
}
.dropdown-submenu > a:after {
display:block;
content:"";
float:right;
width:0;
height:0;
border-color:transparent;
border-style:solid;
border-width:5px 0 5px 5px;
border-left-color:#ccc;
margin-top:5px;
margin-right:-10px;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
left: -100%;
margin-left: 10px;
}*/
#bbpress-forums .avatar {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box; }
.bbp-author-avatar {
display: inline-block; }
.bbp-author-avatar img {
margin-bottom: 0 !important; }
.bbp-search-form {
margin-bottom: 20px; }
.subscription-toggle {
float: right; }
.quicktags-toolbar,
.wp-editor-area {
border: 1px solid #CCC !important; }
.bbp-topic-form legend, .bbp-reply-form legend {
border-bottom: 0;
display: inline-block;
width: auto; }
.quicktags-toolbar {
border-bottom: 0 !important; }
.wp-editor-area {
-moz-border-radius: 0 0 6px 6px;
-<API key>: 0;
border-radius: 0 0 6px 6px; }
#buddypress .clear {
clear: both; }
#buddypress .avatar {
margin-top: 10px !important; }
#buddypress #avatar-upload #file {
margin-bottom: 20px; }
#buddypress .label {
display: table-cell;
font-size: inherit;
line-height: inherit;
color: inherit;
text-align: left;
white-space: inherit;
border-radius: 0; }
#buddypress button,
#buddypress a.button,
#buddypress input[type=submit],
#buddypress input[type=button],
#buddypress input[type=reset],
#buddypress ul.button-nav li a,
#buddypress div.generic-button a,
#buddypress .comment-reply-link, #buddypress a.bp-title-button {
font-size: 12px; }
.wp-caption p.wp-caption-text {
padding: 10px 0 0 !important; }
#wpstats {
display: block;
margin: auto;
padding: 10px 0; }
.woocommerce .page-title,
.woocommerce-page .page-title {
margin-bottom: 20px; }
.woocommerce .woocommerce-error:before,
.woocommerce .woocommerce-info:before,
.woocommerce .woocommerce-message:before,
.woocommerce-page .woocommerce-error:before,
.woocommerce-page .woocommerce-info:before,
.woocommerce-page .woocommerce-message:before {
padding-top: 0; }
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-page .cart-collaterals .cart_totals h2 {
text-align: left; }
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce-page .cart-collaterals .cart_totals table th {
width: 220px; }
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td,
.woocommerce-page .cart-collaterals .cart_totals table th,
.woocommerce-page .cart-collaterals .cart_totals table td {
border-top: 1px solid #ddd !important;
padding: 5px 10px; }
.woocommerce #<API key> label,
.woocommerce-page #<API key> label {
display: inline-block;
padding: 0; }
.woocommerce #payment div.payment_box:after,
.woocommerce-page #payment div.payment_box:after {
top: -1px; }
.alignnone {
margin: 0 15px 15px 0; }
.aligncenter,
div.aligncenter {
display: block;
margin: 0 auto 15px auto; }
.alignright {
float: right;
margin: 0 0 15px 15px; }
.alignleft {
float: left;
margin: 0 15px 15px 0; }
.aligncenter {
display: block;
margin: 0 auto 15px auto; }
a img.alignright {
float: right;
margin: 0 0 15px 15px; }
a img.alignnone {
margin: 0 15px 15px 0; }
a img.alignleft {
float: left;
margin: 0 15px 15px 0; }
a img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto; }
.wp-caption {
background: #f2f2f2;
border: 1px solid #e6e6e6;
max-width: 100%;
padding: 6px;
text-align: center; }
.wp-caption.alignnone {
margin: 0 15px 15px 0; }
.wp-caption.alignleft {
margin: 0 15px 15px 0; }
.wp-caption.alignright {
margin: 0 0 15px 15px; }
.wp-caption img {
border: 0 none;
height: auto;
margin: 0;
max-width: 100%;
padding: 0;
width: auto; }
.wp-caption p.wp-caption-text {
font-size: 14px;
margin: 0;
padding: 5px; }
.sticky {
display: block; }
|
#include "config.h"
#include "<API key>.h"
#include "<API key>.h"
#include "BlobPart.h"
#include "BlobRegistry.h"
#include "BlobURL.h"
#include "SecurityOrigin.h"
#include <mutex>
#include <wtf/HashMap.h>
#include <wtf/MainThread.h>
#include <wtf/RefPtr.h>
#include <wtf/ThreadSpecific.h>
#include <wtf/text/StringHash.h>
#include <wtf/threads/BinarySemaphore.h>
using WTF::ThreadSpecific;
namespace WebCore {
struct BlobRegistryContext {
<API key>;
public:
BlobRegistryContext(const URL& url, Vector<BlobPart> blobParts, const String& contentType)
: url(url.isolatedCopy())
, contentType(contentType.isolatedCopy())
, blobParts(WTFMove(blobParts))
{
for (BlobPart& part : blobParts)
part.<API key>();
}
BlobRegistryContext(const URL& url, const URL& srcURL)
: url(url.isolatedCopy())
, srcURL(srcURL.isolatedCopy())
{
}
BlobRegistryContext(const URL& url)
: url(url.isolatedCopy())
{
}
BlobRegistryContext(const URL& url, const String& path, const String& contentType)
: url(url.isolatedCopy())
, path(path.isolatedCopy())
, contentType(contentType.isolatedCopy())
{
}
URL url;
URL srcURL;
String path;
String contentType;
Vector<BlobPart> blobParts;
};
typedef HashMap<String, RefPtr<SecurityOrigin>> BlobUrlOriginMap;
static ThreadSpecific<BlobUrlOriginMap>& originMap()
{
static std::once_flag onceFlag;
static ThreadSpecific<BlobUrlOriginMap>* map;
std::call_once(onceFlag, []{
map = new ThreadSpecific<BlobUrlOriginMap>;
});
return *map;
}
void <API key>::registerFileBlobURL(const URL& url, const String& path, const String& contentType)
{
if (isMainThread())
blobRegistry().registerFileBlobURL(url, <API key>::create(path), contentType);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(url, path, contentType);
callOnMainThread([context] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
blobRegistry().registerFileBlobURL(blobRegistryContext->url, <API key>::create(blobRegistryContext->path), blobRegistryContext->contentType);
});
}
}
void <API key>::registerBlobURL(const URL& url, Vector<BlobPart> blobParts, const String& contentType)
{
if (isMainThread())
blobRegistry().registerBlobURL(url, WTFMove(blobParts), contentType);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(url, WTFMove(blobParts), contentType);
callOnMainThread([context] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
blobRegistry().registerBlobURL(blobRegistryContext->url, WTFMove(blobRegistryContext->blobParts), blobRegistryContext->contentType);
});
}
}
void <API key>::registerBlobURL(SecurityOrigin* origin, const URL& url, const URL& srcURL)
{
// If the blob URL contains null origin, as in the context with unique security origin or file URL, save the mapping between url and origin so that the origin can be retrived when doing security origin check.
if (origin && BlobURL::getOrigin(url) == "null")
originMap()->add(url.string(), origin);
if (isMainThread())
blobRegistry().registerBlobURL(url, srcURL);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(url, srcURL);
callOnMainThread([context] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
blobRegistry().registerBlobURL(blobRegistryContext->url, blobRegistryContext->srcURL);
});
}
}
void <API key>::<API key>(const URL& newURL, const URL& srcURL, long long start, long long end)
{
if (isMainThread())
blobRegistry().<API key>(newURL, srcURL, start, end);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(newURL, srcURL);
callOnMainThread([context, start, end] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
blobRegistry().<API key>(blobRegistryContext->url, blobRegistryContext->srcURL, start, end);
});
}
}
unsigned long long <API key>::blobSize(const URL& url)
{
unsigned long long resultSize;
if (isMainThread())
resultSize = blobRegistry().blobSize(url);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(url);
BinarySemaphore semaphore;
callOnMainThread([context, &semaphore, &resultSize] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
resultSize = blobRegistry().blobSize(blobRegistryContext->url);
semaphore.signal();
});
semaphore.wait(std::numeric_limits<double>::max());
}
return resultSize;
}
void <API key>::unregisterBlobURL(const URL& url)
{
if (BlobURL::getOrigin(url) == "null")
originMap()->remove(url.string());
if (isMainThread())
blobRegistry().unregisterBlobURL(url);
else {
// BlobRegistryContext performs an isolated copy of data.
BlobRegistryContext* context = new BlobRegistryContext(url);
callOnMainThread([context] {
std::unique_ptr<BlobRegistryContext> blobRegistryContext(context);
blobRegistry().unregisterBlobURL(blobRegistryContext->url);
});
}
}
RefPtr<SecurityOrigin> <API key>::getCachedOrigin(const URL& url)
{
return originMap()->get(url.string());
}
} // namespace WebCore
|
<?php
if( ! defined( 'NV_IS_FILE_ADMIN' ) ) die( 'Stop!!!' );
$page_title = $lang_module['categories'];
$error = $admins = "";
$savecat = 0;
list( $catid, $parentid, $title, $titlesite, $alias, $description, $keywords, $who_view, $groups_view ) = array( 0, 0, "", "", "", "", "", 0, "" );
$groups_list = nv_groups_list();
$savecat = $nv_Request->get_int( 'savecat', 'post', 0 );
if( ! empty( $savecat ) )
{
$catid = $nv_Request->get_int( 'catid', 'post', 0 );
$parentid_old = $nv_Request->get_int( 'parentid_old', 'post', 0 );
$parentid = $nv_Request->get_int( 'parentid', 'post', 0 );
$title = filter_text_input( 'title', 'post', '', 1 );
$titlesite = filter_text_input( 'titlesite', 'post', '', 1 );
$keywords = filter_text_input( 'keywords', 'post', '', 1 );
$alias = filter_text_input( 'alias', 'post', '' );
$description = $nv_Request->get_string( 'description', 'post', '' );
$description = nv_nl2br( nv_htmlspecialchars( strip_tags( $description ) ), '<br />' );
$alias = ( $alias == "" ) ? change_alias( $title ) : change_alias( $alias );
$who_view = $nv_Request->get_int( 'who_view', 'post', 0 );
$groups_view = "";
$groups = $nv_Request->get_typed_array( 'groups_view', 'post', 'int', array() );
$groups = array_intersect( $groups, array_keys( $groups_list ) );
$groups_view = implode( ",", $groups );
if( ! defined( 'NV_IS_ADMIN_MODULE' ) )
{
if( ! ( isset( $array_cat_admin[$admin_id][$parentid] ) and $array_cat_admin[$admin_id][$parentid]['admin'] == 1 ) )
{
Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $parentid );
die();
}
}
if( $catid == 0 and $title != "" )
{
list( $weight ) = $db->sql_fetchrow( $db->sql_query( "SELECT max(`weight`) FROM `" . NV_PREFIXLANG . "_" . $module_data . "_cat` WHERE `parentid`=" . $db->dbescape( $parentid ) ) );
$weight = intval( $weight ) + 1;
$viewcat = "viewcat_page_new";
$subcatid = "";
$sql = "INSERT INTO `" . NV_PREFIXLANG . "_" . $module_data . "_cat` (`catid`, `parentid`, `title`, `titlesite`, `alias`, `description`, `image`, `thumbnail`, `weight`, `order`, `lev`, `viewcat`, `numsubcat`, `subcatid`, `inhome`, `numlinks`, `keywords`, `admins`, `add_time`, `edit_time`, `who_view`, `groups_view`)
VALUES (NULL, " . $db->dbescape( $parentid ) . ", " . $db->dbescape( $title ) . ", " . $db->dbescape( $titlesite ) . ", " . $db->dbescape( $alias ) . ", " . $db->dbescape( $description ) . ", '', '', " . $db->dbescape( $weight ) . ", '0', '0', " . $db->dbescape( $viewcat ) . ", '0', " . $db->dbescape( $subcatid ) . ", '1', '3', " . $db->dbescape( $keywords ) . ", " . $db->dbescape( $admins ) . ", UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), " . $db->dbescape( $who_view ) . "," . $db->dbescape( $groups_view ) . ")";
$newcatid = ( int )$db->sql_query_insert_id( $sql );
if( $newcatid > 0 )
{
$db->sql_freeresult();
<API key>( $newcatid );
nv_fix_cat_order();
if( ! defined( 'NV_IS_ADMIN_MODULE' ) )
{
$db->sql_query( "INSERT INTO `" . NV_PREFIXLANG . "_" . $module_data . "_admins` (`userid`, `catid`, `admin`, `add_content`, `pub_content`, `edit_content`, `del_content`, `comment`) VALUES ('" . $admin_id . "', '" . $newcatid . "', '1', '1', '1', '1', '1', '1')" );
}
nv_del_moduleCache( $module_name );
nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['add_cat'], $title, $admin_info['userid'] );
Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $parentid );
die();
}
else
{
$error = $lang_module['errorsave'];
}
}
elseif( $catid > 0 and $title != "" )
{
$sql = "UPDATE `" . NV_PREFIXLANG . "_" . $module_data . "_cat` SET `parentid`=" . $db->dbescape( $parentid ) . ", `title`=" . $db->dbescape( $title ) . ", `titlesite`=" . $db->dbescape( $titlesite ) . ", `alias` = " . $db->dbescape( $alias ) . ", `description`=" . $db->dbescape( $description ) . ", `keywords`= " . $db->dbescape( $keywords ) . ", `who_view`=" . $db->dbescape( $who_view ) . ", `groups_view`=" . $db->dbescape( $groups_view ) . ", `edit_time`=UNIX_TIMESTAMP() WHERE `catid` =" . $catid;
$db->sql_query( $sql );
if( $db->sql_affectedrows() > 0 )
{
$db->sql_freeresult();
if( $parentid != $parentid_old )
{
list( $weight ) = $db->sql_fetchrow( $db->sql_query( "SELECT max(`weight`) FROM `" . NV_PREFIXLANG . "_" . $module_data . "_cat` WHERE `parentid`=" . $db->dbescape( $parentid ) ) );
$weight = intval( $weight ) + 1;
$sql = "UPDATE `" . NV_PREFIXLANG . "_" . $module_data . "_cat` SET `weight`=" . $weight . " WHERE `catid`=" . intval( $catid );
$db->sql_query( $sql );
nv_fix_cat_order();
nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['edit_cat'], $title, $admin_info['userid'] );
}
nv_del_moduleCache( $module_name );
Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $parentid );
die();
}
else
{
$error = $lang_module['errorsave'];
}
$db->sql_freeresult();
}
else
{
$error = $lang_module['error_name'];
}
}
$parentid = $nv_Request->get_int( 'parentid', 'get,post', 0 );
$catid = $nv_Request->get_int( 'catid', 'get', 0 );
if( $catid > 0 and isset( $global_array_cat[$catid] ) )
{
$parentid = $global_array_cat[$catid]['parentid'];
$title = $global_array_cat[$catid]['title'];
$titlesite = $global_array_cat[$catid]['titlesite'];
$alias = $global_array_cat[$catid]['alias'];
$description = $global_array_cat[$catid]['description'];
$keywords = $global_array_cat[$catid]['keywords'];
$who_view = $global_array_cat[$catid]['who_view'];
$groups_view = $global_array_cat[$catid]['groups_view'];
if( ! defined( 'NV_IS_ADMIN_MODULE' ) )
{
if( ! ( isset( $array_cat_admin[$admin_id][$parentid] ) and $array_cat_admin[$admin_id][$parentid]['admin'] == 1 ) )
{
Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $parentid );
die();
}
}
$caption = $lang_module['edit_cat'];
$array_in_cat = GetCatidInParent( $catid );
}
else
{
$caption = $lang_module['add_cat'];
$array_in_cat = array();
}
$groups_view = explode( ",", $groups_view );
$array_cat_list = array();
if( defined( 'NV_IS_ADMIN_MODULE' ) )
{
$array_cat_list[0] = $lang_module['cat_sub_sl'];
}
foreach( $global_array_cat as $catid_i => $array_value )
{
$lev_i = $array_value['lev'];
if( defined( 'NV_IS_ADMIN_MODULE' ) or ( isset( $array_cat_admin[$admin_id][$catid_i] ) and $array_cat_admin[$admin_id][$catid_i]['admin'] == 1 ) )
{
$xtitle_i = "";
if( $lev_i > 0 )
{
$xtitle_i .= " |";
for( $i = 1; $i <= $lev_i; ++$i )
{
$xtitle_i .= "
}
$xtitle_i .= "> ";
}
$xtitle_i .= $array_value['title'];
$array_cat_list[$catid_i] = $xtitle_i;
}
}
if( ! empty( $array_cat_list ) )
{
$cat_listsub = array();
while( list( $catid_i, $title_i ) = each( $array_cat_list ) )
{
if( ! in_array( $catid_i, $array_in_cat ) )
{
$cat_listsub[] = array(
"value" => $catid_i,
"selected" => ( $catid_i == $parentid ) ? " selected=\"selected\"" : "",
"title" => $title_i
);
}
}
$who_views = array();
foreach( $array_who_view as $k => $w )
{
$who_views[] = array(
"value" => $k,
"selected" => ( $who_view == $k ) ? " selected=\"selected\"" : "",
"title" => $w
);
}
$groups_views = array();
foreach( $groups_list as $group_id => $grtl )
{
$groups_views[] = array(
"value" => $group_id,
"checked" => in_array( $group_id, $groups_view ) ? " checked=\"checked\"" : "",
"title" => $grtl
);
}
}
$xtpl = new XTemplate( "cat.tpl", NV_ROOTDIR . "/themes/" . $global_config['module_theme'] . "/modules/" . $module_file );
$xtpl->assign( 'LANG', $lang_module );
$xtpl->assign( 'GLANG', $lang_global );
$xtpl->assign( 'NV_BASE_ADMINURL', NV_BASE_ADMINURL );
$xtpl->assign( 'NV_NAME_VARIABLE', NV_NAME_VARIABLE );
$xtpl->assign( 'MODULE_NAME', $module_name );
$xtpl->assign( 'OP', $op );
$xtpl->assign( 'caption', $caption );
$xtpl->assign( 'catid', $catid );
$xtpl->assign( 'title', $title );
$xtpl->assign( 'titlesite', $titlesite );
$xtpl->assign( 'alias', $alias );
$xtpl->assign( 'parentid', $parentid );
$xtpl->assign( 'keywords', $keywords );
$xtpl->assign( 'description', $description );
$xtpl->assign( 'CAT_LIST', nv_show_cat_list( $parentid ) );
if( ! empty( $error ) )
{
$xtpl->assign( 'ERROR', $error );
$xtpl->parse( 'main.error' );
}
if( ! empty( $array_cat_list ) )
{
if( empty( $alias ) )
{
$xtpl->parse( 'main.content.getalias' );
}
foreach( $cat_listsub as $data )
{
$xtpl->assign( 'cat_listsub', $data );
$xtpl->parse( 'main.content.cat_listsub' );
}
foreach( $who_views as $data )
{
$xtpl->assign( 'who_views', $data );
$xtpl->parse( 'main.content.who_views' );
}
foreach( $groups_views as $data )
{
$xtpl->assign( 'groups_views', $data );
$xtpl->parse( 'main.content.groups_views' );
}
$xtpl->assign( 'hidediv', $who_view == 3 ? "visibility:visible;display:block;" : "visibility:hidden;display:none;" );
$xtpl->parse( 'main.content' );
}
$xtpl->parse( 'main' );
$contents .= $xtpl->text( 'main' );
include ( NV_ROOTDIR . "/includes/header.php" );
echo nv_admin_theme( $contents );
include ( NV_ROOTDIR . "/includes/footer.php" );
?>
|
(function( $ ){
$.fn.select_all = function() {
/* Multicheckbox selector */
var form = this;
//If checkboxes are 0 then do not show at all
if (this.find('input[type=checkbox]').size() > 0) {
var selectorbox = $("<input>")
.attr(
{
type: 'checkbox',
checked: false,
id: 'checkboxsel'
})
.click(function()
{
var checked_status = this.checked;
form.find("input[type=checkbox]").each(function()
{
this.checked = checked_status;
});
});
var selectorlabel = $("<label>")
.attr({
"for": 'checkboxsel'
})
.text("Select All: ");
selectorlabel.insertBefore(form);
selectorbox.insertBefore(form);
}
}
})( jQuery );
|
<?php
//include("variables.sl.php");
include_once(SL_INCLUDES_PATH."/top-nav.php");
?>
<div class='wrap'>
<?php
if (empty($_GET['pg'])) {
if (function_exists("<API key>")){ <API key>(); }
} elseif (!empty($_GET['pg'])) {
if (function_exists("do_sl_addons_{$_GET['pg']}")){ call_user_func("do_sl_addons_{$_GET['pg']}"); }
}
?>
</div>
<?php include(SL_INCLUDES_PATH."/sl-footer.php"); ?>
|
#include <linux/perf_event.h>
#include <linux/capability.h>
#include <linux/notifier.h>
#include <linux/hardirq.h>
#include <linux/kprobes.h>
#include <linux/module.h>
#include <linux/kdebug.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
#include <linux/highmem.h>
#include <linux/cpu.h>
#include <asm/apic.h>
#include <asm/stacktrace.h>
#include <asm/nmi.h>
static u64 perf_event_mask __read_mostly;
/* The maximal number of PEBS events: */
#define MAX_PEBS_EVENTS 4
/* The size of a BTS record in bytes: */
#define BTS_RECORD_SIZE 24
/* The size of a per-cpu BTS buffer in bytes: */
#define BTS_BUFFER_SIZE (BTS_RECORD_SIZE * 2048)
/* The BTS overflow threshold in bytes from the end of the buffer: */
#define BTS_OVFL_TH (BTS_RECORD_SIZE * 128)
/*
* Bits in the debugctlmsr controlling branch tracing.
*/
#define X86_DEBUGCTL_TR (1 << 6)
#define X86_DEBUGCTL_BTS (1 << 7)
#define X86_DEBUGCTL_BTINT (1 << 8)
#define <API key> (1 << 9)
#define <API key> (1 << 10)
/*
* A debug store configuration.
*
* We only support architectures that use 64bit fields.
*/
struct debug_store {
u64 bts_buffer_base;
u64 bts_index;
u64 <API key>;
u64 <API key>;
u64 pebs_buffer_base;
u64 pebs_index;
u64 <API key>;
u64 <API key>;
u64 pebs_event_reset[MAX_PEBS_EVENTS];
};
struct cpu_hw_events {
struct perf_event *events[X86_PMC_IDX_MAX];
unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
unsigned long active_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
unsigned long interrupts;
int enabled;
struct debug_store *ds;
};
/*
* struct x86_pmu - generic x86 pmu
*/
struct x86_pmu {
const char *name;
int version;
int (*handle_irq)(struct pt_regs *);
void (*disable_all)(void);
void (*enable_all)(void);
void (*enable)(struct hw_perf_event *, int);
void (*disable)(struct hw_perf_event *, int);
unsigned eventsel;
unsigned perfctr;
u64 (*event_map)(int);
u64 (*raw_event)(u64);
int max_events;
int num_events;
int num_events_fixed;
int event_bits;
u64 event_mask;
int apic;
u64 max_period;
u64 intel_ctrl;
void (*enable_bts)(u64 config);
void (*disable_bts)(void);
};
static struct x86_pmu x86_pmu __read_mostly;
static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events) = {
.enabled = 1,
};
/*
* Not sure about some of these
*/
static const u64 <API key>[] =
{
[<API key>] = 0x0079,
[<API key>] = 0x00c0,
[<API key>] = 0x0f2e,
[<API key>] = 0x012e,
[<API key>] = 0x00c4,
[<API key>] = 0x00c5,
[<API key>] = 0x0062,
};
static u64 p6_pmu_event_map(int hw_event)
{
return <API key>[hw_event];
}
/*
* Event setting that is specified not to count anything.
* We use this to effectively disable a counter.
*
* L2_RQSTS with 0 MESI unit mask.
*/
#define P6_NOP_EVENT 0x0000002EULL
static u64 p6_pmu_raw_event(u64 hw_event)
{
#define <API key> 0x000000FFULL
#define <API key> 0x0000FF00ULL
#define <API key> 0x00040000ULL
#define P6_EVNTSEL_INV_MASK 0x00800000ULL
#define P6_EVNTSEL_REG_MASK 0xFF000000ULL
#define P6_EVNTSEL_MASK \
(<API key> | \
<API key> | \
<API key> | \
P6_EVNTSEL_INV_MASK | \
P6_EVNTSEL_REG_MASK)
return hw_event & P6_EVNTSEL_MASK;
}
/*
* Intel PerfMon v3. Used on Core2 and later.
*/
static const u64 <API key>[] =
{
[<API key>] = 0x003c,
[<API key>] = 0x00c0,
[<API key>] = 0x4f2e,
[<API key>] = 0x412e,
[<API key>] = 0x00c4,
[<API key>] = 0x00c5,
[<API key>] = 0x013c,
};
static u64 intel_pmu_event_map(int hw_event)
{
return <API key>[hw_event];
}
/*
* Generalized hw caching related hw_event table, filled
* in on a per model basis. A value of 0 means
* 'not supported', -1 means 'hw_event makes no sense on
* this CPU', any other value means the raw hw_event
* ID.
*/
#define C(x) <API key>
static u64 __read_mostly hw_cache_event_ids
[<API key>]
[<API key>]
[<API key>];
static const u64 <API key>
[<API key>]
[<API key>]
[<API key>] =
{
[ C(L1D) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x010b, /* MEM_INST_RETIRED.LOADS */
[ C(RESULT_MISS) ] = 0x0151, /* L1D.REPL */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x020b, /* MEM_INST_RETURED.STORES */
[ C(RESULT_MISS) ] = 0x0251, /* L1D.M_REPL */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x014e, /* L1D_PREFETCH.REQUESTS */
[ C(RESULT_MISS) ] = 0x024e, /* L1D_PREFETCH.MISS */
},
},
[ C(L1I ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0380, /* L1I.READS */
[ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0,
[ C(RESULT_MISS) ] = 0x0,
},
},
[ C(LL ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0324, /* L2_RQSTS.LOADS */
[ C(RESULT_MISS) ] = 0x0224, /* L2_RQSTS.LD_MISS */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0c24, /* L2_RQSTS.RFOS */
[ C(RESULT_MISS) ] = 0x0824, /* L2_RQSTS.RFO_MISS */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x4f2e, /* LLC Reference */
[ C(RESULT_MISS) ] = 0x412e, /* LLC Misses */
},
},
[ C(DTLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x010b, /* MEM_INST_RETIRED.LOADS */
[ C(RESULT_MISS) ] = 0x0108, /* DTLB_LOAD_MISSES.ANY */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x020b, /* MEM_INST_RETURED.STORES */
[ C(RESULT_MISS) ] = 0x010c, /* MEM_STORE_RETIRED.DTLB_MISS */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0,
[ C(RESULT_MISS) ] = 0x0,
},
},
[ C(ITLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x01c0, /* INST_RETIRED.ANY_P */
[ C(RESULT_MISS) ] = 0x0185, /* ITLB_MISSES.ANY */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
[ C(BPU ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c4, /* BR_INST_RETIRED.ALL_BRANCHES */
[ C(RESULT_MISS) ] = 0x03e8, /* BPU_CLEARS.ANY */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
};
static const u64 <API key>
[<API key>]
[<API key>]
[<API key>] =
{
[ C(L1D) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0f40, /* L1D_CACHE_LD.MESI */
[ C(RESULT_MISS) ] = 0x0140, /* L1D_CACHE_LD.I_STATE */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0f41, /* L1D_CACHE_ST.MESI */
[ C(RESULT_MISS) ] = 0x0141, /* L1D_CACHE_ST.I_STATE */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x014e, /* L1D_PREFETCH.REQUESTS */
[ C(RESULT_MISS) ] = 0x024e, /* L1D_PREFETCH.MISS */
},
},
[ C(L1I ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0380, /* L1I.READS */
[ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0,
[ C(RESULT_MISS) ] = 0x0,
},
},
[ C(LL ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0324, /* L2_RQSTS.LOADS */
[ C(RESULT_MISS) ] = 0x0224, /* L2_RQSTS.LD_MISS */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0c24, /* L2_RQSTS.RFOS */
[ C(RESULT_MISS) ] = 0x0824, /* L2_RQSTS.RFO_MISS */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x4f2e, /* LLC Reference */
[ C(RESULT_MISS) ] = 0x412e, /* LLC Misses */
},
},
[ C(DTLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0f40, /* L1D_CACHE_LD.MESI (alias) */
[ C(RESULT_MISS) ] = 0x0108, /* DTLB_LOAD_MISSES.ANY */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0f41, /* L1D_CACHE_ST.MESI (alias) */
[ C(RESULT_MISS) ] = 0x010c, /* MEM_STORE_RETIRED.DTLB_MISS */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0,
[ C(RESULT_MISS) ] = 0x0,
},
},
[ C(ITLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x01c0, /* INST_RETIRED.ANY_P */
[ C(RESULT_MISS) ] = 0x20c8, /* ITLB_MISS_RETIRED */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
[ C(BPU ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c4, /* BR_INST_RETIRED.ALL_BRANCHES */
[ C(RESULT_MISS) ] = 0x03e8, /* BPU_CLEARS.ANY */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
};
static const u64 <API key>
[<API key>]
[<API key>]
[<API key>] =
{
[ C(L1D) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0f40, /* L1D_CACHE_LD.MESI */
[ C(RESULT_MISS) ] = 0x0140, /* L1D_CACHE_LD.I_STATE */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0f41, /* L1D_CACHE_ST.MESI */
[ C(RESULT_MISS) ] = 0x0141, /* L1D_CACHE_ST.I_STATE */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x104e, /* L1D_PREFETCH.REQUESTS */
[ C(RESULT_MISS) ] = 0,
},
},
[ C(L1I ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0080, /* L1I.READS */
[ C(RESULT_MISS) ] = 0x0081, /* L1I.MISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(LL ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x4f29, /* L2_LD.MESI */
[ C(RESULT_MISS) ] = 0x4129, /* L2_LD.ISTATE */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x4f2A, /* L2_ST.MESI */
[ C(RESULT_MISS) ] = 0x412A, /* L2_ST.ISTATE */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(DTLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0f40, /* L1D_CACHE_LD.MESI (alias) */
[ C(RESULT_MISS) ] = 0x0208, /* DTLB_MISSES.MISS_LD */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0f41, /* L1D_CACHE_ST.MESI (alias) */
[ C(RESULT_MISS) ] = 0x0808, /* DTLB_MISSES.MISS_ST */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(ITLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c0, /* INST_RETIRED.ANY_P */
[ C(RESULT_MISS) ] = 0x1282, /* ITLBMISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
[ C(BPU ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c4, /* BR_INST_RETIRED.ANY */
[ C(RESULT_MISS) ] = 0x00c5, /* BP_INST_RETIRED.MISPRED */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
};
static const u64 <API key>
[<API key>]
[<API key>]
[<API key>] =
{
[ C(L1D) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x2140, /* L1D_CACHE.LD */
[ C(RESULT_MISS) ] = 0,
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x2240, /* L1D_CACHE.ST */
[ C(RESULT_MISS) ] = 0,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(L1I ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0380, /* L1I.READS */
[ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(LL ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x4f29, /* L2_LD.MESI */
[ C(RESULT_MISS) ] = 0x4129, /* L2_LD.ISTATE */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x4f2A, /* L2_ST.MESI */
[ C(RESULT_MISS) ] = 0x412A, /* L2_ST.ISTATE */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(DTLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x2140, /* L1D_CACHE_LD.MESI (alias) */
[ C(RESULT_MISS) ] = 0x0508, /* DTLB_MISSES.MISS_LD */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x2240, /* L1D_CACHE_ST.MESI (alias) */
[ C(RESULT_MISS) ] = 0x0608, /* DTLB_MISSES.MISS_ST */
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(ITLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c0, /* INST_RETIRED.ANY_P */
[ C(RESULT_MISS) ] = 0x0282, /* ITLB.MISSES */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
[ C(BPU ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c4, /* BR_INST_RETIRED.ANY */
[ C(RESULT_MISS) ] = 0x00c5, /* BP_INST_RETIRED.MISPRED */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
};
static u64 intel_pmu_raw_event(u64 hw_event)
{
#define <API key> 0x000000FFULL
#define <API key> 0x0000FF00ULL
#define <API key> 0x00040000ULL
#define <API key> 0x00800000ULL
#define <API key> 0xFF000000ULL
#define CORE_EVNTSEL_MASK \
(<API key> | \
<API key> | \
<API key> | \
<API key> | \
<API key>)
return hw_event & CORE_EVNTSEL_MASK;
}
static const u64 <API key>
[<API key>]
[<API key>]
[<API key>] =
{
[ C(L1D) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0040, /* Data Cache Accesses */
[ C(RESULT_MISS) ] = 0x0041, /* Data Cache Misses */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x0142, /* Data Cache Refills :system */
[ C(RESULT_MISS) ] = 0,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x0267, /* Data Prefetcher :attempts */
[ C(RESULT_MISS) ] = 0x0167, /* Data Prefetcher :cancelled */
},
},
[ C(L1I ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0080, /* Instruction cache fetches */
[ C(RESULT_MISS) ] = 0x0081, /* Instruction cache misses */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0x014B, /* Prefetch Instructions :Load */
[ C(RESULT_MISS) ] = 0,
},
},
[ C(LL ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x037D, /* Requests to L2 Cache :IC+DC */
[ C(RESULT_MISS) ] = 0x037E, /* L2 Cache Misses : IC+DC */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0x017F, /* L2 Fill/Writeback */
[ C(RESULT_MISS) ] = 0,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(DTLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0040, /* Data Cache Accesses */
[ C(RESULT_MISS) ] = 0x0046, /* L1 DTLB and L2 DLTB Miss */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = 0,
[ C(RESULT_MISS) ] = 0,
},
},
[ C(ITLB) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x0080, /* Instruction fecthes */
[ C(RESULT_MISS) ] = 0x0085, /* Instr. fetch ITLB misses */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
[ C(BPU ) ] = {
[ C(OP_READ) ] = {
[ C(RESULT_ACCESS) ] = 0x00c2, /* Retired Branch Instr. */
[ C(RESULT_MISS) ] = 0x00c3, /* Retired Mispredicted BI */
},
[ C(OP_WRITE) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
[ C(OP_PREFETCH) ] = {
[ C(RESULT_ACCESS) ] = -1,
[ C(RESULT_MISS) ] = -1,
},
},
};
/*
* AMD Performance Monitor K7 and later.
*/
static const u64 <API key>[] =
{
[<API key>] = 0x0076,
[<API key>] = 0x00c0,
[<API key>] = 0x0080,
[<API key>] = 0x0081,
[<API key>] = 0x00c4,
[<API key>] = 0x00c5,
};
static u64 amd_pmu_event_map(int hw_event)
{
return <API key>[hw_event];
}
static u64 amd_pmu_raw_event(u64 hw_event)
{
#define <API key> 0x7000000FFULL
#define <API key> 0x00000FF00ULL
#define <API key> 0x000040000ULL
#define K7_EVNTSEL_INV_MASK 0x000800000ULL
#define K7_EVNTSEL_REG_MASK 0x0FF000000ULL
#define K7_EVNTSEL_MASK \
(<API key> | \
<API key> | \
<API key> | \
K7_EVNTSEL_INV_MASK | \
K7_EVNTSEL_REG_MASK)
return hw_event & K7_EVNTSEL_MASK;
}
/*
* Propagate event elapsed time into the generic event.
* Can only be executed on the CPU where the event is active.
* Returns the delta events processed.
*/
static u64
<API key>(struct perf_event *event,
struct hw_perf_event *hwc, int idx)
{
int shift = 64 - x86_pmu.event_bits;
u64 prev_raw_count, new_raw_count;
s64 delta;
if (idx == <API key>)
return 0;
/*
* Careful: an NMI might modify the previous event value.
*
* Our tactic to handle this is to first atomically read and
* exchange a new raw count - then add that new-prev delta
* count to the generic event atomically:
*/
again:
prev_raw_count = atomic64_read(&hwc->prev_count);
rdmsrl(hwc->event_base + idx, new_raw_count);
if (atomic64_cmpxchg(&hwc->prev_count, prev_raw_count,
new_raw_count) != prev_raw_count)
goto again;
/*
* Now we have the new raw value and have updated the prev
* timestamp already. We can now calculate the elapsed delta
* (event-)time and add that to the generic event.
*
* Careful, not all hw sign-extends above the physical width
* of the count.
*/
delta = (new_raw_count << shift) - (prev_raw_count << shift);
delta >>= shift;
atomic64_add(delta, &event->count);
atomic64_sub(delta, &hwc->period_left);
return new_raw_count;
}
static atomic_t active_events;
static DEFINE_MUTEX(pmc_reserve_mutex);
static bool <API key>(void)
{
#ifdef <API key>
int i;
if (nmi_watchdog == NMI_LOCAL_APIC)
<API key>();
for (i = 0; i < x86_pmu.num_events; i++) {
if (!reserve_perfctr_nmi(x86_pmu.perfctr + i))
goto perfctr_fail;
}
for (i = 0; i < x86_pmu.num_events; i++) {
if (!reserve_evntsel_nmi(x86_pmu.eventsel + i))
goto eventsel_fail;
}
#endif
return true;
#ifdef <API key>
eventsel_fail:
for (i--; i >= 0; i--)
release_evntsel_nmi(x86_pmu.eventsel + i);
i = x86_pmu.num_events;
perfctr_fail:
for (i--; i >= 0; i--)
release_perfctr_nmi(x86_pmu.perfctr + i);
if (nmi_watchdog == NMI_LOCAL_APIC)
<API key>();
return false;
#endif
}
static void <API key>(void)
{
#ifdef <API key>
int i;
for (i = 0; i < x86_pmu.num_events; i++) {
release_perfctr_nmi(x86_pmu.perfctr + i);
release_evntsel_nmi(x86_pmu.eventsel + i);
}
if (nmi_watchdog == NMI_LOCAL_APIC)
<API key>();
#endif
}
static inline bool bts_available(void)
{
return x86_pmu.enable_bts != NULL;
}
static inline void <API key>(int cpu)
{
struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds;
if (!ds)
return;
wrmsr_on_cpu(cpu, MSR_IA32_DS_AREA,
(u32)((u64)(unsigned long)ds),
(u32)((u64)(unsigned long)ds >> 32));
}
static inline void <API key>(int cpu)
{
if (!per_cpu(cpu_hw_events, cpu).ds)
return;
wrmsr_on_cpu(cpu, MSR_IA32_DS_AREA, 0, 0);
}
static void <API key>(void)
{
int cpu;
if (!bts_available())
return;
get_online_cpus();
for_each_online_cpu(cpu)
<API key>(cpu);
<API key>(cpu) {
struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds;
if (!ds)
continue;
per_cpu(cpu_hw_events, cpu).ds = NULL;
kfree((void *)(unsigned long)ds->bts_buffer_base);
kfree(ds);
}
put_online_cpus();
}
static int <API key>(void)
{
int cpu, err = 0;
if (!bts_available())
return 0;
get_online_cpus();
<API key>(cpu) {
struct debug_store *ds;
void *buffer;
err = -ENOMEM;
buffer = kzalloc(BTS_BUFFER_SIZE, GFP_KERNEL);
if (unlikely(!buffer))
break;
ds = kzalloc(sizeof(*ds), GFP_KERNEL);
if (unlikely(!ds)) {
kfree(buffer);
break;
}
ds->bts_buffer_base = (u64)(unsigned long)buffer;
ds->bts_index = ds->bts_buffer_base;
ds-><API key> =
ds->bts_buffer_base + BTS_BUFFER_SIZE;
ds-><API key> =
ds-><API key> - BTS_OVFL_TH;
per_cpu(cpu_hw_events, cpu).ds = ds;
err = 0;
}
if (err)
<API key>();
else {
for_each_online_cpu(cpu)
<API key>(cpu);
}
put_online_cpus();
return err;
}
static void <API key>(struct perf_event *event)
{
if (<API key>(&active_events, &pmc_reserve_mutex)) {
<API key>();
<API key>();
mutex_unlock(&pmc_reserve_mutex);
}
}
static inline int x86_pmu_initialized(void)
{
return x86_pmu.handle_irq != NULL;
}
static inline int
set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event_attr *attr)
{
unsigned int cache_type, cache_op, cache_result;
u64 config, val;
config = attr->config;
cache_type = (config >> 0) & 0xff;
if (cache_type >= <API key>)
return -EINVAL;
cache_op = (config >> 8) & 0xff;
if (cache_op >= <API key>)
return -EINVAL;
cache_result = (config >> 16) & 0xff;
if (cache_result >= <API key>)
return -EINVAL;
val = hw_cache_event_ids[cache_type][cache_op][cache_result];
if (val == 0)
return -ENOENT;
if (val == -1)
return -EINVAL;
hwc->config |= val;
return 0;
}
static void <API key>(u64 config)
{
unsigned long debugctlmsr;
debugctlmsr = get_debugctlmsr();
debugctlmsr |= X86_DEBUGCTL_TR;
debugctlmsr |= X86_DEBUGCTL_BTS;
debugctlmsr |= X86_DEBUGCTL_BTINT;
if (!(config & <API key>))
debugctlmsr |= <API key>;
if (!(config & <API key>))
debugctlmsr |= <API key>;
update_debugctlmsr(debugctlmsr);
}
static void <API key>(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
unsigned long debugctlmsr;
if (!cpuc->ds)
return;
debugctlmsr = get_debugctlmsr();
debugctlmsr &=
~(X86_DEBUGCTL_TR | X86_DEBUGCTL_BTS | X86_DEBUGCTL_BTINT |
<API key> | <API key>);
update_debugctlmsr(debugctlmsr);
}
/*
* Setup the hardware configuration for a given attr_type
*/
static int <API key>(struct perf_event *event)
{
struct perf_event_attr *attr = &event->attr;
struct hw_perf_event *hwc = &event->hw;
u64 config;
int err;
if (!x86_pmu_initialized())
return -ENODEV;
err = 0;
if (!atomic_inc_not_zero(&active_events)) {
mutex_lock(&pmc_reserve_mutex);
if (atomic_read(&active_events) == 0) {
if (!<API key>())
err = -EBUSY;
else
err = <API key>();
}
if (!err)
atomic_inc(&active_events);
mutex_unlock(&pmc_reserve_mutex);
}
if (err)
return err;
event->destroy = <API key>;
/*
* Generate PMC IRQs:
* (keep 'enabled' bit clear for now)
*/
hwc->config = <API key>;
/*
* Count user and OS events unless requested not to.
*/
if (!attr->exclude_user)
hwc->config |= <API key>;
if (!attr->exclude_kernel)
hwc->config |= <API key>;
if (!hwc->sample_period) {
hwc->sample_period = x86_pmu.max_period;
hwc->last_period = hwc->sample_period;
atomic64_set(&hwc->period_left, hwc->sample_period);
} else {
/*
* If we have a PMU initialized but no APIC
* interrupts, we cannot sample hardware
* events (user-space has to fall back and
* sample via a hrtimer based software event):
*/
if (!x86_pmu.apic)
return -EOPNOTSUPP;
}
/*
* Raw hw_event type provide the config in the hw_event structure
*/
if (attr->type == PERF_TYPE_RAW) {
hwc->config |= x86_pmu.raw_event(attr->config);
return 0;
}
if (attr->type == PERF_TYPE_HW_CACHE)
return set_ext_hw_attr(hwc, attr);
if (attr->config >= x86_pmu.max_events)
return -EINVAL;
/*
* The generic map:
*/
config = x86_pmu.event_map(attr->config);
if (config == 0)
return -ENOENT;
if (config == -1LL)
return -EINVAL;
/*
* Branch tracing:
*/
if ((attr->config == <API key>) &&
(hwc->sample_period == 1)) {
/* BTS is not supported by this architecture. */
if (!bts_available())
return -EOPNOTSUPP;
/* BTS is currently only allowed for user-mode. */
if (hwc->config & <API key>)
return -EOPNOTSUPP;
}
hwc->config |= config;
return 0;
}
static void p6_pmu_disable_all(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
u64 val;
if (!cpuc->enabled)
return;
cpuc->enabled = 0;
barrier();
/* p6 only has one enable register */
rdmsrl(MSR_P6_EVNTSEL0, val);
val &= ~<API key>;
wrmsrl(MSR_P6_EVNTSEL0, val);
}
static void <API key>(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
if (!cpuc->enabled)
return;
cpuc->enabled = 0;
barrier();
wrmsrl(<API key>, 0);
if (test_bit(<API key>, cpuc->active_mask))
<API key>();
}
static void amd_pmu_disable_all(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
int idx;
if (!cpuc->enabled)
return;
cpuc->enabled = 0;
/*
* ensure we write the disable before we start disabling the
* events proper, so that <API key>() does the
* right thing.
*/
barrier();
for (idx = 0; idx < x86_pmu.num_events; idx++) {
u64 val;
if (!test_bit(idx, cpuc->active_mask))
continue;
rdmsrl(MSR_K7_EVNTSEL0 + idx, val);
if (!(val & <API key>))
continue;
val &= ~<API key>;
wrmsrl(MSR_K7_EVNTSEL0 + idx, val);
}
}
void hw_perf_disable(void)
{
if (!x86_pmu_initialized())
return;
return x86_pmu.disable_all();
}
static void p6_pmu_enable_all(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
unsigned long val;
if (cpuc->enabled)
return;
cpuc->enabled = 1;
barrier();
/* p6 only has one enable register */
rdmsrl(MSR_P6_EVNTSEL0, val);
val |= <API key>;
wrmsrl(MSR_P6_EVNTSEL0, val);
}
static void <API key>(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
if (cpuc->enabled)
return;
cpuc->enabled = 1;
barrier();
wrmsrl(<API key>, x86_pmu.intel_ctrl);
if (test_bit(<API key>, cpuc->active_mask)) {
struct perf_event *event =
cpuc->events[<API key>];
if (WARN_ON_ONCE(!event))
return;
<API key>(event->hw.config);
}
}
static void amd_pmu_enable_all(void)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
int idx;
if (cpuc->enabled)
return;
cpuc->enabled = 1;
barrier();
for (idx = 0; idx < x86_pmu.num_events; idx++) {
struct perf_event *event = cpuc->events[idx];
u64 val;
if (!test_bit(idx, cpuc->active_mask))
continue;
val = event->hw.config;
val |= <API key>;
wrmsrl(MSR_K7_EVNTSEL0 + idx, val);
}
}
void hw_perf_enable(void)
{
if (!x86_pmu_initialized())
return;
x86_pmu.enable_all();
}
static inline u64 <API key>(void)
{
u64 status;
rdmsrl(<API key>, status);
return status;
}
static inline void <API key>(u64 ack)
{
wrmsrl(<API key>, ack);
}
static inline void <API key>(struct hw_perf_event *hwc, int idx)
{
(void)checking_wrmsrl(hwc->config_base + idx,
hwc->config | <API key>);
}
static inline void <API key>(struct hw_perf_event *hwc, int idx)
{
(void)checking_wrmsrl(hwc->config_base + idx, hwc->config);
}
static inline void
<API key>(struct hw_perf_event *hwc, int __idx)
{
int idx = __idx - X86_PMC_IDX_FIXED;
u64 ctrl_val, mask;
mask = 0xfULL << (idx * 4);
rdmsrl(hwc->config_base, ctrl_val);
ctrl_val &= ~mask;
(void)checking_wrmsrl(hwc->config_base, ctrl_val);
}
static inline void
<API key>(struct hw_perf_event *hwc, int idx)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
u64 val = P6_NOP_EVENT;
if (cpuc->enabled)
val |= <API key>;
(void)checking_wrmsrl(hwc->config_base + idx, val);
}
static inline void
<API key>(struct hw_perf_event *hwc, int idx)
{
if (unlikely(idx == <API key>)) {
<API key>();
return;
}
if (unlikely(hwc->config_base == <API key>)) {
<API key>(hwc, idx);
return;
}
<API key>(hwc, idx);
}
static inline void
<API key>(struct hw_perf_event *hwc, int idx)
{
<API key>(hwc, idx);
}
static DEFINE_PER_CPU(u64 [X86_PMC_IDX_MAX], pmc_prev_left);
/*
* Set the next IRQ period, based on the hwc->period_left value.
* To be called with the event disabled in hw:
*/
static int
<API key>(struct perf_event *event,
struct hw_perf_event *hwc, int idx)
{
s64 left = atomic64_read(&hwc->period_left);
s64 period = hwc->sample_period;
int err, ret = 0;
if (idx == <API key>)
return 0;
/*
* If we are way outside a reasoable range then just skip forward:
*/
if (unlikely(left <= -period)) {
left = period;
atomic64_set(&hwc->period_left, left);
hwc->last_period = period;
ret = 1;
}
if (unlikely(left <= 0)) {
left += period;
atomic64_set(&hwc->period_left, left);
hwc->last_period = period;
ret = 1;
}
/*
* Quirk: certain CPUs dont like it if just 1 hw_event is left:
*/
if (unlikely(left < 2))
left = 2;
if (left > x86_pmu.max_period)
left = x86_pmu.max_period;
per_cpu(pmc_prev_left[idx], smp_processor_id()) = left;
/*
* The hw event starts counting from this event offset,
* mark it to be able to extra future deltas:
*/
atomic64_set(&hwc->prev_count, (u64)-left);
err = checking_wrmsrl(hwc->event_base + idx,
(u64)(-left) & x86_pmu.event_mask);
<API key>(event);
return ret;
}
static inline void
<API key>(struct hw_perf_event *hwc, int __idx)
{
int idx = __idx - X86_PMC_IDX_FIXED;
u64 ctrl_val, bits, mask;
int err;
/*
* Enable IRQ generation (0x8),
* and enable ring-3 counting (0x2) and ring-0 counting (0x1)
* if requested:
*/
bits = 0x8ULL;
if (hwc->config & <API key>)
bits |= 0x2;
if (hwc->config & <API key>)
bits |= 0x1;
bits <<= (idx * 4);
mask = 0xfULL << (idx * 4);
rdmsrl(hwc->config_base, ctrl_val);
ctrl_val &= ~mask;
ctrl_val |= bits;
err = checking_wrmsrl(hwc->config_base, ctrl_val);
}
static void p6_pmu_enable_event(struct hw_perf_event *hwc, int idx)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
u64 val;
val = hwc->config;
if (cpuc->enabled)
val |= <API key>;
(void)checking_wrmsrl(hwc->config_base + idx, val);
}
static void <API key>(struct hw_perf_event *hwc, int idx)
{
if (unlikely(idx == <API key>)) {
if (!__get_cpu_var(cpu_hw_events).enabled)
return;
<API key>(hwc->config);
return;
}
if (unlikely(hwc->config_base == <API key>)) {
<API key>(hwc, idx);
return;
}
<API key>(hwc, idx);
}
static void <API key>(struct hw_perf_event *hwc, int idx)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
if (cpuc->enabled)
<API key>(hwc, idx);
}
static int
fixed_mode_idx(struct perf_event *event, struct hw_perf_event *hwc)
{
unsigned int hw_event;
hw_event = hwc->config & <API key>;
if (unlikely((hw_event ==
x86_pmu.event_map(<API key>)) &&
(hwc->sample_period == 1)))
return <API key>;
if (!x86_pmu.num_events_fixed)
return -1;
if (unlikely(hw_event == x86_pmu.event_map(<API key>)))
return <API key>;
if (unlikely(hw_event == x86_pmu.event_map(<API key>)))
return <API key>;
if (unlikely(hw_event == x86_pmu.event_map(<API key>)))
return <API key>;
return -1;
}
/*
* Find a PMC slot for the freshly enabled / scheduled in event:
*/
static int x86_pmu_enable(struct perf_event *event)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
struct hw_perf_event *hwc = &event->hw;
int idx;
idx = fixed_mode_idx(event, hwc);
if (idx == <API key>) {
/* BTS is already occupied. */
if (test_and_set_bit(idx, cpuc->used_mask))
return -EAGAIN;
hwc->config_base = 0;
hwc->event_base = 0;
hwc->idx = idx;
} else if (idx >= 0) {
/*
* Try to get the fixed event, if that is already taken
* then try to get a generic event:
*/
if (test_and_set_bit(idx, cpuc->used_mask))
goto try_generic;
hwc->config_base = <API key>;
/*
* We set it so that event_base + idx in wrmsr/rdmsr maps to
* <API key> ... CTR2:
*/
hwc->event_base =
<API key> - X86_PMC_IDX_FIXED;
hwc->idx = idx;
} else {
idx = hwc->idx;
/* Try to get the previous generic event again */
if (test_and_set_bit(idx, cpuc->used_mask)) {
try_generic:
idx = find_first_zero_bit(cpuc->used_mask,
x86_pmu.num_events);
if (idx == x86_pmu.num_events)
return -EAGAIN;
set_bit(idx, cpuc->used_mask);
hwc->idx = idx;
}
hwc->config_base = x86_pmu.eventsel;
hwc->event_base = x86_pmu.perfctr;
}
<API key>();
x86_pmu.disable(hwc, idx);
cpuc->events[idx] = event;
set_bit(idx, cpuc->active_mask);
<API key>(event, hwc, idx);
x86_pmu.enable(hwc, idx);
<API key>(event);
return 0;
}
static void x86_pmu_unthrottle(struct perf_event *event)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
struct hw_perf_event *hwc = &event->hw;
if (WARN_ON_ONCE(hwc->idx >= X86_PMC_IDX_MAX ||
cpuc->events[hwc->idx] != event))
return;
x86_pmu.enable(hwc, hwc->idx);
}
void <API key>(void)
{
u64 ctrl, status, overflow, pmc_ctrl, pmc_count, prev_left, fixed;
struct cpu_hw_events *cpuc;
unsigned long flags;
int cpu, idx;
if (!x86_pmu.num_events)
return;
local_irq_save(flags);
cpu = smp_processor_id();
cpuc = &per_cpu(cpu_hw_events, cpu);
if (x86_pmu.version >= 2) {
rdmsrl(<API key>, ctrl);
rdmsrl(<API key>, status);
rdmsrl(<API key>, overflow);
rdmsrl(<API key>, fixed);
pr_info("\n");
pr_info("CPU#%d: ctrl: %016llx\n", cpu, ctrl);
pr_info("CPU#%d: status: %016llx\n", cpu, status);
pr_info("CPU#%d: overflow: %016llx\n", cpu, overflow);
pr_info("CPU#%d: fixed: %016llx\n", cpu, fixed);
}
pr_info("CPU#%d: used: %016llx\n", cpu, *(u64 *)cpuc->used_mask);
for (idx = 0; idx < x86_pmu.num_events; idx++) {
rdmsrl(x86_pmu.eventsel + idx, pmc_ctrl);
rdmsrl(x86_pmu.perfctr + idx, pmc_count);
prev_left = per_cpu(pmc_prev_left[idx], cpu);
pr_info("CPU#%d: gen-PMC%d ctrl: %016llx\n",
cpu, idx, pmc_ctrl);
pr_info("CPU#%d: gen-PMC%d count: %016llx\n",
cpu, idx, pmc_count);
pr_info("CPU#%d: gen-PMC%d left: %016llx\n",
cpu, idx, prev_left);
}
for (idx = 0; idx < x86_pmu.num_events_fixed; idx++) {
rdmsrl(<API key> + idx, pmc_count);
pr_info("CPU#%d: fixed-PMC%d count: %016llx\n",
cpu, idx, pmc_count);
}
local_irq_restore(flags);
}
static void <API key>(struct cpu_hw_events *cpuc)
{
struct debug_store *ds = cpuc->ds;
struct bts_record {
u64 from;
u64 to;
u64 flags;
};
struct perf_event *event = cpuc->events[<API key>];
struct bts_record *at, *top;
struct perf_output_handle handle;
struct perf_event_header header;
struct perf_sample_data data;
struct pt_regs regs;
if (!event)
return;
if (!ds)
return;
at = (struct bts_record *)(unsigned long)ds->bts_buffer_base;
top = (struct bts_record *)(unsigned long)ds->bts_index;
if (top <= at)
return;
ds->bts_index = ds->bts_buffer_base;
data.period = event->hw.last_period;
data.addr = 0;
regs.ip = 0;
/*
* Prepare a generic sample, i.e. fill in the invariant fields.
* We will overwrite the from and to address before we output
* the sample.
*/
perf_prepare_sample(&header, &data, event, ®s);
if (perf_output_begin(&handle, event,
header.size * (top - at), 1, 1))
return;
for (; at < top; at++) {
data.ip = at->from;
data.addr = at->to;
perf_output_sample(&handle, &header, &data, event);
}
perf_output_end(&handle);
/* There's new data available. */
event->hw.interrupts++;
event->pending_kill = POLL_IN;
}
static void x86_pmu_disable(struct perf_event *event)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
struct hw_perf_event *hwc = &event->hw;
int idx = hwc->idx;
/*
* Must be done before we disable, otherwise the nmi handler
* could reenable again:
*/
clear_bit(idx, cpuc->active_mask);
x86_pmu.disable(hwc, idx);
/*
* Make sure the cleared pointer becomes visible before we
* (potentially) free the event:
*/
barrier();
/*
* Drain the remaining delta count out of a event
* that we are disabling:
*/
<API key>(event, hwc, idx);
/* Drain the remaining BTS records. */
if (unlikely(idx == <API key>))
<API key>(cpuc);
cpuc->events[idx] = NULL;
clear_bit(idx, cpuc->used_mask);
<API key>(event);
}
/*
* Save and restart an expired event. Called by NMI contexts,
* so it has to be careful about preempting normal event ops:
*/
static int <API key>(struct perf_event *event)
{
struct hw_perf_event *hwc = &event->hw;
int idx = hwc->idx;
int ret;
<API key>(event, hwc, idx);
ret = <API key>(event, hwc, idx);
if (event->state == <API key>)
<API key>(hwc, idx);
return ret;
}
static void intel_pmu_reset(void)
{
struct debug_store *ds = __get_cpu_var(cpu_hw_events).ds;
unsigned long flags;
int idx;
if (!x86_pmu.num_events)
return;
local_irq_save(flags);
printk("clearing PMU state on CPU#%d\n", smp_processor_id());
for (idx = 0; idx < x86_pmu.num_events; idx++) {
checking_wrmsrl(x86_pmu.eventsel + idx, 0ull);
checking_wrmsrl(x86_pmu.perfctr + idx, 0ull);
}
for (idx = 0; idx < x86_pmu.num_events_fixed; idx++) {
checking_wrmsrl(<API key> + idx, 0ull);
}
if (ds)
ds->bts_index = ds->bts_buffer_base;
local_irq_restore(flags);
}
static int p6_pmu_handle_irq(struct pt_regs *regs)
{
struct perf_sample_data data;
struct cpu_hw_events *cpuc;
struct perf_event *event;
struct hw_perf_event *hwc;
int idx, handled = 0;
u64 val;
data.addr = 0;
cpuc = &__get_cpu_var(cpu_hw_events);
for (idx = 0; idx < x86_pmu.num_events; idx++) {
if (!test_bit(idx, cpuc->active_mask))
continue;
event = cpuc->events[idx];
hwc = &event->hw;
val = <API key>(event, hwc, idx);
if (val & (1ULL << (x86_pmu.event_bits - 1)))
continue;
/*
* event overflow
*/
handled = 1;
data.period = event->hw.last_period;
if (!<API key>(event, hwc, idx))
continue;
if (perf_event_overflow(event, 1, &data, regs))
<API key>(hwc, idx);
}
if (handled)
inc_irq_stat(apic_perf_irqs);
return handled;
}
/*
* This handler is triggered by the local APIC, so the APIC IRQ handling
* rules apply:
*/
static int <API key>(struct pt_regs *regs)
{
struct perf_sample_data data;
struct cpu_hw_events *cpuc;
int bit, loops;
u64 ack, status;
data.addr = 0;
cpuc = &__get_cpu_var(cpu_hw_events);
perf_disable();
<API key>(cpuc);
status = <API key>();
if (!status) {
perf_enable();
return 0;
}
loops = 0;
again:
if (++loops > 100) {
WARN_ONCE(1, "perfevents: irq loop stuck!\n");
<API key>();
intel_pmu_reset();
perf_enable();
return 1;
}
inc_irq_stat(apic_perf_irqs);
ack = status;
for_each_bit(bit, (unsigned long *)&status, X86_PMC_IDX_MAX) {
struct perf_event *event = cpuc->events[bit];
clear_bit(bit, (unsigned long *) &status);
if (!test_bit(bit, cpuc->active_mask))
continue;
if (!<API key>(event))
continue;
data.period = event->hw.last_period;
if (perf_event_overflow(event, 1, &data, regs))
<API key>(&event->hw, bit);
}
<API key>(ack);
/*
* Repeat if there is more work to be done:
*/
status = <API key>();
if (status)
goto again;
perf_enable();
return 1;
}
static int amd_pmu_handle_irq(struct pt_regs *regs)
{
struct perf_sample_data data;
struct cpu_hw_events *cpuc;
struct perf_event *event;
struct hw_perf_event *hwc;
int idx, handled = 0;
u64 val;
data.addr = 0;
cpuc = &__get_cpu_var(cpu_hw_events);
for (idx = 0; idx < x86_pmu.num_events; idx++) {
if (!test_bit(idx, cpuc->active_mask))
continue;
event = cpuc->events[idx];
hwc = &event->hw;
val = <API key>(event, hwc, idx);
if (val & (1ULL << (x86_pmu.event_bits - 1)))
continue;
/*
* event overflow
*/
handled = 1;
data.period = event->hw.last_period;
if (!<API key>(event, hwc, idx))
continue;
if (perf_event_overflow(event, 1, &data, regs))
<API key>(hwc, idx);
}
if (handled)
inc_irq_stat(apic_perf_irqs);
return handled;
}
void <API key>(struct pt_regs *regs)
{
irq_enter();
ack_APIC_irq();
inc_irq_stat(apic_pending_irqs);
<API key>();
irq_exit();
}
void <API key>(void)
{
#ifdef <API key>
if (!x86_pmu.apic || !x86_pmu_initialized())
return;
apic->send_IPI_self(<API key>);
#endif
}
void <API key>(void)
{
#ifdef <API key>
if (!x86_pmu.apic || !x86_pmu_initialized())
return;
/*
* Always use NMI for PMU
*/
apic_write(APIC_LVTPC, APIC_DM_NMI);
#endif
}
static int __kprobes
<API key>(struct notifier_block *self,
unsigned long cmd, void *__args)
{
struct die_args *args = __args;
struct pt_regs *regs;
if (!atomic_read(&active_events))
return NOTIFY_DONE;
switch (cmd) {
case DIE_NMI:
case DIE_NMI_IPI:
break;
default:
return NOTIFY_DONE;
}
regs = args->regs;
#ifdef <API key>
apic_write(APIC_LVTPC, APIC_DM_NMI);
#endif
/*
* Can't rely on the handled return value to say it was our NMI, two
* events could trigger 'simultaneously' raising two back-to-back NMIs.
*
* If the first NMI handles both, the latter will be empty and daze
* the CPU.
*/
x86_pmu.handle_irq(regs);
return NOTIFY_STOP;
}
static __read_mostly struct notifier_block <API key> = {
.notifier_call = <API key>,
.next = NULL,
.priority = 1
};
static struct x86_pmu p6_pmu = {
.name = "p6",
.handle_irq = p6_pmu_handle_irq,
.disable_all = p6_pmu_disable_all,
.enable_all = p6_pmu_enable_all,
.enable = p6_pmu_enable_event,
.disable = <API key>,
.eventsel = MSR_P6_EVNTSEL0,
.perfctr = MSR_P6_PERFCTR0,
.event_map = p6_pmu_event_map,
.raw_event = p6_pmu_raw_event,
.max_events = ARRAY_SIZE(<API key>),
.apic = 1,
.max_period = (1ULL << 31) - 1,
.version = 0,
.num_events = 2,
/*
* Events have 40 bits implemented. However they are designed such
* that bits [32-39] are sign extensions of bit 31. As such the
* effective width of a event for P6-like PMU is 32 bits only.
*
* See IA-32 Intel Architecture Software developer manual Vol 3B
*/
.event_bits = 32,
.event_mask = (1ULL << 32) - 1,
};
static struct x86_pmu intel_pmu = {
.name = "Intel",
.handle_irq = <API key>,
.disable_all = <API key>,
.enable_all = <API key>,
.enable = <API key>,
.disable = <API key>,
.eventsel = <API key>,
.perfctr = <API key>,
.event_map = intel_pmu_event_map,
.raw_event = intel_pmu_raw_event,
.max_events = ARRAY_SIZE(<API key>),
.apic = 1,
/*
* Intel PMCs cannot be accessed sanely above 32 bit width,
* so we install an artificial 1<<31 period regardless of
* the generic event period:
*/
.max_period = (1ULL << 31) - 1,
.enable_bts = <API key>,
.disable_bts = <API key>,
};
static struct x86_pmu amd_pmu = {
.name = "AMD",
.handle_irq = amd_pmu_handle_irq,
.disable_all = amd_pmu_disable_all,
.enable_all = amd_pmu_enable_all,
.enable = <API key>,
.disable = <API key>,
.eventsel = MSR_K7_EVNTSEL0,
.perfctr = MSR_K7_PERFCTR0,
.event_map = amd_pmu_event_map,
.raw_event = amd_pmu_raw_event,
.max_events = ARRAY_SIZE(<API key>),
.num_events = 4,
.event_bits = 48,
.event_mask = (1ULL << 48) - 1,
.apic = 1,
/* use highest bit to detect overflow */
.max_period = (1ULL << 47) - 1,
};
static int p6_pmu_init(void)
{
switch (boot_cpu_data.x86_model) {
case 1:
case 3: /* Pentium Pro */
case 5:
case 6: /* Pentium II */
case 7:
case 8:
case 11: /* Pentium III */
break;
case 9:
case 13:
/* Pentium M */
break;
default:
pr_cont("unsupported p6 CPU model %d ",
boot_cpu_data.x86_model);
return -ENODEV;
}
x86_pmu = p6_pmu;
if (!cpu_has_apic) {
pr_info("no APIC, boot with the \"lapic\" boot parameter to force-enable it.\n");
pr_info("no hardware sampling interrupt available.\n");
x86_pmu.apic = 0;
}
return 0;
}
static int intel_pmu_init(void)
{
union cpuid10_edx edx;
union cpuid10_eax eax;
unsigned int unused;
unsigned int ebx;
int version;
if (!cpu_has(&boot_cpu_data, <API key>)) {
/* check for P6 processor family */
if (boot_cpu_data.x86 == 6) {
return p6_pmu_init();
} else {
return -ENODEV;
}
}
/*
* Check whether the Architectural PerfMon supports
* Branch Misses Retired hw_event or not.
*/
cpuid(10, &eax.full, &ebx, &unused, &edx.full);
if (eax.split.mask_length <= <API key>)
return -ENODEV;
version = eax.split.version_id;
if (version < 2)
return -ENODEV;
x86_pmu = intel_pmu;
x86_pmu.version = version;
x86_pmu.num_events = eax.split.num_events;
x86_pmu.event_bits = eax.split.bit_width;
x86_pmu.event_mask = (1ULL << eax.split.bit_width) - 1;
/*
* Quirk: v2 perfmon does not report fixed-purpose events, so
* assume at least 3 events:
*/
x86_pmu.num_events_fixed = max((int)edx.split.num_events_fixed, 3);
/*
* Install the hw-cache-events table:
*/
switch (boot_cpu_data.x86_model) {
case 15: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */
case 22: /* single-core 65 nm celeron/core2solo "Merom-L"/"Conroe-L" */
case 23: /* current 45 nm celeron/core2/xeon "Penryn"/"Wolfdale" */
case 29: /* six-core 45 nm xeon "Dunnington" */
memcpy(hw_cache_event_ids, <API key>,
sizeof(hw_cache_event_ids));
pr_cont("Core2 events, ");
break;
default:
case 26: /* 45 nm nehalem, "Bloomfield" */
case 30: /* 45 nm nehalem, "Lynnfield" */
case 46: /* 45 nm nehalem-ex, "Beckton" */
memcpy(hw_cache_event_ids, <API key>,
sizeof(hw_cache_event_ids));
pr_cont("Nehalem/Corei7 events, ");
break;
case 28:
memcpy(hw_cache_event_ids, <API key>,
sizeof(hw_cache_event_ids));
pr_cont("Atom events, ");
break;
case 37: /* 32 nm nehalem, "Clarkdale" */
case 44: /* 32 nm nehalem, "Gulftown" */
memcpy(hw_cache_event_ids, <API key>,
sizeof(hw_cache_event_ids));
pr_cont("Westmere events, ");
break;
}
return 0;
}
static int amd_pmu_init(void)
{
/* <API key> supported from K7 and later: */
if (boot_cpu_data.x86 < 6)
return -ENODEV;
x86_pmu = amd_pmu;
/* Events are common for all AMDs */
memcpy(hw_cache_event_ids, <API key>,
sizeof(hw_cache_event_ids));
return 0;
}
void __init init_hw_perf_events(void)
{
int err;
pr_info("Performance Events: ");
switch (boot_cpu_data.x86_vendor) {
case X86_VENDOR_INTEL:
err = intel_pmu_init();
break;
case X86_VENDOR_AMD:
err = amd_pmu_init();
break;
default:
return;
}
if (err != 0) {
pr_cont("no PMU driver, software events only.\n");
return;
}
pr_cont("%s PMU driver.\n", x86_pmu.name);
if (x86_pmu.num_events > X86_PMC_MAX_GENERIC) {
WARN(1, KERN_ERR "hw perf events %d > max(%d), clipping!",
x86_pmu.num_events, X86_PMC_MAX_GENERIC);
x86_pmu.num_events = X86_PMC_MAX_GENERIC;
}
perf_event_mask = (1 << x86_pmu.num_events) - 1;
perf_max_events = x86_pmu.num_events;
if (x86_pmu.num_events_fixed > X86_PMC_MAX_FIXED) {
WARN(1, KERN_ERR "hw perf events fixed %d > max(%d), clipping!",
x86_pmu.num_events_fixed, X86_PMC_MAX_FIXED);
x86_pmu.num_events_fixed = X86_PMC_MAX_FIXED;
}
perf_event_mask |=
((1LL << x86_pmu.num_events_fixed)-1) << X86_PMC_IDX_FIXED;
x86_pmu.intel_ctrl = perf_event_mask;
<API key>();
<API key>(&<API key>);
pr_info("... version: %d\n", x86_pmu.version);
pr_info("... bit width: %d\n", x86_pmu.event_bits);
pr_info("... generic registers: %d\n", x86_pmu.num_events);
pr_info("... value mask: %016Lx\n", x86_pmu.event_mask);
pr_info("... max period: %016Lx\n", x86_pmu.max_period);
pr_info("... fixed-purpose events: %d\n", x86_pmu.num_events_fixed);
pr_info("... event mask: %016Lx\n", perf_event_mask);
}
static inline void x86_pmu_read(struct perf_event *event)
{
<API key>(event, &event->hw, event->hw.idx);
}
static const struct pmu pmu = {
.enable = x86_pmu_enable,
.disable = x86_pmu_disable,
.read = x86_pmu_read,
.unthrottle = x86_pmu_unthrottle,
};
const struct pmu *hw_perf_event_init(struct perf_event *event)
{
int err;
err = <API key>(event);
if (err) {
if (event->destroy)
event->destroy(event);
return ERR_PTR(err);
}
return &pmu;
}
/*
* callchain support
*/
static inline
void callchain_store(struct <API key> *entry, u64 ip)
{
if (entry->nr < <API key>)
entry->ip[entry->nr++] = ip;
}
static DEFINE_PER_CPU(struct <API key>, pmc_irq_entry);
static DEFINE_PER_CPU(struct <API key>, pmc_nmi_entry);
static DEFINE_PER_CPU(int, in_nmi_frame);
static void
<API key>(void *data, char *msg, unsigned long symbol)
{
/* Ignore warnings */
}
static void backtrace_warning(void *data, char *msg)
{
/* Ignore warnings */
}
static int backtrace_stack(void *data, char *name)
{
per_cpu(in_nmi_frame, smp_processor_id()) =
x86_is_stack_id(NMI_STACK, name);
return 0;
}
static void backtrace_address(void *data, unsigned long addr, int reliable)
{
struct <API key> *entry = data;
if (per_cpu(in_nmi_frame, smp_processor_id()))
return;
if (reliable)
callchain_store(entry, addr);
}
static const struct stacktrace_ops backtrace_ops = {
.warning = backtrace_warning,
.warning_symbol = <API key>,
.stack = backtrace_stack,
.address = backtrace_address,
};
#include "../dumpstack.h"
static void
<API key>(struct pt_regs *regs, struct <API key> *entry)
{
callchain_store(entry, PERF_CONTEXT_KERNEL);
callchain_store(entry, regs->ip);
dump_trace(NULL, regs, NULL, 0, &backtrace_ops, entry);
}
/*
* best effort, GUP based copy_from_user() that assumes IRQ or NMI context
*/
static unsigned long
copy_from_user_nmi(void *to, const void __user *from, unsigned long n)
{
unsigned long offset, addr = (unsigned long)from;
int type = in_nmi() ? KM_NMI : KM_IRQ0;
unsigned long size, len = 0;
struct page *page;
void *map;
int ret;
do {
ret = <API key>(addr, 1, 0, &page);
if (!ret)
break;
offset = addr & (PAGE_SIZE - 1);
size = min(PAGE_SIZE - offset, n - len);
map = kmap_atomic(page, type);
memcpy(to, map+offset, size);
kunmap_atomic(map, type);
put_page(page);
len += size;
to += size;
addr += size;
} while (len < n);
return len;
}
static int copy_stack_frame(const void __user *fp, struct stack_frame *frame)
{
unsigned long bytes;
bytes = copy_from_user_nmi(frame, fp, sizeof(*frame));
return bytes == sizeof(*frame);
}
static void
perf_callchain_user(struct pt_regs *regs, struct <API key> *entry)
{
struct stack_frame frame;
const void __user *fp;
if (!user_mode(regs))
regs = task_pt_regs(current);
fp = (void __user *)regs->bp;
callchain_store(entry, PERF_CONTEXT_USER);
callchain_store(entry, regs->ip);
while (entry->nr < <API key>) {
frame.next_frame = NULL;
frame.return_address = 0;
if (!copy_stack_frame(fp, &frame))
break;
if ((unsigned long)fp < regs->sp)
break;
callchain_store(entry, frame.return_address);
fp = frame.next_frame;
}
}
static void
perf_do_callchain(struct pt_regs *regs, struct <API key> *entry)
{
int is_user;
if (!regs)
return;
is_user = user_mode(regs);
if (!current || current->pid == 0)
return;
if (is_user && current->state != TASK_RUNNING)
return;
if (!is_user)
<API key>(regs, entry);
if (current->mm)
perf_callchain_user(regs, entry);
}
struct <API key> *perf_callchain(struct pt_regs *regs)
{
struct <API key> *entry;
if (in_nmi())
entry = &__get_cpu_var(pmc_nmi_entry);
else
entry = &__get_cpu_var(pmc_irq_entry);
entry->nr = 0;
perf_do_callchain(regs, entry);
return entry;
}
void <API key>(int cpu)
{
<API key>(cpu);
}
|
using System;
namespace MrCMS.Helpers
{
public static class SitemapDateHelper
{
public static string SitemapDateString(this DateTime dateTime)
{
var date = dateTime.ToString("O");
if (!date.EndsWith(":00"))
date += "+00:00";
return date;
}
}
}
|
(function(e){e.fn.unveil=function(t,n){function f(){var t=u.filter(function(){var t=e(this),n=r.scrollTop(),s=n+r.height(),o=t.offset().top,u=o+t.height();return u>=n-i&&o<=s+i});a=t.trigger("unveil");u=u.not(a)}var r=e(window),i=t||0,s=window.devicePixelRatio>1,o=s?"data-src-retina":"data-src",u=this,a;this.one("unveil",function(){var e=this.getAttribute(o);e=e||this.getAttribute("data-src");if(e){this.setAttribute("src",e);if(typeof n==="function")n.call(this)}});r.scroll(f);r.resize(f);f();return this}})(window.jQuery||window.Zepto);jQuery(document).ready(function(e){if(typeof t==="undefined"){var t=0}e('img[data-unveil="true"]').unveil(t,function(){e(this).load(function(){this.style.opacity=1})})})
|
#include <zebra.h>
#include "command.h"
#include "prefix.h"
#include "memory.h"
#include "filter.h"
#include "bgpd/bgpd.h"
#include "bgpd/bgp_community.h"
#include "bgpd/bgp_ecommunity.h"
#include "bgpd/bgp_lcommunity.h"
#include "bgpd/bgp_aspath.h"
#include "bgpd/bgp_regex.h"
#include "bgpd/bgp_clist.h"
/* Lookup master structure for community-list or
extcommunity-list. */
struct <API key> *
<API key> (struct <API key> *ch, int master)
{
if (ch)
switch (master)
{
case <API key>:
return &ch->community_list;
case <API key>:
return &ch->extcommunity_list;
case <API key>:
return &ch->lcommunity_list;
}
return NULL;
}
/* Allocate a new community list entry. */
static struct community_entry *
community_entry_new (void)
{
return XCALLOC (<API key>, sizeof (struct community_entry));
}
/* Free community list entry. */
static void
<API key> (struct community_entry *entry)
{
switch (entry->style)
{
case <API key>:
if (entry->u.com)
community_free (entry->u.com);
break;
case <API key>:
if (entry->u.lcom)
lcommunity_free (&entry->u.lcom);
break;
case <API key>:
/* In case of standard extcommunity-list, configuration string
is made by ecommunity_ecom2str(). */
if (entry->config)
XFREE (<API key>, entry->config);
if (entry->u.ecom)
ecommunity_free (&entry->u.ecom);
break;
case <API key>:
case <API key>:
case <API key>:
if (entry->config)
XFREE (<API key>, entry->config);
if (entry->reg)
bgp_regex_free (entry->reg);
default:
break;
}
XFREE (<API key>, entry);
}
/* Allocate a new community-list. */
static struct community_list *
community_list_new (void)
{
return XCALLOC (<API key>, sizeof (struct community_list));
}
/* Free community-list. */
static void
community_list_free (struct community_list *list)
{
if (list->name)
XFREE (<API key>, list->name);
XFREE (<API key>, list);
}
static struct community_list *
<API key> (struct <API key> *ch,
const char *name, int master)
{
size_t i;
long number;
struct community_list *new;
struct community_list *point;
struct community_list_list *list;
struct <API key> *cm;
/* Lookup community-list master. */
cm = <API key> (ch, master);
if (!cm)
return NULL;
/* Allocate new community_list and copy given name. */
new = community_list_new ();
new->name = XSTRDUP (<API key>, name);
/* If name is made by all digit character. We treat it as
number. */
for (number = 0, i = 0; i < strlen (name); i++)
{
if (isdigit ((int) name[i]))
number = (number * 10) + (name[i] - '0');
else
break;
}
/* In case of name is all digit character */
if (i == strlen (name))
{
new->sort = <API key>;
/* Set access_list to number list. */
list = &cm->num;
for (point = list->head; point; point = point->next)
if (atol (point->name) >= number)
break;
}
else
{
new->sort = <API key>;
/* Set access_list to string list. */
list = &cm->str;
/* Set point to insertion point. */
for (point = list->head; point; point = point->next)
if (strcmp (point->name, name) >= 0)
break;
}
/* Link to upper list. */
new->parent = list;
/* In case of this is the first element of master. */
if (list->head == NULL)
{
list->head = list->tail = new;
return new;
}
/* In case of insertion is made at the tail of access_list. */
if (point == NULL)
{
new->prev = list->tail;
list->tail->next = new;
list->tail = new;
return new;
}
/* In case of insertion is made at the head of access_list. */
if (point == list->head)
{
new->next = list->head;
list->head->prev = new;
list->head = new;
return new;
}
/* Insertion is made at middle of the access_list. */
new->next = point;
new->prev = point->prev;
if (point->prev)
point->prev->next = new;
point->prev = new;
return new;
}
struct community_list *
<API key> (struct <API key> *ch,
const char *name, int master)
{
struct community_list *list;
struct <API key> *cm;
if (!name)
return NULL;
cm = <API key> (ch, master);
if (!cm)
return NULL;
for (list = cm->num.head; list; list = list->next)
if (strcmp (list->name, name) == 0)
return list;
for (list = cm->str.head; list; list = list->next)
if (strcmp (list->name, name) == 0)
return list;
return NULL;
}
static struct community_list *
community_list_get (struct <API key> *ch,
const char *name, int master)
{
struct community_list *list;
list = <API key> (ch, name, master);
if (!list)
list = <API key> (ch, name, master);
return list;
}
static void
<API key> (struct community_list *list)
{
struct community_list_list *clist;
struct community_entry *entry, *next;
for (entry = list->head; entry; entry = next)
{
next = entry->next;
<API key> (entry);
}
clist = list->parent;
if (list->next)
list->next->prev = list->prev;
else
clist->tail = list->prev;
if (list->prev)
list->prev->next = list->next;
else
clist->head = list->next;
community_list_free (list);
}
static int
<API key> (struct community_list *list)
{
return (list->head == NULL && list->tail == NULL) ? 1 : 0;
}
/* Add community-list entry to the list. */
static void
<API key> (struct community_list *list,
struct community_entry *entry)
{
entry->next = NULL;
entry->prev = list->tail;
if (list->tail)
list->tail->next = entry;
else
list->head = entry;
list->tail = entry;
}
/* Delete community-list entry from the list. */
static void
<API key> (struct community_list *list,
struct community_entry *entry, int style)
{
if (entry->next)
entry->next->prev = entry->prev;
else
list->tail = entry->prev;
if (entry->prev)
entry->prev->next = entry->next;
else
list->head = entry->next;
<API key> (entry);
if (<API key> (list))
<API key> (list);
}
/* Lookup community-list entry from the list. */
static struct community_entry *
<API key> (struct community_list *list, const void *arg,
int direct)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
switch (entry->style)
{
case <API key>:
if (community_cmp (entry->u.com, arg))
return entry;
break;
case <API key>:
if (lcommunity_cmp (entry->u.lcom, arg))
return entry;
break;
case <API key>:
if (ecommunity_cmp (entry->u.ecom, arg))
return entry;
break;
case <API key>:
case <API key>:
case <API key>:
if (strcmp (entry->config, arg) == 0)
return entry;
break;
default:
break;
}
}
return NULL;
}
static char *
community_str_get (struct community *com, int i)
{
int len;
u_int32_t comval;
u_int16_t as;
u_int16_t val;
char *str;
char *pnt;
memcpy (&comval, com_nthval (com, i), sizeof (u_int32_t));
comval = ntohl (comval);
switch (comval)
{
case COMMUNITY_INTERNET:
len = strlen (" internet");
break;
case COMMUNITY_NO_EXPORT:
len = strlen (" no-export");
break;
case <API key>:
len = strlen (" no-advertise");
break;
case COMMUNITY_LOCAL_AS:
len = strlen (" local-AS");
break;
default:
len = strlen (" 65536:65535");
break;
}
/* Allocate memory. */
str = pnt = XMALLOC (MTYPE_COMMUNITY_STR, len);
switch (comval)
{
case COMMUNITY_INTERNET:
strcpy (pnt, "internet");
pnt += strlen ("internet");
break;
case COMMUNITY_NO_EXPORT:
strcpy (pnt, "no-export");
pnt += strlen ("no-export");
break;
case <API key>:
strcpy (pnt, "no-advertise");
pnt += strlen ("no-advertise");
break;
case COMMUNITY_LOCAL_AS:
strcpy (pnt, "local-AS");
pnt += strlen ("local-AS");
break;
default:
as = (comval >> 16) & 0xFFFF;
val = comval & 0xFFFF;
sprintf (pnt, "%u:%d", as, val);
pnt += strlen (pnt);
break;
}
*pnt = '\0';
return str;
}
/* Internal function to perform regular expression match for
* * a single community. */
static int
<API key> (regex_t * reg, struct community *com, int i)
{
char *str;
int rv;
/* When there is no communities attribute it is treated as empty
* string. */
if (com == NULL || com->size == 0)
str = XSTRDUP(MTYPE_COMMUNITY_STR, "");
else
str = community_str_get (com, i);
/* Regular expression match. */
rv = regexec (reg, str, 0, NULL, 0);
XFREE(MTYPE_COMMUNITY_STR, str);
if (rv == 0)
return 1;
/* No match. */
return 0;
}
/* Internal function to perform regular expression match for community
attribute. */
static int
<API key> (struct community *com, regex_t * reg)
{
const char *str;
/* When there is no communities attribute it is treated as empty
string. */
if (com == NULL || com->size == 0)
str = "";
else
str = community_str (com);
/* Regular expression match. */
if (regexec (reg, str, 0, NULL, 0) == 0)
return 1;
/* No match. */
return 0;
}
static char *
lcommunity_str_get (struct lcommunity *lcom, int i)
{
struct lcommunity_val lcomval;
u_int32_t globaladmin;
u_int32_t localdata1;
u_int32_t localdata2;
char *str;
u_char *ptr;
char *pnt;
ptr = lcom->val;
ptr += (i * LCOMMUNITY_SIZE);
memcpy (&lcomval, ptr, LCOMMUNITY_SIZE);
/* Allocate memory. 48 bytes taken off bgp_lcommunity.c */
str = pnt = XMALLOC (<API key>, 48);
ptr = (u_char *)lcomval.val;
globaladmin = (*ptr++ << 24);
globaladmin |= (*ptr++ << 16);
globaladmin |= (*ptr++ << 8);
globaladmin |= (*ptr++);
localdata1 = (*ptr++ << 24);
localdata1 |= (*ptr++ << 16);
localdata1 |= (*ptr++ << 8);
localdata1 |= (*ptr++);
localdata2 = (*ptr++ << 24);
localdata2 |= (*ptr++ << 16);
localdata2 |= (*ptr++ << 8);
localdata2 |= (*ptr++);
sprintf (pnt, "%u:%u:%u", globaladmin, localdata1, localdata2);
pnt += strlen (pnt);
*pnt = '\0';
return str;
}
/* Internal function to perform regular expression match for
* * a single community. */
static int
<API key> (regex_t * reg, struct lcommunity *lcom, int i)
{
const char *str;
/* When there is no communities attribute it is treated as empty
* string. */
if (lcom == NULL || lcom->size == 0)
str = "";
else
str = lcommunity_str_get (lcom, i);
/* Regular expression match. */
if (regexec (reg, str, 0, NULL, 0) == 0)
return 1;
/* No match. */
return 0;
}
static int
<API key> (struct lcommunity *com, regex_t * reg)
{
const char *str;
/* When there is no communities attribute it is treated as empty
string. */
if (com == NULL || com->size == 0)
str = "";
else
str = lcommunity_str (com);
/* Regular expression match. */
if (regexec (reg, str, 0, NULL, 0) == 0)
return 1;
/* No match. */
return 0;
}
static int
<API key> (struct ecommunity *ecom, regex_t * reg)
{
const char *str;
/* When there is no communities attribute it is treated as empty
string. */
if (ecom == NULL || ecom->size == 0)
str = "";
else
str = ecommunity_str (ecom);
/* Regular expression match. */
if (regexec (reg, str, 0, NULL, 0) == 0)
return 1;
/* No match. */
return 0;
}
/* When given community attribute matches to the community-list return
1 else return 0. */
int
<API key> (struct community *com, struct community_list *list)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (entry->style == <API key>)
{
if (community_include (entry->u.com, COMMUNITY_INTERNET))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (community_match (com, entry->u.com))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
else if (entry->style == <API key>)
{
if (<API key> (com, entry->reg))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
}
return 0;
}
int
<API key> (struct lcommunity *lcom, struct community_list *list)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (entry->style == <API key>)
{
if (lcommunity_match (lcom, entry->u.lcom))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
else if (entry->style == <API key>)
{
if (<API key> (lcom, entry->reg))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
}
return 0;
}
int
<API key> (struct ecommunity *ecom, struct community_list *list)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (entry->style == <API key>)
{
if (ecommunity_match (ecom, entry->u.ecom))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
else if (entry->style == <API key>)
{
if (<API key> (ecom, entry->reg))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
}
return 0;
}
/* Perform exact matching. In case of expanded community-list, do
same thing as <API key>(). */
int
<API key> (struct community *com,
struct community_list *list)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (entry->style == <API key>)
{
if (community_include (entry->u.com, COMMUNITY_INTERNET))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
if (community_cmp (com, entry->u.com))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
else if (entry->style == <API key>)
{
if (<API key> (com, entry->reg))
return entry->direct == COMMUNITY_PERMIT ? 1 : 0;
}
}
return 0;
}
/* Delete all permitted communities in the list from com. */
struct community *
<API key> (struct community *com,
struct community_list *list)
{
struct community_entry *entry;
u_int32_t val;
u_int32_t com_index_to_delete[com->size];
int delete_index = 0;
int i;
/* Loop over each community value and evaluate each against the
* community-list. If we need to delete a community value add its index to
* com_index_to_delete.
*/
for (i = 0; i < com->size; i++)
{
val = community_val_get (com, i);
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
else if ((entry->style == <API key>)
&& (community_include (entry->u.com, COMMUNITY_INTERNET)
|| community_include (entry->u.com, val) ))
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
else if ((entry->style == <API key>)
&& <API key> (entry->reg, com, i))
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
}
}
/* Delete all of the communities we flagged for deletion */
for (i = delete_index-1; i >= 0; i
{
val = community_val_get (com, com_index_to_delete[i]);
community_del_val (com, &val);
}
return com;
}
/* To avoid duplicated entry in the community-list, this function
compares specified entry to existing entry. */
static int
<API key> (struct community_list *list,
struct community_entry *new)
{
struct community_entry *entry;
for (entry = list->head; entry; entry = entry->next)
{
if (entry->style != new->style)
continue;
if (entry->direct != new->direct)
continue;
if (entry->any != new->any)
continue;
if (entry->any)
return 1;
switch (entry->style)
{
case <API key>:
if (community_cmp (entry->u.com, new->u.com))
return 1;
break;
case <API key>:
if (ecommunity_cmp (entry->u.ecom, new->u.ecom))
return 1;
break;
case <API key>:
if (lcommunity_cmp (entry->u.lcom, new->u.lcom))
return 1;
break;
case <API key>:
case <API key>:
case <API key>:
if (entry->config && new->config
&& strcmp (entry->config, new->config) == 0)
return 1;
if (!entry->config && !new->config)
return 1;
break;
default:
break;
}
}
return 0;
}
/* Set community-list. */
int
community_list_set (struct <API key> *ch,
const char *name, const char *str, int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct community *com = NULL;
regex_t *regex = NULL;
/* Get community list. */
list = community_list_get (ch, name, <API key>);
/* When community-list already has entry, new entry should have same
style. If you want to have mixed style community-list, you can
comment out this check. */
if (!<API key> (list))
{
struct community_entry *first;
first = list->head;
if (style != first->style)
{
return (first->style == <API key>
? <API key>
: <API key>);
}
}
if (str)
{
if (style == <API key>)
com = community_str2com (str);
else
regex = bgp_regcomp (str);
if (! com && ! regex)
return <API key>;
}
entry = community_entry_new ();
entry->direct = direct;
entry->style = style;
entry->any = (str ? 0 : 1);
entry->u.com = com;
entry->reg = regex;
entry->config = (regex ? XSTRDUP (<API key>, str) : NULL);
/* Do not put duplicated community entry. */
if (<API key> (list, entry))
<API key> (entry);
else
<API key> (list, entry);
return 0;
}
/* Unset community-list. When str is NULL, delete all of
community-list entry belongs to the specified name. */
int
<API key> (struct <API key> *ch,
const char *name, const char *str,
int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct community *com = NULL;
regex_t *regex = NULL;
/* Lookup community list. */
list = <API key> (ch, name, <API key>);
if (list == NULL)
return <API key>;
/* Delete all of entry belongs to this community-list. */
if (!str)
{
<API key> (list);
return 0;
}
if (style == <API key>)
com = community_str2com (str);
else
regex = bgp_regcomp (str);
if (! com && ! regex)
return <API key>;
if (com)
entry = <API key> (list, com, direct);
else
entry = <API key> (list, str, direct);
if (com)
community_free (com);
if (regex)
bgp_regex_free (regex);
if (!entry)
return <API key>;
<API key> (list, entry, style);
return 0;
}
/* Delete all permitted large communities in the list from com. */
struct lcommunity *
<API key> (struct lcommunity *lcom,
struct community_list *list)
{
struct community_entry *entry;
u_int32_t com_index_to_delete[lcom->size];
u_char *ptr;
int delete_index = 0;
int i;
/* Loop over each lcommunity value and evaluate each against the
* community-list. If we need to delete a community value add its index to
* com_index_to_delete.
*/
for (i = 0; i < lcom->size; i++)
{
ptr = lcom->val + (i * LCOMMUNITY_SIZE);
for (entry = list->head; entry; entry = entry->next)
{
if (entry->any)
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
else if ((entry->style == <API key>)
&& lcommunity_include (entry->u.lcom, ptr) )
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
else if ((entry->style == <API key>)
&& entry->reg
&& <API key> (entry->reg, lcom, i))
{
if (entry->direct == COMMUNITY_PERMIT)
{
com_index_to_delete[delete_index] = i;
delete_index++;
}
break;
}
}
}
/* Delete all of the communities we flagged for deletion */
for (i = delete_index-1; i >= 0; i
{
ptr = lcom->val + (com_index_to_delete[i] * LCOMMUNITY_SIZE);
lcommunity_del_val (lcom, ptr);
}
return lcom;
}
/* Set lcommunity-list. */
int
lcommunity_list_set (struct <API key> *ch,
const char *name, const char *str, int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct lcommunity *lcom = NULL;
regex_t *regex = NULL;
/* Get community list. */
list = community_list_get (ch, name, <API key>);
/* When community-list already has entry, new entry should have same
style. If you want to have mixed style community-list, you can
comment out this check. */
if (!<API key> (list))
{
struct community_entry *first;
first = list->head;
if (style != first->style)
{
return (first->style == <API key>
? <API key>
: <API key>);
}
}
if (str)
{
if (style == <API key>)
lcom = lcommunity_str2com (str);
else
regex = bgp_regcomp (str);
if (! lcom && ! regex)
return <API key>;
}
entry = community_entry_new ();
entry->direct = direct;
entry->style = style;
entry->any = (str ? 0 : 1);
entry->u.lcom = lcom;
entry->reg = regex;
if (lcom)
entry->config = lcommunity_lcom2str (lcom, <API key>);
else if (regex)
entry->config = XSTRDUP (<API key>, str);
else
entry->config = NULL;
/* Do not put duplicated community entry. */
if (<API key> (list, entry))
<API key> (entry);
else
<API key> (list, entry);
return 0;
}
/* Unset community-list. When str is NULL, delete all of
community-list entry belongs to the specified name. */
int
<API key> (struct <API key> *ch,
const char *name, const char *str,
int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct lcommunity *lcom = NULL;
regex_t *regex = NULL;
/* Lookup community list. */
list = <API key> (ch, name, <API key>);
if (list == NULL)
return <API key>;
/* Delete all of entry belongs to this community-list. */
if (!str)
{
<API key> (list);
return 0;
}
if (style == <API key>)
lcom = lcommunity_str2com (str);
else
regex = bgp_regcomp (str);
if (! lcom && ! regex)
return <API key>;
if (lcom)
entry = <API key> (list, lcom, direct);
else
entry = <API key> (list, str, direct);
if (lcom)
lcommunity_free (&lcom);
if (regex)
bgp_regex_free (regex);
if (!entry)
return <API key>;
<API key> (list, entry, style);
return 0;
}
/* Set extcommunity-list. */
int
<API key> (struct <API key> *ch,
const char *name, const char *str,
int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct ecommunity *ecom = NULL;
regex_t *regex = NULL;
entry = NULL;
/* Get community list. */
list = community_list_get (ch, name, <API key>);
/* When community-list already has entry, new entry should have same
style. If you want to have mixed style community-list, you can
comment out this check. */
if (!<API key> (list))
{
struct community_entry *first;
first = list->head;
if (style != first->style)
{
return (first->style == <API key>
? <API key>
: <API key>);
}
}
if (str)
{
if (style == <API key>)
ecom = ecommunity_str2com (str, 0, 1);
else
regex = bgp_regcomp (str);
if (! ecom && ! regex)
return <API key>;
}
if (ecom)
ecom->str = ecommunity_ecom2str (ecom, <API key>);
entry = community_entry_new ();
entry->direct = direct;
entry->style = style;
entry->any = (str ? 0 : 1);
if (ecom)
entry->config = ecommunity_ecom2str (ecom, <API key>);
else if (regex)
entry->config = XSTRDUP (<API key>, str);
else
entry->config = NULL;
entry->u.ecom = ecom;
entry->reg = regex;
/* Do not put duplicated community entry. */
if (<API key> (list, entry))
<API key> (entry);
else
<API key> (list, entry);
return 0;
}
/* Unset extcommunity-list. When str is NULL, delete all of
extcommunity-list entry belongs to the specified name. */
int
<API key> (struct <API key> *ch,
const char *name, const char *str,
int direct, int style)
{
struct community_entry *entry = NULL;
struct community_list *list;
struct ecommunity *ecom = NULL;
regex_t *regex = NULL;
/* Lookup extcommunity list. */
list = <API key> (ch, name, <API key>);
if (list == NULL)
return <API key>;
/* Delete all of entry belongs to this extcommunity-list. */
if (!str)
{
<API key> (list);
return 0;
}
if (style == <API key>)
ecom = ecommunity_str2com (str, 0, 1);
else
regex = bgp_regcomp (str);
if (! ecom && ! regex)
return <API key>;
if (ecom)
entry = <API key> (list, ecom, direct);
else
entry = <API key> (list, str, direct);
if (ecom)
ecommunity_free (&ecom);
if (regex)
bgp_regex_free (regex);
if (!entry)
return <API key>;
<API key> (list, entry, style);
return 0;
}
/* Initializa community-list. Return community-list handler. */
struct <API key> *
community_list_init (void)
{
struct <API key> *ch;
ch = XCALLOC (<API key>,
sizeof (struct <API key>));
return ch;
}
/* Terminate community-list. */
void
<API key> (struct <API key> *ch)
{
struct <API key> *cm;
struct community_list *list;
cm = &ch->community_list;
while ((list = cm->num.head) != NULL)
<API key> (list);
while ((list = cm->str.head) != NULL)
<API key> (list);
cm = &ch->lcommunity_list;
while ((list = cm->num.head) != NULL)
<API key> (list);
while ((list = cm->str.head) != NULL)
<API key> (list);
cm = &ch->extcommunity_list;
while ((list = cm->num.head) != NULL)
<API key> (list);
while ((list = cm->str.head) != NULL)
<API key> (list);
XFREE (<API key>, ch);
}
|
namespace Server.Items
{
public class QuagmireStatue : Item
{
public override bool IsArtifact => true;
[Constructable]
public QuagmireStatue()
: base(0x2614)
{
LootType = LootType.Blessed;
Weight = 1.0;
}
public QuagmireStatue(Serial serial)
: base(serial)
{
}
public override int LabelNumber => 1073195;// A Quagmire Contribution Statue from the Britannia Royal Zoo.
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}
|
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// with this library; see the file COPYING3. If not see
// 2013-10-08 Tim Shen <timshen91@gmail.com>
#include <<API key>.h>
#include "split.h"
using namespace __gnu_test;
int main()
{
time_counter time;
resource_counter resource;
source = source + source;
source = source + source;
source = source + source;
source = source + source;
source = source + source;
source = source + source;
source = source + source;
source = source + source;
start_counters(time, resource);
split(source);
stop_counters(time, resource);
report_performance(__FILE__, "", time, resource);
return 0;
}
|
#ifndef _KBASE_UKU_H_
#define _KBASE_UKU_H_
#include "mali_uk.h"
#include "mali_base_kernel.h"
/* <API key> */
#include "<API key>.h"
/* This file needs to support being included from kernel and userside (which use different defines) */
#if defined(<API key>) || <API key>
#define <API key>
#endif /* defined(<API key>) || <API key> */
#if defined(CONFIG_MALI_NO_MALI)
#define <API key>
#elif defined(MALI_NO_MALI)
#if MALI_NO_MALI
#define <API key>
#endif
#endif
#if defined(<API key>) || defined(<API key>)
#include "backend/gpu/<API key>.h"
#endif
#include "<API key>.h"
/*
* 10.1:
* - Do mmap in kernel for SAME_VA memory allocations rather then
* calling back into the kernel as a 2nd stage of the allocation request.
*
* 10.2:
* - Add <API key> which allows clients to request a custom VA
* region for use with JIT (ignored on 32-bit platforms)
*/
#define <API key> 10
#define <API key> 2
struct kbase_uk_mem_alloc {
union uk_header header;
u64 va_pages;
u64 commit_pages;
u64 extent;
/* IN/OUT */
u64 flags;
/* OUT */
u64 gpu_va;
u16 va_alignment;
u8 padding[6];
};
struct kbase_uk_mem_free {
union uk_header header;
u64 gpu_addr;
/* OUT */
};
struct kbase_uk_mem_alias {
union uk_header header;
/* IN/OUT */
u64 flags;
u64 stride;
u64 nents;
union kbase_pointer ai;
/* OUT */
u64 gpu_va;
u64 va_pages;
};
struct kbase_uk_mem_import {
union uk_header header;
union kbase_pointer phandle;
u32 type;
u32 padding;
/* IN/OUT */
u64 flags;
/* OUT */
u64 gpu_va;
u64 va_pages;
};
struct <API key> {
union uk_header header;
u64 gpu_va;
u64 flags;
u64 mask;
};
struct kbase_uk_job_submit {
union uk_header header;
union kbase_pointer addr;
u32 nr_atoms;
u32 stride; /* bytes between atoms, i.e. sizeof(base_jd_atom_v2) */
/*{ <API key>*/
//#ifdef <API key>
u32 gles_ctx_handle; /* user DDK gles context handle (unique) to kernel DDK side */
//#endif /* <API key>*/
/* <API key> }*/
/* OUT */
};
struct kbase_uk_post_term {
union uk_header header;
};
struct kbase_uk_sync_now {
union uk_header header;
struct base_syncset sset;
/* OUT */
};
struct <API key> {
union uk_header header;
u64 dump_buffer;
u32 jm_bm;
u32 shader_bm;
u32 tiler_bm;
u32 unused_1; /* keep for backwards compatibility */
u32 mmu_l2_bm;
u32 padding;
/* OUT */
};
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @buffer_count: requested number of dumping buffers
* @jm_bm: counters selection bitmask (JM)
* @shader_bm: counters selection bitmask (Shader)
* @tiler_bm: counters selection bitmask (Tiler)
* @mmu_l2_bm: counters selection bitmask (MMU_L2)
* @fd: dumping notification file descriptor
*
* This structure sets up HWC dumper/reader for this context.
* Multiple instances can be created for single context.
*/
struct <API key> {
union uk_header header;
u32 buffer_count;
u32 jm_bm;
u32 shader_bm;
u32 tiler_bm;
u32 mmu_l2_bm;
/* OUT */
s32 fd;
};
struct kbase_uk_hwcnt_dump {
union uk_header header;
};
struct <API key> {
union uk_header header;
};
struct <API key> {
union uk_header header;
s32 fd;
u32 padding;
/* OUT */
};
struct <API key> {
union uk_header header;
char name[32];
/* OUT */
s32 fd;
u32 padding;
};
struct kbase_uk_gpuprops {
union uk_header header;
struct mali_base_gpu_props props;
/* OUT */
};
struct kbase_uk_mem_query {
union uk_header header;
u64 gpu_addr;
#define <API key> 1
#define <API key> 2
#define <API key> 3
u64 query;
/* OUT */
u64 value;
};
struct kbase_uk_mem_commit {
union uk_header header;
u64 gpu_addr;
u64 pages;
/* OUT */
u32 result_subcode;
u32 padding;
};
struct <API key> {
union uk_header header;
u64 gpu_addr;
u64 cpu_addr;
u64 size;
/* OUT */
u64 offset;
};
#define <API key> 64
struct <API key> {
union uk_header header;
/* OUT */
char version_buffer[<API key>];
u32 version_string_size;
u32 padding;
};
struct <API key> {
union uk_header header;
/* OUT */
u32 counter;
u32 padding;
};
struct kbase_uk_set_flags {
union uk_header header;
u32 create_flags;
u32 padding;
};
#if MALI_UNIT_TEST
#define TEST_ADDR_COUNT 4
#define <API key> 128
struct <API key> {
u64 test_addr[TEST_ADDR_COUNT]; /**< memory address */
u32 test_addr_pages[TEST_ADDR_COUNT]; /**< memory size in pages */
union kbase_pointer kctx;
union kbase_pointer mm; /**< pointer to process address space */
u8 buffer1[<API key>]; /**< unit test defined parameter */
u8 buffer2[<API key>]; /**< unit test defined parameter */
};
struct <API key> {
union uk_header header;
struct <API key> test_data;
};
#endif /* MALI_UNIT_TEST */
#ifdef <API key>
struct <API key> {
union uk_header header;
struct kbase_error_params params;
};
#endif /* <API key> */
#ifdef <API key>
struct <API key> {
union uk_header header;
struct <API key> params;
};
#endif /* <API key> */
#define <API key> 255
struct <API key> {
union uk_header header;
union kbase_pointer external_resource;
union kbase_pointer file_descriptor;
u32 num_res; /* limited to <API key> */
u32 padding;
};
#ifdef <API key>
struct <API key> {
union uk_header header;
u32 enabled;
u32 padding;
};
#endif /* <API key> */
struct <API key> {
union uk_header header;
u32 profiling_controls[FBDUMP_CONTROL_MAX];
};
struct <API key> {
union uk_header header;
u32 len;
union kbase_pointer buf;
};
struct kbase_uk_context_id {
union uk_header header;
/* OUT */
int id;
};
#if (defined(MALI_MIPE_ENABLED) && MALI_MIPE_ENABLED) || \
!defined(MALI_MIPE_ENABLED)
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @fd: timeline stream file descriptor
*
* This structure is used used when performing a call to acquire kernel side
* timeline stream file descriptor.
*/
struct <API key> {
union uk_header header;
/* OUT */
s32 fd;
};
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
*
* This structure is used when performing a call to flush kernel side
* timeline streams.
*/
struct <API key> {
union uk_header header;
/* OUT */
};
#if MALI_UNIT_TEST
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @tpw_count: number of trace point writers in each context
* @msg_delay: time delay between tracepoints from one writer in milliseconds
* @msg_count: number of trace points written by one writer
* @aux_msg: if non-zero aux messages will be included
*
* This structure is used when performing a call to start timeline stream test
* embedded in kernel.
*/
struct <API key> {
union uk_header header;
u32 tpw_count;
u32 msg_delay;
u32 msg_count;
u32 aux_msg;
/* OUT */
};
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @bytes_collected: number of bytes read by user
* @bytes_generated: number of bytes generated by tracepoints
*
* This structure is used when performing a call to obtain timeline stream
* statistics.
*/
struct <API key> {
union uk_header header; /**< UK structure header. */
/* OUT */
u32 bytes_collected;
u32 bytes_generated;
};
#endif /* MALI_UNIT_TEST */
#endif /* MALI_MIPE_ENABLED */
/**
* struct struct <API key> for the <API key> ioctl
* @header: UK structure header
* @data: Counter samples for the dummy model
* @size:............Size of the counter sample data
*/
struct <API key> {
union uk_header header;
u32 *data;
u32 size;
};
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @evt: the GPU address containing the event
* @new_status: the new event status, must be either <API key> or
* <API key>
* @flags: reserved for future uses, must be set to 0
*
* This structure is used to update the status of a software event. If the
* event's status is set to <API key>, any job currently waiting
* on this event will complete.
*/
struct <API key> {
union uk_header header;
u64 evt;
u32 new_status;
u32 flags;
};
/**
* struct <API key> - User/Kernel space data exchange structure
* @header: UK structure header
* @va_pages: Number of virtual pages required for JIT
*
* This structure is used when requesting initialization of JIT.
*/
struct <API key> {
union uk_header header;
u64 va_pages;
};
enum <API key> {
<API key> = (UK_FUNC_ID + 0),
<API key> = (UK_FUNC_ID + 1),
<API key> = (UK_FUNC_ID + 2),
<API key> = (UK_FUNC_ID + 3),
KBASE_FUNC_MEM_FREE = (UK_FUNC_ID + 4),
<API key> = (UK_FUNC_ID + 5),
<API key> = (UK_FUNC_ID + 6),
#ifdef <API key>
<API key> = (UK_FUNC_ID + 7),
#endif /* <API key> */
KBASE_FUNC_SYNC = (UK_FUNC_ID + 8),
<API key> = (UK_FUNC_ID + 9),
<API key> = (UK_FUNC_ID + 10),
<API key> = (UK_FUNC_ID + 11),
<API key> = (UK_FUNC_ID + 12),
<API key> = (UK_FUNC_ID + 14),
<API key> = (UK_FUNC_ID + 15),
<API key> = (UK_FUNC_ID + 16),
<API key> = (UK_FUNC_ID + 17),
<API key> = (UK_FUNC_ID + 18),
<API key> = (UK_FUNC_ID + 19),
<API key> = (UK_FUNC_ID + 20),
<API key> = (UK_FUNC_ID + 21),
#ifdef <API key>
<API key> = (UK_FUNC_ID + 22),
#endif /* <API key> */
<API key> = (UK_FUNC_ID + 23),
<API key> = (UK_FUNC_ID + 24),
<API key> = (UK_FUNC_ID + 25),
<API key> = (UK_FUNC_ID + 26),
/* to be used only for testing
* purposes, otherwise these controls
* are set through gator API */
<API key> = (UK_FUNC_ID + 27),
<API key> = (UK_FUNC_ID + 28),
<API key> = (UK_FUNC_ID + 29),
<API key> = (UK_FUNC_ID + 31),
#if (defined(MALI_MIPE_ENABLED) && MALI_MIPE_ENABLED) || \
!defined(MALI_MIPE_ENABLED)
<API key> = (UK_FUNC_ID + 32),
#if MALI_UNIT_TEST
<API key> = (UK_FUNC_ID + 33),
<API key> = (UK_FUNC_ID + 34),
#endif /* MALI_UNIT_TEST */
<API key> = (UK_FUNC_ID + 35),
#endif /* MALI_MIPE_ENABLED */
<API key> = (UK_FUNC_ID + 36),
#ifdef <API key>
<API key> = (UK_FUNC_ID + 37),
#endif
<API key> = (UK_FUNC_ID + 38),
<API key> = (UK_FUNC_ID + 39),
/* <API key> - MALI_SEC_HWCNT */
<API key>,
<API key>,
<API key>,
/* <API key> */
<API key>,
<API key>,
<API key>,
<API key>,
KBASE_FUNC_TMU_SKIP,
/* <API key> */
<API key> = (UK_FUNC_ID + 55),
<API key>,
/* <API key> end */
KBASE_FUNC_MAX
};
#endif /* _KBASE_UKU_H_ */
|
package com.oracle.graal.compiler.hsail.test.lambda;
import org.junit.Test;
/**
* Tests a true virtual method call with 2 targets.
*/
public class VirtualCallTest extends VirtualCallBase {
void setupArrays() {
for (int i = 0; i < NUM; i++) {
outArray[i] = -i;
int kind = i % 3 == 0 ? 0 : 1;
inShapeArray[i] = createShape(kind, i + 1);
}
}
// although runTest is the same in each class derived from VirtualCallBase
// we duplicate the logic in each derived test so as to have different lambda call sites
@Override
public void runTest() {
setupArrays();
<API key>(NUM, (gid) -> {
Shape shape = inShapeArray[gid];
outArray[gid] = shape.getArea();
});
}
@Override
protected boolean <API key>() {
return <API key>(2);
}
@Test
public void test() {
testGeneratedHsail();
}
@Test
public void <API key>() {
<API key>();
}
}
|
#include "confparms.h"
#include "fsutil.h"
#include <QThread>
#include <KLocalizedString>
QList<confOption> getConfigParms(const int systemdVersion)
{
// Creates an instance of confOption for each option in the systemd
// configuration files and adds them to list which gets returned.
// Arguments are passed as a QVariantMap.
qulonglong partPersSizeMB = getPartitionSize(QStringLiteral("/var/log"), NULL) / 1024 / 1024;
qulonglong partVolaSizeMB = getPartitionSize(QStringLiteral("/run/log"), NULL) / 1024 / 1024;
QList<confOption> list;
QVariantMap map;
// system.conf
map.clear();
map["name"] = "LogLevel";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "info";
map["possibleVals"] = QStringList() << "emerg" << "alert" << "crit" << "err" << "warning" << "notice" << "info" << "debug";
map["toolTip"] = i18n("<p>Set the level of log entries in systemd.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "LogTarget";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "journal-or-kmsg";
map["possibleVals"] = QStringList() << "console" << "journal" << "syslog" << "kmsg" << "journal-or-kmsg" << "syslog-or-kmsg" << "null";
map["toolTip"] = i18n("<p>Set target for logs.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "LogColor";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Use color to highlight important log messages.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "LogLocation";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Include code location in log messages.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "DumpCore";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Dump core on systemd crash.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "CrashShell";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Spawn a shell when systemd crashes. Note: The shell is not password-protected.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ShowStatus";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "yes";
map["possibleVals"] = QStringList() << "yes" << "no" << "auto";
map["toolTip"] = i18n("<p>Show terse service status information while booting.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "CrashChVT";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "-1";
map["possibleVals"] = QStringList() << "-1" << "1" << "2" << "3" << "4" << "5" << "6" << "7" << "8";
map["toolTip"] = i18n("<p>Activate the specified virtual terminal when systemd crashes (-1 to deactivate).</p>");
list.append(confOption(map));
map.clear();
map["name"] = "CPUAffinity";
map["file"] = SYSTEMD;
map["type"] = MULTILIST;
QStringList CPUAffinityList;
for (int i = 1; i <= QThread::idealThreadCount(); ++i)
CPUAffinityList << QString::number(i);
map["possibleVals"] = CPUAffinityList;
map["toolTip"] = i18n("<p>The initial CPU affinity for the systemd init process.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "JoinControllers";
map["file"] = SYSTEMD;
map["type"] = STRING;
map["defVal"] = "cpu,cpuacct net_cls,net_prio";
map["toolTip"] = i18n("<p>Controllers that shall be mounted in a single hierarchy. Takes a space-separated list of comma-separated controller names, in order to allow multiple joined hierarchies. Pass an empty string to ensure that systemd mounts all controllers in separate hierarchies.</p>");
list.append(confOption(map));
if (systemdVersion < 208)
{
map.clear();
map["name"] = "DefaultControllers";
map["file"] = SYSTEMD;
map["type"] = STRING;
map["defVal"] = "cpu";
map["toolTip"] = i18n("<p>Configures in which control group hierarchies to create per-service cgroups automatically, in addition to the name=systemd named hierarchy. Takes a space-separated list of controller names. Pass the empty string to ensure that systemd does not touch any hierarchies but its own.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "RuntimeWatchdogSec";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 0;
map["toolTip"] = i18n("<p>The watchdog hardware (/dev/watchdog) will be programmed to automatically reboot the system if it is not contacted within the specified timeout interval. The system manager will ensure to contact it at least once in half the specified timeout interval. This feature requires a hardware watchdog device.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ShutdownWatchdogSec";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 10;
map["defUnit"] = confOption::min;
map["toolTip"] = i18n("<p>This setting may be used to configure the hardware watchdog when the system is asked to reboot. It works as a safety net to ensure that the reboot takes place even if a clean reboot attempt times out. This feature requires a hardware watchdog device.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = MULTILIST;
map["possibleVals"] = confOption::capabilities;
map["toolTip"] = i18n("<p>Capabilities for the systemd daemon and its children.</p>");
list.append(confOption(map));
if (systemdVersion >= 209)
{
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = MULTILIST;
map["possibleVals"] = QStringList() << "native" << "x86" << "x86-64" << "x32" << "arm";
map["toolTip"] = i18n("<p>Architectures of which system calls may be invoked on the system.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "TimerSlackNSec";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 0;
map["defUnit"] = confOption::ns;
map["defReadUnit"] = confOption::ns;
map["hasNsec"] = true;
map["toolTip"] = i18n("<p>Sets the timer slack for PID 1 which is then inherited to all executed processes, unless overridden individually. The timer slack controls the accuracy of wake-ups triggered by timers.</p>");
list.append(confOption(map));
if (systemdVersion >= 212)
{
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 60;
map["toolTip"] = i18n("<p>The default accuracy of timer units. Note that the accuracy of timer units is also affected by the configured timer slack for PID 1.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "journal";
map["possibleVals"] = QStringList() << "inherit" << "null" << "tty" << "journal"
<< "journal+console" << "syslog" << "syslog+console"
<< "kmsg" << "kmsg+console";
map["toolTip"] = i18n("<p>Sets the default output for all services and sockets.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = LIST;
map["defVal"] = "inherit";
map["possibleVals"] = QStringList() << "inherit" << "null" << "tty" << "journal"
<< "journal+console" << "syslog" << "syslog+console"
<< "kmsg" << "kmsg+console";
map["toolTip"] = i18n("<p>Sets the default error output for all services and sockets.</p>");
list.append(confOption(map));
if (systemdVersion >= 209)
{
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 90;
map["toolTip"] = i18n("<p>The default timeout for starting of units.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 90;
map["toolTip"] = i18n("<p>The default timeout for stopping of units.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "DefaultRestartSec";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 100;
map["defUnit"] = confOption::ms;
map["toolTip"] = i18n("<p>The default time to sleep between automatic restart of units.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = TIME;
map["defVal"] = 10;
map["toolTip"] = i18n("<p>Time interval used in start rate limit for services.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = INTEGER;
map["defVal"] = 5;
map["toolTip"] = i18n("<p>Services are not allowed to start more than this number of times within the time interval defined in <API key>.</p>");
list.append(confOption(map));
}
if (systemdVersion >= 205)
{
map.clear();
map["name"] = "DefaultEnvironment";
map["file"] = SYSTEMD;
map["type"] = STRING;
map["defVal"] = QString("");
map["toolTip"] = i18n("<p>Manager environment variables passed to all executed processes. Takes a space-separated list of variable assignments.</p>");
list.append(confOption(map));
}
if (systemdVersion >= 211)
{
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Default CPU usage accounting.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Default block IO accounting.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = SYSTEMD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Default process and kernel memory accounting.</p>");
list.append(confOption(map));
}
// Loop through all RESLIMITs
QStringList resLimits = QStringList() << "DefaultLimitCPU" << "DefaultLimitFSIZE" << "DefaultLimitDATA"
<< "DefaultLimitSTACK" << "DefaultLimitCORE" << "DefaultLimitRSS"
<< "DefaultLimitNOFILE" << "DefaultLimitAS" << "DefaultLimitNPROC"
<< "DefaultLimitMEMLOCK" << "DefaultLimitLOCKS" << "<API key>"
<< "<API key>" << "DefaultLimitNICE" << "DefaultLimitRTPRIO"
<< "DefaultLimitRTTIME";
foreach (const QString &s, resLimits)
{
map.clear();
map["name"] = s;
map["file"] = SYSTEMD;
map["type"] = RESLIMIT;
map["minVal"] = -1;
map["toolTip"] = i18n("<p>Default resource limit for units. Set to -1 for no limit.</p>");
list.append(confOption(map));
}
// journald.conf
map.clear();
map["name"] = "Storage";
map["file"] = JOURNALD;
map["type"] = LIST;
map["defVal"] = "auto";
map["possibleVals"] = QStringList() << "volatile" << "persistent" << "auto" << "none";
map["toolTip"] = i18n("<p>Where to store log files.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "Compress";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Compress log files.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "Seal";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Enable Forward Secure Sealing (FSS) for all persistent journal files.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "SplitMode";
map["file"] = JOURNALD;
map["type"] = LIST;
if (systemdVersion >= 215)
map["defVal"] = "uid";
else
map["defVal"] = "login";
map["possibleVals"] = QStringList() << "login" << "uid" << "none";
map["toolTip"] = i18n("<p>Whether and how to split log files. If <i>uid</i>, all users will get each their own journal files regardless of whether they possess a login session or not, however system users will log into the system journal. If <i>login</i>, actually logged-in users will get each their own journal files, but users without login session and system users will log into the system journal. If <i>none</i>, journal files are not split up by user and all messages are instead stored in the single system journal.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "SyncIntervalSec";
map["file"] = JOURNALD;
map["type"] = TIME;
map["defVal"] = 5;
map["defUnit"] = confOption::min;
map["toolTip"] = i18n("<p>The timeout before synchronizing journal files to disk.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "RateLimitInterval";
map["file"] = JOURNALD;
map["type"] = TIME;
map["defVal"] = 30;
map["toolTip"] = i18n("<p>Time interval for rate limiting of log messages. Set to 0 to turn off rate-limiting.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "RateLimitBurst";
map["file"] = JOURNALD;
map["type"] = INTEGER;
map["defVal"] = 1000;
map["toolTip"] = i18n("<p>Maximum number of messages logged for a unit in the interval specified in RateLimitInterval. Set to 0 to turn off rate-limiting.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "SystemMaxUse";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.1 * partPersSizeMB).toULongLong();
map["maxVal"] = partPersSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Maximum disk space the persistent journal may take up. Defaults to 10% of file system size.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "SystemKeepFree";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.15 * partPersSizeMB).toULongLong();
map["maxVal"] = partPersSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Minimum disk space the persistent journal should keep free for other uses. Defaults to 15% of file system size.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "SystemMaxFileSize";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.125 * 0.1 * partPersSizeMB).toULongLong();
map["maxVal"] = partPersSizeMB;
map["toolTip"] = i18n("<p>Maximum size of individual journal files on persistent storage. Defaults to 1/8 of SystemMaxUse.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "RuntimeMaxUse";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.1 * partVolaSizeMB).toULongLong();
map["maxVal"] = partVolaSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Maximum disk space the volatile journal may take up. Defaults to 10% of file system size.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "RuntimeKeepFree";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.15 * partVolaSizeMB).toULongLong();
map["maxVal"] = partVolaSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Minimum disk space the volatile journal should keep free for other uses. Defaults to 15% of file system size.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "RuntimeMaxFileSize";
map["file"] = JOURNALD;
map["type"] = SIZE;
map["defVal"] = QVariant(0.125 * 0.1 * partVolaSizeMB).toULongLong();
map["maxVal"] = partVolaSizeMB;
map["toolTip"] = i18n("<p>Maximum size of individual journal files on volatile storage. Defaults to 1/8 of RuntimeMaxUse.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "MaxRetentionSec";
map["file"] = JOURNALD;
map["type"] = TIME;
map["defVal"] = 0;
map["defUnit"] = confOption::d;
map["toolTip"] = i18n("<p>Maximum time to store journal entries. Set to 0 to disable.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "MaxFileSec";
map["file"] = JOURNALD;
map["type"] = TIME;
map["defVal"] = 30;
map["defUnit"] = confOption::d;
map["toolTip"] = i18n("<p>Maximum time to store entries in a single journal file before rotating to the next one. Set to 0 to disable.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ForwardToSyslog";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Forward journal messages to syslog.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ForwardToKMsg";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Forward journal messages to kernel log buffer</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ForwardToConsole";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Forward journal messages to the system console. The console can be changed with TTYPath.</p>");
list.append(confOption(map));
if (systemdVersion >= 212)
{
map.clear();
map["name"] = "ForwardToWall";
map["file"] = JOURNALD;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Forward journal messages as wall messages to all logged-in users.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "TTYPath";
map["file"] = JOURNALD;
map["type"] = STRING;
map["defVal"] = "/dev/console";
map["toolTip"] = i18n("<p>Forward journal messages to this TTY if ForwardToConsole is set.</p>");
list.append(confOption(map));
QStringList listLogLevel = QStringList() << "MaxLevelStore" << "MaxLevelSyslog"
<< "MaxLevelKMsg" << "MaxLevelConsole";
if (systemdVersion >= 212)
listLogLevel << "MaxLevelWall";
foreach (const QString &s, listLogLevel)
{
map.clear();
map["name"] = s;
map["file"] = JOURNALD;
map["type"] = LIST;
if (s == "MaxLevelKMsg")
map["defVal"] = "notice";
else if (s == "MaxLevelConsole")
map["defVal"] = "info";
else if (s == "MaxLevelWall")
map["defVal"] = "emerg";
else
map["defVal"] = "debug";
map["possibleVals"] = QStringList() << "emerg" << "alert" << "crit" << "err"
<< "warning" << "notice" << "info" << "debug";
map["toolTip"] = i18n("<p>Max log level to forward/store to the specified target.</p>");
list.append(confOption(map));
}
// logind.conf
map.clear();
map["name"] = "NAutoVTs";
map["file"] = LOGIND;
map["type"] = INTEGER;
map["defVal"] = 6;
map["maxVal"] = 12;
map["toolTip"] = i18n("<p>Number of virtual terminals (VTs) to allocate by default and which will autospawn. Set to 0 to disable.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ReserveVT";
map["file"] = LOGIND;
map["type"] = INTEGER;
map["defVal"] = 6;
map["maxVal"] = 12;
map["toolTip"] = i18n("<p>Virtual terminal that shall unconditionally be reserved for autospawning. Set to 0 to disable.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "KillUserProcesses";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Kill the processes of a user when the user completely logs out.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "KillOnlyUsers";
map["file"] = LOGIND;
map["type"] = STRING;
map["toolTip"] = i18n("<p>Space-separated list of usernames for which only processes will be killed if KillUserProcesses is enabled.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "KillExcludeUsers";
map["file"] = LOGIND;
map["type"] = STRING;
map["defVal"] = "root";
map["toolTip"] = i18n("<p>Space-separated list of usernames for which processes will be excluded from being killed if KillUserProcesses is enabled.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "InhibitDelayMaxSec";
map["file"] = LOGIND;
map["type"] = TIME;
map["defVal"] = 5;
map["toolTip"] = i18n("<p>Specifies the maximum time a system shutdown or sleep request is delayed due to an inhibitor lock of type delay being active before the inhibitor is ignored and the operation executes anyway.</p>");
list.append(confOption(map));
QStringList listPowerActions = QStringList() << "ignore" << "poweroff" << "reboot" << "halt" << "kexec"
<< "suspend" << "hibernate" << "hybrid-sleep" << "lock";
QStringList listPower = QStringList() << "HandlePowerKey" << "HandleSuspendKey"
<< "HandleHibernateKey" << "HandleLidSwitch";
if (systemdVersion >= 217)
listPower << "<API key>";
foreach (const QString &s, listPower)
{
map.clear();
map["name"] = s;
map["file"] = LOGIND;
map["type"] = LIST;
if (s == "HandlePowerKey")
map["defVal"] = "poweroff";
else if (s == "HandleHibernateKey")
map["defVal"] = "hibernate";
else if (s == "<API key>")
map["defVal"] = "ignore";
else
map["defVal"] = "suspend";
map["possibleVals"] = listPowerActions;
map["toolTip"] = i18n("<p>Controls whether logind shall handle the system power and sleep keys and the lid switch to trigger power actions.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "<API key>";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Controls whether actions triggered by the power key are subject to inhibitor locks.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Controls whether actions triggered by the suspend key are subject to inhibitor locks.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = false;
map["toolTip"] = i18n("<p>Controls whether actions triggered by the hibernate key are subject to inhibitor locks.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "<API key>";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Controls whether actions triggered by the lid switch are subject to inhibitor locks.</p>");
list.append(confOption(map));
if (systemdVersion >= 220)
{
map.clear();
map["name"] = "HoldoffTimeoutSec";
map["file"] = LOGIND;
map["type"] = TIME;
map["defVal"] = 30;
map["toolTip"] = i18n("<p>Timeout after system startup or system resume in which systemd will hold off on reacting to lid events.</p>");
list.append(confOption(map));
}
map.clear();
map["name"] = "IdleAction";
map["file"] = LOGIND;
map["type"] = LIST;
map["defVal"] = "ignore";
map["possibleVals"] = listPowerActions;
map["toolTip"] = i18n("<p>Configures the action to take when the system is idle.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "IdleActionSec";
map["file"] = LOGIND;
map["type"] = TIME;
map["defVal"] = 0;
map["toolTip"] = i18n("<p>Configures the delay after which the action configured in IdleAction is taken after the system is idle.</p>");
list.append(confOption(map));
if (systemdVersion >= 211)
{
map.clear();
map["name"] = "<API key>";
map["file"] = LOGIND;
map["type"] = SIZE;
map["defVal"] = 10;
map["maxVal"] = 100;
map["toolTip"] = i18n("<p>Sets the size limit on the $XDG_RUNTIME_DIR runtime directory for each user who logs in. Percentage of physical RAM.</p>");
list.append(confOption(map));
}
if (systemdVersion >= 212)
{
map.clear();
map["name"] = "RemoveIPC";
map["file"] = LOGIND;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Controls whether System V and POSIX IPC objects belonging to the user shall be removed when the user fully logs out.</p>");
list.append(confOption(map));
}
// coredump.conf
if (systemdVersion >= 215)
{
map.clear();
map["name"] = "Storage";
map["file"] = COREDUMP;
map["type"] = LIST;
map["defVal"] = "external";
map["possibleVals"] = QStringList() << "none" << "external" << "journal" << "both";
map["toolTip"] = i18n("<p>Controls where to store cores. When <i>none</i>, the coredumps will be logged but not stored permanently. When <i>external</i>, cores will be stored in /var/lib/systemd/coredump. When <i>journal</i>, cores will be stored in the journal and rotated following normal journal rotation patterns.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "Compress";
map["file"] = COREDUMP;
map["type"] = BOOL;
map["defVal"] = true;
map["toolTip"] = i18n("<p>Controls compression for external storage.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ProcessSizeMax";
map["file"] = COREDUMP;
map["type"] = SIZE;
map["defVal"] = 2*1024;
map["maxVal"] = partPersSizeMB;
map["toolTip"] = i18n("<p>The maximum size of a core which will be processed. Coredumps exceeding this size will be logged, but the backtrace will not be generated and the core will not be stored.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "ExternalSizeMax";
map["file"] = COREDUMP;
map["type"] = SIZE;
map["defVal"] = 2*1024;
map["maxVal"] = partPersSizeMB;
map["toolTip"] = i18n("<p>The maximum (uncompressed) size of a core to be saved.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "JournalSizeMax";
map["file"] = COREDUMP;
map["type"] = SIZE;
map["defVal"] = 767;
map["maxVal"] = partPersSizeMB;
map["toolTip"] = i18n("<p>The maximum (uncompressed) size of a core to be saved.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "MaxUse";
map["file"] = COREDUMP;
map["type"] = SIZE;
map["defVal"] = QVariant(0.1 * partPersSizeMB).toULongLong();
map["maxVal"] = partPersSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Old coredumps are removed as soon as the total disk space taken up by coredumps grows beyond this limit. Defaults to 10% of the total disk size.</p>");
list.append(confOption(map));
map.clear();
map["name"] = "KeepFree";
map["file"] = COREDUMP;
map["type"] = SIZE;
map["defVal"] = QVariant(0.15 * partPersSizeMB).toULongLong();
map["maxVal"] = partPersSizeMB;
// xgettext:no-c-format
map["toolTip"] = i18n("<p>Minimum disk space to keep free. Defaults to 15% of the total disk size.</p>");
list.append(confOption(map));
}
/* We can dismiss these options now...
if (systemdVersion < 207)
{
list.append(confOption(LOGIND, "Controllers", STRING, ""));
list.append(confOption(LOGIND, "ResetControllers", STRING, "cpu"));
}
*/
return list;
}
|
#include <linux/cpu.h>
#include <linux/smp.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/platform_device.h>
#include <linux/miscdevice.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <sharp/shlcdc_eventlog.h>
#define SHLCDC_EVENTLOG_ALL 512
#define SHLCDC_EVENTLOG_NUM 480
#define SHLCDC_BUSYLOG_NUM 16
#define SHLCDC_ERRLOG_NUM 16
#ifndef SH_BUILD_ID
#define SH_BUILD_ID "S0000"
#endif
struct st_shlcdc_eventlog {
unsigned long sec;
unsigned long usec;
unsigned long event;
unsigned long param;
};
static struct st_shlcdc_eventlog st_shlcdc_logbuffer[SHLCDC_EVENTLOG_ALL];
static struct st_shlcdc_eventlog *shlcdc_eventlog;
static struct st_shlcdc_eventlog *shlcdc_busylog;
static struct st_shlcdc_eventlog *shlcdc_errlog;
static unsigned long shlcdc_eventlog_cnt=0;
static unsigned long shlcdc_busylog_cnt=0;
static unsigned long shlcdc_errlog_cnt=0;
static unsigned long <API key>=0;
static unsigned long shlcdc_busylog_size=0;
static unsigned long shlcdc_errlog_size=0;
static unsigned long shlcdc_eventlog_max=SHLCDC_EVENTLOG_NUM;
static unsigned long shlcdc_busylog_max=SHLCDC_BUSYLOG_NUM;
static unsigned long shlcdc_errlog_max=SHLCDC_ERRLOG_NUM;
#ifdef <API key>
static unsigned long shlcdc_eventlog_num=SHLCDC_EVENTLOG_NUM;
static unsigned long shlcdc_busylog_num=SHLCDC_BUSYLOG_NUM;
static unsigned long shlcdc_errlog_num=SHLCDC_ERRLOG_NUM;
module_param(shlcdc_eventlog_cnt, ulong, 0400);
module_param(shlcdc_busylog_cnt, ulong, 0400);
module_param(shlcdc_errlog_cnt, ulong, 0400);
module_param(shlcdc_eventlog_num, ulong, 0600);
module_param(shlcdc_busylog_num, ulong, 0600);
module_param(shlcdc_errlog_num, ulong, 0600);
#endif
static void <API key>(void)
{
shlcdc_eventlog_cnt=0;
shlcdc_busylog_cnt=0;
shlcdc_errlog_cnt=0;
memset(st_shlcdc_logbuffer, 0x00, sizeof(st_shlcdc_logbuffer));
shlcdc_eventlog=st_shlcdc_logbuffer;
shlcdc_busylog=st_shlcdc_logbuffer+shlcdc_eventlog_max;
shlcdc_errlog=st_shlcdc_logbuffer+shlcdc_eventlog_max+shlcdc_busylog_max;
<API key>=sizeof(struct st_shlcdc_eventlog)*shlcdc_eventlog_max;
shlcdc_busylog_size=sizeof(struct st_shlcdc_eventlog)*shlcdc_busylog_max;
shlcdc_errlog_size=sizeof(struct st_shlcdc_eventlog)*shlcdc_errlog_max;
}
void shlcdc_eventlog_rec(unsigned long event, unsigned long param)
{
unsigned long long t;
unsigned long nanosec_rem;
int idx;
if(strncmp(SH_BUILD_ID, "S", 1) == 0)
return;
t = cpu_clock(smp_processor_id());
nanosec_rem = do_div(t, 1000000000);
idx = shlcdc_eventlog_cnt%shlcdc_eventlog_max;
shlcdc_eventlog_cnt ++;
shlcdc_eventlog[idx].sec = (unsigned long)t;
shlcdc_eventlog[idx].usec = (unsigned long)(nanosec_rem / 1000);
shlcdc_eventlog[idx].event = event;
shlcdc_eventlog[idx].param = param;
}
EXPORT_SYMBOL(shlcdc_eventlog_rec);
void shlcdc_busylog_rec(unsigned long event, unsigned long param)
{
unsigned long long t;
unsigned long nanosec_rem;
int idx;
if(strncmp(SH_BUILD_ID, "S", 1) == 0)
return;
t = cpu_clock(smp_processor_id());
nanosec_rem = do_div(t, 1000000000);
idx = shlcdc_busylog_cnt%shlcdc_busylog_max;
shlcdc_busylog_cnt ++;
shlcdc_busylog[idx].sec = (unsigned long)t;
shlcdc_busylog[idx].usec = (unsigned long)(nanosec_rem / 1000);
shlcdc_busylog[idx].event = event;
shlcdc_busylog[idx].param = param;
}
EXPORT_SYMBOL(shlcdc_busylog_rec);
void shlcdc_errlog_rec(unsigned long event, unsigned long param)
{
unsigned long long t;
unsigned long nanosec_rem;
int idx;
if(strncmp(SH_BUILD_ID, "S", 1) == 0)
return;
t = cpu_clock(smp_processor_id());
nanosec_rem = do_div(t, 1000000000);
idx = shlcdc_errlog_cnt;
shlcdc_errlog_cnt ++;
if(shlcdc_errlog_cnt > shlcdc_errlog_max) return;
shlcdc_errlog[idx].sec = (unsigned long)t;
shlcdc_errlog[idx].usec = (unsigned long)(nanosec_rem / 1000);
shlcdc_errlog[idx].event = event;
shlcdc_errlog[idx].param = param;
}
EXPORT_SYMBOL(shlcdc_errlog_rec);
#ifdef <API key>
static unsigned long <API key>=0;
static int <API key>(const char *str, struct kernel_param *kp)
{
int lp;
pr_info("[SHLCDC_EVENTLOG(%s:cnt=%lu)]\n", SH_BUILD_ID, shlcdc_eventlog_cnt);
for(lp=0 ; lp<shlcdc_eventlog_cnt && lp<shlcdc_eventlog_max ; lp++)
pr_info("[%5lu.%06lu] 0x%08lx 0x%08lx\n", shlcdc_eventlog[lp].sec, shlcdc_eventlog[lp].usec, shlcdc_eventlog[lp].event, shlcdc_eventlog[lp].param);
pr_info("[SHLCDC_BUSYLOG(%s:cnt=%lu)]\n", SH_BUILD_ID, shlcdc_busylog_cnt);
for(lp=0 ; lp<shlcdc_busylog_cnt && lp<shlcdc_busylog_max ; lp++)
pr_info("[%5lu.%06lu] 0x%08lx 0x%08lx\n", shlcdc_busylog[lp].sec, shlcdc_busylog[lp].usec, shlcdc_busylog[lp].event, shlcdc_busylog[lp].param);
pr_info("[SHLCDC_ERRLOG(%s:cnt=%lu)]\n", SH_BUILD_ID, shlcdc_errlog_cnt);
for(lp=0 ; lp<shlcdc_errlog_cnt && lp<shlcdc_errlog_max ; lp++)
pr_info("[%5lu.%06lu] 0x%08lx 0x%08lx\n", shlcdc_errlog[lp].sec, shlcdc_errlog[lp].usec, shlcdc_errlog[lp].event, shlcdc_errlog[lp].param);
return 0;
}
static int <API key>(char *str, struct kernel_param *kp)
{
int ret;
ret = sprintf(str, "%lu", <API key>);
return ret;
}
module_param_call(<API key>, <API key>, <API key>, NULL, 0600);
static unsigned long shlcdc_logreset=0;
static int shlcdc_logreset_set(const char *str, struct kernel_param *kp)
{
if(shlcdc_eventlog_num < 1) shlcdc_eventlog_num=1;
if(shlcdc_eventlog_num > <API key>) shlcdc_eventlog_num=<API key>;
if(shlcdc_busylog_num < 1) shlcdc_busylog_num=1;
if(shlcdc_busylog_num > <API key>) shlcdc_busylog_num=<API key>;
if(shlcdc_errlog_num < 1) shlcdc_errlog_num=1;
if(shlcdc_errlog_num > <API key>) shlcdc_errlog_num=<API key>;
if(shlcdc_eventlog_num + shlcdc_busylog_num + shlcdc_errlog_num > SHLCDC_EVENTLOG_ALL){
shlcdc_eventlog_num = SHLCDC_EVENTLOG_NUM;
shlcdc_busylog_num = SHLCDC_BUSYLOG_NUM;
shlcdc_errlog_num = SHLCDC_ERRLOG_NUM;
}
shlcdc_eventlog_max = shlcdc_eventlog_num;
shlcdc_busylog_max = shlcdc_busylog_num;
shlcdc_errlog_max = shlcdc_errlog_num;
<API key>();
return 0;
}
static int shlcdc_logreset_get(char *str, struct kernel_param *kp)
{
int ret;
ret = sprintf(str, "%lu %lu %lu", shlcdc_eventlog_max, shlcdc_busylog_max, shlcdc_errlog_max);
shlcdc_logreset = ret;
return ret;
}
module_param_call(shlcdc_logreset, shlcdc_logreset_set, shlcdc_logreset_get, NULL, 0600);
#endif
static int <API key>(struct stEventlog_st *data)
{
if(data->eventID < <API key>){
data->eventID |= <API key>;
}
if(data->kind == <API key>){
shlcdc_eventlog_rec(data->eventID, data->param);
}
else if(data->kind == EEVENTLOG_USER_BUSY){
shlcdc_busylog_rec(data->eventID, data->param);
}
else if(data->kind == EEVENTLOG_USER_ERR){
shlcdc_errlog_rec(data->eventID, data->param);
}
return 0;
}
static int <API key>(struct inode *inode, struct file *file)
{
return(0);
}
static int <API key>(struct inode *inode, struct file *file)
{
return(0);
}
static long <API key>(struct file *file, unsigned int cmd, unsigned long arg)
{
int ret;
struct stEventlog_st data;
void __user *argp = (void __user *)arg;
if(strncmp(SH_BUILD_ID, "S", 1) == 0)
return 0;
switch(cmd) {
case <API key> :
if(copy_from_user(&data, argp, sizeof(data))) {
return(-EFAULT);
}
ret = <API key>(&data);
break;
default :
ret = 0;
break;
}
return(ret);
}
static struct file_operations <API key> = {
.owner = THIS_MODULE,
.open = <API key>,
.release = <API key>,
.unlocked_ioctl = <API key>,
};
static struct miscdevice <API key> = {
.minor = MISC_DYNAMIC_MINOR,
.name = <API key>,
.fops = &<API key>,
};
static int __init <API key>(void)
{
int ret;
ret = misc_register(&<API key>);
if(ret < 0) {
pr_err("%s:misc_register() failed:ret=%d.\n", __func__, ret);
return(ret);
}
<API key>();
return 0;
}
module_init(<API key>);
MODULE_DESCRIPTION("SHARP LCD EVENTLOG DRIVER MODULE");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("SHARP CORPORATION");
MODULE_VERSION("2.00");
|
body#tinymce.wp-editor {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #555;
font-weight: 300;
}
body#tinymce.wp-editor a {
color: #555;
}
body#tinymce.wp-editor a:hover {
text-decoration: none;
}
body#tinymce.wp-editor dl {
margin-bottom: 18px;
}
body#tinymce.wp-editor dt {
font-weight: bold;
}
body#tinymce.wp-editor dd {
margin-left: 25px;
}
body#tinymce.wp-editor hr {
margin: 18px 0;
border: 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #fff;
}
body#tinymce.wp-editor abbr {
font-variant: small-caps;
}
body#tinymce.wp-editor abbr[title] {
cursor: help;
border-bottom: 1px dotted #999;
}
body#tinymce.wp-editor blockquote {
font-family: Georgia,"Times New Roman",Times,serif;
padding: 0 0 0 15px;
margin: 0 0 18px 40px;
position: relative;
font-style: italic;
}
body#tinymce.wp-editor blockquote:before {
display: block;
content: "\201C";
font-size: 100px;
position: absolute;
left: -40px;
top: 30px;
font-style: normal;
}
body#tinymce.wp-editor blockquote p {
margin-bottom: 0;
font-size: 16px;
font-weight: 300;
}
body#tinymce.wp-editor cite {
font-style: normal;
}
body#tinymce.wp-editor blockquote small, body#tinymce.wp-editor .post-format-content cite {
display: block;
color: #999;
font-style: normal;
}
body#tinymce.wp-editor blockquote small:before, body#tinymce.wp-editor .post-format-content cite:before {
content: '\2014 \00A0';
}
body#tinymce.wp-editor figure.quote {
background-color: #F5F5F5;
height: auto;
padding: 34px;
margin: 0px;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
body#tinymce.wp-editor figure.quote blockquote {
margin: 0px;
padding: 0px;
}
body#tinymce.wp-editor figure.quote blockquote:before {
content: none;
}
body#tinymce.wp-editor figure.quote blockquote p {
font-size: 22px;
}
body#tinymce.wp-editor figure.quote blockquote p:first-child {
padding-top: 0px;
margin-top: 0px;
}
body#tinymce.wp-editor figure.quote figcaption.quote-caption {
padding-top: 30px;
}
body#tinymce.wp-editor pre {
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 16px;
background-color: #f5f5f5;
display: block;
line-height: 18px;
margin: 2em 0;
padding: 14px;
white-space: pre-wrap;
word-wrap: break-word;
}
body#tinymce.wp-editor code {
font-family: "Courier 10 Pitch", Courier, monospace;
word-wrap: break-word;
}
body#tinymce.wp-editor ins {
background: #fff9c0;
text-decoration: none;
}
body#tinymce.wp-editor h1, body#tinymce.wp-editor h2, body#tinymce.wp-editor h3, body#tinymce.wp-editor h4, body#tinymce.wp-editor h5 {
font-weight: 200;
}
body#tinymce.wp-editor h1 {
font-size: 30px;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.