Ignore:
Timestamp:
Oct 14, 2011, 10:22:12 PM (14 years ago)
Author:
cjm
Message:
  • Added IBMS506$ character device driver to support existing SMART tools
  • Finishing touches to SMART support
  • Updated READNE with information around "/f" command line parameter and SMART support
File:
1 edited

Legend:

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

    r125 r128  
    161161USHORT init_drv(RPINITIN _far *req)
    162162{
     163  static int init_drv_called;
     164  static int init_drv_failed;
    163165  RPINITOUT _far *rsp = (RPINITOUT _far *) req;
    164166  DDD_PARM_LIST _far *ddd_pl = (DDD_PARM_LIST _far *) req->InitArgs;
     
    172174  u16 vendor;
    173175  u16 device;
     176
     177  if (init_drv_called) {
     178    /* This is the init call for the second (legacy IBMS506$) character
     179     * device driver. If the main driver failed initialization, fail this
     180     * one as well.
     181     */
     182    rsp->CodeEnd = (u16) end_of_code;
     183    rsp->DataEnd = (u16) &end_of_data;
     184    return(STDON | ((init_drv_failed) ? ERROR_I24_QUIET_INIT_FAIL : 0));
     185  }
     186  init_drv_called = 1;
    174187
    175188  /* set device helper entry point */
     
    375388  rsp->CodeEnd = 0;
    376389  rsp->DataEnd = 0;
     390  init_drv_failed = 1;
    377391
    378392  /* free context hooks */
Note: See TracChangeset for help on using the changeset viewer.