EN-Linux MCA Driver Programming Interface.pdf
(
201 KB
)
Pobierz
MCA Driver Programming Interface
Alan Cox
alan@lxorguk.ukuu.org.uk
David Weinehall
Chris Beauregard
MCA Driver Programming Interface
by Alan Cox, David Weinehall, and Chris Beauregard
Copyright © 2000 Alan CoxDavid WeinehallChris 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............................................................................................................................................1
2. Known Bugs And Assumptions ............................................................................................................2
3. Public Functions Provided ....................................................................................................................3
mca_find_adapter ...............................................................................................................................3
mca_find_unused_adapter..................................................................................................................3
mca_read_stored_pos.........................................................................................................................4
mca_read_pos.....................................................................................................................................5
mca_write_pos ...................................................................................................................................6
mca_set_adapter_name ......................................................................................................................7
mca_mark_as_used ............................................................................................................................8
mca_mark_as_unused ........................................................................................................................8
4. DMA Functions Provided ...................................................................................................................10
mca_enable_dma..............................................................................................................................10
mca_disable_dma.............................................................................................................................10
mca_set_dma_addr...........................................................................................................................11
mca_get_dma_addr ..........................................................................................................................12
mca_set_dma_count.........................................................................................................................12
mca_get_dma_residue......................................................................................................................13
mca_set_dma_io...............................................................................................................................14
mca_set_dma_mode.........................................................................................................................15
iii
Chapter 1. Introduction
The MCA bus functions provide a generalised interface to find MCA bus cards, to claim them for a
driver, and to read and manipulate POS registers without being aware of the motherboard internals or
certain deep magic specific to onboard devices.
The basic interface to the MCA bus devices is the slot. Each slot is numbered and virtual slot numbers
are assigned to the internal devices. Using a pci_dev as other busses do does not really make sense in the
MCA context as the MCA bus resources require card specific interpretation.
Finally the MCA bus functions provide a parallel set of DMA functions mimicing the ISA bus DMA
functions as closely as possible, although also supporting the additional DMA functionality on the MCA
bus controllers.
1
Chapter 2. Known Bugs And Assumptions
None.
2
Plik z chomika:
musli_com
Inne pliki z tego folderu:
Linux System Programming Talking Directly to the Kernel and C Library.pdf
(8858 KB)
Unix Network Programming Volume 1.pdf
(14024 KB)
Unix Network Programming Volume 2.pdf
(21636 KB)
Developpement d un espiogiciel d evaluation.pdf
(1302 KB)
Developpement avance d un rootkit pour les modules du noyau.pdf
(970 KB)
Inne foldery tego chomika:
3D Design - Programming
ActionScript
Actionscript - Flash - Flex - Air
Ada
ADO
Zgłoś jeśli
naruszono regulamin