Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ite-cir.h File Reference

Go to the source code of this file.

Data Structures

struct  ite_dev_params
 
struct  ite_dev
 

Macros

#define ITE_DRIVER_NAME   "ite-cir"
 
#define ite_pr(level, text,...)   printk(level KBUILD_MODNAME ": " text, ## __VA_ARGS__)
 
#define ite_dbg(text,...)
 
#define ite_dbg_verbose(text,...)
 
#define ITE_TX_FIFO_LEN   32
 
#define ITE_RX_FIFO_LEN   32
 
#define ITE_IRQ_TX_FIFO   1
 
#define ITE_IRQ_RX_FIFO   2
 
#define ITE_IRQ_RX_FIFO_OVERRUN   4
 
#define ITE_BAUDRATE_DIVISOR   1
 
#define ITE_LCF_MIN_CARRIER_FREQ   27000
 
#define ITE_LCF_MAX_CARRIER_FREQ   58000
 
#define ITE_HCF_MIN_CARRIER_FREQ   400000
 
#define ITE_HCF_MAX_CARRIER_FREQ   500000
 
#define ITE_DEFAULT_CARRIER_FREQ   38000
 
#define ITE_IDLE_TIMEOUT   200000000UL
 
#define ITE_MIN_IDLE_TIMEOUT   100000000UL
 
#define ITE_MAX_IDLE_TIMEOUT   1000000000UL
 
#define ITE_BITS_TO_NS(bits, sample_period)   ((u32) ((bits) * ITE_BAUDRATE_DIVISOR * sample_period))
 
#define ITE_RXDCR_PER_10000_STEP   625
 
#define ITE_CFQ_400   0x03
 
#define ITE_CFQ_450   0x08
 
#define ITE_CFQ_480   0x0b
 
#define ITE_CFQ_500   0x0d
 
#define ITE_TXMPW_A   0x02
 
#define ITE_TXMPW_B   0x03
 
#define ITE_TXMPW_C   0x04
 
#define ITE_TXMPW_D   0x05
 
#define ITE_TXMPW_E   0x06
 
#define ITE_RXDCR_DEFAULT   0x01 /* default carrier range */
 
#define ITE_RXDCR_MAX   0x07 /* default carrier range */
 
#define ITE_TX_PULSE   0x00
 
#define ITE_TX_SPACE   0x80
 
#define ITE_TX_MAX_RLE   0x80
 
#define ITE_TX_RLE_MASK   0x7f
 
#define IT87_DR   0x00 /* data register */
 
#define IT87_IER   0x01 /* interrupt enable register */
 
#define IT87_RCR   0x02 /* receiver control register */
 
#define IT87_TCR1   0x03 /* transmitter control register 1 */
 
#define IT87_TCR2   0x04 /* transmitter control register 2 */
 
#define IT87_TSR   0x05 /* transmitter status register */
 
#define IT87_RSR   0x06 /* receiver status register */
 
#define IT87_BDLR   0x05 /* baud rate divisor low byte register */
 
#define IT87_BDHR   0x06 /* baud rate divisor high byte register */
 
#define IT87_IIR   0x07 /* interrupt identification register */
 
#define IT87_IOREG_LENGTH   0x08 /* length of register file */
 
#define IT87_TLDLIE   0x01 /* transmitter low data interrupt enable */
 
#define IT87_RDAIE   0x02 /* receiver data available interrupt enable */
 
#define IT87_RFOIE   0x04 /* receiver FIFO overrun interrupt enable */
 
#define IT87_IEC   0x08 /* interrupt enable control */
 
#define IT87_BR   0x10 /* baud rate register enable */
 
#define IT87_RESET   0x20 /* reset */
 
#define IT87_RXDCR   0x07 /* receiver demodulation carrier range mask */
 
#define IT87_RXACT   0x08 /* receiver active */
 
#define IT87_RXEND   0x10 /* receiver demodulation enable */
 
#define IT87_RXEN   0x20 /* receiver enable */
 
#define IT87_HCFS   0x40 /* high-speed carrier frequency select */
 
#define IT87_RDWOS   0x80 /* receiver data without sync */
 
