Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
nuvoton-cir.h File Reference
#include <linux/spinlock.h>
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  nvt_dev
 

Macros

#define NVT_DRIVER_NAME   "nuvoton-cir"
 
#define nvt_pr(level, text,...)   printk(level KBUILD_MODNAME ": " text, ## __VA_ARGS__)
 
#define nvt_dbg(text,...)
 
#define nvt_dbg_verbose(text,...)
 
#define nvt_dbg_wake(text,...)
 
#define TX_BUF_LEN   256
 
#define RX_BUF_LEN   32
 
#define ST_STUDY_NONE   0x0
 
#define ST_STUDY_START   0x1
 
#define ST_STUDY_CARRIER   0x2
 
#define ST_STUDY_ALL_RECV   0x4
 
#define ST_WAKE_NONE   0x0
 
#define ST_WAKE_START   0x1
 
#define ST_WAKE_FINISH   0x2
 
#define ST_RX_WAIT_7F   0x1
 
#define ST_RX_WAIT_HEAD   0x2
 
#define ST_RX_WAIT_SILENT_END   0x4
 
#define ST_TX_NONE   0x0
 
#define ST_TX_REQUEST   0x2
 
#define ST_TX_REPLY   0x4
 
#define BUF_PULSE_BIT   0x80
 
#define BUF_LEN_MASK   0x7f
 
#define BUF_REPEAT_BYTE   0x70
 
#define BUF_REPEAT_MASK   0xf0
 
#define CIR_IOREG_LENGTH   0x0f
 
#define CIR_RX_LIMIT_COUNT   0x7d0
 
#define CIR_IRCON   0x00
 
#define CIR_IRSTS   0x01
 
#define CIR_IREN   0x02
 
#define CIR_RXFCONT   0x03
 
#define CIR_CP   0x04
 
#define CIR_CC   0x05
 
#define CIR_SLCH   0x06
 
#define CIR_SLCL   0x07
 
#define CIR_FIFOCON   0x08
 
#define CIR_IRFIFOSTS   0x09
 
#define CIR_SRXFIFO   0x0a
 
#define CIR_TXFCONT   0x0b
 
#define CIR_STXFIFO   0x0c
 
#define CIR_FCCH   0x0d
 
#define CIR_FCCL   0x0e
 
#define CIR_IRFSM   0x0f
 
#define CIR_IRCON_RECV   0x80
 
#define CIR_IRCON_WIREN   0x40
 
#define CIR_IRCON_TXEN   0x20
 
#define CIR_IRCON_RXEN   0x10
 
#define CIR_IRCON_WRXINV   0x08
 
#define CIR_IRCON_RXINV   0x04
 
#define CIR_IRCON_SAMPLE_PERIOD_SEL_1   0x00
 
#define CIR_IRCON_SAMPLE_PERIOD_SEL_25   0x01
 
#define CIR_IRCON_SAMPLE_PERIOD_SEL_50   0x02
 
#define CIR_IRCON_SAMPLE_PERIOD_SEL_100   0x03
 
#define CIR_IRCON_SAMPLE_PERIOD_SEL   CIR_IRCON_SAMPLE_PERIOD_SEL_50
 
#define CIR_IRSTS_RDR   0x80
 
#define CIR_IRSTS_RTR   0x40
 
#define CIR_IRSTS_PE   0x20
 
#define CIR_IRSTS_RFO   0x10
 
#define CIR_IRSTS_TE   0x08
 
#define CIR_IRSTS_TTR   0x04
 
#define CIR_IRSTS_TFU   0x02
 
#define CIR_IRSTS_GH   0x01
 
#define CIR_IREN_RDR   0x80
 
#define CIR_IREN_RTR   0x40
 
#define CIR_IREN_PE   0x20
 
#define CIR_IREN_RFO   0x10
 
#define CIR_IREN_TE   0x08
 
#define CIR_IREN_TTR   0x04
 
#define CIR_IREN_TFU   0x02
 
#define CIR_IREN_GH   0x01
 
#define CIR_FIFOCON_TXFIFOCLR   0x80
 
#define CIR_FIFOCON_TX_TRIGGER_LEV_31   0x00
 
#define CIR_FIFOCON_TX_TRIGGER_LEV_24   0x10
 
