modify the uart driver control function.