summaryrefslogtreecommitdiff
path: root/drivers/gator/daemon/Fifo.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gator/daemon/Fifo.h')
-rw-r--r--drivers/gator/daemon/Fifo.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/gator/daemon/Fifo.h b/drivers/gator/daemon/Fifo.h
deleted file mode 100644
index 51e2bcd6a7f..00000000000
--- a/drivers/gator/daemon/Fifo.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Copyright (C) ARM Limited 2010-2012. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-#ifndef __FIFO_H__
-#define __FIFO_H__
-
-#include <semaphore.h>
-
-// Number of buffers allowed with large buffer mode
-#define FIFO_BUFFER_LIMIT 64
-
-class Fifo {
-public:
- Fifo(int numBuffers, int bufferSize);
- ~Fifo();
- int depth(void);
- int numReadToWriteBuffersFilled();
- int numWriteToReadBuffersFilled();
- int numReadToWriteBuffersEmpty() {return depth() - numReadToWriteBuffersFilled();}
- int numWriteToReadBuffersEmpty() {return depth() - numWriteToReadBuffersFilled();}
- char* start();
- char* write(int length);
- char* read(int* length);
-
-private:
- int mNumBuffers;
- int mBufferSize;
- int mWriteCurrent;
- int mReadCurrent;
- sem_t mReadToWriteSem[FIFO_BUFFER_LIMIT];
- sem_t mWriteToReadSem[FIFO_BUFFER_LIMIT];
- char* mBuffer[FIFO_BUFFER_LIMIT];
- int mLength[FIFO_BUFFER_LIMIT];
-};
-
-#endif //__FIFO_H__