psxbios: Merging improved card_info function from upstream