/* Note that some PnP BIOSes (e.g., on Sony Vaio laptops) die a horrible death if they are asked to access the "current" configuration. Therefore, if it's a matter of indifference, it's better to call get_dev_node() and set_dev_node() with boot=1 rather than with boot=0.  */
static int __pnp_bios_get_dev_node(u8 *nodenum, char boot, struct pnp_bios_node *data)
/* Note that some PnP BIOSes (e.g., on Sony Vaio laptops) die a horrible death if they are asked to access the "current" configuration. Therefore, if it's a matter of indifference, it's better to call get_dev_node() and set_dev_node() with boot=1 rather than with boot=0.  */
static int __pnp_bios_get_dev_node(u8 *nodenum, char boot, struct pnp_bios_node *data)
{
	u16 status;
	u16 tmp_nodenum;
	if (!pnp_bios_present())
		return PNP_FUNCTION_NOT_SUPPORTED;
	if (!boot && pnpbios_dont_use_current_config)
		return PNP_FUNCTION_NOT_SUPPORTED;
	tmp_nodenum = *nodenum;
	status = call_pnp_bios(PNP_GET_SYS_DEV_NODE, 0, PNP_TS1, 0, PNP_TS2,
			       boot ? 2 : 1, PNP_DS, 0, &tmp_nodenum,
			       sizeof(tmp_nodenum), data, 65536);
	*nodenum = tmp_nodenum;
	return status;
}