Changeset 205 for trunk/src/os2ahci/ahci.c
- Timestamp:
- Jan 2, 2021, 1:06:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r204 r205 1 /** ****************************************************************************1 /** 2 2 * ahci.c - ahci hardware access functions 3 3 * 4 4 * Copyright (c) 2011 thi.guten Software Development 5 5 * Copyright (c) 2011 Mensys B.V. 6 * Copyright (c) 2013-20 18 David Azarewicz6 * Copyright (c) 2013-2021 David Azarewicz <david@88watts.net> 7 7 * 8 8 * Authors: Christian Mueller, Markus Thielen … … 29 29 #include "ata.h" 30 30 #include "atapi.h" 31 32 /* -------------------------- macros and constants ------------------------- */33 31 34 32 /* produce ata/atapi function pointer with the given func name */ … … 38 36 ? atapi_##func : ata_##func 39 37 40 41 /* ------------------------ global/static variables ------------------------ */42 38 43 39 /* Initial driver status flags indexed by the board_* constants in os2ahci.h … … 76 72 static u16 irq_used[MAX_IRQ_HANDLERS]; /* IRQ level for each used IRQ */ 77 73 static int irq_used_cnt; /* number of IRQs used */ 78 79 /* ----------------------------- start of code ----------------------------- */80 74 81 75 #ifdef DEBUG … … 680 674 char dev_name[RM_MAX_PREFIX_LEN+ATA_ID_PROD_LEN+1]; 681 675 char *pDevName; 682 static u8 total_dev_cnt;683 676 684 677 if (p >= AHCI_MAX_PORTS) return; … … 737 730 adj.AdjLength = sizeof(adj); 738 731 adj.AdjType = ADJ_ADD_UNIT; 739 adj.Add_Unit.ADDHandle = rm_drvh;740 adj.Add_Unit.UnitHandle = (USHORT)total_dev_cnt;732 adj.Add_Unit.ADDHandle = add_handle; 733 adj.Add_Unit.UnitHandle = iorb_unit(ad_no(ai), p, d); 741 734 742 735 /* create Resource Manager device key string; … … 759 752 760 753 RMCreateDevice(rm_drvh, &dh, &ds, ai->rm_adh, NULL); 761 762 total_dev_cnt++;763 754 764 755 /* try to detect virtualbox environment to enable a hack for IRQ routing */ … … 1420 1411 if (rc) 1421 1412 { 1422 DPRINTF(3," timeout for IORB %x ", vIorb);1413 DPRINTF(3," timeout for IORB %x port=%x", vIorb, p); 1423 1414 iorb_seterr(pIorb, IOERR_ADAPTER_TIMEOUT); 1424 1415 }
Note:
See TracChangeset
for help on using the changeset viewer.