Man gets seven years in federal prison over cocaine