return EIO;
if (APM_ERR_CODE(&regs) == APM_ERR_UNRECOG_DEV) return ENXIO; else return EIO;
apm_set_powstate(dev, state)	u_int dev, state;{	struct apmregs regs;	if (!apm_cd.cd_ndevs || (apm_minver == 0 && state > APM_SYS_OFF))		return EINVAL;	bzero(&regs, sizeof(regs));	regs.cx = state;	if (apmcall(APM_SET_PWR_STATE, dev, &regs) != 0) {		apm_perror("set power state", &regs);		return EIO;	}	return 0;}