MC32_COMMAND

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

 

NAME

mc32_command - send a command and sleep until completion  

SYNOPSIS

"SYNOPSIS"

int mc32_command (struct net_device * dev, u16 cmd, void * data, int len);  

ARGUMENTS

dev
The 3c527 card to issue the command to
cmd
The command word to write to the mailbox
data
A data block if the command expects one
len
Length of the data block
 

DESCRIPTION

Sends exec commands in a user context. This permits us to wait around for the replies and also to wait for the command buffer to complete from a previous command before we execute our command. After our command completes we will complete any pending multicast reload we blocked off by hogging the exec buffer.

You feed the card a command, you wait, it interrupts you get a reply. All well and good. The complication arises because you use commands for filter list changes which come in at bh level from things like IPV6 group stuff.

We have a simple state machine

0 - nothing issued

1 - command issued, wait reply

2 - reply waiting - reader then goes to state 0

3 - command issued, trash reply. In which case the irq takes it back to state 0


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 06:20:58 GMT, October 06, 2005