/* ps3_repository_read_spu_resource_id - spu resource reservation id value. @res_index: Resource reservation index. @resource_type: Resource reservation type. @resource_id: Resource reservation id.  */
int ps3_repository_read_spu_resource_id(unsigned int res_index, enum ps3_spu_resource_type *resource_type, unsigned int *resource_id)
/* ps3_repository_read_spu_resource_id - spu resource reservation id value. @res_index: Resource reservation index. @resource_type: Resource reservation type. @resource_id: Resource reservation id.  */
int ps3_repository_read_spu_resource_id(unsigned int res_index, enum ps3_spu_resource_type *resource_type, unsigned int *resource_id)
{
	int result;
	u64 v1;
	u64 v2;
	result = read_node(PS3_LPAR_ID_CURRENT,
		make_first_field("bi", 0),
		make_field("spursv", 0),
		res_index,
		0,
		&v1, &v2);
	*resource_type = v1;
	*resource_id = v2;
	return result;
}