Re: [PATCH resent v2 1/2] ioport : add DEFINE_RES_DMA_SIZE_NAMED macro

From: Huang Shijie
Date: Sun Feb 05 2012 - 06:54:02 EST


Does any one have any comments about this patch?

thanks.

On Thu, Jan 19, 2012 at 3:53 PM, Huang Shijie <b32955@xxxxxxxxxxxxx> wrote:
> Some DMA resource does have the range more then ones.
>
> Signed-off-by: Huang Shijie <b32955@xxxxxxxxxxxxx>
> ---
> Âinclude/linux/ioport.h | Â Â4 +++-
> Â1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/ioport.h b/include/linux/ioport.h
> index 9d57a71..9ea5de4 100644
> --- a/include/linux/ioport.h
> +++ b/include/linux/ioport.h
> @@ -134,8 +134,10 @@ struct resource_list {
> Â#define DEFINE_RES_IRQ(_irq) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \
> Â Â Â ÂDEFINE_RES_IRQ_NAMED((_irq), NULL)
>
> +#define DEFINE_RES_DMA_SIZE_NAMED(_dma, _size, _name) Â Â Â Â Â Â Â Â Â\
> + Â Â Â DEFINE_RES_NAMED((_dma), (_size), (_name), IORESOURCE_DMA)
> Â#define DEFINE_RES_DMA_NAMED(_dma, _name) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â\
> - Â Â Â DEFINE_RES_NAMED((_dma), 1, (_name), IORESOURCE_DMA)
> + Â Â Â DEFINE_RES_DMA_SIZE_NAMED((_dma), 1, (_name))
> Â#define DEFINE_RES_DMA(_dma) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \
> Â Â Â ÂDEFINE_RES_DMA_NAMED((_dma), NULL)
>
> --
> 1.7.0.4
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/