#define IT87_TXMPM   0x03 /* transmitter modulation pulse mode mask */
 
#define IT87_TXMPM_DEFAULT   0x00 /* modulation pulse mode default */
 
#define IT87_TXENDF   0x04 /* transmitter deferral */
 
#define IT87_TXRLE   0x08 /* transmitter run length enable */
 
#define IT87_FIFOTL   0x30 /* FIFO level threshold mask */
 
#define IT87_FIFOTL_DEFAULT
 
#define IT87_ILE   0x40 /* internal loopback enable */
 
#define IT87_FIFOCLR   0x80 /* FIFO clear bit */
 
#define IT87_TXMPW   0x07 /* transmitter modulation pulse width mask */
 
#define IT87_TXMPW_DEFAULT   0x04 /* default modulation pulse width */
 
#define IT87_CFQ   0xf8 /* carrier frequency mask */
 
#define IT87_CFQ_SHIFT   3 /* carrier frequency bit shift */
 
#define IT87_TXFBC   0x3f /* transmitter FIFO byte count mask */
 
#define IT87_RXFBC   0x3f /* receiver FIFO byte count mask */
 
#define IT87_RXFTO   0x80 /* receiver FIFO time-out */
 
#define IT87_IP   0x01 /* interrupt pending */
 
#define IT87_II   0x06 /* interrupt identification mask */
 
#define IT87_II_NOINT   0x00 /* no interrupt */
 
#define IT87_II_TXLDL   0x02 /* transmitter low data level */
 
#define IT87_II_RXDS   0x04 /* receiver data stored */
 
#define IT87_II_RXFO   0x06 /* receiver FIFO overrun */
 
#define IT85_C0DR   0x00 /* data register */
 
#define IT85_C0MSTCR   0x01 /* master control register */
 
#define IT85_C0IER   0x02 /* interrupt enable register */
 
#define IT85_C0IIR   0x03 /* interrupt identification register */
 
#define IT85_C0CFR   0x04 /* carrier frequency register */
 
#define IT85_C0RCR   0x05 /* receiver control register */
 
#define IT85_C0TCR   0x06 /* transmitter control register */
 
#define IT85_C0SCK   0x07 /* slow clock control register */
 
#define IT85_C0BDLR   0x08 /* baud rate divisor low byte register */
 
#define IT85_C0BDHR   0x09 /* baud rate divisor high byte register */
 
#define IT85_C0TFSR   0x0a /* transmitter FIFO status register */
 
#define IT85_C0RFSR   0x0b /* receiver FIFO status register */
 
#define IT85_C0WCL   0x0d /* wakeup code length register */
 
#define IT85_C0WCR   0x0e /* wakeup code read/write register */
 
#define IT85_C0WPS   0x0f /* wakeup power control/status register */
 
#define IT85_IOREG_LENGTH   0x10 /* length of register file */
 
#define IT85_RESET   0x01 /* reset */
 
#define IT85_FIFOCLR   0x02 /* FIFO clear bit */
 
#define IT85_FIFOTL   0x0c /* FIFO level threshold mask */
 
#define IT85_FIFOTL_DEFAULT
 
#define IT85_ILE   0x10 /* internal loopback enable */
 
#define IT85_ILSEL   0x20 /* internal loopback select */
 
#define IT85_TLDLIE   0x01 /* TX low data level interrupt enable */
 
#define IT85_RDAIE   0x02 /* RX data available interrupt enable */
 
#define IT85_RFOIE   0x04 /* RX FIFO overrun interrupt enable */
 
#define IT85_IEC   0x80 /* interrupt enable function control */
 
#define IT85_TLDLI   0x01 /* transmitter low data level interrupt */
 
#define IT85_RDAI   0x02 /* receiver data available interrupt */
 
#define IT85_RFOI   0x04 /* receiver FIFO overrun interrupt */
 
#define IT85_NIP   0x80 /* no interrupt pending */
 
#define IT85_CFQ   0x1f /* carrier frequency mask */
 
#define IT85_HCFS   0x20 /* high speed carrier frequency select */
 
#define IT85_RXDCR   0x07 /* receiver demodulation carrier range mask */
 
#define IT85_RXACT   0x08 /* receiver active */
 
