Memory functions for adapter

Seems like platforms which do not have a dedicated video card will
return 0 for both video and normal memory.