altera_jtag_uart_fdt.c (256281) | altera_jtag_uart_fdt.c (266152) |
---|---|
1/*- 2 * Copyright (c) 2012 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 7 * ("CTSRD"), as part of the DARPA CRASH research programme. 8 * --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) 7 * ("CTSRD"), as part of the DARPA CRASH research programme. 8 * --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: stable/10/sys/dev/altera/jtag_uart/altera_jtag_uart_fdt.c 245380 2013-01-13 16:57:11Z rwatson $"); | 32__FBSDID("$FreeBSD: stable/10/sys/dev/altera/jtag_uart/altera_jtag_uart_fdt.c 266152 2014-05-15 16:11:06Z ian $"); |
33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/condvar.h> 37#include <sys/conf.h> 38#include <sys/bio.h> 39#include <sys/kernel.h> 40#include <sys/lock.h> --- 18 unchanged lines hidden (view full) --- 59 60/* 61 * FDT bus attachment for Altera JTAG UARTs. 62 */ 63static int 64altera_jtag_uart_fdt_probe(device_t dev) 65{ 66 | 33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/condvar.h> 37#include <sys/conf.h> 38#include <sys/bio.h> 39#include <sys/kernel.h> 40#include <sys/lock.h> --- 18 unchanged lines hidden (view full) --- 59 60/* 61 * FDT bus attachment for Altera JTAG UARTs. 62 */ 63static int 64altera_jtag_uart_fdt_probe(device_t dev) 65{ 66 |
67 if (!ofw_bus_status_okay(dev)) 68 return (ENXIO); 69 |
|
67 if (ofw_bus_is_compatible(dev, "altera,jtag_uart-11_0")) { 68 device_set_desc(dev, "Altera JTAG UART"); 69 return (BUS_PROBE_DEFAULT); 70 } 71 return (ENXIO); 72} 73 74static int --- 73 unchanged lines hidden --- | 70 if (ofw_bus_is_compatible(dev, "altera,jtag_uart-11_0")) { 71 device_set_desc(dev, "Altera JTAG UART"); 72 return (BUS_PROBE_DEFAULT); 73 } 74 return (ENXIO); 75} 76 77static int --- 73 unchanged lines hidden --- |