ioat.c (5ca9fc2a8d46637aaa188f3b5a42f208cee8f575) ioat.c (31bf2875ea646576423eb2ba9995606464840f95)
1/*-
2 * Copyright (C) 2012 Intel Corporation
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

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

731{
732 struct ioat_softc *ioat;
733
734 ioat = to_ioat_softc(dmaengine);
735 ioat_put(ioat, IOAT_DMAENGINE_REF);
736}
737
738int
1/*-
2 * Copyright (C) 2012 Intel Corporation
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

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

731{
732 struct ioat_softc *ioat;
733
734 ioat = to_ioat_softc(dmaengine);
735 ioat_put(ioat, IOAT_DMAENGINE_REF);
736}
737
738int
739ioat_get_hwversion(bus_dmaengine_t dmaengine)
740{
741 struct ioat_softc *ioat;
742
743 ioat = to_ioat_softc(dmaengine);
744 return (ioat->version);
745}
746
747int
739ioat_set_interrupt_coalesce(bus_dmaengine_t dmaengine, uint16_t delay)
740{
741 struct ioat_softc *ioat;
742
743 ioat = to_ioat_softc(dmaengine);
744 if (!ioat->intrdelay_supported)
745 return (ENODEV);
746 if (delay > ioat->intrdelay_max)

--- 1092 unchanged lines hidden ---
748ioat_set_interrupt_coalesce(bus_dmaengine_t dmaengine, uint16_t delay)
749{
750 struct ioat_softc *ioat;
751
752 ioat = to_ioat_softc(dmaengine);
753 if (!ioat->intrdelay_supported)
754 return (ENODEV);
755 if (delay > ioat->intrdelay_max)

--- 1092 unchanged lines hidden ---