sbbc.c (248965) | sbbc.c (281438) |
---|---|
1/* $OpenBSD: sbbc.c,v 1.7 2009/11/09 17:53:39 nicm Exp $ */ 2/*- 3 * Copyright (c) 2008 Mark Kettenis 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 27 unchanged lines hidden (view full) --- 36 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 40 * SUCH DAMAGE. 41 */ 42 43#include <sys/cdefs.h> | 1/* $OpenBSD: sbbc.c,v 1.7 2009/11/09 17:53:39 nicm Exp $ */ 2/*- 3 * Copyright (c) 2008 Mark Kettenis 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 27 unchanged lines hidden (view full) --- 36 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 40 * SUCH DAMAGE. 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/sparc64/pci/sbbc.c 248965 2013-04-01 00:44:20Z ian $"); | 44__FBSDID("$FreeBSD: head/sys/sparc64/pci/sbbc.c 281438 2015-04-11 17:16:23Z andrew $"); |
45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/bus.h> 49#include <sys/clock.h> 50#include <sys/endian.h> 51#include <sys/kernel.h> 52#include <sys/lock.h> --- 755 unchanged lines hidden (view full) --- 808}; 809 810struct uart_class uart_sbbc_class = { 811 "sbbc", 812 sbbc_uart_methods, 813 sizeof(struct uart_softc), 814 .uc_ops = &sbbc_uart_ops, 815 .uc_range = 1, | 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/bus.h> 49#include <sys/clock.h> 50#include <sys/endian.h> 51#include <sys/kernel.h> 52#include <sys/lock.h> --- 755 unchanged lines hidden (view full) --- 808}; 809 810struct uart_class uart_sbbc_class = { 811 "sbbc", 812 sbbc_uart_methods, 813 sizeof(struct uart_softc), 814 .uc_ops = &sbbc_uart_ops, 815 .uc_range = 1, |
816 .uc_rclk = 0x5bbc /* arbitrary */ | 816 .uc_rclk = 0x5bbc, /* arbitrary */ 817 .uc_rshift = 0 |
817}; 818 819#define SIGCHG(c, i, s, d) \ 820 if ((c) != 0) { \ 821 i |= (((i) & (s)) != 0) ? (s) : (s) | (d); \ 822 } else { \ 823 i = (((i) & (s)) != 0) ? ((i) & ~(s)) | (d) : (i); \ 824 } --- 286 unchanged lines hidden --- | 818}; 819 820#define SIGCHG(c, i, s, d) \ 821 if ((c) != 0) { \ 822 i |= (((i) & (s)) != 0) ? (s) : (s) | (d); \ 823 } else { \ 824 i = (((i) & (s)) != 0) ? ((i) & ~(s)) | (d) : (i); \ 825 } --- 286 unchanged lines hidden --- |