at-risk loss vs passive loss

can someone explain the limitations to both of these...for non rental activities where you materially participate