Simple-PL011-RTDM-driver bcm2835 and ringbuf libraries are taken from internet, my driver code is rtdm_pl011.c and header file.