[S390] cio: move scsw helper functions to header file