.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "MC32_CLOSE" "" "06 October 2005" "" "" .SH NAME mc32_close \- user configuring the 3c527 down .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int mc32_close (struct net_device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR 3c527 card to shut down .SH "DESCRIPTION" .PP The 3c527 is a bus mastering device. We must be careful how we shut it down. It may also be running shared interrupt so we have to be sure to silence it properly .PP We indicate that the card is closing to the rest of the driver. Otherwise, it is possible that the card may run out of receive buffers and restart the transceiver while we're trying to close it. .PP We abort any receive and transmits going on and then wait until any pending exec commands have completed in other code threads. In theory we can't get here while that is true, in practice I am paranoid .PP We turn off the interrupt enable for the board to be sure it can't intefere with other devices.