[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAF0T0X4f9RCjY-tyw9z+X_n7qRxXacKf7FOzT-U_rH0WtLOUHw@mail.gmail.com>
Date: Mon, 12 Aug 2013 17:38:21 +0400
From: Alexander Popov <a13xp0p0v88@...il.com>
To: Gerhard Sittig <gsi@...x.de>
Cc: linuxppc-dev@...ts.ozlabs.org, Dan Williams <djbw@...com>,
Vinod Koul <vinod.koul@...el.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Arnd Bergmann <arnd@...db.de>,
Anatolij Gustschin <agust@...x.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFC v2 1/5] dma: mpc512x: re-order mpc8308 specific instructions
Hello everyone!
2013/7/14 Gerhard Sittig <gsi@...x.de>:
> @@ -50,9 +50,23 @@
> #define MPC_DMA_DESCRIPTORS 64
>
> /* Macro definitions */
> -#define MPC_DMA_CHANNELS 64
> #define MPC_DMA_TCD_OFFSET 0x1000
>
> +/*
> + * the maximum channel count, and specific channels which need
> + * special processing, for individual hardware variants
> + *
> + * and the maximum channel count over all supported controllers,
> + * used for data structure sizes
> + */
> +enum mpc8308_dmachan_id_t {
> + MPC8308_DMACHAN_MAX = 16,
> +};
> +enum mpc512x_dmachan_id_t {
> + MPC512x_DMACHAN_MAX = 64,
> +};
> +#define MPC_DMA_CHANNELS 64
> +
I offer to use #define instead of enum here
since individual channels don't require special handling.
Best regards,
Alexander.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists