S390 device map

as it always returns from this function, the content should be moved to a separate function