def write_validation_output(fp):
    fp.write('#ifndef DRIVER_VALIDATION_GEN_H\n')
    fp.write('#define DRIVER_VALIDATION_GEN_H\n')
    fp.write('#define Z_SYSCALL_DRIVER_GEN(ptr, op, driver_lower_case, driver_upper_case) \\\n\t\t(Z_SYSCALL_OBJ(ptr, K_OBJ_DRIVER_##driver_upper_case) || \\\n\t\t Z_SYSCALL_DRIVER_OP(ptr, driver_lower_case##_driver_api, op))\n                ')
    for subsystem in subsystems:
        subsystem = subsystem.replace('_driver_api', '')
        fp.write((driver_macro_tpl % {'driver_lower': subsystem.lower(), 'driver_upper': subsystem.upper()}))
    fp.write('#endif /* DRIVER_VALIDATION_GEN_H */\n')
def write_validation_output(fp):
    fp.write('#ifndef DRIVER_VALIDATION_GEN_H\n')
    fp.write('#define DRIVER_VALIDATION_GEN_H\n')
    fp.write('#define Z_SYSCALL_DRIVER_GEN(ptr, op, driver_lower_case, driver_upper_case) \\\n\t\t(Z_SYSCALL_OBJ(ptr, K_OBJ_DRIVER_##driver_upper_case) || \\\n\t\t Z_SYSCALL_DRIVER_OP(ptr, driver_lower_case##_driver_api, op))\n                ')
    for subsystem in subsystems:
        subsystem = subsystem.replace('_driver_api', )
        fp.write((driver_macro_tpl % {'driver_lower': subsystem.lower(), 'driver_upper': subsystem.upper()}))
    fp.write('#endif /* DRIVER_VALIDATION_GEN_H */\n')