Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 1997 13:43:33 -0800
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Richard Tobin <richard@cogsci.ed.ac.uk>
Cc:        Steve Passe <smp@csn.net>, multimedia@freebsd.org
Subject:   Re: newest bt848 driver 
Message-ID:  <199703292143.NAA11959@rah.star-gate.com>
In-Reply-To: Your message of "Sat, 29 Mar 1997 21:17:24 GMT." <28054.199703292117@pitcairn.cogsci.ed.ac.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help

Hi,

Yes, it is my mistake. Please change it to:
	bktr->dma_prog = get_bktr_mem(unit, 8*4096);
	bktr->odd_dma_prog = get_bktr_mem(unit, 8*4096);


If you have enough time please use a define symbol similar 
to BROOKTREE_ALLOC for allocating the dma program segments.

The reason why it is working is because of round_page in vm_page.c 
rounds up to the nearest page so get_bktr_mem is getting 1 Page (4096 bytes).

For sure it needs to be fixed!


	Tnks!
	Amancio


>From The Desk Of Richard Tobin :
> > get_bktr_mem allocates memory in terms of pages (4096 bytes)
> 
> No it doesn't!
> 
> See what it does for the main memory:
> 
> #define BROOKTREE_ALLOC		(BROOKTREE_ALLOC_PAGES * PAGE_SIZE)
> ...                                                    ^^^^^^^^^^^
>     if ( BROOKTREE_ALLOC )
>         buf = get_bktr_mem(unit, BROOKTREE_ALLOC);
> 
> -- Richard





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