Changeset 169 for trunk/src/os2ahci/ahci.c
- Timestamp:
- Aug 9, 2013, 12:17:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r167 r169 265 265 } 266 266 ai->flags = initial_flags[ai->pci->board]; 267 ai->hw_ports = (ai->cap & 0x1f) + 1; 267 268 268 269 if ((ai->cap & HOST_CAP_64) && (ai->flags & AHCI_HFLAG_32BIT_ONLY)) { … … 298 299 dprintf("JMB361 has only one port, port_map 0x%lx -> 0x%lx\n", ai->port_map, 1); 299 300 ai->port_map = 1; 301 ai->hw_ports = 1; 300 302 } 301 303 … … 309 311 * in ahci_scan_ports(). 310 312 */ 311 ports = (ai->cap & 0x1f) + 1;313 ports = ai->hw_ports; 312 314 for (i = 0; i < AHCI_MAX_PORTS; i++) { 313 315 if (ai->port_map & (1UL << i)) { … … 317 319 if (ports < 0) { 318 320 /* more ports in port_map than in HOST_CAP & 0x1f */ 319 ports = (ai->cap & 0x1f) + 1;321 ports = ai->hw_ports; 320 322 dprintf("implemented port map (0x%lx) contains more " 321 323 "ports than nr_ports (%d), using nr_ports\n",
Note:
See TracChangeset
for help on using the changeset viewer.