QUESTION: Device Driver for VME/DMA parms on HP-UX 10.20 743i

QUESTION: Device Driver for VME/DMA parms on HP-UX 10.20 743i

Post by Jun H » Sun, 12 Apr 1998 04:00:00



I am developing a VME device driver on HP-UX 10.20 model 743i.
I have the documentation "VME Device Driver"(Part No: A4412-90020).
I must use DMA for my device driver.  I found some problems:

(1) DMA parameters struct "dma_parms" is not in /usr/conf/h/uio.h that
    described in above document, it is in /usr/conf/h/io.h

(2) the field "chain_ptr" of dma_parms, its type is not
    "struct addr_chain_type" that described in above document, but
    "struct iovec".  Since I have to use chain physical address
    chain_ptr[index].physical_addr to DMA after calling
    vme_dma_setup(...).
    I ever tried to use chain_ptr[index].io_base as the physical address to
    DMA.  I traced and debuged for it, I found xxxx.iov_base could not be
    used as physical address for DMA.   What should I do?

Jun Han



 
 
 

1. QUESTION: Device Driver for VME/DMA parms on HP-UX 10.20 743i

I am developing a VME device driver on HP-UX 10.20 model 743i.
I have the documentation "VME Device Driver"(Part No: A4412-90020).
I must use DMA for my device driver.  I found some problems:

(1) DMA parameters struct "dma_parms" is not in /usr/conf/h/uio.h that
    described in above document, it is in /usr/conf/h/io.h

(2) the field "chain_ptr" of dma_parms, its type is not
    "struct addr_chain_type" that described in above document, but
    "struct iovec".  Since I have to use chain physical address
    chain_ptr[index].physical_addr to DMA after calling
    vme_dma_setup(...).
    I ever tried to use chain_ptr[index].io_base as the physical address to
    DMA.  I traced and debuged for it, I found xxxx.iov_base could not be
    used as physical address for DMA.   What should I do?

Jun Han



2. how to mount a tape device on a Sun Solaris 1.1

3. Difference between HP-UX 10.10 and HP-UX 10.20

4. Sendmail Headers

5. HP-UX VME Device Driver

6. CDROM install problem

7. kview question under HP-UX 10.20

8. Netscape 3b4 is really slow

9. Makefile syntax question (HP-UX 10.20/11.x)

10. Korn Shell History File Question under HP-UX 10.20

11. diagmond and syslog questions (HP-UX 10.20)

12. wdb/gdb on HP-UX 10.20 question