Chapter 15: Detailed Example Design (Standard Format)

drivers/avb_v2_04_a/src

The driver source (src) directory contains the low-level driver source C files.

Table 15-12:Driver Source Directory

Name

 

Description

 

 

 

 

 

 

<project_dir>/<component_name>/drivers/

 

 

avb_v2_04/src

 

 

 

Makefile

 

Makefile to compile the drivers; used by Platform studio.

 

 

 

xavb.h

 

Main header file for the XAvb driver. The file provides the

 

 

constants, type definitions and function templates which are

 

 

required to initialize and run the IEEE802.1AS Precise Timing

 

 

Protocol (PTP). This defines the level 1 device driver for the

 

 

Ethernet AVB Endpoint core.

 

 

 

xavb_g.c

 

Contains a configuration structure that holds all the

 

 

configuration values required, per single instance, of the device

 

 

driver.

 

 

 

xavb.c

 

Provides the top-level function calls for the Ethernet AVB

 

 

Endpoint level 1 device driver.

 

 

 

xavb_ptp_packets.c

 

Provides the functions which are required for the creation of PTP

 

 

frames for transmission and for the decode of received PTP

 

 

frames.

 

 

 

xavb_ptp_bmca.c

 

Provides the functions which are required for the PTP Best

 

 

Master Clock Algorithm (BMCA).

 

 

 

xavb_rtc_sync.c

 

Provides the functions which are required to synchronize the

 

 

local version of the Real Time Counter (RTC), when operating as

 

 

a slave, to that of the network clock master.

 

 

 

xavb_hw.h

 

Contains all the constant definitions and the bare minimum of

 

 

functions / function templates which are required for register

 

 

read/write access. This defines the low level 0 device driver for

 

 

the Ethernet AVB Endpoint core.

 

 

 

xavb_hw.c

 

This file partners the xavb_hw.h header file and implements the

 

 

functions for which avb_hw.h contained a template.

 

 

 

Back to Top

 

 

150

www.xilinx.com

Ethernet AVB Endpoint User Guide

 

 

UG492 July 23, 2010

Page 150
Image 150
Xilinx UG492 manual Drivers/avbv204a/src, Detailed Example Design Standard Format