Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

par1284.h

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1994 Microsoft Corporation 00004 00005 Module Name: 00006 00007 par1284.h 00008 00009 Abstract: 00010 00011 This file defines the interface for the 1284 export driver. 00012 The 1284 export driver will export a 1284 communications interface 00013 to parallel class drivers. 00014 00015 Author: 00016 00017 Norbert P. Kusters 9-May-1994 00018 00019 Revision History: 00020 00021 --*/ 00022 00023 #ifndef _PAR1284_ 00024 #define _PAR1284_ 00025 00026 // 00027 // Define the current known 1284 protocols for the parallel port. 00028 // 00029 00030 #define P1284_PROTOCOL_ISA 0 // Centronics with Nibble for reverse. 00031 #define P1284_PROTOCOL_BYTE 1 // Centronics with Byte for reverse. 00032 #define P1284_PROTOCOL_EPP 2 // EPP protocol. 00033 #define P1284_PROTOCOL_ECP 3 // ECP protocol. 00034 #define P1284_NUM_PROTOCOLS 4 00035 00036 // 00037 // Define the interface to the export driver. 00038 // 00039 00040 NTSTATUS 00041 P1284Initialize( 00042 IN PUCHAR Controller, 00043 IN PHYSICAL_ADDRESS OriginalController, 00044 IN BOOLEAN UsePICode, 00045 IN PPARALLEL_ECP_INFORMATION EcpInfo, 00046 OUT PVOID* P1284Extension 00047 ); 00048 00049 VOID 00050 P1284Cleanup( 00051 IN PVOID P1284Extension 00052 ); 00053 00054 NTSTATUS 00055 P1284Write( 00056 IN PVOID P1284Extension, 00057 IN PVOID Buffer, 00058 IN ULONG BufferSize, 00059 OUT PULONG BytesTransfered 00060 ); 00061 00062 NTSTATUS 00063 P1284Read( 00064 IN PVOID P1284Extension, 00065 IN PVOID Buffer, 00066 IN ULONG BufferSize, 00067 OUT PULONG BytesTransfered 00068 ); 00069 00070 NTSTATUS 00071 P1284NegotiateProtocol( 00072 IN PVOID P1284Extension, 00073 OUT PULONG NegotiatedProtocol 00074 ); 00075 00076 NTSTATUS 00077 P1284SetProtocol( 00078 IN PVOID P1284Extension, 00079 IN ULONG ProtocolNumber, 00080 IN BOOLEAN Negotiate 00081 ); 00082 00083 NTSTATUS 00084 P1284QueryDeviceId( 00085 IN PVOID P1284Extension, 00086 OUT PUCHAR DeviceIdBuffer, 00087 IN ULONG BufferSize, 00088 OUT PULONG DeviceIdSize 00089 ); 00090 00091 #endif // _PAR1284_

Generated on Sat May 15 19:41:08 2004 for test by doxygen 1.3.7