~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/media/rc/nuvoton-cir.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        struct ir_raw_event rawir;
71
71
 
72
72
        spinlock_t nvt_lock;
73
 
        bool in_use;
74
73
 
75
74
        /* for rx */
76
75
        u8 buf[RX_BUF_LEN];
330
329
#define EFER_EFM_DISABLE        0xaa
331
330
 
332
331
/* Chip IDs found in CR_CHIP_ID_{HI,LO} */
333
 
#define CHIP_ID_HIGH            0xb4
334
 
#define CHIP_ID_LOW             0x72
335
 
#define CHIP_ID_LOW2            0x73
 
332
#define CHIP_ID_HIGH_667        0xa5
 
333
#define CHIP_ID_HIGH_677B       0xb4
 
334
#define CHIP_ID_HIGH_677C       0xc3
 
335
#define CHIP_ID_LOW_667         0x13
 
336
#define CHIP_ID_LOW_677B2       0x72
 
337
#define CHIP_ID_LOW_677B3       0x73
 
338
#define CHIP_ID_LOW_677C        0x33
336
339
 
337
340
/* Config regs we need to care about */
338
341
#define CR_SOFTWARE_RESET       0x02
341
344
#define CR_CHIP_ID_LO           0x21
342
345
#define CR_DEV_POWER_DOWN       0x22 /* bit 2 is CIR power, default power on */
343
346
#define CR_OUTPUT_PIN_SEL       0x27
 
347
#define CR_MULTIFUNC_PIN_SEL    0x2c
344
348
#define CR_LOGICAL_DEV_EN       0x30 /* valid for all logical devices */
345
349
/* next three regs valid for both the CIR and CIR_WAKE logical devices */
346
350
#define CR_CIR_BASE_ADDR_HI     0x60
364
368
#define CIR_INTR_MOUSE_IRQ_BIT  0x80
365
369
#define PME_INTR_CIR_PASS_BIT   0x08
366
370
 
 
371
/* w83677hg CIR pin config */
367
372
#define OUTPUT_PIN_SEL_MASK     0xbc
368
373
#define OUTPUT_ENABLE_CIR       0x01 /* Pin95=CIRRX, Pin96=CIRTX1 */
369
374
#define OUTPUT_ENABLE_CIRWB     0x40 /* enable wide-band sensor */
370
375
 
 
376
/* w83667hg CIR pin config */
 
377
#define MULTIFUNC_PIN_SEL_MASK  0x1f
 
378
#define MULTIFUNC_ENABLE_CIR    0x80 /* Pin75=CIRRX, Pin76=CIRTX1 */
 
379
#define MULTIFUNC_ENABLE_CIRWB  0x20 /* enable wide-band sensor */
 
380
 
371
381
/* MCE CIR signal length, related on sample period */
372
382
 
373
383
/* MCE CIR controller signal length: about 43ms