> diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c > index e4ff4a8..ae8fa06 100644 > --- a/hw/dma/sparc32_dma.c > +++ b/hw/dma/sparc32_dma.c > @@ -40,7 +40,6 @@ > * http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/DMA2.txt > */ > > -#define DMA_REGS 4 > #define DMA_SIZE (4 * sizeof(uint32_t)) > /* We need the mask, because one instance of the device is not page > aligned (ledma, start address 0x0010) */
#define DMA_MAX_REG_OFFSET (2 * DMA_SIZE - 1) ^ You can also remove this > @@ -61,39 +60,6 @@ > /* XXX SCSI and ethernet should have different read-only bit masks */ > #define DMA_CSR_RO_MASK 0xfe000007