mvs.c (246e7a2b6494cd991b08ac669ed761ecea0cc98c) mvs.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

--- 108 unchanged lines hidden (view full) ---

117 struct mvs_channel *ch = device_get_softc(dev);
118 struct cam_devq *devq;
119 int rid, error, i, sata_rev = 0;
120
121 ch->dev = dev;
122 ch->unit = (intptr_t)device_get_ivars(dev);
123 ch->quirks = ctlr->quirks;
124 mtx_init(&ch->mtx, "MVS channel lock", NULL, MTX_DEF);
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

--- 108 unchanged lines hidden (view full) ---

117 struct mvs_channel *ch = device_get_softc(dev);
118 struct cam_devq *devq;
119 int rid, error, i, sata_rev = 0;
120
121 ch->dev = dev;
122 ch->unit = (intptr_t)device_get_ivars(dev);
123 ch->quirks = ctlr->quirks;
124 mtx_init(&ch->mtx, "MVS channel lock", NULL, MTX_DEF);
125 ch->pm_level = 0;
125 resource_int_value(device_get_name(dev),
126 device_get_unit(dev), "pm_level", &ch->pm_level);
127 if (ch->pm_level > 3)
128 callout_init_mtx(&ch->pm_timer, &ch->mtx, 0);
129 callout_init_mtx(&ch->reset_timer, &ch->mtx, 0);
130 resource_int_value(device_get_name(dev),
131 device_get_unit(dev), "sata_rev", &sata_rev);
132 for (i = 0; i < 16; i++) {

--- 2321 unchanged lines hidden ---
126 resource_int_value(device_get_name(dev),
127 device_get_unit(dev), "pm_level", &ch->pm_level);
128 if (ch->pm_level > 3)
129 callout_init_mtx(&ch->pm_timer, &ch->mtx, 0);
130 callout_init_mtx(&ch->reset_timer, &ch->mtx, 0);
131 resource_int_value(device_get_name(dev),
132 device_get_unit(dev), "sata_rev", &sata_rev);
133 for (i = 0; i < 16; i++) {

--- 2321 unchanged lines hidden ---