Re: [PATCH 1/2] PCI: replace hard-coded resource index by macros

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

 



On Wed, Feb 18, 2009 at 01:56:43AM +0800, Yu Zhao wrote:
...
> -	res = child->resource[0];
> +	res = child->resource[PCI_BRIDGE_IO];
...
> +enum {
> +	PCI_BRIDGE_IO,
> +	PCI_BRIDGE_MEM,
> +	PCI_BRIDGE_PREF_MEM,
> +	PCI_BRIDGE_MAX_RESOURCE
> +};

Does C spec guarantee PCI_BRIDGE_IO is assigned 0?

If so, then it won't cause any problems for parisc as I pointed out
in a previous email.

thanks,
grant
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux