From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 15 10:29:08 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05A05106566B for ; Tue, 15 Dec 2009 10:29:08 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 955C08FC15 for ; Tue, 15 Dec 2009 10:29:07 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 4so148490eyf.9 for ; Tue, 15 Dec 2009 02:29:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=DMigq1/LoUakIfNuXRZp2UDMoKjRtyeggb8yY1KnlGA=; b=DvOA8EItXXfIQQqSVAF0ZvGfeNH+hSTQI/ceE3foA3EnNgmy4JjG66JLJYSUUsvePo Usx0n8caE1LoLPTy+jWvrBTS/QbeMqLU74sY2ngI8YfQiIhFDQLkHlFGNO5iiC5rAtkj CmyRakQZm6qrhXGut4OHKAQJl6J5lrNH+fRMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cP/2/YU7LCCTwZ3vH8BBqb6hiDpA5RaT5EUyNm+o2iC9iz8R3NGWpRJVOawRXQ0aVz thLQydHbZ1Wx1KTvGZcAxyeHiIho/SoYuRoSn3efbQRIFPcBb8eJ1QJdb4IJJ+HvWEg+ hoE/7Oh5FAKCVpJ8Ec+Cmx7ceiInlMQ4LC004= MIME-Version: 1.0 Received: by 10.216.85.147 with SMTP id u19mr918647wee.88.1260871418461; Tue, 15 Dec 2009 02:03:38 -0800 (PST) Date: Tue, 15 Dec 2009 11:03:38 +0100 Message-ID: <4e6cba830912150203o175aedbds76206b78819c1414@mail.gmail.com> From: Giovanni Trematerra To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: if_init, if_start callback calling X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2009 10:29:08 -0000 Hi all, I'm trying to write a FreeBSD driver for RTL8187SE PCIe. I'm a bit confusing about if_init and if_start callback. I'd like to know when they are called and what are supposed to do. Thank you for your time. -- Trematerra Giovanni From owner-freebsd-drivers@FreeBSD.ORG Tue Dec 15 16:43:04 2009 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98EA210656A4 for ; Tue, 15 Dec 2009 16:43:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6B9D68FC25 for ; Tue, 15 Dec 2009 16:43:04 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 21A9946B35; Tue, 15 Dec 2009 11:43:04 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 7D0288A01D; Tue, 15 Dec 2009 11:43:03 -0500 (EST) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Tue, 15 Dec 2009 08:54:18 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20091103; KDE/4.3.1; amd64; ; ) References: <4e6cba830912150203o175aedbds76206b78819c1414@mail.gmail.com> In-Reply-To: <4e6cba830912150203o175aedbds76206b78819c1414@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912150854.18071.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 15 Dec 2009 11:43:03 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Subject: Re: if_init, if_start callback calling X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2009 16:43:04 -0000 On Tuesday 15 December 2009 5:03:38 am Giovanni Trematerra wrote: > Hi all, > I'm trying to write a FreeBSD driver for RTL8187SE PCIe. > I'm a bit confusing about if_init and if_start callback. > I'd like to know when they are called and what are supposed to do. Do the notes in ifnet(9) help? -- John Baldwin