siis.c (3b8f08459569bf0faa21473e5cec2491e95c9349) | siis.c (200b4021c60541bac912beb6e0ab88d98660b046) |
---|---|
1/*- 2 * Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 451 unchanged lines hidden (view full) --- 460 struct siis_controller *ctlr = device_get_softc(device_get_parent(dev)); 461 struct siis_channel *ch = device_get_softc(dev); 462 struct cam_devq *devq; 463 int rid, error, i, sata_rev = 0; 464 465 ch->dev = dev; 466 ch->unit = (intptr_t)device_get_ivars(dev); 467 ch->quirks = ctlr->quirks; | 1/*- 2 * Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 451 unchanged lines hidden (view full) --- 460 struct siis_controller *ctlr = device_get_softc(device_get_parent(dev)); 461 struct siis_channel *ch = device_get_softc(dev); 462 struct cam_devq *devq; 463 int rid, error, i, sata_rev = 0; 464 465 ch->dev = dev; 466 ch->unit = (intptr_t)device_get_ivars(dev); 467 ch->quirks = ctlr->quirks; |
468 ch->pm_level = 0; |
|
468 resource_int_value(device_get_name(dev), 469 device_get_unit(dev), "pm_level", &ch->pm_level); 470 resource_int_value(device_get_name(dev), 471 device_get_unit(dev), "sata_rev", &sata_rev); 472 for (i = 0; i < 16; i++) { 473 ch->user[i].revision = sata_rev; 474 ch->user[i].mode = 0; 475 ch->user[i].bytecount = 8192; --- 1509 unchanged lines hidden --- | 469 resource_int_value(device_get_name(dev), 470 device_get_unit(dev), "pm_level", &ch->pm_level); 471 resource_int_value(device_get_name(dev), 472 device_get_unit(dev), "sata_rev", &sata_rev); 473 for (i = 0; i < 16; i++) { 474 ch->user[i].revision = sata_rev; 475 ch->user[i].mode = 0; 476 ch->user[i].bytecount = 8192; --- 1509 unchanged lines hidden --- |