Re: bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-04 Thread John Baldwin
On Monday 02 February 2009 11:23:33 am Alexej Sokolov wrote: > Hi, > thanx for your answer. I checked the source code of the *dma() functions. > If I understand it correctly, "loading of memory allocation" means the > following: > > 1. At first memory allocation should be done: bufp = *alloc(size

Re: bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-02 Thread Alexej Sokolov
Hi, thanx for your answer. I checked the source code of the *dma() functions. If I understand it correctly, "loading of memory allocation" means the following: 1. At first memory allocation should be done: bufp = *alloc(sizeof ) 2. then in ... _bus_dmamap_load_buffer() we get physical addres

Re: bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-02 Thread Garrett Cooper
On Mon, Feb 2, 2009 at 12:45 AM, Garrett Cooper wrote: > On Sun, Feb 1, 2009 at 5:56 PM, Sergey Babkin wrote: >> >> If I remember correctly, loading means that the pages become mapped >> and visible to the devices. Some buses can access only a limited >> address space , like ISA has only a

Re: bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-02 Thread Garrett Cooper
On Sun, Feb 1, 2009 at 5:56 PM, Sergey Babkin wrote: > > If I remember correctly, loading means that the pages become mapped > and visible to the devices. Some buses can access only a limited > address space , like ISA has only a 24-bit address. When a map gets > loaded, for any pages outs

Re: bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-01 Thread Sergey Babkin
If I remember correctly, loading means that the pages become mapped and= visible to the devices. Some buses can access only a limited address space= , like ISA has only a 24-bit address. When a map gets loaded, for any pages= outside of this range the temporary in-ramge pages are al

bus_dma (9). What exactly means "Loading of memory allocation" ?

2009-02-01 Thread Alexej Sokolov
Hi, at first the cut of text from man (9) bus_dma: bus_dmamap_t A machine-dependent opaque type describing an individual mapping. One map is used for each memory allocation that will be loaded. Maps can be reused once they have been unloaded... Question: What