#define CIR_FIFOCON_TX_TRIGGER_LEV_16   0x20
 
#define CIR_FIFOCON_TX_TRIGGER_LEV_8   0x30
 
#define CIR_FIFOCON_TX_TRIGGER_LEV   CIR_FIFOCON_TX_TRIGGER_LEV_16
 
#define CIR_FIFOCON_RXFIFOCLR   0x08
 
#define CIR_FIFOCON_RX_TRIGGER_LEV_1   0x00
 
#define CIR_FIFOCON_RX_TRIGGER_LEV_8   0x01
 
#define CIR_FIFOCON_RX_TRIGGER_LEV_16   0x02
 
#define CIR_FIFOCON_RX_TRIGGER_LEV_24   0x03
 
#define CIR_FIFOCON_RX_TRIGGER_LEV   CIR_FIFOCON_RX_TRIGGER_LEV_24
 
#define CIR_IRFIFOSTS_IR_PENDING   0x80
 
#define CIR_IRFIFOSTS_RX_GS   0x40
 
#define CIR_IRFIFOSTS_RX_FTA   0x20
 
#define CIR_IRFIFOSTS_RX_EMPTY   0x10
 
#define CIR_IRFIFOSTS_RX_FULL   0x08
 
#define CIR_IRFIFOSTS_TX_FTA   0x04
 
#define CIR_IRFIFOSTS_TX_EMPTY   0x02
 
#define CIR_IRFIFOSTS_TX_FULL   0x01
 
#define CIR_WAKE_IRCON   0x00
 
#define CIR_WAKE_IRSTS   0x01
 
#define CIR_WAKE_IREN   0x02
 
#define CIR_WAKE_FIFO_CMP_DEEP   0x03
 
#define CIR_WAKE_FIFO_CMP_TOL   0x04
 
#define CIR_WAKE_FIFO_COUNT   0x05
 
#define CIR_WAKE_SLCH   0x06
 
#define CIR_WAKE_SLCL   0x07
 
#define CIR_WAKE_FIFOCON   0x08
 
#define CIR_WAKE_SRXFSTS   0x09
 
#define CIR_WAKE_SAMPLE_RX_FIFO   0x0a
 
#define CIR_WAKE_WR_FIFO_DATA   0x0b
 
#define CIR_WAKE_RD_FIFO_ONLY   0x0c
 
#define CIR_WAKE_RD_FIFO_ONLY_IDX   0x0d
 
#define CIR_WAKE_FIFO_IGNORE   0x0e
 
#define CIR_WAKE_IRFSM   0x0f
 
#define CIR_WAKE_IRCON_DEC_RST   0x80
 
#define CIR_WAKE_IRCON_MODE1   0x40
 
#define CIR_WAKE_IRCON_MODE0   0x20
 
#define CIR_WAKE_IRCON_RXEN   0x10
 
#define CIR_WAKE_IRCON_R   0x08
 
#define CIR_WAKE_IRCON_RXINV   0x04
 
#define CIR_WAKE_IRCON_SAMPLE_PERIOD_SEL   CIR_IRCON_SAMPLE_PERIOD_SEL_50
 
#define CIR_WAKE_IRSTS_RDR   0x80
 
#define CIR_WAKE_IRSTS_RTR   0x40
 
#define CIR_WAKE_IRSTS_PE   0x20
 
#define CIR_WAKE_IRSTS_RFO   0x10
 
#define CIR_WAKE_IRSTS_GH   0x08
 
#define CIR_WAKE_IRSTS_IR_PENDING   0x01
 
#define CIR_WAKE_IREN_RDR   0x80
 
#define CIR_WAKE_IREN_RTR   0x40
 
#define CIR_WAKE_IREN_PE   0x20
 
#define CIR_WAKE_IREN_RFO   0x10
 
#define CIR_WAKE_IREN_TE   0x08
 
#define CIR_WAKE_IREN_TTR   0x04
 
#define CIR_WAKE_IREN_TFU   0x02
 
#define CIR_WAKE_IREN_GH   0x01
 
#define CIR_WAKE_FIFOCON_RXFIFOCLR   0x08
 
#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_67   0x00
 
#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_66   0x01
 
#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_65   0x02
 
#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_64   0x03
 
