/* Add new device to the global device list. */
VOID AddDeviceToTail(IN OPAL_DRIVER_DEVICE *Dev)
/* Add new device to the global device list. */
VOID AddDeviceToTail(IN OPAL_DRIVER_DEVICE *Dev)
{
  OPAL_DRIVER_DEVICE  *TmpDev;
  if (mOpalDriver.DeviceList == NULL) {
    mOpalDriver.DeviceList = Dev;
  } else {
    TmpDev = mOpalDriver.DeviceList;
    while (TmpDev->Next != NULL) {
      TmpDev = TmpDev->Next;
    }
    TmpDev->Next = Dev;
  }
}