Lines Matching full:ip

38 #define STATUS_INT(IP, INTNO) BIT((IP) * 2 + (INTNO))  argument
39 #define STATUS_TIME(IP) BIT((IP) + 12) argument
109 IPackDevice *ip = opaque; in tpci200_set_irq() local
110 IPackBus *bus = IPACK_BUS(qdev_get_parent_bus(DEVICE(ip))); in tpci200_set_irq()
113 unsigned ip_n = ip->slot; in tpci200_set_irq()
116 assert(ip->slot >= 0 && ip->slot < N_MODULES); in tpci200_set_irq()
118 /* The requested interrupt must be enabled in the IP CONTROL in tpci200_set_irq()
124 /* Update the interrupt status in the IP STATUS register */ in tpci200_set_irq()
136 DPRINTF("IP %u INT%u#: %u\n", ip_n, intno, level); in tpci200_set_irq()
218 DPRINTF("Read IP %c CONTROL: 0x%x\n", 'A' + ip_n, (unsigned) ret); in tpci200_read_las0()
260 DPRINTF("Write IP %c CONTROL: 0x%x\n", 'A' + ip_n, (unsigned) val); in tpci200_write_las0()
273 IPackDevice *ip = ipack_device_find(&s->bus, i); in tpci200_write_las0() local
275 if (ip != NULL) { in tpci200_write_las0()
277 DPRINTF("Clear IP %c INT0# status\n", 'A' + i); in tpci200_write_las0()
278 qemu_irq_lower(&ip->irq[0]); in tpci200_write_las0()
281 DPRINTF("Clear IP %c INT1# status\n", 'A' + i); in tpci200_write_las0()
282 qemu_irq_lower(&ip->irq[1]); in tpci200_write_las0()
287 DPRINTF("Clear IP %c timeout\n", 'A' + i); in tpci200_write_las0()
310 IPackDevice *ip; in tpci200_read_las1() local
318 * The address is divided into the IP module number (0-4), the IP in tpci200_read_las1()
323 ip = ipack_device_find(&s->bus, ip_n); in tpci200_read_las1()
325 if (ip == NULL) { in tpci200_read_las1()
326 DPRINTF("Read LAS1: IP module %u not installed\n", ip_n); in tpci200_read_las1()
328 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_read_las1()
334 ret = k->id_read(ip, offset); in tpci200_read_las1()
341 /* Read address 0 to ACK IP INT0# and address 2 to ACK IP INT1# */ in tpci200_read_las1()
347 qemu_irq_lower(&ip->irq[intno]); in tpci200_read_las1()
352 ret = k->int_read(ip, offset); in tpci200_read_las1()
359 ret = k->io_read(ip, offset); in tpci200_read_las1()
372 IPackDevice *ip; in tpci200_write_las1() local
380 * The address is divided into the IP module number, the IP in tpci200_write_las1()
385 ip = ipack_device_find(&s->bus, ip_n); in tpci200_write_las1()
387 if (ip == NULL) { in tpci200_write_las1()
388 DPRINTF("Write LAS1: IP module %u not installed\n", ip_n); in tpci200_write_las1()
390 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_write_las1()
396 k->id_write(ip, offset, val); in tpci200_write_las1()
403 k->int_write(ip, offset, val); in tpci200_write_las1()
410 k->io_write(ip, offset, val); in tpci200_write_las1()
420 IPackDevice *ip; in tpci200_read_las2() local
428 * The address is divided into the IP module number and the offset in tpci200_read_las2()
429 * within the IP module MEM space. in tpci200_read_las2()
433 ip = ipack_device_find(&s->bus, ip_n); in tpci200_read_las2()
435 if (ip == NULL) { in tpci200_read_las2()
436 DPRINTF("Read LAS2: IP module %u not installed\n", ip_n); in tpci200_read_las2()
438 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_read_las2()
440 ret = k->mem_read16(ip, offset); in tpci200_read_las2()
451 IPackDevice *ip; in tpci200_write_las2() local
459 * The address is divided into the IP module number and the offset in tpci200_write_las2()
460 * within the IP module MEM space. in tpci200_write_las2()
464 ip = ipack_device_find(&s->bus, ip_n); in tpci200_write_las2()
466 if (ip == NULL) { in tpci200_write_las2()
467 DPRINTF("Write LAS2: IP module %u not installed\n", ip_n); in tpci200_write_las2()
469 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_write_las2()
471 k->mem_write16(ip, offset, val); in tpci200_write_las2()
479 IPackDevice *ip; in tpci200_read_las3() local
482 * The address is divided into the IP module number and the offset in tpci200_read_las3()
483 * within the IP module MEM space. in tpci200_read_las3()
488 ip = ipack_device_find(&s->bus, ip_n); in tpci200_read_las3()
490 if (ip == NULL) { in tpci200_read_las3()
491 DPRINTF("Read LAS3: IP module %u not installed\n", ip_n); in tpci200_read_las3()
493 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_read_las3()
495 ret = k->mem_read8(ip, offset); in tpci200_read_las3()
506 IPackDevice *ip; in tpci200_write_las3() local
508 * The address is divided into the IP module number and the offset in tpci200_write_las3()
509 * within the IP module MEM space. in tpci200_write_las3()
514 ip = ipack_device_find(&s->bus, ip_n); in tpci200_write_las3()
516 if (ip == NULL) { in tpci200_write_las3()
517 DPRINTF("Write LAS3: IP module %u not installed\n", ip_n); in tpci200_write_las3()
519 IPackDeviceClass *k = IPACK_DEVICE_GET_CLASS(ip); in tpci200_write_las3()
521 k->mem_write8(ip, offset, val); in tpci200_write_las3()