#define IT85_RXEND   0x10 /* receiver demodulation enable */
 
#define IT85_RDWOS   0x20 /* receiver data without sync */
 
#define IT85_RXEN   0x80 /* receiver enable */
 
#define IT85_TXMPW   0x07 /* transmitter modulation pulse width mask */
 
#define IT85_TXMPW_DEFAULT   0x04 /* default modulation pulse width */
 
#define IT85_TXMPM   0x18 /* transmitter modulation pulse mode mask */
 
#define IT85_TXMPM_DEFAULT   0x00 /* modulation pulse mode default */
 
#define IT85_TXENDF   0x20 /* transmitter deferral */
 
#define IT85_TXRLE   0x40 /* transmitter run length enable */
 
#define IT85_SCKS   0x01 /* slow clock select */
 
#define IT85_TXDCKG   0x02 /* TXD clock gating */
 
#define IT85_DLL1P8E   0x04 /* DLL 1.8432M enable */
 
#define IT85_DLLTE   0x08 /* DLL test enable */
 
#define IT85_BRCM   0x70 /* baud rate count mode */
 
#define IT85_DLLOCK   0x80 /* DLL lock */
 
#define IT85_TXFBC   0x3f /* transmitter FIFO count mask */
 
#define IT85_RXFBC   0x3f /* receiver FIFO count mask */
 
#define IT85_RXFTO   0x80 /* receiver FIFO time-out */
 
#define IT85_WCL   0x3f /* wakeup code length mask */
 
#define IT85_CIRPOSIE   0x01 /* power on/off status interrupt enable */
 
#define IT85_CIRPOIS   0x02 /* power on/off interrupt status */
 
#define IT85_CIRPOII   0x04 /* power on/off interrupt identification */
 
#define IT85_RCRST   0x10 /* wakeup code reading counter reset bit */
 
#define IT85_WCRST   0x20 /* wakeup code writing counter reset bit */
 
#define IT8708_BANKSEL   0x07 /* bank select register */
 
#define IT8708_HRAE   0x80 /* high registers access enable */
 
#define IT8708_C0DR   0x00 /* data register */
 
#define IT8708_C0MSTCR   0x01 /* master control register */
 
#define IT8708_C0IER   0x02 /* interrupt enable register */
 
#define IT8708_C0IIR   0x03 /* interrupt identification register */
 
#define IT8708_C0RFSR   0x04 /* receiver FIFO status register */
 
#define IT8708_C0RCR   0x05 /* receiver control register */
 
#define IT8708_C0TFSR   0x06 /* transmitter FIFO status register */
 
#define IT8708_C0TCR   0x07 /* transmitter control register */
 
#define IT8708_C0BDLR   0x01 /* baud rate divisor low byte register */
 
#define IT8708_C0BDHR   0x02 /* baud rate divisor high byte register */
 
#define IT8708_C0CFR   0x04 /* carrier frequency register */
 
#define IT8708_C0SCK   0x03 /* slow clock control register */
 
#define IT8708_C0WCL   0x05 /* wakeup code length register */
 
#define IT8708_C0WCR   0x06 /* wakeup code read/write register */
 
#define IT8708_C0WPS   0x07 /* wakeup power control/status register */
 
#define IT8708_IOREG_LENGTH   0x08 /* length of register file */
 
#define IT8708_CSCRR   0x00
 
#define IT8708_CGPINTR   0x01
 
#define IT8708_CSCRR_SCRB   0x3f
 
#define IT8708_CSCRR_PM   0x80
 
#define IT8708_CGPINT   0x01
 
#define IT8709_RAM_IDX   0x00 /* index into the SRAM module bytes */
 
#define IT8709_RAM_VAL   0x01 /* read/write data to the indexed byte */
 
#define IT8709_IOREG_LENGTH   0x02 /* length of register file */
 
#define IT8709_MODE   0x1a /* request/ack byte */
 
#define IT8709_REG_IDX   0x1b /* index of the CIR register to access */
 
#define IT8709_REG_VAL   0x1c /* value read/to be written */
 
#define IT8709_IIR   0x1e /* interrupt identification register */
 
#define IT8709_RFSR   0x1f /* receiver FIFO status register */
 
