.\" 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 "S2IO_INIT_NIC" "9" "09 October 2005" "" ""
.SH NAME
s2io_init_nic \- Initialization of the adapter .
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int __devinit s2io_init_nic (struct pci_dev * \fIpdev\fB, const struct pci_device_id * \fIpre\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIpdev\fB\fR
structure containing the PCI related information of the device.
.TP
\fB\fIpre\fB\fR
List of PCI devices supported by the driver listed in s2io_tbl.
.SH "DESCRIPTION"
.PP
The function initializes an adapter identified by the pci_dec structure.
All OS related initialization including memory and device structure and
initlaization of the device private variable is done. Also the swapper
control register is initialized to enable read and write into the I/O
registers of the device.
.SH "RETURN VALUE"
.PP
returns 0 on success and negative on failure.