Rewrite driver_funcs.h