From owner-freebsd-hackers Wed Sep 5 1:45:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.68.253]) by hub.freebsd.org (Postfix) with ESMTP id BB1D737B405 for ; Wed, 5 Sep 2001 01:45:44 -0700 (PDT) Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1]) by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id RAA25984 for ; Wed, 5 Sep 2001 17:44:17 +0900 (JST) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Message-Id: <200109050844.RAA25984@shidahara1.planet.sci.kobe-u.ac.jp> To: hackers@freebsd.org Subject: Re: IICBUS_READ In-reply-to: Your message of "Wed, 05 Sep 2001 12:34:48 +0400." <20010905083448.C4D7D8D62@faerie.gib.ru> Date: Wed, 05 Sep 2001 17:44:17 +0900 From: Takanori Watanabe Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010905083448.C4D7D8D62@faerie.gib.ru>, s さんいわく: > > >I've look at /sys/dev/iicbus/iiconf.c: > >> int >> iicbus_read(device_t bus, char *buf, int len, int *read, int last, int delay >) >> { >> struct iicbus_softc *sc = (struct iicbus_softc *)device_get_softc(bus); >> >> /* a slave must have been started with the appropriate address */ >> if (!sc->started || !(sc->started & LSB)) >> return (EINVAL); >> >> return (IICBUS_READ(device_get_parent(bus), buf, len, read, last, de >lay)); >> } > >Where is defined IICBUS_READ ? /sys/${MACHINE}/compile/${YOURCONF}/iicbus_if.h This is generated from /sys/dev/iicbus/iicbus_if.m . Takanori Watanabe Public Key Key fingerprint = 2C 51 E2 78 2C E1 C5 2D 0F F1 20 A3 11 3A 62 2A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message