Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65289
b: refs/heads/master
c: 07607c5
h: refs/heads/master
i:
  65287: 25032cb
v: v3
  • Loading branch information
David S. Miller committed Oct 4, 2007
1 parent bf03508 commit 6ff5019
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 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: a4aa2e867c5d696c0f249ad8d63d0d983b4ffaf9
refs/heads/master: 07607c5492f836923c2ab9eb1cd1d39be7dace49
27 changes: 26 additions & 1 deletion trunk/arch/sparc64/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,33 @@ static struct mdesc_notifier_client vio_device_notifier = {
.node_name = "virtual-device-port",
};

/* We are only interested in domain service ports under the
* "domain-services" node. On control nodes there is another port
* under "openboot" that we should not mess with as aparently that is
* reserved exclusively for OBP use.
*/
static void vio_add_ds(struct mdesc_handle *hp, u64 node)
{
int found;
u64 a;

found = 0;
mdesc_for_each_arc(a, hp, node, MDESC_ARC_TYPE_BACK) {
u64 target = mdesc_arc_target(hp, a);
const char *name = mdesc_node_name(hp, target);

if (!strcmp(name, "domain-services")) {
found = 1;
break;
}
}

if (found)
(void) vio_create_one(hp, node, &root_vdev->dev);
}

static struct mdesc_notifier_client vio_ds_notifier = {
.add = vio_add,
.add = vio_add_ds,
.remove = vio_remove,
.node_name = "domain-services-port",
};
Expand Down

0 comments on commit 6ff5019

Please sign in to comment.