[PATCH 1/7] device: introduce resource structure to simplify resource declaration
Antony Pavlov
antonynpavlov at gmail.com
Tue Jul 19 09:40:22 EDT 2011
On 16/07/2011, Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com> wrote:
> and add multi resource per device support
>
> for now we keep the old map_base and size temporary but will switch all of
> the used step by step to them resource way
>
> and mirror the first resource to the map_base and size if available
>
> +++ b/include/linux/ioport.h
...
> +struct resource {
> + resource_size_t start;
> + resource_size_t size;
> + const char *name;
> + unsigned long flags;
> +};
In linux-2.6.39/include/linux/ioport.h:
struct resource {
resource_size_t start;
resource_size_t end;
const char *name;
unsigned long flags;
struct resource *parent, *sibling, *child;
};
So there is incompatability: barebox has 'size' field, but linux has
'end' field instead.
Can you comment this, please?
--
Best regards,
Antony Pavlov
More information about the barebox
mailing list