#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV   CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_67
 
#define CIR_WAKE_IRFIFOSTS_RX_GS   0x80
 
#define CIR_WAKE_IRFIFOSTS_RX_FTA   0x40
 
#define CIR_WAKE_IRFIFOSTS_RX_EMPTY   0x20
 
#define CIR_WAKE_IRFIFOSTS_RX_FULL   0x10
 
#define CIR_WAKE_FIFO_CMP_BYTES   65
 
#define CIR_WAKE_CMP_TOLERANCE   5
 
#define CR_EFIR   0x2e
 
#define CR_EFDR   0x2f
 
#define CR_EFIR2   0x4e
 
#define CR_EFDR2   0x4f
 
#define EFER_EFM_ENABLE   0x87
 
#define EFER_EFM_DISABLE   0xaa
 
#define CHIP_ID_HIGH_667   0xa5
 
#define CHIP_ID_HIGH_677B   0xb4
 
#define CHIP_ID_HIGH_677C   0xc3
 
#define CHIP_ID_LOW_667   0x13
 
#define CHIP_ID_LOW_677B2   0x72
 
#define CHIP_ID_LOW_677B3   0x73
 
#define CHIP_ID_LOW_677C   0x33
 
#define CR_SOFTWARE_RESET   0x02
 
#define CR_LOGICAL_DEV_SEL   0x07
 
#define CR_CHIP_ID_HI   0x20
 
#define CR_CHIP_ID_LO   0x21
 
#define CR_DEV_POWER_DOWN   0x22 /* bit 2 is CIR power, default power on */
 
#define CR_OUTPUT_PIN_SEL   0x27
 
#define CR_MULTIFUNC_PIN_SEL   0x2c
 
#define CR_LOGICAL_DEV_EN   0x30 /* valid for all logical devices */
 
#define CR_CIR_BASE_ADDR_HI   0x60
 
#define CR_CIR_BASE_ADDR_LO   0x61
 
#define CR_CIR_IRQ_RSRC   0x70
 
#define CR_ACPI_CIR_WAKE   0xe0
 
#define CR_ACPI_IRQ_EVENTS   0xf6
 
#define CR_ACPI_IRQ_EVENTS2   0xf7
 
#define LOGICAL_DEV_LPT   0x01
 
#define LOGICAL_DEV_CIR   0x06
 
#define LOGICAL_DEV_ACPI   0x0a
 
#define LOGICAL_DEV_CIR_WAKE   0x0e
 
#define LOGICAL_DEV_DISABLE   0x00
 
#define LOGICAL_DEV_ENABLE   0x01
 
#define CIR_WAKE_ENABLE_BIT   0x08
 
#define CIR_INTR_MOUSE_IRQ_BIT   0x80
 
#define PME_INTR_CIR_PASS_BIT   0x08
 
#define OUTPUT_PIN_SEL_MASK   0xbc
 
#define OUTPUT_ENABLE_CIR   0x01 /* Pin95=CIRRX, Pin96=CIRTX1 */
 
#define OUTPUT_ENABLE_CIRWB   0x40 /* enable wide-band sensor */
 
#define MULTIFUNC_PIN_SEL_MASK   0x1f
 
#define MULTIFUNC_ENABLE_CIR   0x80 /* Pin75=CIRRX, Pin76=CIRTX1 */
 
#define MULTIFUNC_ENABLE_CIRWB   0x20 /* enable wide-band sensor */
 
#define CONTROLLER_BUF_LEN_MIN   830
 
#define KEYBOARD_BUF_LEN_MAX   650
 
#define KEYBOARD_BUF_LEN_MIN   610
 
#define MOUSE_BUF_LEN_MIN   565
 
#define CIR_SAMPLE_PERIOD   50
 
#define CIR_SAMPLE_LOW_INACCURACY   0.85
 
#define MAX_SILENCE_TIME   60000
 
#define SAMPLE_PERIOD   50
 
#define MAX_CARRIER   60000
 
#define MIN_CARRIER   30000
 

Macro Definition Documentation

#define BUF_LEN_MASK   0x7f

Definition at line 139 of file nuvoton-cir.h.

#define BUF_PULSE_BIT   0x80

Definition at line 138 of file nuvoton-cir.h.

