void device_desc_default_set(devfs_handle_t dev, device_desc_t new_device_desc) { #ifdef LATER graph_error_t rc; device_desc_t old_device_desc = NULL; if (new_device_desc) { new_device_desc->flags |= D_IS_ASSOC; rc = hwgraph_info_add_LBL(dev, INFO_LBL_DEVICE_DESC, (arbitrary_info_t)new_device_desc); if (rc == GRAPH_DUP) { rc = hwgraph_info_replace_LBL(dev, INFO_LBL_DEVICE_DESC, (arbitrary_info_t)new_device_desc, (arbitrary_info_t *)&old_device_desc); ASSERT(rc == GRAPH_SUCCESS); } hwgraph_info_export_LBL(dev, INFO_LBL_DEVICE_DESC, sizeof(struct device_desc_s)); } else { rc = hwgraph_info_remove_LBL(dev, INFO_LBL_DEVICE_DESC, (arbitrary_info_t *)&old_device_desc); } if (old_device_desc) { ASSERT(old_device_desc->flags & D_IS_ASSOC); old_device_desc->flags &= ~D_IS_ASSOC; device_desc_free(old_device_desc); } #endif FIXME("device_desc_default_set"); }
/* * Disassociate a set of pciio_provider functions with a vertex. */ void pciio_provider_unregister(devfs_handle_t provider) { arbitrary_info_t ainfo; hwgraph_info_remove_LBL(provider, INFO_LBL_PFUNCS, (long *) &ainfo); }
/* * Disassociate a set of pciio_provider functions with a vertex. */ void pciio_provider_unregister(vertex_hdl_t provider) { arbitrary_info_t ainfo; hwgraph_info_remove_LBL(provider, INFO_LBL_PFUNCS, (long *) &ainfo); }
/* * When assignment of hubs to widgets is complete, we no longer need the * xswitch volunteer structure hanging around. Destroy it. */ static void xswitch_volunteer_delete(devfs_handle_t xswitch) { xswitch_vol_t xvolinfo; int rc; rc = hwgraph_info_remove_LBL(xswitch, INFO_LBL_XSWITCH_VOL, (arbitrary_info_t *)&xvolinfo); kfree(xvolinfo); }
/* * When assignment of hubs to widgets is complete, we no longer need the * xswitch volunteer structure hanging around. Destroy it. */ static void xswitch_volunteer_delete(vertex_hdl_t xswitch) { xswitch_vol_t xvolinfo; int rc; extern void snia_kmem_free(void *ptr, size_t size); rc = hwgraph_info_remove_LBL(xswitch, INFO_LBL_XSWITCH_VOL, (arbitrary_info_t *)&xvolinfo); snia_kmem_free(xvolinfo, sizeof(struct xswitch_vol_s)); }
/* * When assignment of hubs to widgets is complete, we no longer need the * xswitch volunteer structure hanging around. Destroy it. */ static void xswitch_volunteer_delete(vertex_hdl_t xswitch) { xswitch_vol_t xvolinfo; int rc; rc = hwgraph_info_remove_LBL(xswitch, INFO_LBL_XSWITCH_VOL, (arbitrary_info_t *)&xvolinfo); if (xvolinfo > 0) kfree(xvolinfo); }
/* * When assignment of hubs to widgets is complete, we no longer need the * xswitch volunteer structure hanging around. Destroy it. */ static void xswitch_volunteer_delete(devfs_handle_t xswitch) { xswitch_vol_t xvolinfo; int rc; rc = hwgraph_info_remove_LBL(xswitch, INFO_LBL_XSWITCH_VOL, (arbitrary_info_t *)&xvolinfo); #ifdef LATER ASSERT(rc == GRAPH_SUCCESS); rc = rc; #endif kfree(xvolinfo); }