For the Ravens, it's simple: beat the Bengals Sunday, and no matter what else happens, they have a bye and at least one home playoff game.
They'll be the No. 1 seed, with home games until the Super Bowl, if they win and the Patriots lose. They'll be the No. 2 seed if they win and the Patriots win.
If the Ravens lose or tie the Bengals and the Steelers beat or tie the Cleveland Browns, the Ravens will be the No. 5 seed. They'd have to go on the road to play the winner of the AFC West, either the Denver Broncos or the Oakland Raiders.
Cincinnati, meanwhile, will be playing for the final wild card spot. Win, and the Bengals are in. Lose, and they'd need the New York Jets and either the Raiders or Broncos to lose or tie their games to qualify.