mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
886 B
73 lines
886 B
/*++
|
|
|
|
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);
|
|
}
|
|
|