imx6_ssi.c (281085) | imx6_ssi.c (297793) |
---|---|
1/*- 2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com> 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 --- 18 unchanged lines hidden (view full) --- 27/* 28 * i.MX6 Synchronous Serial Interface (SSI) 29 * 30 * Chapter 61, i.MX 6Dual/6Quad Applications Processor Reference Manual, 31 * Rev. 1, 04/2013 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com> 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 --- 18 unchanged lines hidden (view full) --- 27/* 28 * i.MX6 Synchronous Serial Interface (SSI) 29 * 30 * Chapter 61, i.MX 6Dual/6Quad Applications Processor Reference Manual, 31 * Rev. 1, 04/2013 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx6_ssi.c 281085 2015-04-04 21:34:26Z andrew $"); | 35__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx6_ssi.c 297793 2016-04-10 23:07:00Z pfg $"); |
36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/bus.h> 40#include <sys/kernel.h> 41#include <sys/module.h> 42#include <sys/malloc.h> 43#include <sys/rman.h> --- 414 unchanged lines hidden (view full) --- 458 459 sdma_dev = devclass_get_device(devclass_find("sdma"), 0); 460 if (sdma_dev) 461 sdma_sc = device_get_softc(sdma_dev); 462 463 if (sdma_sc == NULL) { 464 device_printf(sc->dev, "No sDMA found. Can't operate\n"); 465 return (ENXIO); | 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/bus.h> 40#include <sys/kernel.h> 41#include <sys/module.h> 42#include <sys/malloc.h> 43#include <sys/rman.h> --- 414 unchanged lines hidden (view full) --- 458 459 sdma_dev = devclass_get_device(devclass_find("sdma"), 0); 460 if (sdma_dev) 461 sdma_sc = device_get_softc(sdma_dev); 462 463 if (sdma_sc == NULL) { 464 device_printf(sc->dev, "No sDMA found. Can't operate\n"); 465 return (ENXIO); |
466 }; | 466 } |
467 468 sc->sdma_sc = sdma_sc; 469 470 return (0); 471}; 472 473static int 474setup_dma(struct sc_pcminfo *scp) --- 380 unchanged lines hidden --- | 467 468 sc->sdma_sc = sdma_sc; 469 470 return (0); 471}; 472 473static int 474setup_dma(struct sc_pcminfo *scp) --- 380 unchanged lines hidden --- |