Ignore:
Timestamp:
Apr 10, 2013, 6:47:05 PM (12 years ago)
Author:
David Azarewicz
Message:

Begin adding user info output.
Added LVM support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.h

    r153 r154  
    119119
    120120/* TRACE macros (for our internal ring buffer trace) */
     121#define AHCI_TRACE_BUF_SIZE  0x8000U /* 32k */
     122#define AHCI_INFO_BUF_SIZE  0x1000U /* 4k */
    121123#define TRACE_ACTIVE  (debug > 0 && com_base == 0)
    122124
     
    386388  BUF_TO_SG                            /* copy from buffer to S/G list */
    387389} SG_MEMCPY_DIRECTION;
     390
     391/* Define the size of a disk name.  Disk Names are user defined names given to physical disk drives in the system. */
     392#define DLA_TABLE_SIGNATURE1  0x424D5202L
     393#define DLA_TABLE_SIGNATURE2  0x44464D50L
     394#define DISK_NAME_SIZE    20
     395
     396typedef struct _DLA_Table_Sector { /* DTS */
     397     ULONG DLA_Signature1;         /* The magic signature (part 1) of a Drive Letter Assignment Table. */
     398     ULONG DLA_Signature2;         /* The magic signature (part 2) of a Drive Letter Assignment Table. */
     399     ULONG DLA_CRC;                /* The 32 bit CRC for this sector.  Calculated assuming that this field and all unused space in the sector is 0. */
     400     ULONG Disk_Serial_Number;     /* The serial number assigned to this disk. */
     401     ULONG Boot_Disk_Serial_Number;/* The serial number of the disk used to boot the system.  This is for conflict resolution when multiple volumes
     402                                      want the same drive letter.  Since LVM.EXE will not let this situation happen, the only way to get this situation
     403                                      is for the disk to have been altered by something other than LVM.EXE, or if a disk drive has been moved from one
     404                                      machine to another.  If the drive has been moved, then it should have a different Boot_Disk_Serial_Number.  Thus,
     405                                      we can tell which disk drive is the "foreign" drive and therefore reject its claim for the drive letter in question.
     406                                      If we find that all of the claimaints have the same Boot_Disk_Serial_Number, then we must assign drive letters on
     407                                      a first come, first serve basis.                                          */
     408     ULONG Install_Flags;          /* Used by the Install program. */
     409     ULONG Cylinders;
     410     ULONG Heads_Per_Cylinder;
     411     ULONG Sectors_Per_Track;
     412     char  Disk_Name[DISK_NAME_SIZE];  /* The name assigned to the disk containing this sector. */
     413     UCHAR Reboot;                 /* For use by Install.  Used to keep track of reboots initiated by install. */
     414     BYTE  Reserved[3];            /* Alignment. */
     415                                   /* These are the four entries which correspond to the entries in the partition table. */
     416} DLA_Table_Sector, *PDLA_Table_Sector;
    388417
    389418/* -------------------------- function prototypes -------------------------- */
     
    498527
    499528/* trace.c */
    500 extern void        trace_init    (void);
     529extern void        trace_init    (u16);
    501530extern void        trace_exit    (void);
    502531extern void        trace_write   (u8 _far *s, int len);
    503532extern u16         trace_read    (u8 _far *buf, u16 cb_buf);
    504 //NOT_USED extern u16         trace_bytes_avail(void);
    505533extern u16         trace_char_dev(RP_RWV _far *rwrb);
     534extern void        build_user_info(void);
    506535
    507536/* pci.c */
     
    544573extern int           force_write_cache; /* if != 0, force write cache */
    545574extern int           verbosity;     /* if != 0, show some info during boot */
     575extern int           use_lvm_info;
    546576
    547577extern HDRIVER       rm_drvh;       /* resource manager driver handle */
Note: See TracChangeset for help on using the changeset viewer.