/* Configure the send and receive FIFO components with their base addresses and interrupt masks. Currently the base addresses are defined constants. */
static XStatus ConfigureFifo(XEmac *InstancePtr)
/* Configure the send and receive FIFO components with their base addresses and interrupt masks. Currently the base addresses are defined constants. */
static XStatus ConfigureFifo(XEmac *InstancePtr)
{
	XStatus Result;
	Result = XPacketFifoV100b_Initialize(&InstancePtr->RecvFifo,
					     InstancePtr->BaseAddress +
					     XEM_PFIFO_RXREG_OFFSET,
					     InstancePtr->BaseAddress +
					     XEM_PFIFO_RXDATA_OFFSET);
	if (Result != XST_SUCCESS) {
		return Result;
	}
	Result = XPacketFifoV100b_Initialize(&InstancePtr->SendFifo,
					     InstancePtr->BaseAddress +
					     XEM_PFIFO_TXREG_OFFSET,
					     InstancePtr->BaseAddress +
					     XEM_PFIFO_TXDATA_OFFSET);
	return Result;
}