Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2008 08:34:04 +0100
From:      "Alex Hornung" <ahornung@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Driver accessing other drivers/devices ?
Message-ID:  <10fba67b0808220034t2b9598cekbad7c976eed6975f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10fba67b0808220034t2b9598cekbad7c976eed6975f>