Re: Device Driver Problem, Embedded Development

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 01/26/04

  • Next message: Nate Lawson: "newbus ioport usage"
    Date: Mon, 26 Jan 2004 08:44:26 -0700 (MST)
    To: bpickles@sbs.com, BPICKLES@btconnect.com
    
    

    In message: <00c301c3e3eb$944845d0$1d02a8c0@sdlbase>
                "Bob Pickles" <BPICKLES@btconnect.com> writes:
    : I have been trying to find the following functions:
    :
    : pci_mem_find() Need explanation of parameters. Managed to work out the
    : other pci_ functions...

    This isn't a public function. Don't use it. In fact, I can't even
    find it in the current sources. I believe it was the old-style way to
    map memory.

    : bus_space_map() Need explanation of parameters to allow device memory map.

    Chances are excellent you don't want to use this one either.

    : This is all that I need to get the driver working with the user app.

    bus_alloc_resource() is what I think you want to use.

    Warner
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Nate Lawson: "newbus ioport usage"