drivers: a lot of refine to globalfifo

Signed-off-by: Barry Song <21cnbao@gmail.com>