summaryrefslogtreecommitdiffstats
path: root/private/ntos/fw/alpha/oli2msft.h
blob: 2733d4503ba11f747d2c9839d1194d433207d262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

// ----------------------------------------------------------------------------
// File:            oli2msft.h
//
// Description:     General type definitions used in C files by Olivetti and
//                  not Microsoft
//
// ----------------------------------------------------------------------------

typedef ULONG           BOOLEAN_ULONG;
typedef BOOLEAN_ULONG   *PBOOLEAN_ULONG;

//
// Configuration related defines
//

#define MAX_MNEMONIC_LEN        20              // max name length (with '\0')
#define MAX_DEVICE_PATH_LEN     63              // ending '\0' excluded
#define MAX_FILE_PATH_LEN       127             // ending '\0' excluded
#define MAX_PATH_LEN            (MAX_DEVICE_PATH_LEN + MAX_FILE_PATH_LEN)
#define KEY_MAX_DIGITS          4               // max digits within a "key
                                                // string" (\'0' not included).
//
// Configuration Data Header
//

typedef struct _CONFIGDATAHEADER
        {
            USHORT Version;
            USHORT Revision;
            PCHAR  Type;
            PCHAR  Vendor;
            PCHAR  ProductName;
            PCHAR  SerialNumber;
        } CONFIGDATAHEADER, *PCONFIGDATAHEADER;

#define CONFIGDATAHEADER_SIZE sizeof(CONFIGDATAHEADER)

#define MAXIMUM_SECTOR_SIZE  2048                   // # bytes per sector