This function registers a new virtual device which includes device name, base address, size and handler.