summaryrefslogtreecommitdiffstats
path: root/common/resource.c
Commit message (Collapse)AuthorAgeFilesLines
* resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-13/+17
| | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add resource management functionsSascha Hauer2011-12-031-0/+121
It is time to track our memory usage. Add a simple resource management. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>