lib: Define autoboot_options, device_type helpers