The alpha architecture is 64 bits, so bus_addr_t && bus_size_t should really
be 64 bits wide. The largest known current actual physical implementation is 40 bits, so BUS_SPACE_MAXADDR should reflect this. It also seems to me that BUS_SPACE_UNRESTRICTED should b ~0UL, not ~0.
This commit is contained in:
parent
89ea5c2a49
commit
f0cab81245
@ -75,8 +75,8 @@
|
||||
/*
|
||||
* Bus address and size types
|
||||
*/
|
||||
typedef u_int32_t bus_addr_t;
|
||||
typedef u_int32_t bus_size_t;
|
||||
typedef u_int64_t bus_addr_t;
|
||||
typedef u_int64_t bus_size_t;
|
||||
typedef struct alpha_busspace *bus_space_tag_t;
|
||||
typedef u_int32_t bus_space_handle_t;
|
||||
|
||||
@ -85,9 +85,10 @@ typedef u_int32_t bus_space_handle_t;
|
||||
#define BUS_SPACE_MAXSIZE (64 * 1024) /* Maximum supported size */
|
||||
#define BUS_SPACE_MAXADDR_24BIT 0xFFFFFF
|
||||
#define BUS_SPACE_MAXADDR_32BIT 0xFFFFFFFF
|
||||
#define BUS_SPACE_MAXADDR 0xFFFFFFFF
|
||||
/* The largest address space known so far is 40 bits */
|
||||
#define BUS_SPACE_MAXADDR 0xFFFFFFFFFUL
|
||||
|
||||
#define BUS_SPACE_UNRESTRICTED (~0)
|
||||
#define BUS_SPACE_UNRESTRICTED (~0UL)
|
||||
|
||||
struct alpha_busspace;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user