[POWERPC] PS3: Make bus_id and dev_id u64
Change the PS3 bus_id and dev_id from type unsigned int to u64. These IDs are 64-bit in the repository, and the special storage notification device has a device ID of ULONG_MAX. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
cda563fb9c
commit
034e0ab54b
@@ -95,7 +95,7 @@ enum ps3_dev_type {
|
||||
|
||||
int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str,
|
||||
u64 *value);
|
||||
int ps3_repository_read_bus_id(unsigned int bus_index, unsigned int *bus_id);
|
||||
int ps3_repository_read_bus_id(unsigned int bus_index, u64 *bus_id);
|
||||
int ps3_repository_read_bus_type(unsigned int bus_index,
|
||||
enum ps3_bus_type *bus_type);
|
||||
int ps3_repository_read_bus_num_dev(unsigned int bus_index,
|
||||
@@ -119,7 +119,7 @@ enum ps3_reg_type {
|
||||
int ps3_repository_read_dev_str(unsigned int bus_index,
|
||||
unsigned int dev_index, const char *dev_str, u64 *value);
|
||||
int ps3_repository_read_dev_id(unsigned int bus_index, unsigned int dev_index,
|
||||
unsigned int *dev_id);
|
||||
u64 *dev_id);
|
||||
int ps3_repository_read_dev_type(unsigned int bus_index,
|
||||
unsigned int dev_index, enum ps3_dev_type *dev_type);
|
||||
int ps3_repository_read_dev_intr(unsigned int bus_index,
|
||||
@@ -138,12 +138,12 @@ int ps3_repository_read_dev_reg(unsigned int bus_index,
|
||||
/* repository bus enumerators */
|
||||
|
||||
struct ps3_repository_device {
|
||||
enum ps3_bus_type bus_type;
|
||||
unsigned int bus_index;
|
||||
unsigned int bus_id;
|
||||
enum ps3_dev_type dev_type;
|
||||
unsigned int dev_index;
|
||||
unsigned int dev_id;
|
||||
enum ps3_bus_type bus_type;
|
||||
enum ps3_dev_type dev_type;
|
||||
u64 bus_id;
|
||||
u64 dev_id;
|
||||
};
|
||||
|
||||
static inline struct ps3_repository_device *ps3_repository_bump_device(
|
||||
|
Reference in New Issue
Block a user