#define BUF_REPEAT_BYTE   0x70

Definition at line 140 of file nuvoton-cir.h.

#define BUF_REPEAT_MASK   0xf0

Definition at line 141 of file nuvoton-cir.h.

#define CHIP_ID_HIGH_667   0xa5

Definition at line 331 of file nuvoton-cir.h.

#define CHIP_ID_HIGH_677B   0xb4

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

#define CHIP_ID_HIGH_677C   0xc3

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

#define CHIP_ID_LOW_667   0x13

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

#define CHIP_ID_LOW_677B2   0x72

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

#define CHIP_ID_LOW_677B3   0x73

Definition at line 336 of file nuvoton-cir.h.

#define CHIP_ID_LOW_677C   0x33

Definition at line 337 of file nuvoton-cir.h.

#define CIR_CC   0x05

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

#define CIR_CP   0x04

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

#define CIR_FCCH   0x0d

Definition at line 165 of file nuvoton-cir.h.

#define CIR_FCCL   0x0e

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

#define CIR_FIFOCON   0x08

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

#define CIR_FIFOCON_RX_TRIGGER_LEV   CIR_FIFOCON_RX_TRIGGER_LEV_24

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

#define CIR_FIFOCON_RX_TRIGGER_LEV_1   0x00

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

#define CIR_FIFOCON_RX_TRIGGER_LEV_16   0x02

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

#define CIR_FIFOCON_RX_TRIGGER_LEV_24   0x03

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

#define CIR_FIFOCON_RX_TRIGGER_LEV_8   0x01

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

#define CIR_FIFOCON_RXFIFOCLR   0x08

Definition at line 218 of file nuvoton-cir.h.

#define CIR_FIFOCON_TX_TRIGGER_LEV   CIR_FIFOCON_TX_TRIGGER_LEV_16

Definition at line 216 of file nuvoton-cir.h.

#define CIR_FIFOCON_TX_TRIGGER_LEV_16   0x20

Definition at line 211 of file nuvoton-cir.h.

#define CIR_FIFOCON_TX_TRIGGER_LEV_24   0x10

Definition at line 210 of file nuvoton-cir.h.

#define CIR_FIFOCON_TX_TRIGGER_LEV_31   0x00

Definition at line 209 of file nuvoton-cir.h.

#define CIR_FIFOCON_TX_TRIGGER_LEV_8   0x30

Definition at line 212 of file nuvoton-cir.h.

#define CIR_FIFOCON_TXFIFOCLR   0x80

Definition at line 207 of file nuvoton-cir.h.

#define CIR_INTR_MOUSE_IRQ_BIT   0x80

Definition at line 367 of file nuvoton-cir.h.

#define CIR_IOREG_LENGTH   0x0f

Definition at line 146 of file nuvoton-cir.h.

#define CIR_IRCON   0x00

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

#define CIR_IRCON_RECV   0x80

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

#define CIR_IRCON_RXEN   0x10

Definition at line 173 of file nuvoton-cir.h.

#define CIR_IRCON_RXINV   0x04

Definition at line 175 of file nuvoton-cir.h.

#define CIR_IRCON_SAMPLE_PERIOD_SEL   CIR_IRCON_SAMPLE_PERIOD_SEL_50

Definition at line 184 of file nuvoton-cir.h.

#define CIR_IRCON_SAMPLE_PERIOD_SEL_1   0x00

Definition at line 177 of file nuvoton-cir.h.

#define CIR_IRCON_SAMPLE_PERIOD_SEL_100   0x03

Definition at line 180 of file nuvoton-cir.h.

#define CIR_IRCON_SAMPLE_PERIOD_SEL_25   0x01

Definition at line 178 of file nuvoton-cir.h.

#define CIR_IRCON_SAMPLE_PERIOD_SEL_50   0x02

Definition at line 179 of file nuvoton-cir.h.

#define CIR_IRCON_TXEN   0x20

Definition at line 172 of file nuvoton-cir.h.

#define CIR_IRCON_WIREN   0x40

Definition at line 171 of file nuvoton-cir.h.

#define CIR_IRCON_WRXINV   0x08

Definition at line 174 of file nuvoton-cir.h.

#define CIR_IREN   0x02

Definition at line 154 of file nuvoton-cir.h.

