If I'm understanding you correctly, you want to take a grayscale image as use it as a transparency mask.
Copy the grayscale image. Switch to Quick Mask in the image you wish to mask. Paste. Switch out of Quick Mask. Apply a layer mask. The resulting layer mask will be defined by the grayscale image you'd pasted.