Re: Bus DMA for USB - compilation problems.

2003-01-16 Thread Hiten Pandya
On Wed, Jan 15, 2003 at 10:58:04PM +0100, Thomas Moestl wrote the words in effect of: > On Wed, 2003/01/15 at 20:20:33 +, Josef Karthauser wrote: > > On Wed, Jan 15, 2003 at 12:05:20PM -0800, Maxime Henrion wrote: > > > Josef Karthauser wrote: > > > > I've partially ported the NetBSD busdma cod

Re: Bus DMA for USB - compilation problems.

2003-01-15 Thread Maxime Henrion
Josef Karthauser wrote: > On Wed, Jan 15, 2003 at 10:58:04PM +0100, Thomas Moestl wrote: > > > > DMAADDR is: > > > > #define DMAADDR(dma, o) ((dma)->block->map->dm_segs[0].ds_addr + (dma)->offs + >(o)) > > > > struct usb_dma_block starts like: > > > > typedef struct usb_dma_block { > >

Re: Bus DMA for USB - compilation problems.

2003-01-15 Thread Josef Karthauser
On Wed, Jan 15, 2003 at 10:58:04PM +0100, Thomas Moestl wrote: > > DMAADDR is: > > #define DMAADDR(dma, o) ((dma)->block->map->dm_segs[0].ds_addr + (dma)->offs + (o)) > > struct usb_dma_block starts like: > > typedef struct usb_dma_block { > bus_dma_tag_t tag; > bus_dm

Re: Bus DMA for USB - compilation problems.

2003-01-15 Thread Thomas Moestl
On Wed, 2003/01/15 at 20:20:33 +, Josef Karthauser wrote: > On Wed, Jan 15, 2003 at 12:05:20PM -0800, Maxime Henrion wrote: > > Josef Karthauser wrote: > > > I've partially ported the NetBSD busdma code for USB to FreeBSD, but > > > it doesn't compile, probably for a trivial reason. > > > > >

Re: Bus DMA for USB - compilation problems.

2003-01-15 Thread Josef Karthauser
On Wed, Jan 15, 2003 at 12:05:20PM -0800, Maxime Henrion wrote: > Josef Karthauser wrote: > > I've partially ported the NetBSD busdma code for USB to FreeBSD, but > > it doesn't compile, probably for a trivial reason. > > > > Anyone fancy helping me out? > > I didn't look at the patches yet, but

Re: Bus DMA for USB - compilation problems.

2003-01-15 Thread Maxime Henrion
Josef Karthauser wrote: > I've partially ported the NetBSD busdma code for USB to FreeBSD, but > it doesn't compile, probably for a trivial reason. > > Anyone fancy helping me out? I didn't look at the patches yet, but could you give me the compilation error you are getting ? Cheers, Maxime To

Bus DMA for USB - compilation problems.

2003-01-15 Thread Josef Karthauser
I've partially ported the NetBSD busdma code for USB to FreeBSD, but it doesn't compile, probably for a trivial reason. Anyone fancy helping me out? Joe p.s. patches attached -- Josef Karthauser ([EMAIL PROTECTED]) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker)