Re: Which is the read interface to GPIO?

KIYOHARA Takashi <[email protected]>
Newsgroups gmane.os.netbsd.ports.evbmips
Message-ID <[email protected]>
Hi! Simon,


From: Simon Burge <[email protected]>
Date: Tue, 21 Mar 2006 19:36:16 +1100

> I prefer 3) here.  Using in-kernel gpio ioctl's seems very heavy weight
> for what is needed, and duplicating the logic doesn't seem like the
> best way.  Perhaps the best way is to squirrel away the softc's of the
> primary and secondary GPIO blocks in a few static variables, or maybe
> store them in the devprop database?

The devprop_[sg]et() use sc_dev of softc the first arg.  However, it is
softc that we want.  ;-<
Is softc of the dummy passed to devprop_[sg]et()?  Or, is prop_[sg]et()
called?

--
kiyohara
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.