Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 2003 12:11:49 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        freebsd-hackers@freebsd.org
Subject:   How to get a device_t
Message-ID:  <20030806101148.GC32228@cicely12.cicely.de>

next in thread | raw e-mail | index | archive | help
I need to add I2C support for a Elan520 based soekris system.
The system has the required GPIO pins and there is the iicbb driver
to handle generic bitbang code - just needing a simple layer driver to
enable, disable and read pins.
But unlike normal isa/pci hardware probing the existence of the GPIO
line is a bit difficult.
The current elan-mmcr.c gets started from i386/pci/pci_bus.c at
host bridge probing, because that's seems to be the only place to
safely detect this special CPU.
>From the logicaly standpoint the extensions had to be attached to
nexus, but nowhere is the current code path there is a handle for
nexus or any other device_t.

-- 
B.Walter                   BWCT                http://www.bwct.de
ticso@bwct.de                                  info@bwct.de



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