aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2008-01-18 15:32:38 -0500
committerPaul Mackerras <paulus@samba.org>2008-01-25 06:52:52 -0500
commited7570022a42a60ecb67c53f429bc96c7bc5597d (patch)
tree2bb3b00caea5763e36c20f2a41fa170886e30057 /include
parentc2b16e1c1050b3cb3a63943eafc99ae86b8f51c3 (diff)
[POWERPC] PS3: Add logical performance monitor device support
Add PS3 logical performance monitor device support to the PS3 system-bus and platform device registration routines. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/ps3.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/ps3.h b/include/asm-powerpc/ps3.h
index 4ff07dbe8169..001121b3eb1b 100644
--- a/include/asm-powerpc/ps3.h
+++ b/include/asm-powerpc/ps3.h
@@ -317,6 +317,7 @@ enum ps3_match_id {
317 PS3_MATCH_ID_STOR_FLASH = 8, 317 PS3_MATCH_ID_STOR_FLASH = 8,
318 PS3_MATCH_ID_SOUND = 9, 318 PS3_MATCH_ID_SOUND = 9,
319 PS3_MATCH_ID_GRAPHICS = 10, 319 PS3_MATCH_ID_GRAPHICS = 10,
320 PS3_MATCH_ID_LPM = 11,
320}; 321};
321 322
322#define PS3_MODULE_ALIAS_EHCI "ps3:1" 323#define PS3_MODULE_ALIAS_EHCI "ps3:1"
@@ -329,11 +330,13 @@ enum ps3_match_id {
329#define PS3_MODULE_ALIAS_STOR_FLASH "ps3:8" 330#define PS3_MODULE_ALIAS_STOR_FLASH "ps3:8"
330#define PS3_MODULE_ALIAS_SOUND "ps3:9" 331#define PS3_MODULE_ALIAS_SOUND "ps3:9"
331#define PS3_MODULE_ALIAS_GRAPHICS "ps3:10" 332#define PS3_MODULE_ALIAS_GRAPHICS "ps3:10"
333#define PS3_MODULE_ALIAS_LPM "ps3:11"
332 334
333enum ps3_system_bus_device_type { 335enum ps3_system_bus_device_type {
334 PS3_DEVICE_TYPE_IOC0 = 1, 336 PS3_DEVICE_TYPE_IOC0 = 1,
335 PS3_DEVICE_TYPE_SB, 337 PS3_DEVICE_TYPE_SB,
336 PS3_DEVICE_TYPE_VUART, 338 PS3_DEVICE_TYPE_VUART,
339 PS3_DEVICE_TYPE_LPM,
337}; 340};
338 341
339/** 342/**
@@ -350,6 +353,11 @@ struct ps3_system_bus_device {
350 struct ps3_dma_region *d_region; /* SB, IOC0 */ 353 struct ps3_dma_region *d_region; /* SB, IOC0 */
351 struct ps3_mmio_region *m_region; /* SB, IOC0*/ 354 struct ps3_mmio_region *m_region; /* SB, IOC0*/
352 unsigned int port_number; /* VUART */ 355 unsigned int port_number; /* VUART */
356 struct { /* LPM */
357 u64 node_id;
358 u64 pu_id;
359 u64 rights;
360 } lpm;
353 361
354/* struct iommu_table *iommu_table; -- waiting for BenH's cleanups */ 362/* struct iommu_table *iommu_table; -- waiting for BenH's cleanups */
355 struct device core; 363 struct device core;