Ignore:
Timestamp:
Jul 6, 2011, 10:02:47 AM (14 years ago)
Author:
Markus Thielen
Message:
  • removed RAS calls (tracing to OS/2 kernel trace buffer was unreliable)
  • added private trace ring buffer implementation
  • support read from OS2AHCI$ character device
  • contents of trace ring buffer are accesible via OS2AHCI$ character device
  • updated WATCOM makefile; WATCOM build still produces a non-working driver
  • code cleanup (unused variables etc.)
File:
1 edited

Legend:

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

    r111 r112  
    162162  cdb.cmd = ATAPI_CMD_READ_12;
    163163  SET_CDB_32(cdb.lba, io->RBA + io->BlocksXferred);
    164   SET_CDB_32(cdb.trans_len, 1);
     164  SET_CDB_32(cdb.trans_len, 1UL);
    165165
    166166  /* allocate transfer buffer */
     
    340340  ATAPI_SENSE_DATA *psd = (ATAPI_SENSE_DATA *) aws->buf;
    341341
    342   dphex(psd, sizeof(*psd), TRACE_MINOR_SENSE_BUF, "sense buffer:\n");
     342  dphex(psd, sizeof(*psd), "sense buffer:\n");
    343343
    344344  if ((iorb->RequestControl & IORB_REQ_STATUSBLOCK) &&
     
    443443    tmp = GET_CDB_24(cmd_in + 1) & 0x1fffffUL;
    444444    SET_CDB_32(p12->lba, tmp);
    445     SET_CDB_32(p12->trans_len, cmd_in[4]);
     445    SET_CDB_32(p12->trans_len, (u32)(cmd_in[4]));
    446446    p12->control = cmd_in[5];
    447447    break;
Note: See TracChangeset for help on using the changeset viewer.