#define IT8709_FIFO   0x20 /* start of in RAM RX FIFO copy */
 
#define IT8709_IDLE   0x00
 
#define IT8709_WRITE   0x01
 
#define IT8709_READ   0x02
 

Macro Definition Documentation

#define IT85_BRCM   0x70 /* baud rate count mode */

Definition at line 361 of file ite-cir.h.

#define IT85_C0BDHR   0x09 /* baud rate divisor high byte register */

Definition at line 308 of file ite-cir.h.

#define IT85_C0BDLR   0x08 /* baud rate divisor low byte register */

Definition at line 307 of file ite-cir.h.

#define IT85_C0CFR   0x04 /* carrier frequency register */

Definition at line 303 of file ite-cir.h.

#define IT85_C0DR   0x00 /* data register */

Definition at line 299 of file ite-cir.h.

#define IT85_C0IER   0x02 /* interrupt enable register */

Definition at line 301 of file ite-cir.h.

#define IT85_C0IIR   0x03 /* interrupt identification register */

Definition at line 302 of file ite-cir.h.

#define IT85_C0MSTCR   0x01 /* master control register */

Definition at line 300 of file ite-cir.h.

#define IT85_C0RCR   0x05 /* receiver control register */

Definition at line 304 of file ite-cir.h.

#define IT85_C0RFSR   0x0b /* receiver FIFO status register */

Definition at line 310 of file ite-cir.h.

#define IT85_C0SCK   0x07 /* slow clock control register */

Definition at line 306 of file ite-cir.h.

#define IT85_C0TCR   0x06 /* transmitter control register */

Definition at line 305 of file ite-cir.h.

#define IT85_C0TFSR   0x0a /* transmitter FIFO status register */

Definition at line 309 of file ite-cir.h.

#define IT85_C0WCL   0x0d /* wakeup code length register */

Definition at line 311 of file ite-cir.h.

#define IT85_C0WCR   0x0e /* wakeup code read/write register */

Definition at line 312 of file ite-cir.h.

#define IT85_C0WPS   0x0f /* wakeup power control/status register */

Definition at line 313 of file ite-cir.h.

#define IT85_CFQ   0x1f /* carrier frequency mask */

Definition at line 338 of file ite-cir.h.

#define IT85_CIRPOII   0x04 /* power on/off interrupt identification */

Definition at line 377 of file ite-cir.h.

#define IT85_CIRPOIS   0x02 /* power on/off interrupt status */

Definition at line 376 of file ite-cir.h.

#define IT85_CIRPOSIE   0x01 /* power on/off status interrupt enable */

Definition at line 375 of file ite-cir.h.

#define IT85_DLL1P8E   0x04 /* DLL 1.8432M enable */

Definition at line 359 of file ite-cir.h.

#define IT85_DLLOCK   0x80 /* DLL lock */

Definition at line 362 of file ite-cir.h.

#define IT85_DLLTE   0x08 /* DLL test enable */

Definition at line 360 of file ite-cir.h.

#define IT85_FIFOCLR   0x02 /* FIFO clear bit */

Definition at line 319 of file ite-cir.h.

#define IT85_FIFOTL   0x0c /* FIFO level threshold mask */

Definition at line 320 of file ite-cir.h.

#define IT85_FIFOTL_DEFAULT
Value:
0x08 /* FIFO level threshold default
* 0x00 -> 1, 0x04 -> 7, 0x08 -> 17,
* 0x0c -> 25 */

Definition at line 321 of file ite-cir.h.

#define IT85_HCFS   0x20 /* high speed carrier frequency select */

Definition at line 339 of file ite-cir.h.

#define IT85_IEC   0x80 /* interrupt enable function control */

Definition at line 329 of file ite-cir.h.

#define IT85_ILE   0x10 /* internal loopback enable */

Definition at line 322 of file ite-cir.h.

#define IT85_ILSEL   0x20 /* internal loopback select */

Definition at line 323 of file ite-cir.h.

#define IT85_IOREG_LENGTH   0x10 /* length of register file */

Definition at line 315 of file ite-cir.h.

#define IT85_NIP   0x80 /* no interrupt pending */

