Splitted internal stuff from port.h to priv/portP.h