Surfactant immune function is primarily attributed to two proteins: SP-A and SP-D. These proteins can bind to sugars on the surface of pathogens and thereby opsonize them for uptake by phagocytes. It also regulates inflammatory responses and interacts with the adaptive immune response.