From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3129 invoked from network); 14 Nov 2021 05:38:20 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2021 05:38:20 -0000 Received: from duke.felloff.net ([216.126.196.34]) by 4ess; Sun Nov 14 00:31:12 -0500 2021 Message-ID: <62D93F1A2C6C5AFCD034D1DDEFB31C65@felloff.net> Date: Sun, 14 Nov 2021 06:31:01 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org In-Reply-To: <0100017d1b4e37b3-3803a9cc-799e-4bbc-bd38-539fad5e750c-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: mobile polling-based configuration-based HTTP over SSL framework rails-oriented generator Subject: Re: [9front] Porting RTL8111 (ether8169) driver to bcm64 Reply-To: 9front@9front.org Precedence: bulk > Are there already similar calls in 9front and I’ve (stupidly) overlooked them? no. i/o space is not supported on arm. this has nothing todo with 9front. i'm pretty sure the rtl chip will provide a membar with memory mapped registers in addition to the i/o port interface, you do not need special calls for this. just vmap() the and access the registers with loads and stores. get the datasheet and programmers manual for the rtl chip. > Should it be as simple as adding the platform dependent calls in the driver > to get it to work on the Pi, or is there more work that needs to be done to > the bcm64 PCIe interface? for dma, you need to manually keep the caches coherent with the device using dmaflush() calls (see in port/usbxhci.c as an example). this is the biggest reason most drivers cannot direcly be used on arm, tho shouldnt be too difficult to make it work. -- cinap