The SPG is a small concentrated structure of neuronal tissue that resides within the pterygopalatine fossa ( PPF ) in close proximity to the sphenopalatine foramen and is innervated by the maxillary division of the trigeminal nerve .