beautypg.com

3 device driver structure, 1 device driver files, Device driver structure – Maxim Integrated 78Q8430 ST 5100/OS-20 with NexGen TCP/IP Stack User Manual

Page 7: Device driver files, File partitions, File directory structure, Table 1: teridian source file tree, Table 2: st/os-20 configuration source file tree

background image

UM_8430_005

78Q8430 Driver Manual for ST5100/OS-20 with NexGen TCP/IP Stack

Rev. 1.0

7

3 Device Driver Structure

This 78Q8430 ST/OS-20 device driver software is a customized version of the generic Teridian Ethernet
device driver software. It is configured with wrapper code for the NexGen TCP/IP protocol stack and
other protocols (RTSP, RTP) to stream the MPEG-2 transport stream. The wrapper code connects the
generic device driver API to the NexGen TCP/IP stack.

3.1 Device Driver Files

3.1.1 File

Partitions

The device driver software includes 4 groups of files:

• OS and platform independent files:

o

tsccore.c

o

commem.h

o

comregs.h

• TSC OS and platform dependent files:

o

tscport.c

o

tscport.h

o

[optional] wrapper files: ether_tsc78q8430.c, ether_tsc78q8430.h

• Target OS and platform dependent files:

o

targets.cfg

o

mb390_mem.cfg

• Modified TCP/IP protocol stack files:

o

ipncs.c

o

tcpncs.c

o

udpncs.c

3.1.2 File

Directory

Structure

Table 1

,

Table 2

and

Table 3

list the directory and file structure for the 78Q8430 driver software and a

brief description of each file.

Table 1: Teridian Source File Tree

Directory Path

File Name

File Description

ether_tsc78q8430.c

Wrapper file which includes Teridian source files

tscport.c

OS and H/W dependent code

tsctest.c

Test application code

C:\ipstba5\src\nexgen_drv

tsccore.c

Core driver code

ether_tsc78q8430.h

Wrapper file which include Teridian header files

tscport.h

OS and H/W dependent headers

commem.h

Common memory, data structure declaration

C:\ipstba5\include

comregs.h 78Q8430

Register

declaration


Table 2: ST/OS-20 Configuration Source File Tree

Directory Path

File Name

File Description

targets.cfg

IPSTB Target configuration

C:\ipstba5\config\platform

mb390_mem.cfg

FMI bus configuration for 78Q8430 registers and
SRAM