]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IODMAEventSource.cpp
xnu-2050.7.9.tar.gz
[apple/xnu.git] / iokit / Kernel / IODMAEventSource.cpp
index eeaf70c8a98e1ab999937d7d277d31c6dc53cef1..a032b920416850602615f15ecfefb02dc3a34904 100644 (file)
@@ -103,7 +103,7 @@ IOReturn IODMAEventSource::startDMACommand(IODMACommand *dmaCommand, IODirection
   return kIOReturnSuccess;
 }
 
-IOReturn IODMAEventSource::stopDMACommand(bool flush, mach_timespec_t *timeout)
+IOReturn IODMAEventSource::stopDMACommand(bool flush, uint64_t timeout)
 {
   if ((dmaController == 0) || (dmaIndex == 0xFFFFFFFF)) return kIOReturnError;
   
@@ -119,6 +119,14 @@ IOReturn IODMAEventSource::queryDMACommand(IODMACommand **dmaCommand, IOByteCoun
 }
 
 
+IOByteCount IODMAEventSource::getFIFODepth()
+{
+  if ((dmaController == 0) || (dmaIndex == 0xFFFFFFFF)) return kIOReturnError;
+  
+  return dmaController->getFIFODepth(dmaIndex);
+}
+
+
 // protected
 
 bool IODMAEventSource::checkForWork(void)