Definition at line 335 of file ite-cir.h.

#define IT85_RCRST   0x10 /* wakeup code reading counter reset bit */

Definition at line 378 of file ite-cir.h.

#define IT85_RDAI   0x02 /* receiver data available interrupt */

Definition at line 333 of file ite-cir.h.

#define IT85_RDAIE   0x02 /* RX data available interrupt enable */

Definition at line 327 of file ite-cir.h.

#define IT85_RDWOS   0x20 /* receiver data without sync */

Definition at line 345 of file ite-cir.h.

#define IT85_RESET   0x01 /* reset */

Definition at line 318 of file ite-cir.h.

#define IT85_RFOI   0x04 /* receiver FIFO overrun interrupt */

Definition at line 334 of file ite-cir.h.

#define IT85_RFOIE   0x04 /* RX FIFO overrun interrupt enable */

Definition at line 328 of file ite-cir.h.

#define IT85_RXACT   0x08 /* receiver active */

Definition at line 343 of file ite-cir.h.

#define IT85_RXDCR   0x07 /* receiver demodulation carrier range mask */

Definition at line 342 of file ite-cir.h.

#define IT85_RXEN   0x80 /* receiver enable */

Definition at line 346 of file ite-cir.h.

#define IT85_RXEND   0x10 /* receiver demodulation enable */

Definition at line 344 of file ite-cir.h.

#define IT85_RXFBC   0x3f /* receiver FIFO count mask */

Definition at line 368 of file ite-cir.h.

#define IT85_RXFTO   0x80 /* receiver FIFO time-out */

Definition at line 369 of file ite-cir.h.

#define IT85_SCKS   0x01 /* slow clock select */

Definition at line 357 of file ite-cir.h.

#define IT85_TLDLI   0x01 /* transmitter low data level interrupt */

Definition at line 332 of file ite-cir.h.

#define IT85_TLDLIE   0x01 /* TX low data level interrupt enable */

Definition at line 326 of file ite-cir.h.

#define IT85_TXDCKG   0x02 /* TXD clock gating */

Definition at line 358 of file ite-cir.h.

#define IT85_TXENDF   0x20 /* transmitter deferral */

Definition at line 353 of file ite-cir.h.

#define IT85_TXFBC   0x3f /* transmitter FIFO count mask */

Definition at line 365 of file ite-cir.h.

#define IT85_TXMPM   0x18 /* transmitter modulation pulse mode mask */

Definition at line 351 of file ite-cir.h.

#define IT85_TXMPM_DEFAULT   0x00 /* modulation pulse mode default */

Definition at line 352 of file ite-cir.h.

#define IT85_TXMPW   0x07 /* transmitter modulation pulse width mask */

Definition at line 349 of file ite-cir.h.

#define IT85_TXMPW_DEFAULT   0x04 /* default modulation pulse width */

Definition at line 350 of file ite-cir.h.

#define IT85_TXRLE   0x40 /* transmitter run length enable */

Definition at line 354 of file ite-cir.h.

#define IT85_WCL   0x3f /* wakeup code length mask */

Definition at line 372 of file ite-cir.h.

#define IT85_WCRST   0x20 /* wakeup code writing counter reset bit */

Definition at line 379 of file ite-cir.h.

#define IT8708_BANKSEL   0x07 /* bank select register */

Definition at line 400 of file ite-cir.h.

#define IT8708_C0BDHR   0x02 /* baud rate divisor high byte register */

Definition at line 415 of file ite-cir.h.

#define IT8708_C0BDLR   0x01 /* baud rate divisor low byte register */

Definition at line 414 of file ite-cir.h.

#define IT8708_C0CFR   0x04 /* carrier frequency register */

Definition at line 416 of file ite-cir.h.

#define IT8708_C0DR   0x00 /* data register */

Definition at line 404 of file ite-cir.h.

#define IT8708_C0IER   0x02 /* interrupt enable register */

Definition at line 406 of file ite-cir.h.

#define IT8708_C0IIR   0x03 /* interrupt identification register */

Definition at line 407 of file ite-cir.h.

#define IT8708_C0MSTCR   0x01 /* master control register */

Definition at line 405 of file ite-cir.h.