#define CIR_IREN_GH   0x01

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

#define CIR_IREN_PE   0x20

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

#define CIR_IREN_RDR   0x80

Definition at line 197 of file nuvoton-cir.h.

#define CIR_IREN_RFO   0x10

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

#define CIR_IREN_RTR   0x40

Definition at line 198 of file nuvoton-cir.h.

#define CIR_IREN_TE   0x08

Definition at line 201 of file nuvoton-cir.h.

#define CIR_IREN_TFU   0x02

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

#define CIR_IREN_TTR   0x04

Definition at line 202 of file nuvoton-cir.h.

#define CIR_IRFIFOSTS   0x09

Definition at line 161 of file nuvoton-cir.h.

#define CIR_IRFIFOSTS_IR_PENDING   0x80

Definition at line 230 of file nuvoton-cir.h.

#define CIR_IRFIFOSTS_RX_EMPTY   0x10

Definition at line 233 of file nuvoton-cir.h.

#define CIR_IRFIFOSTS_RX_FTA   0x20

Definition at line 232 of file nuvoton-cir.h.

#define CIR_IRFIFOSTS_RX_FULL   0x08

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

#define CIR_IRFIFOSTS_RX_GS   0x40

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

#define CIR_IRFIFOSTS_TX_EMPTY   0x02

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

#define CIR_IRFIFOSTS_TX_FTA   0x04

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

#define CIR_IRFIFOSTS_TX_FULL   0x01

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

#define CIR_IRFSM   0x0f

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

#define CIR_IRSTS   0x01

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

#define CIR_IRSTS_GH   0x01

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

#define CIR_IRSTS_PE   0x20

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

#define CIR_IRSTS_RDR   0x80

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

#define CIR_IRSTS_RFO   0x10

Definition at line 190 of file nuvoton-cir.h.

#define CIR_IRSTS_RTR   0x40

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

#define CIR_IRSTS_TE   0x08

Definition at line 191 of file nuvoton-cir.h.

#define CIR_IRSTS_TFU   0x02

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

#define CIR_IRSTS_TTR   0x04

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

#define CIR_RX_LIMIT_COUNT   0x7d0

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

#define CIR_RXFCONT   0x03

Definition at line 155 of file nuvoton-cir.h.

#define CIR_SAMPLE_LOW_INACCURACY   0.85

Definition at line 399 of file nuvoton-cir.h.

#define CIR_SAMPLE_PERIOD   50

Definition at line 398 of file nuvoton-cir.h.

#define CIR_SLCH   0x06

Definition at line 158 of file nuvoton-cir.h.

#define CIR_SLCL   0x07

Definition at line 159 of file nuvoton-cir.h.

#define CIR_SRXFIFO   0x0a

Definition at line 162 of file nuvoton-cir.h.

#define CIR_STXFIFO   0x0c

Definition at line 164 of file nuvoton-cir.h.

#define CIR_TXFCONT   0x0b

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

#define CIR_WAKE_CMP_TOLERANCE   5

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

#define CIR_WAKE_ENABLE_BIT   0x08

Definition at line 366 of file nuvoton-cir.h.

#define CIR_WAKE_FIFO_CMP_BYTES   65

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

#define CIR_WAKE_FIFO_CMP_DEEP   0x03

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

#define CIR_WAKE_FIFO_CMP_TOL   0x04

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

#define CIR_WAKE_FIFO_COUNT   0x05

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

#define CIR_WAKE_FIFO_IGNORE   0x0e

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

#define CIR_WAKE_FIFOCON   0x08

Definition at line 249 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV   CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_67

Definition at line 298 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_64   0x03

Definition at line 294 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_65   0x02

Definition at line 293 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_66   0x01

Definition at line 292 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RX_TRIGGER_LEV_67   0x00

Definition at line 291 of file nuvoton-cir.h.

#define CIR_WAKE_FIFOCON_RXFIFOCLR   0x08

Definition at line 289 of file nuvoton-cir.h.

#define CIR_WAKE_IRCON   0x00

Definition at line 241 of file nuvoton-cir.h.

#define CIR_WAKE_IRCON_DEC_RST   0x80

Definition at line 259 of file nuvoton-cir.h.

