qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI ada


From: Michael S. Tsirkin
Subject: Re: [Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI adapter)
Date: Sun, 3 Jun 2012 14:23:43 +0300

On Sun, Jun 03, 2012 at 01:17:57PM +0200, Hervé Poussineau wrote:
> >It is better to prefix all global scope symbols with
> >esp_ consistently. Reduces the chance of a conflict.
> 
> All these functions are local to the file. I'll change that to
> pci_esp_... like other PCI-related functions in this file.

esp_pci would be clearer and preferable.

> >
> >>+static void pci_esp_dma_write(PCIESPState *pci, uint32_t saddr, uint32_t 
> >>val)
> >>+{
> >>+    trace_esp_pci_dma_write(saddr, pci->dma_regs[saddr], val);
> >>+    switch (saddr) {
> >>+    case DMA_CMD:
> >>+        pci->dma_regs[saddr] = val;
> >>+        switch (val & DMA_CMD_MASK) {
> >>+        case 0x0: /* IDLE */
> >>+            trace_esp_pci_dma_idle(val);
> >>+            break;
> >>+        case 0x1: /* BLAST */
> >>+            pci_handle_blast(pci, val);
> >
> >fall-through intentional?
> 
> Not at all. Thanks.
> 
> Hervé



reply via email to

[Prev in Thread] Current Thread [Next in Thread]