brdsetup.c (bb0bb5df) brdsetup.c (a3034375)
1/* $NetBSD: brdsetup.c,v 1.18 2011/05/29 18:06:45 phx Exp $ */
1/* $NetBSD: brdsetup.c,v 1.19 2011/10/30 21:08:33 phx Exp $ */
2
3/*-
4 * Copyright (c) 2008 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Tohru Nishimura.
9 *

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

167#define LCR_8BITS 0x03
168#define MCR 4
169#define MCR_RTS 0x02
170#define MCR_DTR 0x01
171#define LSR 5
172#define LSR_THRE 0x20
173#define LSR_DRDY 0x01
174#define DCR 0x11
2
3/*-
4 * Copyright (c) 2008 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Tohru Nishimura.
9 *

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

167#define LCR_8BITS 0x03
168#define MCR 4
169#define MCR_RTS 0x02
170#define MCR_DTR 0x01
171#define LSR 5
172#define LSR_THRE 0x20
173#define LSR_DRDY 0x01
174#define DCR 0x11
175#define UART_READ(base, r) *(volatile char *)(base + (r))
176#define UART_WRITE(base, r, v) *(volatile char *)(base + (r)) = (v)
175#define UART_READ(base, r) in8(base + (r))
176#define UART_WRITE(base, r, v) out8(base + (r), (v))
177
178void brdsetup(void); /* called by entry.S */
179
180void
181brdsetup(void)
182{
183 static uint8_t pci_to_memclk[] = {
184 30, 30, 10, 10, 20, 10, 10, 10,

--- 929 unchanged lines hidden ---
177
178void brdsetup(void); /* called by entry.S */
179
180void
181brdsetup(void)
182{
183 static uint8_t pci_to_memclk[] = {
184 30, 30, 10, 10, 20, 10, 10, 10,

--- 929 unchanged lines hidden ---