mvs_soc.c (6cec9cad762b6476313fb1f8e931a1647822db6b) | mvs_soc.c (200b4021c60541bac912beb6e0ab88d98660b046) |
---|---|
1/*- 2 * Copyright (c) 2010 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 --- 100 unchanged lines hidden (view full) --- 109 ctlr->dev = dev; 110 i = 0; 111 while (mvs_ids[i].id != 0 && 112 (mvs_ids[i].id != devid || 113 mvs_ids[i].rev > revid)) 114 i++; 115 ctlr->channels = mvs_ids[i].ports; 116 ctlr->quirks = mvs_ids[i].quirks; | 1/*- 2 * Copyright (c) 2010 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 --- 100 unchanged lines hidden (view full) --- 109 ctlr->dev = dev; 110 i = 0; 111 while (mvs_ids[i].id != 0 && 112 (mvs_ids[i].id != devid || 113 mvs_ids[i].rev > revid)) 114 i++; 115 ctlr->channels = mvs_ids[i].ports; 116 ctlr->quirks = mvs_ids[i].quirks; |
117 ctlr->ccc = 0; |
|
117 resource_int_value(device_get_name(dev), 118 device_get_unit(dev), "ccc", &ctlr->ccc); 119 ctlr->cccc = 8; 120 resource_int_value(device_get_name(dev), 121 device_get_unit(dev), "cccc", &ctlr->cccc); 122 if (ctlr->ccc == 0 || ctlr->cccc == 0) { 123 ctlr->ccc = 0; 124 ctlr->cccc = 0; --- 344 unchanged lines hidden --- | 118 resource_int_value(device_get_name(dev), 119 device_get_unit(dev), "ccc", &ctlr->ccc); 120 ctlr->cccc = 8; 121 resource_int_value(device_get_name(dev), 122 device_get_unit(dev), "cccc", &ctlr->cccc); 123 if (ctlr->ccc == 0 || ctlr->cccc == 0) { 124 ctlr->ccc = 0; 125 ctlr->cccc = 0; --- 344 unchanged lines hidden --- |