Lines Matching refs:mesh
50 #include "mesh.h"
145 volatile struct mesh_regs __iomem *mesh;
223 tlp->bs0 = ms->mesh->bus_status0;
224 tlp->bs1 = ms->mesh->bus_status1;
252 printk(KERN_DEBUG "mesh log %d: bs=%.2x%.2x ph=%.2x ",
277 printk(KERN_DEBUG "mesh log: bs=%.2x%.2x ph=%.2x t%d ",
305 volatile struct mesh_regs __iomem *mr = ms->mesh;
310 printk(KERN_DEBUG "mesh: state at %p, regs at %p, dma at %p\n",
337 * Flush write buffers on the bus path to the mesh
360 volatile struct mesh_regs __iomem *mr = ms->mesh;
379 printk(KERN_INFO "mesh: performing initial bus reset...\n");
407 volatile struct mesh_regs __iomem *mr = ms->mesh;
426 panic("mesh: double DMA start !\n");
483 * Apparently the mesh has a bug where it will assert both its
497 * is trying to reselect us, reset the mesh and then enable
524 /* looks like a reselection - try resetting the mesh */
541 printk(KERN_ERR "mesh: controller not responding"
545 * mesh isn't responding, the higher levels of
618 out_8(&ms->mesh->sequence, SEQ_ENBRESEL);
619 mesh_flush_io(ms->mesh);
641 volatile struct mesh_regs __iomem *mr = ms->mesh;
648 printk(KERN_INFO "mesh: target %d now asynchronous\n",
675 printk(KERN_INFO "mesh: target %d synchronous at %d.%d MB/s\n",
682 volatile struct mesh_regs __iomem *mr = ms->mesh;
709 printk(KERN_ERR "mesh: msg_out but n_msgout=%d\n",
716 printk(KERN_DEBUG "mesh: sending %d msg bytes:",
730 * issue a SEQ_MSGOUT to get the mesh to drop ACK.
759 printk(KERN_ERR "mesh bug: start_phase msgphase=%d\n",
817 printk(KERN_ERR "mesh: start_phase called with phase=%d\n",
826 volatile struct mesh_regs __iomem *mr = ms->mesh;
858 volatile struct mesh_regs __iomem *mr = ms->mesh;
884 printk(KERN_ERR "mesh: reselected in phase %d/%d tgt %d\n",
891 printk(KERN_ERR "mesh: reselected with DMA started !\n");
928 printk(KERN_ERR "mesh: reselection but nothing in fifo?\n");
941 printk(KERN_ERR "mesh: bad reselection data %x\n", b);
954 printk(KERN_DEBUG "mesh: reselected by target %d\n", t);
955 printk(KERN_DEBUG "mesh: saved_ptr=%x goes_out=%d cmd=%p\n",
960 printk(KERN_ERR "mesh: reselected by tgt %d but no cmd!\n", t);
991 volatile struct mesh_regs __iomem *mr = ms->mesh;
1034 volatile struct mesh_regs __iomem *mr = ms->mesh;
1043 printk(KERN_INFO "mesh: SCSI bus reset detected: "
1061 printk(KERN_WARNING "mesh: target %d aborted\n",
1073 printk(KERN_ERR "mesh: msg parity error, target %d\n",
1082 printk(KERN_ERR "mesh: parity error, target %d\n",
1110 printk(KERN_ERR "mesh: sequence error (err=%x exc=%x)\n",
1113 printk(KERN_ERR "mesh: unknown error %x (exc=%x)\n", err, exc);
1130 volatile struct mesh_regs __iomem *mr = ms->mesh;
1139 printk(KERN_DEBUG "mesh: lost arbitration\n");
1151 printk(KERN_ERR "mesh: can't cope with exception %x\n", exc);
1235 printk(KERN_WARNING "mesh: lun mismatch "
1247 printk(KERN_WARNING "mesh: rejecting message from target %d:",
1292 panic("mesh: scatterlist element >= 64k");
1324 volatile struct mesh_regs __iomem *mr = ms->mesh;
1348 printk(KERN_ERR "mesh: halt_dma: data_ptr=%d (nb=%d, ms=%p)\n",
1357 printk(KERN_DEBUG "mesh: target %d overrun, "
1369 volatile struct mesh_regs __iomem *mr = ms->mesh;
1428 "mesh: no msg to repeat\n");
1437 printk(KERN_DEBUG "mesh: unknown scsi phase %x\n", phase);
1448 volatile struct mesh_regs __iomem *mr = ms->mesh;
1509 printk(KERN_ERR "mesh: error %x in msg_out\n",
1515 printk(KERN_ERR "mesh: exc %x in msg_out\n",
1518 printk(KERN_DEBUG "mesh: bs0=%x in msg_out\n",
1545 printk(KERN_ERR "mesh: interrupt in idle phase?\n");
1592 * occasionally the mesh actually executes the
1605 printk(KERN_DEBUG "mesh: status is %x\n",
1662 volatile struct mesh_regs __iomem *mr = ms->mesh;
1710 volatile struct mesh_regs __iomem *mr = ms->mesh;
1826 mr = ms->mesh;
1839 .proc_name = "mesh",
1853 struct device_node *mesh = macio_get_of_node(mdev);
1873 printk(KERN_ERR "mesh: expected 2 addrs and 2 intrs"
1879 if (macio_request_resources(mdev, "mesh") != 0) {
1880 printk(KERN_ERR "mesh: unable to request memory resources");
1885 printk(KERN_ERR "mesh: couldn't register host");
1891 note_scsi_host(mesh, mesh_host);
1902 ms->mesh = ioremap(macio_resource_start(mdev, 0), 0x1000);
1903 if (ms->mesh == NULL) {
1904 printk(KERN_ERR "mesh: can't map registers\n");
1909 printk(KERN_ERR "mesh: can't map registers\n");
1910 iounmap(ms->mesh);
1929 printk(KERN_ERR "mesh: can't allocate DMA table\n");
1944 if ((cfp = of_get_property(mesh, "clock-frequency", NULL)))
1947 printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n");
1989 iounmap(ms->mesh);
2014 iounmap(ms->mesh);
2033 .name = "mesh",
2046 .name = "mesh",
2067 printk(KERN_INFO "mesh: configured for synchronous %d MB/s\n", sync_rate);
2071 printk(KERN_INFO "mesh: configured for asynchronous\n");