#define CIR_WAKE_IRCON_MODE0   0x20

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

#define CIR_WAKE_IRCON_MODE1   0x40

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

#define CIR_WAKE_IRCON_R   0x08

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

#define CIR_WAKE_IRCON_RXEN   0x10

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

#define CIR_WAKE_IRCON_RXINV   0x04

Definition at line 264 of file nuvoton-cir.h.

#define CIR_WAKE_IRCON_SAMPLE_PERIOD_SEL   CIR_IRCON_SAMPLE_PERIOD_SEL_50

Definition at line 268 of file nuvoton-cir.h.

#define CIR_WAKE_IREN   0x02

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

#define CIR_WAKE_IREN_GH   0x01

Definition at line 286 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_PE   0x20

Definition at line 281 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_RDR   0x80

Definition at line 279 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_RFO   0x10

Definition at line 282 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_RTR   0x40

Definition at line 280 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_TE   0x08

Definition at line 283 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_TFU   0x02

Definition at line 285 of file nuvoton-cir.h.

#define CIR_WAKE_IREN_TTR   0x04

Definition at line 284 of file nuvoton-cir.h.

#define CIR_WAKE_IRFIFOSTS_RX_EMPTY   0x20

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

#define CIR_WAKE_IRFIFOSTS_RX_FTA   0x40

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

#define CIR_WAKE_IRFIFOSTS_RX_FULL   0x10

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

#define CIR_WAKE_IRFIFOSTS_RX_GS   0x80

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

#define CIR_WAKE_IRFSM   0x0f

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

#define CIR_WAKE_IRSTS   0x01

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

#define CIR_WAKE_IRSTS_GH   0x08

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

#define CIR_WAKE_IRSTS_IR_PENDING   0x01

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

#define CIR_WAKE_IRSTS_PE   0x20

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

#define CIR_WAKE_IRSTS_RDR   0x80

Definition at line 271 of file nuvoton-cir.h.

#define CIR_WAKE_IRSTS_RFO   0x10

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

#define CIR_WAKE_IRSTS_RTR   0x40

Definition at line 272 of file nuvoton-cir.h.

#define CIR_WAKE_RD_FIFO_ONLY   0x0c

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

#define CIR_WAKE_RD_FIFO_ONLY_IDX   0x0d

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

#define CIR_WAKE_SAMPLE_RX_FIFO   0x0a

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

#define CIR_WAKE_SLCH   0x06

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

#define CIR_WAKE_SLCL   0x07

Definition at line 248 of file nuvoton-cir.h.

#define CIR_WAKE_SRXFSTS   0x09

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

#define CIR_WAKE_WR_FIFO_DATA   0x0b

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

#define CONTROLLER_BUF_LEN_MIN   830

Definition at line 385 of file nuvoton-cir.h.

#define CR_ACPI_CIR_WAKE   0xe0

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

#define CR_ACPI_IRQ_EVENTS   0xf6

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

#define CR_ACPI_IRQ_EVENTS2   0xf7

Definition at line 355 of file nuvoton-cir.h.

#define CR_CHIP_ID_HI   0x20

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

#define CR_CHIP_ID_LO   0x21

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

#define CR_CIR_BASE_ADDR_HI   0x60

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

#define CR_CIR_BASE_ADDR_LO   0x61

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

#define CR_CIR_IRQ_RSRC   0x70

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

#define CR_DEV_POWER_DOWN   0x22 /* bit 2 is CIR power, default power on */

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

#define CR_EFDR   0x2f

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

#define CR_EFDR2   0x4f

Definition at line 324 of file nuvoton-cir.h.

#define CR_EFIR   0x2e

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

#define CR_EFIR2   0x4e

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

#define CR_LOGICAL_DEV_EN   0x30 /* valid for all logical devices */

Definition at line 347 of file nuvoton-cir.h.

#define CR_LOGICAL_DEV_SEL   0x07

Definition at line 341 of file nuvoton-cir.h.

#define CR_MULTIFUNC_PIN_SEL   0x2c

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

#define CR_OUTPUT_PIN_SEL   0x27

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

#define CR_SOFTWARE_RESET   0x02

Definition at line 340 of file nuvoton-cir.h.

#define EFER_EFM_DISABLE   0xaa

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

