[PATCH v1] Use phys_addr_t for physical addresses
Steven A. Falco
sfalco at harris.com
Tue Jun 16 12:35:00 EDT 2009
Physical addresses are currently represented as int or long types.
However, this does not work for processors like the PPC440EPx, which
is a 32-bit processor with a 36-bit address space. This patch uses
the phys_addr_t type, which correctly holds a 36-bit address on
this processor.
Signed-off-by: Steven A. Falco <sfalco at harris.com>
---
The PPC440EPx uses an unsigned long long for phys_addr_t. Thus, it is
able to hold 36-bit physical addresses.
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h
index 9b4ac93..9a3b498 100644
--- a/include/pcmcia/ss.h
+++ b/include/pcmcia/ss.h
@@ -90,14 +90,14 @@ typedef struct pccard_io_map {
u_char map;
u_char flags;
u_short speed;
- u_int start, stop;
+ phys_addr_t start, stop;
} pccard_io_map;
typedef struct pccard_mem_map {
u_char map;
u_char flags;
u_short speed;
- u_long static_start;
+ phys_addr_t static_start;
u_int card_start;
struct resource *res;
} pccard_mem_map;
More information about the linux-pcmcia
mailing list