|
#define | DRIVER_VERSION "1.92" |
|
#define | DRIVER_AUTHOR "Jarod Wilson <[email protected]>" |
|
#define | DRIVER_DESC |
|
#define | DRIVER_NAME "mceusb" |
|
#define | USB_BUFLEN 32 /* USB reception buffer length */ |
|
#define | USB_CTRL_MSG_SZ 2 /* Size of usb ctrl msg on gen1 hw */ |
|
#define | MCE_G1_INIT_MSGS 40 /* Init messages on gen1 hw to throw out */ |
|
#define | MCE_CMDBUF_SIZE 384 /* MCE Command buffer length */ |
|
#define | MCE_TIME_UNIT 50 /* Approx 50us resolution */ |
|
#define | MCE_CODE_LENGTH 5 /* Normal length of packet (with header) */ |
|
#define | MCE_PACKET_SIZE 4 /* Normal length of packet (without header) */ |
|
#define | MCE_IRDATA_HEADER 0x84 /* Actual header format is 0x80 + num_bytes */ |
|
#define | MCE_IRDATA_TRAILER 0x80 /* End of IR data */ |
|
#define | MCE_TX_HEADER_LENGTH 3 /* # of bytes in the initializing tx header */ |
|
#define | MCE_MAX_CHANNELS 2 /* Two transmitters, hardware dependent? */ |
|
#define | MCE_DEFAULT_TX_MASK 0x03 /* Vals: TX1=0x01, TX2=0x02, ALL=0x03 */ |
|
#define | MCE_PULSE_BIT 0x80 /* Pulse bit, MSB set == PULSE else SPACE */ |
|
#define | MCE_PULSE_MASK 0x7f /* Pulse mask */ |
|
#define | MCE_MAX_PULSE_LENGTH 0x7f /* Longest transmittable pulse symbol */ |
|
#define | MCE_CMD 0x1f |
|
#define | MCE_PORT_IR 0x4 /* (0x4 << 5) | MCE_CMD = 0x9f */ |
|
#define | MCE_PORT_SYS 0x7 /* (0x7 << 5) | MCE_CMD = 0xff */ |
|
#define | MCE_PORT_SER 0x6 /* 0xc0 thru 0xdf flush & 0x1f bytes */ |
|
#define | MCE_PORT_MASK 0xe0 /* Mask out command bits */ |
|
#define | MCE_CMD_PORT_IR 0x9f /* IR-related cmd/rsp */ |
|
#define | MCE_CMD_PORT_SYS 0xff /* System (non-IR) device cmd/rsp */ |
|
#define | MCE_CMD_RESET 0xfe /* Reset device, 2 bytes */ |
|
#define | MCE_CMD_RESUME 0xaa /* Resume device after error, 2 bytes */ |
|
#define | MCE_CMD_SETIRCFS 0x06 /* Set tx carrier, 4 bytes */ |
|
#define | MCE_CMD_SETIRTIMEOUT 0x0c /* Set timeout, 4 bytes */ |
|
#define | MCE_CMD_SETIRTXPORTS 0x08 /* Set tx ports, 3 bytes */ |
|
#define | MCE_CMD_SETIRRXPORTEN 0x14 /* Set rx ports, 3 bytes */ |
|
#define | MCE_CMD_FLASHLED 0x23 /* Flash receiver LED, 2 bytes */ |
|
#define | MCE_CMD_GETIRCFS 0x07 /* Get carrier */ |
|
#define | MCE_CMD_GETIRTIMEOUT 0x0d /* Get timeout */ |
|
#define | MCE_CMD_GETIRTXPORTS 0x13 /* Get tx ports */ |
|
#define | MCE_CMD_GETIRRXPORTEN 0x15 /* Get rx ports */ |
|
#define | MCE_CMD_GETPORTSTATUS 0x11 /* Get tx port status, 3 bytes */ |
|
#define | MCE_CMD_GETIRNUMPORTS 0x16 /* Get number of ports */ |
|
#define | MCE_CMD_GETWAKESOURCE 0x17 /* Get wake source */ |
|
#define | MCE_CMD_GETEMVER 0x22 /* Get emulator interface version */ |
|
#define | MCE_CMD_GETDEVDETAILS 0x21 /* Get device details (em ver2 only) */ |
|
#define | MCE_CMD_GETWAKESUPPORT 0x20 /* Get wake details (em ver2 only) */ |
|
#define | MCE_CMD_GETWAKEVERSION 0x18 /* Get wake pattern (em ver2 only) */ |
|
#define | MCE_CMD_NOP 0xff /* No operation */ |
|
#define | MCE_RSP_EQIRCFS 0x06 /* tx carrier, 4 bytes */ |
|
#define | MCE_RSP_EQIRTIMEOUT 0x0c /* rx timeout, 4 bytes */ |
|
#define | MCE_RSP_GETWAKESOURCE 0x17 /* wake source, 3 bytes */ |
|
#define | MCE_RSP_EQIRTXPORTS 0x08 /* tx port mask, 3 bytes */ |
|
#define | MCE_RSP_EQIRRXPORTEN 0x14 /* rx port mask, 3 bytes */ |
|
#define | MCE_RSP_GETPORTSTATUS 0x11 /* tx port status, 7 bytes */ |
|
#define | MCE_RSP_EQIRRXCFCNT 0x15 /* rx carrier count, 4 bytes */ |
|
#define | MCE_RSP_EQIRNUMPORTS 0x16 /* number of ports, 4 bytes */ |
|
#define | MCE_RSP_EQWAKESUPPORT 0x20 /* wake capabilities, 3 bytes */ |
|
#define | MCE_RSP_EQWAKEVERSION 0x18 /* wake pattern details, 6 bytes */ |
|
#define | MCE_RSP_EQDEVDETAILS 0x21 /* device capabilities, 3 bytes */ |
|
#define | MCE_RSP_EQEMVER 0x22 /* emulator interface ver, 3 bytes */ |
|
#define | MCE_RSP_FLASHLED 0x23 /* success flashing LED, 2 bytes */ |
|
#define | MCE_RSP_CMD_ILLEGAL 0xfe /* illegal command for port, 2 bytes */ |
|
#define | MCE_RSP_TX_TIMEOUT 0x81 /* tx timed out, 2 bytes */ |
|
#define | MCE_CMD_SIG_END 0x01 /* End of signal */ |
|
#define | MCE_CMD_PING 0x03 /* Ping device */ |
|
#define | MCE_CMD_UNKNOWN 0x04 /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN2 0x05 /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN3 0x09 /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN4 0x0a /* Unknown */ |
|
#define | MCE_CMD_G_REVISION 0x0b /* Get hw/sw revision */ |
|
#define | MCE_CMD_UNKNOWN5 0x0e /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN6 0x0f /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN8 0x19 /* Unknown */ |
|
#define | MCE_CMD_UNKNOWN9 0x1b /* Unknown */ |
|
#define | MCE_CMD_NULL 0x00 /* These show up various places... */ |
|
#define | MCE_COMMAND_IRDATA 0x80 |
|
#define | MCE_PACKET_LENGTH_MASK 0x1f /* Packet length mask */ |
|
#define | mce_dbg(dev, fmt,...) |
|
#define | SEND_FLAG_IN_PROGRESS 1 |
|
#define | SEND_FLAG_COMPLETE 2 |
|
#define | RECV_FLAG_IN_PROGRESS 3 |
|
#define | RECV_FLAG_COMPLETE 4 |
|
#define | MCEUSB_RX 1 |
|
#define | MCEUSB_TX 2 |
|
#define | VENDOR_PHILIPS 0x0471 |
|
#define | VENDOR_SMK 0x0609 |
|
#define | VENDOR_TATUNG 0x1460 |
|
#define | VENDOR_GATEWAY 0x107b |
|
#define | VENDOR_SHUTTLE 0x1308 |
|
#define | VENDOR_SHUTTLE2 0x051c |
|
#define | VENDOR_MITSUMI 0x03ee |
|
#define | VENDOR_TOPSEED 0x1784 |
|
#define | VENDOR_RICAVISION 0x179d |
|
#define | VENDOR_ITRON 0x195d |
|
#define | VENDOR_FIC 0x1509 |
|
#define | VENDOR_LG 0x043e |
|
#define | VENDOR_MICROSOFT 0x045e |
|
#define | VENDOR_FORMOSA 0x147a |
|
#define | VENDOR_FINTEK 0x1934 |
|
#define | VENDOR_PINNACLE 0x2304 |
|
#define | VENDOR_ECS 0x1019 |
|
#define | VENDOR_WISTRON 0x0fb8 |
|
#define | VENDOR_COMPRO 0x185b |
|
#define | VENDOR_NORTHSTAR 0x04eb |
|
#define | VENDOR_REALTEK 0x0bda |
|
#define | VENDOR_TIVO 0x105a |
|
#define | VENDOR_CONEXANT 0x0572 |
|
#define | VENDOR_TWISTEDMELON 0x2596 |
|