Don't make assumptions about device address size

Prefer phys_addr_t for physical addresses.

Resort to uintptr_t where a conversion to pointer occurs,
since the physical address may be larger (e.g., sparc32).

v2:
* Use phys_addr_t.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@933 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Andreas Färber
2010-10-30 16:26:02 +00:00
committed by Andreas Färber
parent 70bbfcf6ce
commit 8356ea4eb9
8 changed files with 43 additions and 43 deletions

View File

@@ -1,7 +1,7 @@
#include "adb_bus.h"
struct cuda_t {
uint32_t base;
phys_addr_t base;
adb_bus_t *adb_bus;
};
typedef struct cuda_t cuda_t;
@@ -14,4 +14,4 @@ enum {
CHARDEV_LAST,
};
cuda_t *cuda_init (const char *path, uint32_t base);
cuda_t *cuda_init (const char *path, phys_addr_t base);