Hi All,

i have been tweaking the pvr250 driver to support pvr150s/500s. now i
want to remove Giant from the code.

problem is, i am not sure what to do. i have created a mutex which
replaces the spltty and splx calls. but this crashes my box :-)

the original code looks like this:
        * Allocate a DMA tag for the scatter / gather list.
       error = bus_dma_tag_create(sc->parent_dmat, 1, 0,
                                  BUS_SPACE_MAXADDR, NULL, NULL,
                                  * sizeof(struct cxm_sg_entry), 1,
                                  BUS_SPACE_MAXSIZE_32BIT, 0,
#if __FreeBSD_version >= 501102
                                  busdma_lock_mutex, &Giant,

what should it look like?

and how will i prevent the interrupt routine from interfering with
userland operations? can i place a "mtx_lock()" call in the interrupt

is there a howto somewhere?


freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to