#define IT8708_C0RCR   0x05 /* receiver control register */

Definition at line 409 of file ite-cir.h.

#define IT8708_C0RFSR   0x04 /* receiver FIFO status register */

Definition at line 408 of file ite-cir.h.

#define IT8708_C0SCK   0x03 /* slow clock control register */

Definition at line 421 of file ite-cir.h.

#define IT8708_C0TCR   0x07 /* transmitter control register */

Definition at line 411 of file ite-cir.h.

#define IT8708_C0TFSR   0x06 /* transmitter FIFO status register */

Definition at line 410 of file ite-cir.h.

#define IT8708_C0WCL   0x05 /* wakeup code length register */

Definition at line 422 of file ite-cir.h.

#define IT8708_C0WCR   0x06 /* wakeup code read/write register */

Definition at line 423 of file ite-cir.h.

#define IT8708_C0WPS   0x07 /* wakeup power control/status register */

Definition at line 424 of file ite-cir.h.

#define IT8708_CGPINT   0x01

Definition at line 439 of file ite-cir.h.

#define IT8708_CGPINTR   0x01

Definition at line 432 of file ite-cir.h.

#define IT8708_CSCRR   0x00

Definition at line 431 of file ite-cir.h.

#define IT8708_CSCRR_PM   0x80

Definition at line 436 of file ite-cir.h.

#define IT8708_CSCRR_SCRB   0x3f

Definition at line 435 of file ite-cir.h.

#define IT8708_HRAE   0x80 /* high registers access enable */

Definition at line 401 of file ite-cir.h.

#define IT8708_IOREG_LENGTH   0x08 /* length of register file */

Definition at line 426 of file ite-cir.h.

#define IT8709_FIFO   0x20 /* start of in RAM RX FIFO copy */

Definition at line 475 of file ite-cir.h.

#define IT8709_IDLE   0x00

Definition at line 478 of file ite-cir.h.

#define IT8709_IIR   0x1e /* interrupt identification register */

Definition at line 473 of file ite-cir.h.

#define IT8709_IOREG_LENGTH   0x02 /* length of register file */

Definition at line 467 of file ite-cir.h.

#define IT8709_MODE   0x1a /* request/ack byte */

Definition at line 470 of file ite-cir.h.

#define IT8709_RAM_IDX   0x00 /* index into the SRAM module bytes */

Definition at line 464 of file ite-cir.h.

#define IT8709_RAM_VAL   0x01 /* read/write data to the indexed byte */

Definition at line 465 of file ite-cir.h.

#define IT8709_READ   0x02

Definition at line 480 of file ite-cir.h.

#define IT8709_REG_IDX   0x1b /* index of the CIR register to access */

Definition at line 471 of file ite-cir.h.

#define IT8709_REG_VAL   0x1c /* value read/to be written */

Definition at line 472 of file ite-cir.h.

#define IT8709_RFSR   0x1f /* receiver FIFO status register */

Definition at line 474 of file ite-cir.h.

#define IT8709_WRITE   0x01

Definition at line 479 of file ite-cir.h.

#define IT87_BDHR   0x06 /* baud rate divisor high byte register */

Definition at line 228 of file ite-cir.h.

#define IT87_BDLR   0x05 /* baud rate divisor low byte register */

Definition at line 227 of file ite-cir.h.

#define IT87_BR   0x10 /* baud rate register enable */

Definition at line 238 of file ite-cir.h.

#define IT87_CFQ   0xf8 /* carrier frequency mask */

Definition at line 262 of file ite-cir.h.

#define IT87_CFQ_SHIFT   3 /* carrier frequency bit shift */

Definition at line 263 of file ite-cir.h.

#define IT87_DR   0x00 /* data register */

Definition at line 220 of file ite-cir.h.

#define IT87_FIFOCLR   0x80 /* FIFO clear bit */

Definition at line 257 of file ite-cir.h.

#define IT87_FIFOTL   0x30 /* FIFO level threshold mask */

Definition at line 254 of file ite-cir.h.

#define IT87_FIFOTL_DEFAULT
Value:
0x20 /* FIFO level threshold default
* 0x00 -> 1, 0x10 -> 7, 0x20 -> 17,
* 0x30 -> 25 */

