Date: Mon, 6 Nov 2006 22:36:43 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109393 for review Message-ID: <200611062236.kA6Mahb2028417@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109393 Change 109393 by sam@sam_ebb on 2006/11/06 22:36:35 add ixpnpe_sendandrecvmsg idiom Affected files ... .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_npe.c#2 edit .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_npevar.h#2 edit Differences ... ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_npe.c#2 (text+ko) ==== @@ -1282,3 +1282,15 @@ msg[1] = npe_reg_read(sc, IX_NPEFIFO); return 0; } + +int +ixpnpe_sendandrecvmsg(struct ixpnpe_softc *sc, + const uint32_t send[2], uint32_t recv[2]) +{ + int status; + + status = ixpnpe_sendmsg(sc, send); + if (status == 0) + status = ixpnpe_recvmsg(sc, recv); + return status; +} ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_npevar.h#2 (text+ko) ==== @@ -89,4 +89,6 @@ int ixpnpe_sendmsg(struct ixpnpe_softc *, const uint32_t msg[2]); int ixpnpe_recvmsg(struct ixpnpe_softc *, uint32_t msg[2]); +int ixpnpe_sendandrecvmsg(struct ixpnpe_softc *, const uint32_t send[2], + uint32_t recv[2]); #endif /* _IXP425_NPEVAR_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611062236.kA6Mahb2028417>