#define EFER_EFM_ENABLE   0x87

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

#define KEYBOARD_BUF_LEN_MAX   650

Definition at line 390 of file nuvoton-cir.h.

#define KEYBOARD_BUF_LEN_MIN   610

Definition at line 391 of file nuvoton-cir.h.

#define LOGICAL_DEV_ACPI   0x0a

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

#define LOGICAL_DEV_CIR   0x06

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

#define LOGICAL_DEV_CIR_WAKE   0x0e

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

#define LOGICAL_DEV_DISABLE   0x00

Definition at line 363 of file nuvoton-cir.h.

#define LOGICAL_DEV_ENABLE   0x01

Definition at line 364 of file nuvoton-cir.h.

#define LOGICAL_DEV_LPT   0x01

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

#define MAX_CARRIER   60000

Definition at line 418 of file nuvoton-cir.h.

#define MAX_SILENCE_TIME   60000

Definition at line 402 of file nuvoton-cir.h.

#define MIN_CARRIER   30000

Definition at line 419 of file nuvoton-cir.h.

#define MOUSE_BUF_LEN_MIN   565

Definition at line 396 of file nuvoton-cir.h.

#define MULTIFUNC_ENABLE_CIR   0x80 /* Pin75=CIRRX, Pin76=CIRTX1 */

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

#define MULTIFUNC_ENABLE_CIRWB   0x20 /* enable wide-band sensor */

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

#define MULTIFUNC_PIN_SEL_MASK   0x1f

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

#define nvt_dbg (   text,
  ... 
)
Value:
if (debug) \
printk(KERN_DEBUG \
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__)

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

#define nvt_dbg_verbose (   text,
  ... 
)
Value:
if (debug > 1) \
printk(KERN_DEBUG \
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__)

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

#define nvt_dbg_wake (   text,
  ... 
)
Value:
if (debug > 2) \
printk(KERN_DEBUG \
KBUILD_MODNAME ": " text "\n" , ## __VA_ARGS__)

Definition at line 51 of file nuvoton-cir.h.

#define NVT_DRIVER_NAME   "nuvoton-cir"

Definition at line 32 of file nuvoton-cir.h.

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

Definition at line 38 of file nuvoton-cir.h.

#define OUTPUT_ENABLE_CIR   0x01 /* Pin95=CIRRX, Pin96=CIRTX1 */

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

#define OUTPUT_ENABLE_CIRWB   0x40 /* enable wide-band sensor */

Definition at line 373 of file nuvoton-cir.h.

#define OUTPUT_PIN_SEL_MASK   0xbc

Definition at line 371 of file nuvoton-cir.h.

#define PME_INTR_CIR_PASS_BIT   0x08

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

#define RX_BUF_LEN   32

Definition at line 65 of file nuvoton-cir.h.

#define SAMPLE_PERIOD   50

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

#define ST_RX_WAIT_7F   0x1

Definition at line 128 of file nuvoton-cir.h.

#define ST_RX_WAIT_HEAD   0x2

Definition at line 129 of file nuvoton-cir.h.

#define ST_RX_WAIT_SILENT_END   0x4

Definition at line 130 of file nuvoton-cir.h.

#define ST_STUDY_ALL_RECV   0x4

Definition at line 120 of file nuvoton-cir.h.

#define ST_STUDY_CARRIER   0x2

Definition at line 119 of file nuvoton-cir.h.

#define ST_STUDY_NONE   0x0

Definition at line 117 of file nuvoton-cir.h.

#define ST_STUDY_START   0x1

Definition at line 118 of file nuvoton-cir.h.

#define ST_TX_NONE   0x0

Definition at line 133 of file nuvoton-cir.h.

#define ST_TX_REPLY   0x4

Definition at line 135 of file nuvoton-cir.h.

#define ST_TX_REQUEST   0x2

Definition at line 134 of file nuvoton-cir.h.

#define ST_WAKE_FINISH   0x2

Definition at line 125 of file nuvoton-cir.h.

#define ST_WAKE_NONE   0x0

Definition at line 123 of file nuvoton-cir.h.

#define ST_WAKE_START   0x1

Definition at line 124 of file nuvoton-cir.h.

#define TX_BUF_LEN   256

Definition at line 64 of file nuvoton-cir.h.