From owner-freebsd-drivers@freebsd.org Wed Mar 25 01:38:03 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 CD0E8271602 for ; Wed, 25 Mar 2020 01:38:03 +0000 (UTC) (envelope-from igor.vilhalba@outlook.com) Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-oln040092010054.outbound.protection.outlook.com [40.92.10.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48n9jW0P2dz46vY for ; Wed, 25 Mar 2020 01:37:50 +0000 (UTC) (envelope-from igor.vilhalba@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nk3vz6NBj+n/fURRCnZJpejHXwVcSWx5nUVXpb0pUQcOD990/uc5s4Jrd2xhCND6tWj5mj/4WtUsMWoly1I+O0oGqDHhjqlMYnogmr95U8nEUMP7NEehBZ2YWLS99T6SkgsNFWKgTJOFqYXmHAyF9mIvIT4OwK1NbpPgnzSxu2bwoLxBzaRmNE8rO6bdCJlVf4TqJy3LXxa1hsp/RTn1kQ+Jw/fox63HhQlvH8tXXnZpdhtW3XzY9k0++Gf0LwQReS68HKkHKxNeYtBQIf6m2QbrGZDM3+BPRKgi3vIk1i4I7DnX0+/4EW9+9rWXuX/fx7SzScLO8M9VkHptofyWOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3VdQ/JQW2xPMim8zCOFf8hkkhRYNRphd6qm/vUDzZ8k=; b=ZbYKI7KhG/ZKmghcgRai5fKe9+CRMxQ8i9IPeAaUHXsl8KNHcNcjxrrdonNOn8RH80e9eZfipn9bx2AQHEO2sjGGz+UqCrzl0l+SMS6U7xNty3wq6tKNtRr44L373x4EQNIazxcstwWX2UJ6kxvQNhgUyTNpQTpOJueZa4NTCrEDIEpLsfg8AVDtIrdlyKgTM8vbxhlQV6FzNz7GWyzl9RSiq+JTc1e+nCF2vGOL3Tn2EtnDnVmZpNRtToA5wXWNLknmeLIMTYhvN/dehJ8GwBnF2LDxDeM3WOxuFHFqyAMs5CheBWolsaI6an3RlDSLHN44PzmLUL55tYeEqhINCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3VdQ/JQW2xPMim8zCOFf8hkkhRYNRphd6qm/vUDzZ8k=; b=jBP6R86nBzlxLcPUvDmBxJqbBcUj6ZgsfSl5kjPY8UpqfGUy1FeX2+Rahfs2JhQuy/b9+kmdlxwBDRxczxgoTm9FQV9BfX66PR9j0uCZwiDOjC96NLLPZSt4OrF3ZmI+xUvzutiOSf9d5G/JlOaKT3Zcb/uePULDjet1+OAe3psPu0wiLctlBqotRkTdJ+da0kjhgLvk9HTaaM4o+pTTrLfEf1clnar4hOCfEx2CncAf0y9orUJNwurPy4mSJXcaYrR9B5JZ5DlnprxJttDfJcZr1gS/L8837gCr10/joaPIeUfx7glRXP35cG1yqrm83wE5HD/pijeZXciXP/1Gxw== Received: from BN3NAM04FT062.eop-NAM04.prod.protection.outlook.com (10.152.92.53) by BN3NAM04HT169.eop-NAM04.prod.protection.outlook.com (10.152.92.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Wed, 25 Mar 2020 01:37:42 +0000 Received: from CY4PR22MB0198.namprd22.prod.outlook.com (10.152.92.52) by BN3NAM04FT062.mail.protection.outlook.com (10.152.92.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Wed, 25 Mar 2020 01:37:42 +0000 Received: from CY4PR22MB0198.namprd22.prod.outlook.com ([fe80::218c:39dc:78e4:e939]) by CY4PR22MB0198.namprd22.prod.outlook.com ([fe80::218c:39dc:78e4:e939%11]) with mapi id 15.20.2835.023; Wed, 25 Mar 2020 01:37:42 +0000 From: Igor Vilhalba To: "freebsd-drivers@freebsd.org" Subject: Getting started at writting device drivers for FreeBSD Thread-Topic: Getting started at writting device drivers for FreeBSD Thread-Index: AQHWAkS5bxaSA2ElnEGBeg6lMuQJMA== Date: Wed, 25 Mar 2020 01:37:42 +0000 Message-ID: Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8FA4C82C04D115F75CE27D215B1CC693F2B976241ED87574E2897C233234B8F4; UpperCasedChecksum:B1752DAF64E3031CA57FC0DAB623003FD9FAC05C82CF8B5942FC59FD4AC8762B; SizeAsReceived:6720; Count:42 x-tmn: [okfqO9Vu9ueKKLP/7XxnNu+Si95pQ4LX] x-ms-publictraffictype: Email x-incomingheadercount: 42 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: d041171f-dd86-4041-af94-08d7d05d1c73 x-ms-traffictypediagnostic: BN3NAM04HT169: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wuxhcxXBrJTY/kD4cRRJGaXQ+7Sn1hu5qyICTR2DJFmoihUJOiQl1x7ekxeMHftGlzmu8QS+591YfZUTp/yL/6U4/R1kdDbIfSrgEldmxZiREqN2mfA5eEw2oWWNEkNCuPfDFIhorHIdxmr8hT9z2kogS+BRNXV3kFp3DoXWsVEhfEH+gUSPcs/5XHjMFbV69xPibRTePpkLY+03TJck+vINlkYZsNe3H+2oI6TWqV8= x-ms-exchange-antispam-messagedata: H37dGOc4gLUijYEPdFZ2ql1RhJcrysfrpY1bkNwC8XGSt1NgA994bmPHf2WbvYHrik446c7cs1Sumir+5P9HL0zttCc2GQi0U0qgs3qff3t7TQaf9rgiJ0pdJ+hQDfznCCAbVZ6rROTCWQANKsWizQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: d041171f-dd86-4041-af94-08d7d05d1c73 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2020 01:37:42.3494 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT169 X-Rspamd-Queue-Id: 48n9jW0P2dz46vY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=jBP6R86n; dmarc=pass (policy=none) header.from=outlook.com; spf=pass (mx1.freebsd.org: domain of igor.vilhalba@outlook.com designates 40.92.10.54 as permitted sender) smtp.mailfrom=igor.vilhalba@outlook.com X-Spamd-Result: default: False [-4.00 / 15.00]; MIME_TRACE(0.00)[0:+,1:+,2:~]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; URIBL_BLOCKED(0.00)[outlook.com.multi.uribl.com,stackexchange.com.multi.uribl.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; FREEMAIL_FROM(0.00)[outlook.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[outlook.com:+]; DMARC_POLICY_ALLOW(-0.50)[outlook.com,none]; RCVD_IN_DNSWL_NONE(0.00)[54.10.92.40.list.dnswl.org : 127.0.3.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; IP_SCORE(0.00)[ipnet: 40.64.0.0/10(-3.75), asn: 8075(-3.12), country: US(-0.05)]; RWL_MAILSPIKE_POSSIBLE(0.00)[54.10.92.40.rep.mailspike.net : 127.0.0.17]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[outlook.com]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; ARC_ALLOW(-1.00)[i=1]; DWL_DNSWL_NONE(0.00)[outlook.com.dwl.dnswl.org : 127.0.3.0] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 01:38:03 -0000 Hello everyone! I asked the following at Stack Exchange and was told to try mailing you f= or solving this: " I just decided to give FreeBSD a try last week and found out that my wire= less 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 A= ssembly, 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 d= on'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 O= Ses (mainly *nix) work so I am willing to study deeply any good reading mat= erial you can point out for me. Also, if you have any advices and/or experi= ence 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