02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents<br />

Stopping the Driver Without Unloading It: endStop( ) ................ 294<br />

Handling a Polling Send: endPollSend( ) ....................................... 295<br />

Handling a Polling Receive: endPollReceive( ) ............................. 296<br />

Adding a Multicast Address: endMCastAddrAdd( ) ................... 296<br />

Deleting a Multicast Address: endMCastAddrDel( ) ................... 297<br />

Getting the Multicast Address Table: endMCastAddrGet( ) ....... 298<br />

Forming an Address into a Packet for Transmission:<br />

endAddressForm( ) ............................................................. 299<br />

Getting a Data-Only mBlk: endPacketDataGet( ) ......................... 299<br />

Return Addressing Information: endPacketAddrGet( ) ............... 300<br />

H.6 Writing Protocols That Use the MUX API .................................................... 301<br />

Protocol Startup .................................................................................. 302<br />

Sending Data ...................................................................................... 303<br />

Receiving Data .................................................................................... 303<br />

Supporting Scatter/Gather Devices ................................................ 304<br />

Protocol Transmission Restart .......................................................... 304<br />

Protocol Shutdown ............................................................................ 305<br />

H.6.1 Protocol to MUX API ......................................................................... 305<br />

The Protocol Data Structure NET_PROTOCOL ............................ 306<br />

Passing a Packet Up to the Protocol: stackRcvRtn( ) .................... 307<br />

Passing Error Messages Up to the Protocol: stackError( ) ........... 308<br />

Shutting Down a Protocol: stackShutdownRtn( ) ......................... 309<br />

Restarting Protocols: stackTxRestartRtn( ) ..................................... 310<br />

H.6.2 Network Layer to Data Link Layer Address Resolution ............. 310<br />

H.7 Converting an END Driver from RFC 1213 to RFC 2233 ........................... 311<br />

I Writing a SCSI-2 Device Driver ............................................................................... 317<br />

I.1 Introduction ...................................................................................................... 317<br />

I.2 Overview of SCSI ............................................................................................. 318<br />

I.3 The SCSI Libraries ............................................................................................ 321<br />

I.3.1 SCSI Manager (scsiMgrLib) .............................................................. 322<br />

I.3.2 SCSI Controller Library (scsiCtrlLib) .............................................. 324<br />

I.3.3 SCSI Direct Access Library (scsiDirectLib) .................................... 324<br />

xvii

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

Saved successfully!

Ooh no, something went wrong!