From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 17:57:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8E2410656BA for ; Sat, 7 Feb 2009 17:57:22 +0000 (UTC) (envelope-from amer.alhabsi@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7328FC12 for ; Sat, 7 Feb 2009 17:57:22 +0000 (UTC) (envelope-from amer.alhabsi@gmail.com) Received: by ewy14 with SMTP id 14so2285504ewy.19 for ; Sat, 07 Feb 2009 09:57:21 -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:content-transfer-encoding; bh=9meKTF0xhE0laWvLI3uSORDa1KPjV8ZTwLjT9G5PIhQ=; b=qAwy5VzYp5NqDeFnzD6US2lGzUlukCOTqWMiPfs20m95J5vr9ArlTQNfiZ/Vu4tVpP Al6wpimg7t3eZcA+IWoktNSfPJou44DnhUidT+sWqF3ESO3qvh50Pmk1Q3T0M0JUrDgt TBuNDxl7icrq4/4Xw9oNzMfT+jMKSfQD6hgpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=CIexrh15TAj5a11mRbVR6vKWPdrUf4ZT8+Jg4lu8g+j1ECRsSc1nhbOS9JVRzvB6yu g6roIjwHxLtftfj3ztFz403LHVFMojucKl/TCc6WjeK7px8hldr5ai8HzmQ/0cXiqaem 4XxJr1BjI/X6O19lc9e3QP9ESfy13U+Kd/Wyg= MIME-Version: 1.0 Received: by 10.210.89.4 with SMTP id m4mr669872ebb.29.1234028219110; Sat, 07 Feb 2009 09:36:59 -0800 (PST) Date: Sat, 7 Feb 2009 21:36:59 +0400 Message-ID: From: Amer Alhabsi To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: How to compile a network driver given source code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 17:57:23 -0000 Hi, I have Benq Joybook R43 notebook. It has network interface based on SiS 191. However, I can't configure it as it does not show up in ifconfig nor in sysinstall/configure/networking/interfaces. Dmesg says: No Driver Attached. After some search I found that someone has written a driver but it hasn't been put int the official FreeBSD release. I want to try my luck with the driver. My question is where to place the source code files? and how to compile it (I assume it can be part of a kernel rebuild if placed in the right directory) The source code for the driver consists of the 3 files: if_sis19x.c, if_sis19xreg.h and Makefile. Thanks, Amer,