Ignore:
Timestamp:
Feb 15, 2011, 1:18:21 PM (14 years ago)
Author:
chris
Message:
  • Added minimum NCQ depth for SATA devices which don't support NCQ at all
  • Removed ATAPI devices from the flush cache queue as they caused timeouts with a DVD drive in an HP test box
  • Various cosmetic changes to debug levels, etc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/libc.c

    r66 r71  
    7373  int reg;
    7474  u8  data;
    75 } com1_init_sequence[] = {
     75} com_init_sequence[] = {
    7676  3, 0x80,   /* overlay divisor latch register at 0x3f8 and 0x3f9 */
    7777  0, 0x01,   /* set low byte of divisor to 1 (115200 baud) */
     
    107107  int i;
    108108
    109   DevHelp_CreateSpinLock(&com_lock);
    110 
    111   for (i = 0; com1_init_sequence[i].reg != -1; i++) {
    112     u16 port = com_base + com1_init_sequence[i].reg;
    113     u8  data = com1_init_sequence[i].data;
     109  spin_lock(com_lock);
     110
     111  for (i = 0; com_init_sequence[i].reg != -1; i++) {
     112    u16 port = com_base + com_init_sequence[i].reg;
     113    u8  data = com_init_sequence[i].data;
    114114    _asm {
    115115      mov  dx, port;
     
    118118    }
    119119  }
     120
     121  spin_unlock(com_lock);
    120122}
    121123
Note: See TracChangeset for help on using the changeset viewer.