Definition at line 255 of file ite-cir.h.

#define IT87_HCFS   0x40 /* high-speed carrier frequency select */

Definition at line 246 of file ite-cir.h.

#define IT87_IEC   0x08 /* interrupt enable control */

Definition at line 237 of file ite-cir.h.

#define IT87_IER   0x01 /* interrupt enable register */

Definition at line 221 of file ite-cir.h.

#define IT87_II   0x06 /* interrupt identification mask */

Definition at line 274 of file ite-cir.h.

#define IT87_II_NOINT   0x00 /* no interrupt */

Definition at line 275 of file ite-cir.h.

#define IT87_II_RXDS   0x04 /* receiver data stored */

Definition at line 277 of file ite-cir.h.

#define IT87_II_RXFO   0x06 /* receiver FIFO overrun */

Definition at line 278 of file ite-cir.h.

#define IT87_II_TXLDL   0x02 /* transmitter low data level */

Definition at line 276 of file ite-cir.h.

#define IT87_IIR   0x07 /* interrupt identification register */

Definition at line 229 of file ite-cir.h.

#define IT87_ILE   0x40 /* internal loopback enable */

Definition at line 256 of file ite-cir.h.

#define IT87_IOREG_LENGTH   0x08 /* length of register file */

Definition at line 231 of file ite-cir.h.

#define IT87_IP   0x01 /* interrupt pending */

Definition at line 273 of file ite-cir.h.

#define IT87_RCR   0x02 /* receiver control register */

Definition at line 222 of file ite-cir.h.

#define IT87_RDAIE   0x02 /* receiver data available interrupt enable */

Definition at line 235 of file ite-cir.h.

#define IT87_RDWOS   0x80 /* receiver data without sync */

Definition at line 247 of file ite-cir.h.

#define IT87_RESET   0x20 /* reset */

Definition at line 239 of file ite-cir.h.

#define IT87_RFOIE   0x04 /* receiver FIFO overrun interrupt enable */

Definition at line 236 of file ite-cir.h.

#define IT87_RSR   0x06 /* receiver status register */

Definition at line 226 of file ite-cir.h.

#define IT87_RXACT   0x08 /* receiver active */

Definition at line 243 of file ite-cir.h.

#define IT87_RXDCR   0x07 /* receiver demodulation carrier range mask */

Definition at line 242 of file ite-cir.h.

#define IT87_RXEN   0x20 /* receiver enable */

Definition at line 245 of file ite-cir.h.

#define IT87_RXEND   0x10 /* receiver demodulation enable */

Definition at line 244 of file ite-cir.h.

#define IT87_RXFBC   0x3f /* receiver FIFO byte count mask */

Definition at line 269 of file ite-cir.h.

#define IT87_RXFTO   0x80 /* receiver FIFO time-out */

Definition at line 270 of file ite-cir.h.

#define IT87_TCR1   0x03 /* transmitter control register 1 */

Definition at line 223 of file ite-cir.h.

#define IT87_TCR2   0x04 /* transmitter control register 2 */

Definition at line 224 of file ite-cir.h.

#define IT87_TLDLIE   0x01 /* transmitter low data interrupt enable */

Definition at line 234 of file ite-cir.h.

#define IT87_TSR   0x05 /* transmitter status register */

Definition at line 225 of file ite-cir.h.

#define IT87_TXENDF   0x04 /* transmitter deferral */

Definition at line 252 of file ite-cir.h.

#define IT87_TXFBC   0x3f /* transmitter FIFO byte count mask */

Definition at line 266 of file ite-cir.h.

#define IT87_TXMPM   0x03 /* transmitter modulation pulse mode mask */

Definition at line 250 of file ite-cir.h.

#define IT87_TXMPM_DEFAULT   0x00 /* modulation pulse mode default */

Definition at line 251 of file ite-cir.h.

#define IT87_TXMPW   0x07 /* transmitter modulation pulse width mask */

Definition at line 260 of file ite-cir.h.

#define IT87_TXMPW_DEFAULT   0x04 /* default modulation pulse width */

Definition at line 261 of file ite-cir.h.

