how to use I2C port

I want to use I2C pins on GPIO port of beagleboard. Can anybody tell
me how to access and program that pins.
thanks
anupam