NT4/private/ntos/dd/qic117/dodoio.c
2020-09-30 17:12:29 +02:00

74 lines
886 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1993 - Colorado Memory Systems, Inc.
All Rights Reserved
Module Name:
dodoio.c
Abstract:
Forms a low-level command request and processes it syncronusly
Revision History:
--*/
//
// include files
//
#include <ntddk.h>
#include <ntddtape.h>
#include "common.h"
#include "q117.h"
#include "protos.h"
#define FCT_ID 0x0103
dStatus
q117DoCmd(
IN OUT PIO_REQUEST IoRequest,
IN DRIVER_COMMAND Command,
IN PVOID Data,
IN PQ117_CONTEXT Context
)
/*++
Routine Description:
Makes the DoIO call.
Arguments:
IoRequest -
Command -
Data -
Context -
Return Value:
--*/
{
dStatus ret;
IoRequest->x.adi_hdr.driver_cmd = Command;
IoRequest->x.adi_hdr.cmd_buffer_ptr = Data;
ret = q117DoIO(IoRequest, NULL, Context);
if (!ret)
ret = IoRequest->x.adi_hdr.status;
return(ret);
}