1 | /* $Id: header.c,v 1.2 2001/03/23 17:14:13 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /* SCCSID = %W% %E% */
|
---|
4 | /****************************************************************************
|
---|
5 | * *
|
---|
6 | * Copyright (c) IBM Corporation 1994 - 1997. *
|
---|
7 | * *
|
---|
8 | * The following IBM OS/2 source code is provided to you solely for the *
|
---|
9 | * the purpose of assisting you in your development of OS/2 device drivers. *
|
---|
10 | * You may use this code in accordance with the IBM License Agreement *
|
---|
11 | * provided in the IBM Device Driver Source Kit for OS/2. *
|
---|
12 | * *
|
---|
13 | ****************************************************************************/
|
---|
14 | /**@internal %W%
|
---|
15 | * @notes
|
---|
16 | * The Device Driver Header
|
---|
17 | * @version %I%
|
---|
18 | * @context Unless otherwise noted, all interfaces are Ring-0, 16-bit,
|
---|
19 | * <stack context>.
|
---|
20 | * @history
|
---|
21 | *
|
---|
22 | */
|
---|
23 | #pragma code_seg ("_inittext");
|
---|
24 | #pragma data_seg ("_header","data");
|
---|
25 |
|
---|
26 | #define INCL_NOPMAPI
|
---|
27 | #include <os2.h>
|
---|
28 |
|
---|
29 | #include <sbversion.h>
|
---|
30 |
|
---|
31 | #include "header.h"
|
---|
32 |
|
---|
33 | void __far StrategyHandler(void);
|
---|
34 | void __far StrategyHandler2(void);
|
---|
35 | ULONG __far __loadds __cdecl DDCMD_EntryPoint(void);
|
---|
36 |
|
---|
37 | DEV_HEADER header[2] = {
|
---|
38 | { sizeof(DEV_HEADER),
|
---|
39 | DA_CHAR | DA_IDCSET | DA_NEEDOPEN | DA_USESCAP,
|
---|
40 | (PFNENTRY) StrategyHandler,
|
---|
41 | (PFNENTRY) DDCMD_EntryPoint,
|
---|
42 | DRVNAME16,
|
---|
43 | 0,0,
|
---|
44 | DC_INITCPLT | DC_IOCTL2 | DC_32BIT
|
---|
45 | },
|
---|
46 | { -1,
|
---|
47 | DA_CHAR | DA_IDCSET | DA_NEEDOPEN | DA_USESCAP,
|
---|
48 | (PFNENTRY) StrategyHandler2,
|
---|
49 | (PFNENTRY) 0,
|
---|
50 | // Rudi: temporary changed to DAUDIO2$
|
---|
51 | {'D','A','U','D','I','O','1','$'},
|
---|
52 | 0,0,
|
---|
53 | DC_INITCPLT | DC_IOCTL2 | DC_32BIT
|
---|
54 | }
|
---|
55 | };
|
---|