VxWorks Reference Manual : Libraries

wdbNetromPktDrv

NAME

wdbNetromPktDrv - NETROM packet driver for the WDB agent

ROUTINES

wdbNetromPktDevInit( ) - initialize a NETROM packet device for the WDB agent

DESCRIPTION

This is a lightweight NETROM driver that interfaces with the WDB agent's UDP/IP interpreter. It allows the WDB agent to communicate with the host using the NETROM ROM emulator. It uses the emulator's read-only protocol for bi-directional communication. It requires that NetROM's udpsrcmode option is on.

SEE ALSO

wdbNetromPktDrv


Libraries : Routines

wdbNetromPktDevInit( )

NAME

wdbNetromPktDevInit( ) - initialize a NETROM packet device for the WDB agent

SYNOPSIS

void wdbNetromPktDevInit
    (
    WDB_NETROM_PKT_DEV * pPktDev,     /* packet device to initialize */
    caddr_t              dpBase,      /* address of dualport memory */
    int                  width,       /* number of bytes in a ROM word */
    int                  index,       /* pod zero's index in a ROM word */
    int                  numAccess,   /* to pod zero per byte read */
    void (*              stackRcv)(), /* callback when packet arrives */
    int                  pollDelay    /* poll task delay */
    )

DESCRIPTION

This routine initializes a NETROM packet device. It is typically called from usrWdb.c when the WDB agents NETROM communication path is selected. The dpBase parameter is the address of NetROM's dualport RAM. The width parameter is the width of a word in ROM space, and can be 1, 2, or 4 to select 8-bit, 16-bit, or 32-bit width respectivly (use the macro WDB_NETROM_WIDTH in configAll.h for this parameter). The index parameter refers to which byte of the ROM contains pod zero. The numAccess parameter should be set to the number of accesses to POD zero that are required to read a byte. It is typically one, but some boards actually read a word at a time. This routine spawns a task which polls the NetROM for incomming packets every pollDelay clock ticks.

RETURNS

N/A

SEE ALSO

wdbNetromPktDrv