mvs.c (25375b1415f8a0b0290b56c00c31d20e218ffab9) | mvs.c (827252eefd1a22a9602ad03a272d7896b17e3371) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 562 unchanged lines hidden (view full) --- 571 unkn &= ~1; 572 ATA_OUTL(ch->r_mem, EDMA_UNKN_RESD, unkn); 573 } 574 /* Run EDMA. */ 575 if (mode != MVS_EDMA_OFF) 576 ATA_OUTL(ch->r_mem, EDMA_CMD, EDMA_CMD_EENEDMA); 577} 578 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 562 unchanged lines hidden (view full) --- 571 unkn &= ~1; 572 ATA_OUTL(ch->r_mem, EDMA_UNKN_RESD, unkn); 573 } 574 /* Run EDMA. */ 575 if (mode != MVS_EDMA_OFF) 576 ATA_OUTL(ch->r_mem, EDMA_CMD, EDMA_CMD_EENEDMA); 577} 578 |
579devclass_t mvs_devclass; 580devclass_t mvsch_devclass; | |
581static device_method_t mvsch_methods[] = { 582 DEVMETHOD(device_probe, mvs_ch_probe), 583 DEVMETHOD(device_attach, mvs_ch_attach), 584 DEVMETHOD(device_detach, mvs_ch_detach), 585 DEVMETHOD(device_suspend, mvs_ch_suspend), 586 DEVMETHOD(device_resume, mvs_ch_resume), 587 { 0, 0 } 588}; 589static driver_t mvsch_driver = { 590 "mvsch", 591 mvsch_methods, 592 sizeof(struct mvs_channel) 593}; | 579static device_method_t mvsch_methods[] = { 580 DEVMETHOD(device_probe, mvs_ch_probe), 581 DEVMETHOD(device_attach, mvs_ch_attach), 582 DEVMETHOD(device_detach, mvs_ch_detach), 583 DEVMETHOD(device_suspend, mvs_ch_suspend), 584 DEVMETHOD(device_resume, mvs_ch_resume), 585 { 0, 0 } 586}; 587static driver_t mvsch_driver = { 588 "mvsch", 589 mvsch_methods, 590 sizeof(struct mvs_channel) 591}; |
594DRIVER_MODULE(mvsch, mvs, mvsch_driver, mvsch_devclass, 0, 0); 595DRIVER_MODULE(mvsch, sata, mvsch_driver, mvsch_devclass, 0, 0); | 592DRIVER_MODULE(mvsch, mvs, mvsch_driver, 0, 0); 593DRIVER_MODULE(mvsch, sata, mvsch_driver, 0, 0); |
596 597static void 598mvs_phy_check_events(device_t dev, u_int32_t serr) 599{ 600 struct mvs_channel *ch = device_get_softc(dev); 601 602 if (ch->pm_level == 0) { 603 u_int32_t status = ATA_INL(ch->r_mem, SATA_SS); --- 1851 unchanged lines hidden --- | 594 595static void 596mvs_phy_check_events(device_t dev, u_int32_t serr) 597{ 598 struct mvs_channel *ch = device_get_softc(dev); 599 600 if (ch->pm_level == 0) { 601 u_int32_t status = ATA_INL(ch->r_mem, SATA_SS); --- 1851 unchanged lines hidden --- |