pdata now stored directly inside port_t.
removed pdata from port memory struct.