MCA Driver Programming Interface

Alan Cox


David Weinehall

Chris Beauregard

This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

For more details see the file COPYING in the source distribution of Linux.

Table of Contents

1. Introduction
2. Known Bugs And Assumptions
3. Public Functions Provided
mca_find_adapter - scan for adapters
mca_find_unused_adapter - scan for unused adapters
mca_read_stored_pos - read POS register from boot data
mca_read_pos - read POS register from card
mca_write_pos - read POS register from card
mca_set_adapter_name - Set the description of the card
mca_is_adapter_used - check if claimed by driver
mca_mark_as_used - claim an MCA device
mca_mark_as_unused - release an MCA device
4. DMA Functions Provided
mca_enable_dma - channel to enable DMA on
mca_disable_dma - channel to disable DMA on
mca_set_dma_addr - load a 24bit DMA address
mca_get_dma_addr - load a 24bit DMA address
mca_set_dma_count - load a 16bit transfer count
mca_get_dma_residue - get the remaining bytes to transfer
mca_set_dma_io - set the port for an I/O transfer
mca_set_dma_mode - set the DMA mode