| Line | |
|---|
| 1 | /* $Id: dev32.h,v 1.2 1999-10-14 01:16:49 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * dev32 - header file for 32-bit part of the driver.
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) 1999 knut st. osmundsen
|
|---|
| 6 | *
|
|---|
| 7 | */
|
|---|
| 8 | #ifndef _dev32_h_
|
|---|
| 9 | #define _dev32_h_
|
|---|
| 10 |
|
|---|
| 11 | #ifdef __cplusplus
|
|---|
| 12 | extern "C" {
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | /*
|
|---|
| 16 | * Wrapper for declaration from dev1632.h used in this file.
|
|---|
| 17 | */
|
|---|
| 18 | #ifndef _dev1632_h_
|
|---|
| 19 | #define RP32INIT void
|
|---|
| 20 | #define PKRNLOBJTABLE void *
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | /*
|
|---|
| 24 | * Defines from reqpkt.h.
|
|---|
| 25 | */
|
|---|
| 26 | #define MAX_DISKDD_CMD 29
|
|---|
| 27 |
|
|---|
| 28 | #define STERR 0x8000 /* Bit 15 - Error */
|
|---|
| 29 | #define STINTER 0x0400 /* Bit 10 - Interim character */
|
|---|
| 30 | #define STBUI 0x0200 /* Bit 9 - Busy */
|
|---|
| 31 | #define STDON 0x0100 /* Bit 8 - Done */
|
|---|
| 32 | #define STECODE 0x00FF /* Error code */
|
|---|
| 33 | #define WRECODE 0x0000
|
|---|
| 34 |
|
|---|
| 35 | #define STATUS_DONE 0x0100
|
|---|
| 36 | #define STATUS_ERR_UNKCMD 0x8003
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | #define RPF_Int13RP 0x01 /* Int 13 Request Packet */
|
|---|
| 40 | #define RPF_CallOutDone 0x02 /* Int 13 Callout completed */
|
|---|
| 41 | #define RPF_PktDiskIOTchd 0x04 /* Disk_IO has touched this packet */
|
|---|
| 42 | #define RPF_CHS_ADDRESSING 0x08 /* CHS Addressing used in RBA field */
|
|---|
| 43 | #define RPF_Internal 0x10 /* Internal request packet command */
|
|---|
| 44 | #define RPF_TraceComplete 0x20 /* Trace completion flag */
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | /*
|
|---|
| 48 | * Function prototypes.
|
|---|
| 49 | */
|
|---|
| 50 | #ifndef __cplusplus
|
|---|
| 51 | USHORT _loadds _Far32 _Pascal R0Init32(RP32INIT *pRpInit);
|
|---|
| 52 | USHORT _loadds _Far32 _Pascal GetOTEs32(PKRNLOBJTABLE pOTEBuf);
|
|---|
| 53 | USHORT _loadds _Far32 _Pascal VerifyProcTab32(void);
|
|---|
| 54 | #endif
|
|---|
| 55 |
|
|---|
| 56 | /*
|
|---|
| 57 | * Global variables
|
|---|
| 58 | */
|
|---|
| 59 | extern ULONG TKSSBase32;
|
|---|
| 60 |
|
|---|
| 61 | /*
|
|---|
| 62 | * Macros
|
|---|
| 63 | */
|
|---|
| 64 | #define SSToDS(a) ((PVOID)((ULONG)(a) + TKSSBase32))
|
|---|
| 65 |
|
|---|
| 66 | #ifdef __cplusplus
|
|---|
| 67 | }
|
|---|
| 68 | #endif
|
|---|
| 69 |
|
|---|
| 70 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.