Lines Matching +full:0 +full:- +full:based
1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * USBVEND.H Vendor-specific USB definitions
7 * must be kept backward-compatible with older firmware.
28 #define USB_VENDOR_ID_ION 0x1608 // Our VID
29 #define USB_VENDOR_ID_TI 0x0451 // TI VID
30 #define USB_VENDOR_ID_AXIOHM 0x05D9 /* Axiohm VID */
34 // We break the USB-defined PID into an OEM Id field (upper 6 bits)
40 // ION-device OEM IDs
41 #define ION_OEM_ID_ION 0 // 00h Inside Out Networks
50 // ION-device Device IDs
51 // Product IDs - assigned to match middle digit of serial number (No longer true)
53 #define ION_DEVICE_ID_80251_NETCHIP 0x020 // This bit is set in the PID if this edgeport hardware$
54 // is based on the 80251+Netchip.
56 #define ION_DEVICE_ID_GENERATION_1 0x00 // Value for 930 based edgeports
57 #define ION_DEVICE_ID_GENERATION_2 0x01 // Value for 80251+Netchip.
58 #define ION_DEVICE_ID_GENERATION_3 0x02 // Value for Texas Instruments TUSB5052 chip
59 #define ION_DEVICE_ID_GENERATION_4 0x03 // Watchport Family of products
60 #define ION_GENERATION_MASK 0x03
62 #define ION_DEVICE_ID_HUB_MASK 0x0080 // This bit in the PID designates a HUB device
66 #define EDGEPORT_DEVICE_ID_MASK 0x0ff // Not including OEM or GENERATION fields
68 #define ION_DEVICE_ID_UNCONFIGURED_EDGE_DEVICE 0x000 // In manufacturing only
69 #define ION_DEVICE_ID_EDGEPORT_4 0x001 // Edgeport/4 RS232
70 #define ION_DEVICE_ID_EDGEPORT_8R 0x002 // Edgeport with RJ45 no Ring
71 #define ION_DEVICE_ID_RAPIDPORT_4 0x003 // Rapidport/4
72 #define ION_DEVICE_ID_EDGEPORT_4T 0x004 // Edgeport/4 RS232 for Telxon (aka "Fleetport")
73 #define ION_DEVICE_ID_EDGEPORT_2 0x005 // Edgeport/2 RS232
74 #define ION_DEVICE_ID_EDGEPORT_4I 0x006 // Edgeport/4 RS422
75 #define ION_DEVICE_ID_EDGEPORT_2I 0x007 // Edgeport/2 RS422/RS485
76 #define ION_DEVICE_ID_EDGEPORT_8RR 0x008 // Edgeport with RJ45 with Data and RTS/CTS only
77 // ION_DEVICE_ID_EDGEPORT_8_HANDBUILT 0x009 // Hand-built Edgeport/8 (Placeholder, used in middle d…
78 // ION_DEVICE_ID_MULTIMODEM_4X56 0x00A // MultiTech version of RP/4 (Placeholder, used in middle d…
79 #define ION_DEVICE_ID_EDGEPORT_PARALLEL_PORT 0x00B // Edgeport/(4)21 Parallel port (USS720)
80 #define ION_DEVICE_ID_EDGEPORT_421 0x00C // Edgeport/421 Hub+RS232+Parallel
81 #define ION_DEVICE_ID_EDGEPORT_21 0x00D // Edgeport/21 RS232+Parallel
82 #define ION_DEVICE_ID_EDGEPORT_8_DUAL_CPU 0x00E // Half of an Edgeport/8 (the kind with 2 EP/4s on …
83 #define ION_DEVICE_ID_EDGEPORT_8 0x00F // Edgeport/8 (single-CPU)
84 #define ION_DEVICE_ID_EDGEPORT_2_DIN 0x010 // Edgeport/2 RS232 with Apple DIN connector
85 #define ION_DEVICE_ID_EDGEPORT_4_DIN 0x011 // Edgeport/4 RS232 with Apple DIN connector
86 #define ION_DEVICE_ID_EDGEPORT_16_DUAL_CPU 0x012 // Half of an Edgeport/16 (the kind with 2 EP/8s)
87 #define ION_DEVICE_ID_EDGEPORT_COMPATIBLE 0x013 // Edgeport Compatible, for NCR, Axiohm etc. testing
88 #define ION_DEVICE_ID_EDGEPORT_8I 0x014 // Edgeport/8 RS422 (single-CPU)
89 #define ION_DEVICE_ID_EDGEPORT_1 0x015 // Edgeport/1 RS232
90 #define ION_DEVICE_ID_EPOS44 0x016 // Half of an EPOS/44 (TIUMP BASED)
91 #define ION_DEVICE_ID_EDGEPORT_42 0x017 // Edgeport/42
92 #define ION_DEVICE_ID_EDGEPORT_412_8 0x018 // Edgeport/412 8 port part
93 #define ION_DEVICE_ID_EDGEPORT_412_4 0x019 // Edgeport/412 4 port part
94 #define ION_DEVICE_ID_EDGEPORT_22I 0x01A // Edgeport/22I is an Edgeport/4 with ports 1&2 RS422 and…
96 // Compact Form factor TI based devices 2c, 21c, 22c, 221c
97 #define ION_DEVICE_ID_EDGEPORT_2C 0x01B // Edgeport/2c is a TI based Edgeport/2 - Small I2c
98 #define ION_DEVICE_ID_EDGEPORT_221C 0x01C // Edgeport/221c is a TI based Edgeport/2 with lucent ch…
99 // 2 external hub ports - Large I2C
100 #define ION_DEVICE_ID_EDGEPORT_22C 0x01D // Edgeport/22c is a TI based Edgeport/2 with
101 // 2 external hub ports - Large I2C
102 #define ION_DEVICE_ID_EDGEPORT_21C 0x01E // Edgeport/21c is a TI based Edgeport/2 with lucent chip
107 * DANGER DANGER The 0x20 bit was used to indicate a 8251/netchip GEN 2 device.
109 * I suggest that you skip the 0x20 bit when creating new PIDs
113 // Generation 3 devices -- 3410 based edgport/1 (256 byte I2C)
114 #define ION_DEVICE_ID_TI3410_EDGEPORT_1 0x040 // Edgeport/1 RS232
115 #define ION_DEVICE_ID_TI3410_EDGEPORT_1I 0x041 // Edgeport/1i- RS422 model
117 // Ti based software switchable RS232/RS422/RS485 devices
118 #define ION_DEVICE_ID_EDGEPORT_4S 0x042 // Edgeport/4s - software switchable model
119 #define ION_DEVICE_ID_EDGEPORT_8S 0x043 // Edgeport/8s - software switchable model
122 #define ION_DEVICE_ID_EDGEPORT_E 0x0E0 // Edgeport/E Usb to Ethernet
124 // Edgeport TI based devices
125 #define ION_DEVICE_ID_TI_EDGEPORT_4 0x0201 // Edgeport/4 RS232
126 #define ION_DEVICE_ID_TI_EDGEPORT_2 0x0205 // Edgeport/2 RS232
127 #define ION_DEVICE_ID_TI_EDGEPORT_4I 0x0206 // Edgeport/4i RS422
128 #define ION_DEVICE_ID_TI_EDGEPORT_2I 0x0207 // Edgeport/2i RS422/RS485
129 #define ION_DEVICE_ID_TI_EDGEPORT_421 0x020C // Edgeport/421 4 hub 2 RS232 + Parallel (lucent on a…
130 #define ION_DEVICE_ID_TI_EDGEPORT_21 0x020D // Edgeport/21 2 RS232 + Parallel (lucent on a differe…
131 #define ION_DEVICE_ID_TI_EDGEPORT_416 0x0212 // Edgeport/416
132 #define ION_DEVICE_ID_TI_EDGEPORT_1 0x0215 // Edgeport/1 RS232
133 #define ION_DEVICE_ID_TI_EDGEPORT_42 0x0217 // Edgeport/42 4 hub 2 RS232
134 #define ION_DEVICE_ID_TI_EDGEPORT_22I 0x021A // Edgeport/22I is an Edgeport/4 with ports 1&2 RS422…
135 #define ION_DEVICE_ID_TI_EDGEPORT_2C 0x021B // Edgeport/2c RS232
136 #define ION_DEVICE_ID_TI_EDGEPORT_221C 0x021C // Edgeport/221c is a TI based Edgeport/2 with lucen…
137 // 2 external hub ports - Large I2C
138 #define ION_DEVICE_ID_TI_EDGEPORT_22C 0x021D // Edgeport/22c is a TI based Edgeport/2 with
139 // 2 external hub ports - Large I2C
140 #define ION_DEVICE_ID_TI_EDGEPORT_21C 0x021E // Edgeport/21c is a TI based Edgeport/2 with lucent …
142 // Generation 3 devices -- 3410 based edgport/1 (256 byte I2C)
143 #define ION_DEVICE_ID_TI_TI3410_EDGEPORT_1 0x0240 // Edgeport/1 RS232
144 #define ION_DEVICE_ID_TI_TI3410_EDGEPORT_1I 0x0241 // Edgeport/1i- RS422 model
146 // Ti based software switchable RS232/RS422/RS485 devices
147 #define ION_DEVICE_ID_TI_EDGEPORT_4S 0x0242 // Edgeport/4s - software switchable model
148 #define ION_DEVICE_ID_TI_EDGEPORT_8S 0x0243 // Edgeport/8s - software switchable model
149 #define ION_DEVICE_ID_TI_EDGEPORT_8 0x0244 // Edgeport/8 (single-CPU)
150 #define ION_DEVICE_ID_TI_EDGEPORT_416B 0x0247 // Edgeport/416
159 // Watchport based on 3410 both 1-wire and binary products (16K I2C)
160 #define ION_DEVICE_ID_WP_UNSERIALIZED 0x300 // Watchport based on 3410 both 1-wire and binary prod…
161 #define ION_DEVICE_ID_WP_PROXIMITY 0x301 // Watchport/P Discontinued
162 #define ION_DEVICE_ID_WP_MOTION 0x302 // Watchport/M
163 #define ION_DEVICE_ID_WP_MOISTURE 0x303 // Watchport/W
164 #define ION_DEVICE_ID_WP_TEMPERATURE 0x304 // Watchport/T
165 #define ION_DEVICE_ID_WP_HUMIDITY 0x305 // Watchport/H
167 #define ION_DEVICE_ID_WP_POWER 0x306 // Watchport
168 #define ION_DEVICE_ID_WP_LIGHT 0x307 // Watchport
169 #define ION_DEVICE_ID_WP_RADIATION 0x308 // Watchport
170 #define ION_DEVICE_ID_WP_ACCELERATION 0x309 // Watchport/A
171 #define ION_DEVICE_ID_WP_DISTANCE 0x30A // Watchport/D Discontinued
172 #define ION_DEVICE_ID_WP_PROX_DIST 0x30B // Watchport/D uses distance sensor
175 #define ION_DEVICE_ID_PLUS_PWR_HP4CD 0x30C // 5052 Plus Power HubPort/4CD+ (for Dell)
176 #define ION_DEVICE_ID_PLUS_PWR_HP4C 0x30D // 5052 Plus Power HubPort/4C+
177 #define ION_DEVICE_ID_PLUS_PWR_PCI 0x30E // 3410 Plus Power PCI Host Controller 4 port
183 #define USB_VENDOR_ID_AXIOHM 0x05D9 // Axiohm VID
185 #define AXIOHM_DEVICE_ID_MASK 0xffff
186 #define AXIOHM_DEVICE_ID_EPIC_A758 0xA758
187 #define AXIOHM_DEVICE_ID_EPIC_A794 0xA794
188 #define AXIOHM_DEVICE_ID_EPIC_A225 0xA225
194 #define USB_VENDOR_ID_NCR 0x0404 // NCR VID
196 #define NCR_DEVICE_ID_MASK 0xffff
197 #define NCR_DEVICE_ID_EPIC_0202 0x0202
198 #define NCR_DEVICE_ID_EPIC_0203 0x0203
199 #define NCR_DEVICE_ID_EPIC_0310 0x0310
200 #define NCR_DEVICE_ID_EPIC_0311 0x0311
201 #define NCR_DEVICE_ID_EPIC_0312 0x0312
207 #define USB_VENDOR_ID_SYMBOL 0x05E0 // Symbol VID
208 #define SYMBOL_DEVICE_ID_MASK 0xffff
209 #define SYMBOL_DEVICE_ID_KEYFOB 0x0700
214 #define ION_DEVICE_ID_MT4X56USB 0x1403 // OEM device
215 #define ION_DEVICE_ID_E5805A 0x1A01 // OEM device (rebranded Edgeport/4)
228 ((__u16) (((ProductId) >> 10) & 0x3F))
250 // Definitions of I/O Networks vendor-specific requests
253 // bmRequestType = 01000000 Set vendor-specific, to device
254 // bmRequestType = 11000000 Get vendor-specific, to device
261 // wValue = 16-bit address
266 #define USB_REQUEST_ION_RESET_DEVICE 0 // Warm reboot Edgeport, retaining USB address
273 #define USB_REQUEST_ION_EXEC_DL_CODE 7 // Begin execution of RAM-based download
277 // (wValue != 0: Enable; wValue = 0: Disable)
283 #define USB_REQUEST_ION_DIS_INT_TIMER 0x80 // Sent to Axiohm to enable/ disable
286 // wValue = 0, disable
289 // Define parameter values for our vendor-specific commands
295 // This descriptor is only returned by Edgeport-compatible devices
303 // This __u32 defines which Vendor-specific commands/functionality
307 __u32 VendUnused : 31; // Available for future expansion, must be 0
327 __u32 IOSPUnused : 18; // Available for future expansion, must be 0
333 __u32 GenUnused : 31; // Available for future expansion, must be 0
336 #define EDGE_COMPATIBILITY_MASK0 0x0001
337 #define EDGE_COMPATIBILITY_MASK1 0x3FFF
338 #define EDGE_COMPATIBILITY_MASK2 0x0001
347 // 0=no download, FF=download compiled into driver.
348 __u8 Unused[3]; // Available for future expansion, must be 0
349 // (Currently must be 0).
361 #define EDGE_DOWNLOAD_FILE_NONE 0 // No download requested
362 #define EDGE_DOWNLOAD_FILE_INTERNAL 0xFF // Download the file compiled into driver (930 version)
363 #define EDGE_DOWNLOAD_FILE_I930 0xFF // Download the file compiled into driver (930 version)
364 #define EDGE_DOWNLOAD_FILE_80251 0xFE // Download the file compiled into driver (80251 version)
373 #define EDGE_MANUF_DESC_ADDR_V1 0x00FF7F00
378 #define EDGE_MANUF_DESC_ADDR 0x00FF7C00
382 #define EDGE_BOOT_DESC_ADDR 0x00FF7FC0
392 // Notes for the following two ION vendor-specific param descriptors:
396 // 2. Any strings in the structures are in USB-defined string
409 // xC00-xFBF (length 3C0h) in the ROM.
426 __u16 RootDescTable[0x10]; // C00 Root of descriptor tables (just a placeholder)
427 __u8 DescriptorArea[0x2E0]; // C20 Descriptors go here, up to 2E0h (just a placeholder)
429 // Start of v1-compatible section
442 // so host can track changes to USB-only descriptors.
446 __le16 SerialNumber[MAX_SERIALNUMBER_LEN]; // F0E "01-01-000100" Unicode Serial Number
450 __le16 AssemblyNumber[MAX_ASSEMBLYNUMBER_LEN]; // F28 "350-1000-01-A " assembly number
460 __u8 Reserved3[0x4D]; // F70 -- unused, set to 0 --
480 #define MANUF_UART_EXAR_654_EARLY 0 // Exar 16C654 in Edgeport/4s before 11/98
487 // changes in a software-visible way, such that the 930 software or
492 // Implementation 0 (ie, 930-based)
495 #define MANUF_CPU_80251 0x20 // Intel 80251
501 #define MANUF_BOARD_REV_GENERATION_2 0x20 // Second generaiton edgeport
505 // Implementation 1 (ie, 251+Netchip-based)
510 #define MANUF_SERNUM_LENGTH sizeof(((struct edge_manuf_descriptor *)0)->SerialNumber)
511 #define MANUF_ASSYNUM_LENGTH sizeof(((struct edge_manuf_descriptor *)0)->AssemblyNumber)
512 #define MANUF_OEMASSYNUM_LENGTH sizeof(((struct edge_manuf_descriptor *)0)->OemAssyNumber)
513 #define MANUF_MANUFDATE_LENGTH sizeof(((struct edge_manuf_descriptor *)0)->ManufDate)
515 #define MANUF_ION_CONFIG_DIAG_NO_LOOP 0x20 // As below but no ext loopback test
516 #define MANUF_ION_CONFIG_DIAG 0x40 // 930 based device: 1=Run h/w diags, 0=norm
518 #define MANUF_ION_CONFIG_MASTER 0x80 // 930 based device: 1=Master mode, 0=Normal
526 // - FF:xFFF. Note that the 930-mandated UCONFIG bytes are
533 __u8 Reserved1; // C3 -- unused, set to 0 --
535 __le16 BootCodeLength; // C4 Boot code goes from FF:0000 to FF:(len-1)
542 __u16 EnumRootDescTable; // CA Root of ROM-based descriptor table
547 __le16 Capabilities; // CE-CF Capabilities flags (LE format)
548 __u8 Reserved2[0x28]; // D0 -- unused, set to 0 --
549 __u8 UConfig0; // F8 930-defined CPU configuration byte 0
550 __u8 UConfig1; // F9 930-defined CPU configuration byte 1
551 __u8 Reserved3[6]; // FA -- unused, set to 0 --
562 #define BOOT_CAP_RESET_CMD 0x0001 // If set, boot correctly supports ION_RESET_DEVICE
570 #define UMP5152 0x52
571 #define UMP3410 0x10
577 #define I2C_DESC_TYPE_INFO_BASIC 0x01
578 #define I2C_DESC_TYPE_FIRMWARE_BASIC 0x02
579 #define I2C_DESC_TYPE_DEVICE 0x03
580 #define I2C_DESC_TYPE_CONFIG 0x04
581 #define I2C_DESC_TYPE_STRING 0x05
582 #define I2C_DESC_TYPE_FIRMWARE_AUTO 0x07 // for 3410 download
583 #define I2C_DESC_TYPE_CONFIG_KLUDGE 0x14 // for 3410
584 #define I2C_DESC_TYPE_WATCHPORT_VERSION 0x15 // firmware version number for watchport
585 #define I2C_DESC_TYPE_WATCHPORT_CALIBRATION_DATA 0x16 // Watchport Calibration Data
587 #define I2C_DESC_TYPE_FIRMWARE_BLANK 0xf2
590 #define I2C_DESC_TYPE_ION 0 // Not defined by TI
624 // bit 7: 1 - power switching supported
625 // 0 - power switching not supported
627 // bit 0: 1 - self powered
628 // 0 - bus powered
640 #define TI_CPU_REV_5052 2 // 5052 based edgeports
641 #define TI_CPU_REV_3410 3 // 3410 based edgeports
643 #define TI_BOARD_REV_TI_EP 0 // Basic ti based edgeport
648 #define TI_GET_CPU_REVISION(x) (__u8)((((x)>>4)&0x0f))
649 #define TI_GET_BOARD_REVISION(x) (__u8)(((x)&0x0f))
651 #define TI_I2C_SIZE_MASK 0x1f // 5 bits
656 #define TI_MANUF_VERSION_0 0
659 #define TI_CONFIG2_RS232 0x01
660 #define TI_CONFIG2_RS422 0x02
661 #define TI_CONFIG2_RS485 0x04
662 #define TI_CONFIG2_SWITCHABLE 0x08
664 #define TI_CONFIG2_WATCHPORT 0x10
671 __u8 CpuRev_BoardRev; // CPU revision level (0xF0) and Board Rev Level (0x0F)