02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

Table H-4<br />

MUX Interface Routines (Continued)<br />

MUX Routine<br />

muxMCastAddrDel( )<br />

muxMCastAddrGet( )<br />

muxUnbind( )<br />

muxDevStop( )<br />

muxDevUnload( )<br />

muxPacketDataGet( )<br />

muxPacketAddrGet( )<br />

muxTxRestart( )<br />

muxReceive( )<br />

muxShutdown( )<br />

muxAddrResFuncAdd( )<br />

muxAddrResFuncGet( )<br />

muxAddrResFuncDel( )<br />

Purpose<br />

Deletes a multicast address from the list maintained for a<br />

device.<br />

Gets the multicast address table maintained for a device.<br />

Disconnects a protocol from the MUX.<br />

Stops a device.<br />

Unloads a device.<br />

Extracts the packet data (omitting the link-level data) from a<br />

submitted mBlk and writes it to a fresh mBlk.<br />

Extracts source and destination address data (omitting the<br />

packet data) from a submitted mBlk and writes each address<br />

to its own mBlk. If the local source/destination addresses<br />

differ from the end source/destination addresses, this routine<br />

writes to as many as four mBlks.<br />

If a device unblocks transmission after having blocked it, this<br />

routine calls the stackTxRestartRtn( ) routine associated with<br />

each interested protocol.<br />

Sends a packet up to the MUX from the device.<br />

Shuts down all protocols above this device.<br />

Adds an address resolution function to the address resolution<br />

function list.<br />

Gets a particular address resolution function from the list.<br />

Deletes a particular address resolution function from the list.<br />

The Protocol Data Structure NET_PROTOCOL<br />

For each protocol that binds to a device, the MUX allocates a NET_PROTOCOL<br />

structure. The MUX uses this structure to store information relevant to the<br />

protocol, such as the protocol’s type, its receive routine, and its shutdown routine.<br />

These are chained in a linked list whose head rests in the protocols member of the<br />

END_OBJ structure the MUX uses to manage a device. The NET_PROTOCOL<br />

structure is defined in end.h as follows:<br />

306

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!