uart_cpu_powerpc.c (168281) | uart_cpu_powerpc.c (174782) |
---|---|
1/*- 2 * Copyright (c) 2006 Marcel Moolenaar 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 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Marcel Moolenaar 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 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_powerpc.c 168281 2007-04-02 22:00:22Z marcel $"); | 28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_powerpc.c 174782 2007-12-19 18:00:50Z marcel $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32 33#include <machine/bus.h> 34 35#include <dev/ofw/openfirm.h> 36#include <machine/ofw_machdep.h> 37 38#include <dev/uart/uart.h> 39#include <dev/uart/uart_cpu.h> 40 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32 33#include <machine/bus.h> 34 35#include <dev/ofw/openfirm.h> 36#include <machine/ofw_machdep.h> 37 38#include <dev/uart/uart.h> 39#include <dev/uart/uart_cpu.h> 40 |
41bus_space_tag_t uart_bus_space_io = PPC_BUS_SPACE_IO; 42bus_space_tag_t uart_bus_space_mem = PPC_BUS_SPACE_MEM; | 41bus_space_tag_t uart_bus_space_io = &bs_le_tag; 42bus_space_tag_t uart_bus_space_mem = &bs_le_tag; |
43 44int 45uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2) 46{ 47 48 return ((b1->bsh == b2->bsh) ? 1 : 0); 49} 50 --- 62 unchanged lines hidden --- | 43 44int 45uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2) 46{ 47 48 return ((b1->bsh == b2->bsh) ? 1 : 0); 49} 50 --- 62 unchanged lines hidden --- |