UART Registers program ---reg

Hello Every one… i have newly purchased beaglebone black… can anyone send me UART program using UART registers(ARM335)…to establish a serial communication between two systems.

Thanks in Advance