]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IODMAController.h
xnu-3789.21.4.tar.gz
[apple/xnu.git] / iokit / IOKit / IODMAController.h
index 1e6632fbb9a5de47c3f3348d84e0f132eb775ab7..e5b8f106d1e76fddba383f4e4d03279dec8e1593 100644 (file)
@@ -33,6 +33,8 @@
 #include <IOKit/IODMAEventSource.h>
 #include <IOKit/IOService.h>
 
+class IODMAEventSource;
+
 class IODMAController : public IOService
 {
   OSDeclareAbstractStructors(IODMAController);
@@ -48,16 +50,22 @@ class IODMAController : public IOService
   virtual IOReturn initDMAChannel(IOService *provider, IODMAEventSource *dmaES, UInt32 *dmaIndex, UInt32 reqIndex) = 0;
   virtual IOReturn startDMACommand(UInt32 dmaIndex, IODMACommand *dmaCommand, IODirection direction,
                                   IOByteCount byteCount = 0, IOByteCount byteOffset = 0) = 0;
-  virtual IOReturn stopDMACommand(UInt32 dmaIndex, bool flush = false, mach_timespec_t * timeout = 0) = 0;
+  virtual IOReturn stopDMACommand(UInt32 dmaIndex, bool flush = false, uint64_t timeout = UINT64_MAX) = 0;
   virtual void completeDMACommand(IODMAEventSource *dmaES, IODMACommand *dmaCommand);
-  virtual void notifyDMACommand(IODMAEventSource *dmaES, IODMACommand *dmaCommand, IOReturn status, IOByteCount actualByteCount);
+  virtual void notifyDMACommand(IODMAEventSource *dmaES, IODMACommand *dmaCommand, IOReturn status, IOByteCount actualByteCount, AbsoluteTime timeStamp);
   virtual IOReturn queryDMACommand(UInt32 dmaIndex, IODMACommand **dmaCommand, IOByteCount *transferCount, bool waitForIdle = false) = 0;
+  virtual IOByteCount getFIFODepth(UInt32 dmaIndex, IODirection direction) = 0;
+  virtual IOReturn setFIFODepth(UInt32 dmaIndex, IOByteCount depth) = 0;
+  virtual IOByteCount validFIFODepth(UInt32 dmaIndex, IOByteCount depth, IODirection direction) = 0;
+  virtual IOReturn setFrameSize(UInt32 dmaIndex, UInt8 byteCount) = 0;
+  virtual IOReturn setDMAConfig(UInt32 dmaIndex, IOService *provider, UInt32 reqIndex) = 0;
+  virtual bool validDMAConfig(UInt32 dmaIndex, IOService *provider, UInt32 reqIndex) = 0;
   
  public:
   static const OSSymbol *createControllerName(UInt32 phandle);
   static IODMAController *getController(IOService *provider, UInt32 dmaIndex);
   
-  virtual bool start(IOService *provider);
+  virtual bool start(IOService *provider) APPLE_KEXT_OVERRIDE;
 };