aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2007-01-26 22:07:51 -0500
committerPaul Mackerras <paulus@samba.org>2007-02-06 22:03:17 -0500
commit6c7be7d385f4911895877e0f0697c598f600136f (patch)
treed8bffe6e30b7bffc66ffe74e636ad30a322122cd /include/asm-powerpc
parenteebb81c13aa831a623e903bbae97a23fe9be93eb (diff)
[POWERPC] ps3: repository storage support
Handle storage-related repository data: - Add missing implementations of ps3_repository_read_stor_*() repository accessors. - Dump storage properties in debug mode - Add PS3_DEV_TYPE_STOR_{DISK,ROM,FLASH} device types (which are identical to the corresponding SCSI device types) to enum ps3_dev_type Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/ps3.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/include/asm-powerpc/ps3.h b/include/asm-powerpc/ps3.h
index b56aca28b26d..8fed3a041dee 100644
--- a/include/asm-powerpc/ps3.h
+++ b/include/asm-powerpc/ps3.h
@@ -25,6 +25,7 @@
25#include <linux/init.h> 25#include <linux/init.h>
26#include <linux/types.h> 26#include <linux/types.h>
27#include <linux/device.h> 27#include <linux/device.h>
28#include <scsi/scsi.h>
28 29
29/** 30/**
30 * struct ps3_device_id - HV bus device identifier from the system repository 31 * struct ps3_device_id - HV bus device identifier from the system repository
@@ -255,9 +256,12 @@ enum ps3_bus_type {
255}; 256};
256 257
257enum ps3_dev_type { 258enum ps3_dev_type {
259 PS3_DEV_TYPE_STOR_DISK = TYPE_DISK, /* 0 */
258 PS3_DEV_TYPE_SB_GELIC = 3, 260 PS3_DEV_TYPE_SB_GELIC = 3,
259 PS3_DEV_TYPE_SB_USB = 4, 261 PS3_DEV_TYPE_SB_USB = 4,
262 PS3_DEV_TYPE_STOR_ROM = TYPE_ROM, /* 5 */
260 PS3_DEV_TYPE_SB_GPIO = 6, 263 PS3_DEV_TYPE_SB_GPIO = 6,
264 PS3_DEV_TYPE_STOR_FLASH = TYPE_RBC, /* 14 */
261}; 265};
262 266
263int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str, 267int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str,
@@ -327,21 +331,27 @@ int ps3_repository_find_reg(const struct ps3_repository_device *dev,
327 331
328/* repository block device info */ 332/* repository block device info */
329 333
330int ps3_repository_read_dev_port(unsigned int bus_index, 334int ps3_repository_read_stor_dev_port(unsigned int bus_index,
331 unsigned int dev_index, u64 *port); 335 unsigned int dev_index, u64 *port);
332int ps3_repository_read_dev_blk_size(unsigned int bus_index, 336int ps3_repository_read_stor_dev_blk_size(unsigned int bus_index,
333 unsigned int dev_index, u64 *blk_size); 337 unsigned int dev_index, u64 *blk_size);
334int ps3_repository_read_dev_num_blocks(unsigned int bus_index, 338int ps3_repository_read_stor_dev_num_blocks(unsigned int bus_index,
335 unsigned int dev_index, u64 *num_blocks); 339 unsigned int dev_index, u64 *num_blocks);
336int ps3_repository_read_dev_num_regions(unsigned int bus_index, 340int ps3_repository_read_stor_dev_num_regions(unsigned int bus_index,
337 unsigned int dev_index, unsigned int *num_regions); 341 unsigned int dev_index, unsigned int *num_regions);
338int ps3_repository_read_dev_region_id(unsigned int bus_index, 342int ps3_repository_read_stor_dev_region_id(unsigned int bus_index,
339 unsigned int dev_index, unsigned int region_index, 343 unsigned int dev_index, unsigned int region_index,
340 unsigned int *region_id); 344 unsigned int *region_id);
341int ps3_repository_read_dev_region_size(unsigned int bus_index, 345int ps3_repository_read_stor_dev_region_size(unsigned int bus_index,
342 unsigned int dev_index, unsigned int region_index, u64 *region_size); 346 unsigned int dev_index, unsigned int region_index, u64 *region_size);
343int ps3_repository_read_dev_region_start(unsigned int bus_index, 347int ps3_repository_read_stor_dev_region_start(unsigned int bus_index,
344 unsigned int dev_index, unsigned int region_index, u64 *region_start); 348 unsigned int dev_index, unsigned int region_index, u64 *region_start);
349int ps3_repository_read_stor_dev_info(unsigned int bus_index,
350 unsigned int dev_index, u64 *port, u64 *blk_size,
351 u64 *num_blocks, unsigned int *num_regions);
352int ps3_repository_read_stor_dev_region(unsigned int bus_index,
353 unsigned int dev_index, unsigned int region_index,
354 unsigned int *region_id, u64 *region_start, u64 *region_size);
345 355
346/* repository pu and memory info */ 356/* repository pu and memory info */
347 357