Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751799AbaBWVJm (ORCPT ); Sun, 23 Feb 2014 16:09:42 -0500 Received: from mail-yh0-f50.google.com ([209.85.213.50]:33403 "EHLO mail-yh0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbaBWVJk (ORCPT ); Sun, 23 Feb 2014 16:09:40 -0500 MIME-Version: 1.0 From: "Gideon D'souza" Date: Mon, 24 Feb 2014 02:39:19 +0530 Message-ID: Subject: Newbie: trying to hack an RTL8101E driver To: netdev@vger.kernel.org Cc: "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So I've submitted some patches for some tiny ongoing refactoring. In the hopes of moving to more _real_ work I've been snooping at the ethernet drivers. I was especially curious about driver code that is running for my own hardware. I found out with lshw that I'm running a Atheros QCA9565 / AR9565 Wireless Network Adapter and a RTL8101E/RTL8102E NIC. For the atheros drivers after much google-fun I came by this wireless.kernel.org/en/users/Drivers/ath9k and (correct me if I'm wrong) there isn't a datasheet for this (and generally atheros) drivers? They've been rev-engg'd ? I went on the the realtek driver, I found this article on writing a realtek driver (http://linuxgazette.net/156/jangir.html) I also looked at Linux Device Drivers, both are pretty old. I also started reading Documentation/pci/* **However** I want to learn to write a driver for some hardware I own, so I can actually see it in action. The 8139 datasheet seems a lot bigger than the 8101E sheet (http://realtek.info/pdf/rtl8101e_datasheet_1.2.pdf) and still doesn't make a lot of sense to me. Questions: > As a newbie when it comes to writing software for hardware, is trying to write a driver for my hardware as a exercise doable/possible/good > Any thing more general purpose I should read about networking and drivers? > Any good resources other updated resources out there on how to use a datasheet to write a driver? Thanks so Much Gideon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/