- Linux MultiMedia Studio Computer Accessories User Manual

NextMove PCI and Non-Micorsoft Operating Systems
MN1278 05.2001
49
doDeviceClose
This function releases any resources which had been taken by the class.
getDeviceOpen
This function must report whether the class has control of any resources it requires to communicate with the
controller and whether that controller is physically present. In the MySimplePCI example this reports whether it
can communicate with device driver. In Windows 95 on instance of the device driver is created in memory per
device it finds, so if the device driver instance exists in memory, the NextMove PCI is present. Under Windows
NT, there is one device driver to handle all NextMoves, so the device driver must be interrogated to find if that
card number is present.
doDeviceOpen
This function must take any resources required to communicate with the controller. In the MySimplePCI
example, this creates a handle to the device driver.
getLong
This function must read from DPR (block 3 in section 5.2 ) This may take the form of (as in the MySimplePCI
example) instructing the device driver to perform the task. The read should be a simple 32 bit read from the
memory address the DPR has been mapped into (Block 3).
internalSetLong
This function must write to DPR (block 3 in section 5.2). This may take the form of (as in the MyMySimplePCI
example) instructing the device driver to perform the task. The write should be a simple 32 bit write to the
memory address the DPR has been mapped into (Block 3).
PLXRead
This function must read from the PLX chip (Block 3 in section 5.2) This may take the form of (as in the
MySimplePCI example) instructing the device driver to perform the task. The read should be a simple 32 bit
read from the memory address the PLX chip has been mapped into (Block 1).
PLXWrite
This function must write to the PLX chip (Block 3 in section 5.2 ) This may take the form of (as in the
MySimplePCI example) instructing the device driver to perform the task. The write should be a simple 32 bit
write to the memory address the PLX chip has been mapped into (Block 1).
5.3.3 Files to Include in a CSimplePCI Derived Class Project.
The following Mint Interface Library files must be included in the project:
base.cpp
mml.cpp
nmbase.cpp
simplepci.cpp