Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2005 10:02:45 -0700
From:      "Singh, Vijay" <Vijay.Singh@netapp.com>
To:        "Dinesh Nair" <dinesh@alphaque.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: correct use of bus_dmamap_sync
Message-ID:  <637A278D8D0DBC438EA5E75C6E1818B9063C0E64@magenta.hq.netapp.com>

next in thread | raw e-mail | index | archive | help
man  bus_dma(9)

> -----Original Message-----
> From: Dinesh Nair [mailto:dinesh@alphaque.com]=20
> Sent: Tuesday, October 25, 2005 7:03 AM
> To: Dinesh Nair
> Cc: freebsd-hackers@freebsd.org
> Subject: Re: correct use of bus_dmamap_sync
>=20
>=20
>=20
> On 10/25/05 21:15 Dinesh Nair said the following:
> > the pseudo code for the read and write, called during an interrupt=20
> > cycle, are:
> >=20
> > rx_func()
> > {
> >     POSITION A
> >=20
> >     while(there_is_some_data) {
> >         memcpy(somebuf, readbuf)
> >     }
> >     POSITION B
> > }
> >=20
> > tx_func()
> > {
> >     POSITION C
> >=20
> >     while(there_is_some_data) {
> >         memcpy(writebuf, somebuf)
> >     }
> >     POSITION D
> > }
> >=20
> > the question is, what op should i use for bus_dmamap_sync=20
> in positions=20
> > A, B, C and D ?
>=20
> responding to my own request, i mean which of=20
> BUS_DMASYNC_PREREAD, BUS_DMASYNC_POSTREAD,=20
> BUS_DMASYNC_PREWRITE, BUS_DMASYNC_POSTWRITE should i use, and where ?
>=20
> --=20
> Regards,                           /\_/\   "All dogs go to heaven."
> dinesh@alphaque.com                (0 0)    http://www.alphaque.com/
> =
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D----oOO--(_)--OOo----=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> +=3D=3D+
> | for a in past present future; do                           =20
>             |
> |   for b in clients employers associates relatives=20
> neighbours pets; do   |
> |   echo "The opinions here in no way reflect the opinions of=20
> my $a $b."  |
> | done; done                                                 =20
>             |
> =
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> +=3D=3D+
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list=20
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to=20
> "freebsd-hackers-unsubscribe@freebsd.org"
>=20



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