Lines Matching +full:0 +full:x1700

54 static unsigned short g_usSmapiPort = 0;
72 int retval = 0; in smapi_request()
77 __asm__ __volatile__("movw $0x5380,%%ax\n\t" in smapi_request()
86 "out %%al,$0x4F\n\t" in smapi_request()
87 "cmpb $0x53,%%ah\n\t" in smapi_request()
92 "movw %%ax,%0\n\t" in smapi_request()
121 retval = (usSmapiOK == 1) ? 0 : -EIO; in smapi_request()
132 0x0030, 0x4E30, 0x8E30, 0xCE30, in smapi_query_DSP_cfg()
133 0x0130, 0x0350, 0x0070, 0x0DB0 }; in smapi_query_DSP_cfg()
135 0x03F8, 0x02F8, 0x03E8, 0x02E8 }; in smapi_query_DSP_cfg()
139 bRC = smapi_request(0x1802, 0x0000, 0, 0, in smapi_query_DSP_cfg()
148 pSettings->bDSPPresent = ((usBX & 0x0100) != 0); in smapi_query_DSP_cfg()
149 pSettings->bDSPEnabled = ((usCX & 0x0001) != 0); in smapi_query_DSP_cfg()
150 pSettings->usDspIRQ = usSI & 0x00FF; in smapi_query_DSP_cfg()
151 pSettings->usDspDMA = (usSI & 0xFF00) >> 8; in smapi_query_DSP_cfg()
152 if ((usDI & 0x00FF) < ARRAY_SIZE(ausDspBases)) { in smapi_query_DSP_cfg()
153 pSettings->usDspBaseIO = ausDspBases[usDI & 0x00FF]; in smapi_query_DSP_cfg()
155 pSettings->usDspBaseIO = 0; in smapi_query_DSP_cfg()
164 if ( pSettings->usDspBaseIO == 0 ) in smapi_query_DSP_cfg()
165 PRINTK_ERROR(KERN_ERR_MWAVE "smapi::smapi_query_DSP_cfg: Worry: DSP base I/O address is 0\n"); in smapi_query_DSP_cfg()
166 if ( pSettings->usDspIRQ == 0 ) in smapi_query_DSP_cfg()
167 PRINTK_ERROR(KERN_ERR_MWAVE "smapi::smapi_query_DSP_cfg: Worry: DSP IRQ line is 0\n"); in smapi_query_DSP_cfg()
169 bRC = smapi_request(0x1804, 0x0000, 0, 0, in smapi_query_DSP_cfg()
178 pSettings->bModemEnabled = ((usCX & 0x0001) != 0); in smapi_query_DSP_cfg()
179 pSettings->usUartIRQ = usSI & 0x000F; in smapi_query_DSP_cfg()
180 if (((usSI & 0xFF00) >> 8) < ARRAY_SIZE(ausUartBases)) { in smapi_query_DSP_cfg()
181 pSettings->usUartBaseIO = ausUartBases[(usSI & 0xFF00) >> 8]; in smapi_query_DSP_cfg()
183 pSettings->usUartBaseIO = 0; in smapi_query_DSP_cfg()
193 if ( pSettings->usUartBaseIO == 0 ) in smapi_query_DSP_cfg()
194 PRINTK_ERROR(KERN_ERR_MWAVE "smapi::smapi_query_DSP_cfg: Worry: UART base I/O address is 0\n"); in smapi_query_DSP_cfg()
195 if ( pSettings->usUartIRQ == 0 ) in smapi_query_DSP_cfg()
196 PRINTK_ERROR(KERN_ERR_MWAVE "smapi::smapi_query_DSP_cfg: Worry: UART IRQ line is 0\n"); in smapi_query_DSP_cfg()
210 0x0030, 0x4E30, 0x8E30, 0xCE30, in smapi_set_DSP_cfg()
211 0x0130, 0x0350, 0x0070, 0x0DB0 }; in smapi_set_DSP_cfg()
213 0x03F8, 0x02F8, 0x03E8, 0x02E8 }; in smapi_set_DSP_cfg()
219 unsigned short dspio_index = 0, uartio_index = 0; in smapi_set_DSP_cfg()
226 for (i = 0; i < ARRAY_SIZE(ausDspBases); i++) { in smapi_set_DSP_cfg()
238 for (i = 0; i < ARRAY_SIZE(ausDspIrqs); i++) { in smapi_set_DSP_cfg()
249 for (i = 0; i < ARRAY_SIZE(ausUartBases); i++) { in smapi_set_DSP_cfg()
262 for (i = 0; i < ARRAY_SIZE(ausUartIrqs); i++) { in smapi_set_DSP_cfg()
275 bRC = smapi_request(0x1402, 0x0000, 0, 0, in smapi_set_DSP_cfg()
278 /* bRC == 0 */ in smapi_set_DSP_cfg()
279 if (usBX & 0x0100) { /* serial port A is present */ in smapi_set_DSP_cfg()
281 if ((usSI & 0xFF) == mwave_uart_irq) { in smapi_set_DSP_cfg()
284 …"smapi::smapi_set_DSP_cfg: Serial port A irq %x conflicts with mwave_uart_irq %x\n", usSI & 0xFF, … in smapi_set_DSP_cfg()
287 …"smapi::smapi_set_DSP_cfg: Serial port A irq %x conflicts with mwave_uart_irq %x\n", usSI & 0xFF, … in smapi_set_DSP_cfg()
292 bRC = smapi_request(0x1403, 0x0100, 0, usSI, in smapi_set_DSP_cfg()
295 bRC = smapi_request(0x1402, 0x0000, 0, 0, in smapi_set_DSP_cfg()
313 bRC = smapi_request (0x1403, 0x0100, 0, usSI, in smapi_set_DSP_cfg()
316 bRC = smapi_request (0x1402, 0x0000, 0, 0, in smapi_set_DSP_cfg()
328 bRC = smapi_request(0x1404, 0x0000, 0, 0, in smapi_set_DSP_cfg()
331 /* bRC == 0 */ in smapi_set_DSP_cfg()
332 if (usBX & 0x0100) { /* serial port B is present */ in smapi_set_DSP_cfg()
334 if ((usSI & 0xFF) == mwave_uart_irq) { in smapi_set_DSP_cfg()
337 …"smapi::smapi_set_DSP_cfg: Serial port B irq %x conflicts with mwave_uart_irq %x\n", usSI & 0xFF, … in smapi_set_DSP_cfg()
340 …"smapi::smapi_set_DSP_cfg: Serial port B irq %x conflicts with mwave_uart_irq %x\n", usSI & 0xFF, … in smapi_set_DSP_cfg()
345 bRC = smapi_request(0x1405, 0x0100, 0, usSI, in smapi_set_DSP_cfg()
348 bRC = smapi_request(0x1404, 0x0000, 0, 0, in smapi_set_DSP_cfg()
366 bRC = smapi_request (0x1405, 0x0100, 0, usSI, in smapi_set_DSP_cfg()
369 bRC = smapi_request (0x1404, 0x0000, 0, 0, in smapi_set_DSP_cfg()
381 bRC = smapi_request(0x1700, 0x0000, 0, 0, in smapi_set_DSP_cfg()
384 bRC = smapi_request(0x1704, 0x0000, 0, 0, in smapi_set_DSP_cfg()
387 /* bRC == 0 */ in smapi_set_DSP_cfg()
388 if ((usCX & 0xff) != 0xff) { /* IR port not disabled */ in smapi_set_DSP_cfg()
389 if ((usCX & 0xff) == mwave_uart_irq) { in smapi_set_DSP_cfg()
392 …"smapi::smapi_set_DSP_cfg: IR port irq %x conflicts with mwave_uart_irq %x\n", usCX & 0xff, mwave_… in smapi_set_DSP_cfg()
395 …"smapi::smapi_set_DSP_cfg: IR port irq %x conflicts with mwave_uart_irq %x\n", usCX & 0xff, mwave_… in smapi_set_DSP_cfg()
400 bRC = smapi_request(0x1701, 0x0100, 0, 0, in smapi_set_DSP_cfg()
403 bRC = smapi_request(0x1700, 0, 0, 0, in smapi_set_DSP_cfg()
406 bRC = smapi_request(0x1705, 0x01ff, 0, usSI, in smapi_set_DSP_cfg()
409 bRC = smapi_request(0x1704, 0x0000, 0, 0, in smapi_set_DSP_cfg()
416 if ((usSI & 0xff) == uartio_index) { in smapi_set_DSP_cfg()
419 …ase I/O address %x conflicts with mwave uart I/O %x\n", ausUartBases[usSI & 0xff], ausUartBases[ua… in smapi_set_DSP_cfg()
422 …ase I/O address %x conflicts with mwave uart I/O %x\n", ausUartBases[usSI & 0xff], ausUartBases[ua… in smapi_set_DSP_cfg()
427 bRC = smapi_request(0x1701, 0x0100, 0, 0, in smapi_set_DSP_cfg()
430 bRC = smapi_request(0x1700, 0, 0, 0, in smapi_set_DSP_cfg()
433 bRC = smapi_request(0x1705, 0x01ff, 0, usSI, in smapi_set_DSP_cfg()
436 bRC = smapi_request(0x1704, 0x0000, 0, 0, in smapi_set_DSP_cfg()
447 bRC = smapi_request(0x1802, 0x0000, 0, 0, in smapi_set_DSP_cfg()
455 usSI = (usSI & 0xff00) | mwave_3780i_irq; in smapi_set_DSP_cfg()
458 bRC = smapi_request(0x1803, 0x0101, usDI, usSI, in smapi_set_DSP_cfg()
462 bRC = smapi_request(0x1804, 0x0000, 0, 0, in smapi_set_DSP_cfg()
467 usSI = (usSI & 0x00ff) | (uartio_index << 8); in smapi_set_DSP_cfg()
470 usSI = (usSI & 0xff00) | mwave_uart_irq; in smapi_set_DSP_cfg()
472 bRC = smapi_request(0x1805, 0x0101, 0, usSI, in smapi_set_DSP_cfg()
476 bRC = smapi_request(0x1802, 0x0000, 0, 0, in smapi_set_DSP_cfg()
480 bRC = smapi_request(0x1804, 0x0000, 0, 0, in smapi_set_DSP_cfg()
486 return 0; in smapi_set_DSP_cfg()
506 usPowerFunction = (bOn) ? 1 : 0; in smapi_set_DSP_power_state()
508 bRC = smapi_request(0x4901, 0x0000, 0, usPowerFunction, in smapi_set_DSP_power_state()
516 #if 0
520 unsigned short usAX = 0xffff, usBX = 0xffff, usCX = 0xffff,
521 usDX = 0xffff, usDI = 0xffff, usSI = 0xffff;
524 bRC = smapi_request(0x0000, 0, 0, 0,
527 if (bRC == 0) {
536 #endif /* 0 */
541 unsigned short usSmapiID = 0; in smapi_init()
547 usSmapiID = CMOS_READ(0x7C); in smapi_init()
548 usSmapiID |= (CMOS_READ(0x7D) << 8); in smapi_init()
552 if (usSmapiID == 0x5349) { in smapi_init()
554 g_usSmapiPort = CMOS_READ(0x7E); in smapi_init()
555 g_usSmapiPort |= (CMOS_READ(0x7F) << 8); in smapi_init()
557 if (g_usSmapiPort == 0) { in smapi_init()
563 retval = 0; in smapi_init()