#define IT87_TXRLE   0x08 /* transmitter run length enable */

Definition at line 253 of file ite-cir.h.

#define ITE_BAUDRATE_DIVISOR   1

Definition at line 149 of file ite-cir.h.

#define ITE_BITS_TO_NS (   bits,
  sample_period 
)    ((u32) ((bits) * ITE_BAUDRATE_DIVISOR * sample_period))

Definition at line 170 of file ite-cir.h.

#define ITE_CFQ_400   0x03

Definition at line 186 of file ite-cir.h.

#define ITE_CFQ_450   0x08

Definition at line 187 of file ite-cir.h.

#define ITE_CFQ_480   0x0b

Definition at line 188 of file ite-cir.h.

#define ITE_CFQ_500   0x0d

Definition at line 189 of file ite-cir.h.

#define ite_dbg (   text,
  ... 
)
Value:
do { \
if (debug) \
printk(KERN_DEBUG \
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__); \
} while (0)

Definition at line 28 of file ite-cir.h.

#define ite_dbg_verbose (   text,
  ... 
)
Value:
do {\
if (debug > 1) \
printk(KERN_DEBUG \
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__); \
} while (0)

Definition at line 34 of file ite-cir.h.

#define ITE_DEFAULT_CARRIER_FREQ   38000

Definition at line 160 of file ite-cir.h.

#define ITE_DRIVER_NAME   "ite-cir"

Definition at line 23 of file ite-cir.h.

#define ITE_HCF_MAX_CARRIER_FREQ   500000

Definition at line 157 of file ite-cir.h.

#define ITE_HCF_MIN_CARRIER_FREQ   400000

Definition at line 156 of file ite-cir.h.

#define ITE_IDLE_TIMEOUT   200000000UL

Definition at line 163 of file ite-cir.h.

#define ITE_IRQ_RX_FIFO   2

Definition at line 46 of file ite-cir.h.

#define ITE_IRQ_RX_FIFO_OVERRUN   4

Definition at line 47 of file ite-cir.h.

#define ITE_IRQ_TX_FIFO   1

Definition at line 45 of file ite-cir.h.

#define ITE_LCF_MAX_CARRIER_FREQ   58000

Definition at line 153 of file ite-cir.h.

#define ITE_LCF_MIN_CARRIER_FREQ   27000

Definition at line 152 of file ite-cir.h.

#define ITE_MAX_IDLE_TIMEOUT   1000000000UL

Definition at line 167 of file ite-cir.h.

#define ITE_MIN_IDLE_TIMEOUT   100000000UL

Definition at line 166 of file ite-cir.h.

#define ite_pr (   level,
  text,
  ... 
)    printk(level KBUILD_MODNAME ": " text, ## __VA_ARGS__)

Definition at line 26 of file ite-cir.h.

#define ITE_RX_FIFO_LEN   32

Definition at line 42 of file ite-cir.h.

#define ITE_RXDCR_DEFAULT   0x01 /* default carrier range */

Definition at line 199 of file ite-cir.h.

#define ITE_RXDCR_MAX   0x07 /* default carrier range */

Definition at line 200 of file ite-cir.h.

#define ITE_RXDCR_PER_10000_STEP   625

Definition at line 183 of file ite-cir.h.

#define ITE_TX_FIFO_LEN   32

Definition at line 41 of file ite-cir.h.

#define ITE_TX_MAX_RLE   0x80

Definition at line 205 of file ite-cir.h.

#define ITE_TX_PULSE   0x00

Definition at line 203 of file ite-cir.h.

#define ITE_TX_RLE_MASK   0x7f

Definition at line 206 of file ite-cir.h.

#define ITE_TX_SPACE   0x80

Definition at line 204 of file ite-cir.h.

#define ITE_TXMPW_A   0x02

Definition at line 192 of file ite-cir.h.

#define ITE_TXMPW_B   0x03

Definition at line 193 of file ite-cir.h.

#define ITE_TXMPW_C   0x04

Definition at line 194 of file ite-cir.h.

#define ITE_TXMPW_D   0x05

Definition at line 195 of file ite-cir.h.

#define ITE_TXMPW_E   0x06

Definition at line 196 of file ite-cir.h.