Implemented initial infrastructure for card drivers.
Needs testing.