If they are both are on one cable, one should be set to master and the other should be set to slave. Or you could try setting both to cable select and that should work. If they are configured properly they should be automatically recognized in the bios.
Set one to master and the other to slave. It doesn't really matter which one is which. They just have to be different if they are going to be on the same cable.