Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ioat/ioat_test.h
Show All 22 Lines | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
*/ | */ | ||||
#ifndef __IOAT_TEST_H__ | #ifndef __IOAT_TEST_H__ | ||||
#define __IOAT_TEST_H__ | #define __IOAT_TEST_H__ | ||||
struct ioat_test { | struct ioat_test { | ||||
uint32_t channel_index; | uint32_t channel_index; | ||||
uint32_t num_loops; | uint32_t num_loops; | ||||
volatile uint32_t num_completions; | volatile uint32_t num_completions; | ||||
uint32_t status; | uint32_t status; | ||||
}; | }; | ||||
#define IOAT_TEST_OK 0 | #define IOAT_TEST_OK 0 | ||||
#define IOAT_TEST_NO_DMA_ENGINE 1 | #define IOAT_TEST_NO_DMA_ENGINE 1 | ||||
#define IOAT_TEST_NO_MEMORY 2 | #define IOAT_TEST_NO_MEMORY 2 | ||||
#define IOAT_TEST_MISCOMPARE 3 | #define IOAT_TEST_MISCOMPARE 3 | ||||
#define IOAT_DMATEST _IOWR('i', 0, struct ioat_test) | #define IOAT_DMATEST _IOWR('i', 0, struct ioat_test) | ||||
#endif /* __IOAT_TEST_H__ */ | #endif /* __IOAT_TEST_H__ */ |