Deleted Added
full compact
ata-fsl.c (266360) ata-fsl.c (281140)
1/*-
2 * Copyright (c) 2012 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/10/sys/dev/ata/chipsets/ata-fsl.c 266360 2014-05-17 21:31:58Z ian $");
31__FBSDID("$FreeBSD: stable/10/sys/dev/ata/chipsets/ata-fsl.c 281140 2015-04-06 08:23:06Z mav $");
32
33#include <sys/param.h>
34#include <sys/module.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/ata.h>
38#include <sys/bus.h>
39#include <sys/endian.h>

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

74
75 if (!ofw_bus_is_compatible(dev, "fsl,imx51-ata") &&
76 !ofw_bus_is_compatible(dev, "fsl,imx53-ata"))
77 return (ENXIO);
78
79 ctrl = device_get_softc(dev);
80
81 device_set_desc(dev, "Freescale Integrated PATA Controller");
32
33#include <sys/param.h>
34#include <sys/module.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/ata.h>
38#include <sys/bus.h>
39#include <sys/endian.h>

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

74
75 if (!ofw_bus_is_compatible(dev, "fsl,imx51-ata") &&
76 !ofw_bus_is_compatible(dev, "fsl,imx53-ata"))
77 return (ENXIO);
78
79 ctrl = device_get_softc(dev);
80
81 device_set_desc(dev, "Freescale Integrated PATA Controller");
82 return (BUS_PROBE_DEFAULT);
82 return (BUS_PROBE_LOW_PRIORITY);
83}
84
85static void
86imx_ata_intr(void *data)
87{
88 struct ata_pci_controller *ctrl = data;
89
90 bus_write_2(ctrl->r_res1, 0x28, bus_read_2(ctrl->r_res1, 0x28));

--- 151 unchanged lines hidden ---
83}
84
85static void
86imx_ata_intr(void *data)
87{
88 struct ata_pci_controller *ctrl = data;
89
90 bus_write_2(ctrl->r_res1, 0x28, bus_read_2(ctrl->r_res1, 0x28));

--- 151 unchanged lines hidden ---