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 />

/*<br />

* Update the counter that determines the number of<br />

* packets that have been output.<br />

*/<br />

pDrvCtrl->idr.ac_if.if_opackets++;<br />

} /* End of while loop. */<br />

} /* End of transmit routine. */<br />

G.3 Porting a Network Interface Driver to the END Model<br />

The MUX-based model for network drivers contains standardized entry points<br />

that are not present in the BSD model. Table G-2 shows some of the analogies<br />

between functions found in BSD 4.3 drivers and those necessary for ENDs.<br />

Fortunately, you should be able to reuse much of the code from the BSD 4.3<br />

network driver.<br />

Table G-2<br />

Required Driver Entry Points and their Derivations<br />

END Entry Points<br />

BSD 4.3 Style Entry Points<br />

endLoad( ) xxattach( )<br />

endUnload( )<br />

N/A<br />

N/A xxReceive( )<br />

endSend( ) xxOutput( )<br />

endIoctl( ) xxIoctl( )<br />

endMCastAddrAdd( )<br />

endMCastAddrDel( )<br />

endMCastAddrGet( )<br />

endPollSend( )<br />

endPollReceive( )<br />

N/A<br />

N/A<br />

N/A<br />

N/A<br />

N/A<br />

264

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

Saved successfully!

Ooh no, something went wrong!