[PATCH v2 29/39] acpi: Add generation code for devices