Re: [PARPORT] Re: Parport & DMA -- patch-2.2.7-tmw3


Philip Blundell (philb@gnu.org)
Tue, 11 May 1999 21:36:57 +0100


>All of the block read/write functions have a 'flags' parameter, and the
>client specifies 'PARPORT_CAN_DMA' if the memory they've provided is
>available for use by DMA. Then the low-level driver may only use DMA if
>PARPORT_CAN_DMA is in the flags.

I think I'd prefer it backwards - the low-level driver provides a flag
that says its buffers need to be DMA-able (or even just a set of GFP flags
that you can OR into the argument to kmalloc). A high level driver has no
sensible way to decide on its own whether to allocate buffers that are
suitable for DMA or not.

p.

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Tue 11 May 1999 - 16:38:19 EDT