Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 1998 13:58:06 -0500 (EST)
From:      Bill Paul <wpaul@skynet.ctr.columbia.edu>
To:        current@FreeBSD.ORG
Subject:   bus_space_foo and bus_dmamap_foo
Message-ID:  <199812311858.NAA05191@skynet.ctr.columbia.edu>

next in thread | raw e-mail | index | archive | help
For those of you dying for a change of pace, here's a purely technical
posting rather than a political one.

At some point, somebody brought over a bunch of machine-independent bus
support from NetBSD, in the form of the bus_space_foo() and
bus_dmamap_foo() code. Unfortunately, it seems whoever did it left the
job half done:

- While we have things like bus_space_read_1(), which takes
  bus_space_handle_t and bus_space_tag_t arguments, we do not have
  the necessary functions to create the bus space handle and tag
  in the first place. From what I can tell, drivers manually assign
  them by setting them to I386_BUS_SPACE_MEM or I386_BUS_SPACE_PIO
  (for the tag) or the iobase or membase address (for the handle).
  This obviously is not machine independent.

- There is no bus_dmamap_load_mbuf(). This makes it very hard to use
  the bus_dmamap stuff for network interface drivers. (A good example
  of how to use this stuff in general would be nice too.)

- There are no man pages.

Is anybody actually working on filling in these gaps? (No, _I'm_ not
going to do it; I have enough to worry about.) If so, could somebody
tell me when (in specific terms) it will be done? I'd very much like to
be able to make all of the drivers that I've written machine independent,
at least enough to have them compile on both the i386 and alpha 
architectures.

We now return you to your regularly scheduled sabre-rattling.

-Bill

-- 
=============================================================================
-Bill Paul            (212) 854-6020 | System Manager, Master of Unix-Fu
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
=============================================================================
 "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness"
=============================================================================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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