From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 22 07:59:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C8411065683 for ; Fri, 22 Aug 2008 07:59:23 +0000 (UTC) (envelope-from ahornung@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id 040EF8FC0C for ; Fri, 22 Aug 2008 07:59:22 +0000 (UTC) (envelope-from ahornung@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so596787rvf.43 for ; Fri, 22 Aug 2008 00:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ozJna3v5D6gop/K6TkfYe457Kx2hVCtpOmX3P9tKLe8=; b=PmsKRYs3qqTVdVYPrst4JDWmcUGQTsTqWUVRtCavxIY5YspsevMPQG0nOcn7b3cqhJ wWDscH3w6ZJhVhsqJlcFdyox1F+KuDMjgeLpRHAJU5Eh7pGVT6rH0a+VtVrjxhgT7EEj lTQL2bMLdo6l5yM+p/eW2gxqHVGPFlwKvIMiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=DCRx0J+eModuBWl8gSxf8KGL3Gq4aFXwXEEnnbUs6Z5eHPmO3BID5RI9ygaR+5iIwF P0eoSYhW44g2Q9btTRiC6bEapvhXjT7XPYaXFzYeaawEHHbMswW2UWlJ7qLU6l9rJoax GK6Uk8EU0TtIjvGEMy48hKEOTml8P7toKDtoQ= Received: by 10.141.98.18 with SMTP id a18mr386402rvm.60.1219390444198; Fri, 22 Aug 2008 00:34:04 -0700 (PDT) Received: by 10.141.96.2 with HTTP; Fri, 22 Aug 2008 00:34:04 -0700 (PDT) Message-ID: <10fba67b0808220034t2b9598cekbad7c976eed6975f@mail.gmail.com> Date: Fri, 22 Aug 2008 08:34:04 +0100 From: "Alex Hornung" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Driver accessing other drivers/devices ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2008 07:59:23 -0000 Hello, I need to access the hard disk from within a driver that is not a FS. I would also need to get a list of PCI devices connected. Is there a way I can access these devices directly, at least in the first case, issuing directly ATA/IDE commands to the hard disk? In the case of PCI it would be even nicer to be able to communicate with the pci driver... but if that's not possible, it's also ok if I can access the PCI bus controller directly. The driver I'm writing is not a PCI or PCI device driver either. Hope someone can help me out on this one, it's important that there's no user-space code... Thanks in advance, Alex