Start to extract generic interface from the sd driver implementation.