Changeset 154 for trunk/src/os2ahci/os2ahci.h
- Timestamp:
- Apr 10, 2013, 6:47:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.h
r153 r154 119 119 120 120 /* TRACE macros (for our internal ring buffer trace) */ 121 #define AHCI_TRACE_BUF_SIZE 0x8000U /* 32k */ 122 #define AHCI_INFO_BUF_SIZE 0x1000U /* 4k */ 121 123 #define TRACE_ACTIVE (debug > 0 && com_base == 0) 122 124 … … 386 388 BUF_TO_SG /* copy from buffer to S/G list */ 387 389 } 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 396 typedef 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; 388 417 389 418 /* -------------------------- function prototypes -------------------------- */ … … 498 527 499 528 /* trace.c */ 500 extern void trace_init ( void);529 extern void trace_init (u16); 501 530 extern void trace_exit (void); 502 531 extern void trace_write (u8 _far *s, int len); 503 532 extern u16 trace_read (u8 _far *buf, u16 cb_buf); 504 //NOT_USED extern u16 trace_bytes_avail(void);505 533 extern u16 trace_char_dev(RP_RWV _far *rwrb); 534 extern void build_user_info(void); 506 535 507 536 /* pci.c */ … … 544 573 extern int force_write_cache; /* if != 0, force write cache */ 545 574 extern int verbosity; /* if != 0, show some info during boot */ 575 extern int use_lvm_info; 546 576 547 577 extern HDRIVER rm_drvh; /* resource manager driver handle */
Note:
See TracChangeset
for help on using the changeset viewer.