Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60574
b: refs/heads/master
c: 6bb5cf1
h: refs/heads/master
v: v3
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent d614ff2 commit df8d097
Show file tree
Hide file tree
Showing 7 changed files with 1,090 additions and 253 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9263e85aa9e9d341ef238fffc040f586674d1709
refs/heads/master: 6bb5cf1025414fe00b20f3bef56135849e4ed3b8
24 changes: 11 additions & 13 deletions trunk/arch/powerpc/platforms/ps3/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,17 +400,15 @@ int ps3_send_event_locally(unsigned int virq)
* ps3_sb_event_receive_port_setup - Setup a system bus event receive port.
* @cpu: enum ps3_cpu_binding indicating the cpu the interrupt should be
* serviced on.
* @did: The HV device identifier read from the system repository.
* @interrupt_id: The device interrupt id read from the system repository.
* @dev: The system bus device instance.
* @virq: The assigned Linux virq.
*
* An event irq represents a virtual device interrupt. The interrupt_id
* coresponds to the software interrupt number.
*/

int ps3_sb_event_receive_port_setup(enum ps3_cpu_binding cpu,
const struct ps3_device_id *did, unsigned int interrupt_id,
unsigned int *virq)
int ps3_sb_event_receive_port_setup(struct ps3_system_bus_device *dev,
enum ps3_cpu_binding cpu, unsigned int *virq)
{
/* this should go in system-bus.c */

Expand All @@ -421,8 +419,8 @@ int ps3_sb_event_receive_port_setup(enum ps3_cpu_binding cpu,
if (result)
return result;

result = lv1_connect_interrupt_event_receive_port(did->bus_id,
did->dev_id, virq_to_hw(*virq), interrupt_id);
result = lv1_connect_interrupt_event_receive_port(dev->bus_id,
dev->dev_id, virq_to_hw(*virq), dev->interrupt_id);

if (result) {
pr_debug("%s:%d: lv1_connect_interrupt_event_receive_port"
Expand All @@ -434,24 +432,24 @@ int ps3_sb_event_receive_port_setup(enum ps3_cpu_binding cpu,
}

pr_debug("%s:%d: interrupt_id %u, virq %u\n", __func__, __LINE__,
interrupt_id, *virq);
dev->interrupt_id, *virq);

return 0;
}
EXPORT_SYMBOL(ps3_sb_event_receive_port_setup);

int ps3_sb_event_receive_port_destroy(const struct ps3_device_id *did,
unsigned int interrupt_id, unsigned int virq)
int ps3_sb_event_receive_port_destroy(struct ps3_system_bus_device *dev,
unsigned int virq)
{
/* this should go in system-bus.c */

int result;

pr_debug(" -> %s:%d: interrupt_id %u, virq %u\n", __func__, __LINE__,
interrupt_id, virq);
dev->interrupt_id, virq);

result = lv1_disconnect_interrupt_event_receive_port(did->bus_id,
did->dev_id, virq_to_hw(virq), interrupt_id);
result = lv1_disconnect_interrupt_event_receive_port(dev->bus_id,
dev->dev_id, virq_to_hw(virq), dev->interrupt_id);

if (result)
pr_debug("%s:%d: lv1_disconnect_interrupt_event_receive_port"
Expand Down
Loading

0 comments on commit df8d097

Please sign in to comment.