From owner-freebsd-drivers@freebsd.org Wed Mar 25 06:08:43 2020 Return-Path: Delivered-To: freebsd-drivers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 37BB22773E8 for ; Wed, 25 Mar 2020 06:08:43 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48nHjr6f8pz4ndk for ; Wed, 25 Mar 2020 06:08:32 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by mail-ot1-x336.google.com with SMTP id k26so945273otr.2 for ; Tue, 24 Mar 2020 23:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RilUXGDUq7kVlPxEJDVWu/xx6vCuhgDO+dxOT2iUVF0=; b=oRtVwY0FTzta9Ze5tLPie7I8vvs2L2H5h20hIEhkLPWHReUeDZNfT16gCNiwVew8j7 NWZyTIgGl8uzpgsYk4z9roi1xgCXdCm2YXzdAgqgHKwjg2XzDuLDmX3fmuTkn6W8XetV SSLmSd9bT6NUPY4VpxbtRJCIQ5dEAe79BMrtiIUHKmF6uVvC0va3OmMbn9R/lm9Uqbfc AIYxjQKNycqJe0BZtjqTyFgzf76RhUbZlntGQddXAwCtRpKt552wo20l8MsliLJQncP/ /f9vDHJ/X/JX/5FYLohU8XoJf4En1gHNX+39U8C/L4NYgBJ9xTs9xxnC6i/EEqR+Ygjn 0ENQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RilUXGDUq7kVlPxEJDVWu/xx6vCuhgDO+dxOT2iUVF0=; b=ZLl1CifzqmLOrjtSHrRIzXyim461J2yFIhr3/D7lLayki6w+rhR2GqzJquoyBlLByp jRgK1+q02WMGXN71yPjShQOQDZ3M+TcuDUuikV2OXaIsBfOKu7HgXSYTGbmEF5tsQ0J2 48Pov1gm9hP5kaP0uGENJZMkn31uTNEzT1Uxh2/Pi9lztjzNu7xjgfE2FgXrxqzHEB0F FGE+DigvMk8d6cPYcFyzzpp4g5C/7u9WaJrrsy5UcS6kZWL/QjRGSlnlJT8DyAomW3ky zzgxsq0If3hvGeAUZpiqT4xVfo9sqbiW0Y26pxvxsbQBRAyQinY97oQt5saMfYrkuGDP 4Mzw== X-Gm-Message-State: ANhLgQ02TE6FAC7Zih8MLfOzLKJ/9hGuHuefUmwhBq3DnvEiCStBWIJl FjEH6lIAbh2WoOI70XAK7ikmLgxSBkwjsViLitAFN0kV X-Google-Smtp-Source: ADFU+vsXsBHx3CLSc0JONUauhKH5qkGfm7TXMoRy1MxIttTXpWWl93zS9HDrpcNQ8nu66RbzSyp5H5HWIX0LC0Z372Y= X-Received: by 2002:a05:6830:23a3:: with SMTP id m3mr1258113ots.265.1585116504305; Tue, 24 Mar 2020 23:08:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mehmet Erol Sanliturk Date: Wed, 25 Mar 2020 09:07:47 +0300 Message-ID: Subject: Re: Getting started at writting device drivers for FreeBSD To: Igor Vilhalba Cc: "freebsd-drivers@freebsd.org" X-Rspamd-Queue-Id: 48nHjr6f8pz4ndk X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oRtVwY0F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mesanliturk@gmail.com designates 2607:f8b0:4864:20::336 as permitted sender) smtp.mailfrom=mesanliturk@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[outlook.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-8.45), ipnet: 2607:f8b0::/32(-0.38), asn: 15169(-0.48), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; URIBL_BLOCKED(0.00)[nostarch.com.multi.uribl.com,stackexchange.com.multi.uribl.com]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[6.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 06:08:43 -0000 On Wed, Mar 25, 2020 at 4:39 AM Igor Vilhalba wrote: > Hello everyone! I asked the following at Stack Exchange< > https://unix.stackexchange.com/questions/574768/get-started-at-writing-device-drivers-for-freebsd?noredirect=1#comment1070055_574768> > and was told to try mailing you for solving this: > > " I just decided to give FreeBSD a try last week and found out that my > wireless card (Ralink rt3290) isn't supported. > > I am good at C - and I know I have to for this task - and am very fond of > Assembly, so I am thinking about writing a driver for ir. > However, I have absolutely no experience with driver programming and would > like to know your opinion about whether it is feasible or not to do so. I > don't know if it helps, but all of the three Linux distros I have installed > (Arch, Manjaro and openSUSE) have all the necessary drivers for my machine. > > I recently found out that I have a huge interest how the computer and the > OSes (mainly *nix) work so I am willing to study deeply any good reading > material you can point out for me. Also, if you have any advices and/or > experience in the field, I will be grateful for your help. > > Thank you very much for your attention and help! I really appreciate it. " > > Thank you in advance! > > Igor de Araujo Vilhalba > _______________________________________________ > I do not know whether the following book may be useful for you : https://nostarch.com/bsddrivers.htm FreeBSD Device Drivers A Guide for the Intrepid by Joseph Kong May 2012, 352 pp. ISBN-13: 978-1-59327-204-3 Mehmet Erol Sanliturk