MC32_LOAD_RX_RING

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

mc32_load_rx_ring - load the ring of receive buffers  

SYNOPSIS

"SYNOPSIS"

int mc32_load_rx_ring (struct net_device * dev);  

ARGUMENTS

dev
3c527 to build the ring for
 

DESCRIPTION

This initalises the on-card and driver datastructures to the point where mc32_start_transceiver can be called.

The card sets up the receive ring for us. We are required to use the ring it provides although we can change the size of the ring.

We allocate an sk_buff for each ring entry in turn and initalise its house-keeping info. At the same time, we read each 'next' pointer in our rx_ring array. This reduces slow shared-memory reads and makes it easy to access predecessor descriptors.

We then set the end-of-list bit for the last entry so that the card will know when it has run out of buffers.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 05:30:45 GMT, October 06, 2005