The HyperNews Linux KHG Discussion Pages

## Getting a DMA buffer aligned with 64k boundaries

  Forum: Device Drivers
  Date: Sun, 17 Nov 1996 01:25:45 GMT
  From: Juan de La Figuera Bayon <juan@hobbes.fmc.uam.es>

I'm writing a device driver for a Data Translation DT2821 adquisition card. It includes DMA (and I have already worked with it under MSDOS). The polled modes for DA and AD conversion already work. But for the DMA, I need to ask for a buffer which can be up to 128k in size (ok, I usually ask for less than 256 words in my aplication). And it should be aligned with 64k boundaries. I suppose it is something pretty obvious, but it is my first try at device driver programming under Linux. Any help would be appreciated.