PS2 controllers use a fairly simple synchronous serial protocol.
here is some info on the PS1 interface:
http://www.gamesx.com/controldata/psxcont/psxcont.htm
from what i understand the PS2 controllers are the same electrically with only very minor changes in the protocol.
There was a pretty good article in the June 2003 Nuts and Volts on using PS controllers