Subversion Repositories Kolibri OS

Rev

Rev 6588 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6588 Rev 7143
Line 85... Line 85...
85
	  .package.type = ACPI_TYPE_PACKAGE,		\
85
	  .package.type = ACPI_TYPE_PACKAGE,		\
86
	  .package.count = (cnt),			\
86
	  .package.count = (cnt),			\
87
	  .package.elements = (eles)			\
87
	  .package.elements = (eles)			\
88
	}
88
	}
Line -... Line 89...
-
 
89
 
-
 
90
bool acpi_dev_present(const char *hid);
89
 
91
 
Line 90... Line 92...
90
#ifdef CONFIG_ACPI
92
#ifdef CONFIG_ACPI
Line 91... Line 93...
91
 
93
 
Line 387... Line 389...
387
	struct completion kobj_done;
389
	struct completion kobj_done;
388
};
390
};
Line 389... Line 391...
389
 
391
 
390
static inline bool is_acpi_node(struct fwnode_handle *fwnode)
392
static inline bool is_acpi_node(struct fwnode_handle *fwnode)
391
{
393
{
392
	return fwnode && (fwnode->type == FWNODE_ACPI
394
	return !IS_ERR_OR_NULL(fwnode) && (fwnode->type == FWNODE_ACPI
393
		|| fwnode->type == FWNODE_ACPI_DATA);
395
		|| fwnode->type == FWNODE_ACPI_DATA);
Line 394... Line 396...
394
}
396
}
395
 
397
 
396
static inline bool is_acpi_device_node(struct fwnode_handle *fwnode)
398
static inline bool is_acpi_device_node(struct fwnode_handle *fwnode)
397
{
399
{
Line 398... Line 400...
398
	return fwnode && fwnode->type == FWNODE_ACPI;
400
	return !IS_ERR_OR_NULL(fwnode) && fwnode->type == FWNODE_ACPI;
399
}
401
}
400
 
402
 
Line 624... Line 626...
624
	return adev->wakeup.flags.valid;
626
	return adev->wakeup.flags.valid;
625
}
627
}
Line 626... Line 628...
626
 
628
 
627
static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
629
static inline bool acpi_device_can_poweroff(struct acpi_device *adev)
628
{
630
{
-
 
631
	return adev->power.states[ACPI_STATE_D3_COLD].flags.valid ||
-
 
632
		((acpi_gbl_FADT.header.revision < 6) &&
629
	return adev->power.states[ACPI_STATE_D3_COLD].flags.valid;
633
		adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
Line 630... Line 634...
630
}
634
}
Line 631... Line 635...
631
 
635