diff options
author | Masakazu Mokuno <mokuno@sm.sony.co.jp> | 2008-07-16 17:22:19 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-21 20:39:33 -0400 |
commit | 059e4938f8b060b10c4352e6c45739473bc73267 (patch) | |
tree | 27bd214190ba1a42b45fade9bbae310c2369d6cb /include | |
parent | 6e5f1537833a9fc8251157dff403231f5c89a894 (diff) |
powerpc/ps3: Add a sub-match id to ps3_system_bus
Add sub match id for ps3 system bus so that two different system bus
devices can be connected to a shared device.
Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/ps3.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-powerpc/ps3.h b/include/asm-powerpc/ps3.h index 81ffe3b3c1ce..f9e34c493cbb 100644 --- a/include/asm-powerpc/ps3.h +++ b/include/asm-powerpc/ps3.h | |||
@@ -337,12 +337,18 @@ enum ps3_system_bus_device_type { | |||
337 | PS3_DEVICE_TYPE_LPM, | 337 | PS3_DEVICE_TYPE_LPM, |
338 | }; | 338 | }; |
339 | 339 | ||
340 | enum ps3_match_sub_id { | ||
341 | /* for PS3_MATCH_ID_GRAPHICS */ | ||
342 | PS3_MATCH_SUB_ID_FB = 1, | ||
343 | }; | ||
344 | |||
340 | /** | 345 | /** |
341 | * struct ps3_system_bus_device - a device on the system bus | 346 | * struct ps3_system_bus_device - a device on the system bus |
342 | */ | 347 | */ |
343 | 348 | ||
344 | struct ps3_system_bus_device { | 349 | struct ps3_system_bus_device { |
345 | enum ps3_match_id match_id; | 350 | enum ps3_match_id match_id; |
351 | enum ps3_match_sub_id match_sub_id; | ||
346 | enum ps3_system_bus_device_type dev_type; | 352 | enum ps3_system_bus_device_type dev_type; |
347 | 353 | ||
348 | u64 bus_id; /* SB */ | 354 | u64 bus_id; /* SB */ |
@@ -371,6 +377,7 @@ int ps3_close_hv_device(struct ps3_system_bus_device *dev); | |||
371 | 377 | ||
372 | struct ps3_system_bus_driver { | 378 | struct ps3_system_bus_driver { |
373 | enum ps3_match_id match_id; | 379 | enum ps3_match_id match_id; |
380 | enum ps3_match_sub_id match_sub_id; | ||
374 | struct device_driver core; | 381 | struct device_driver core; |
375 | int (*probe)(struct ps3_system_bus_device *); | 382 | int (*probe)(struct ps3_system_bus_device *); |
376 | int (*remove)(struct ps3_system_bus_device *); | 383 | int (*remove)(struct ps3_system_bus_device *); |