/* Call PnP BIOS with function 0x02, "set system device node" Input: *nodenum = desired node, boot = whether to set nonvolatile boot (!=0) or volatile current (0) config  */
static int __pnp_bios_set_dev_node(u8 nodenum, char boot, struct pnp_bios_node *data)
/* Call PnP BIOS with function 0x02, "set system device node" Input: *nodenum = desired node, boot = whether to set nonvolatile boot (!=0) or volatile current (0) config  */
static int __pnp_bios_set_dev_node(u8 nodenum, char boot, struct pnp_bios_node *data)
{
	u16 status;
	if (!pnp_bios_present())
		return PNP_FUNCTION_NOT_SUPPORTED;
	if (!boot && pnpbios_dont_use_current_config)
		return PNP_FUNCTION_NOT_SUPPORTED;
	status = call_pnp_bios(PNP_SET_SYS_DEV_NODE, nodenum, 0, PNP_TS1,
			       boot ? 2 : 1, PNP_DS, 0, 0, data, 65536, NULL,
			       0);
	return status;
}