ACPI_TYPE_EXTERNAL_MAX
if (type > ACPI_TYPE_EXTERNAL_MAX) {
#define ACPI_NUM_TYPES (ACPI_TYPE_EXTERNAL_MAX + 1)