drm/amd: make a type-safe cgs_device struct. (v2)