11da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* gdb-io.h: FR403 GDB I/O port defs
21da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
31da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.
41da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Written by David Howells (dhowells@redhat.com)
51da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
61da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * This program is free software; you can redistribute it and/or
71da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * modify it under the terms of the GNU General Public License
81da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * as published by the Free Software Foundation; either version
91da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * 2 of the License, or (at your option) any later version.
101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef _GDB_IO_H
131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define _GDB_IO_H
141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#include <asm/serial-regs.h>
161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_RX
181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_TX
191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_DLL
201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_DLM
211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_IER
221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_IIR
231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_FCR
241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_LCR
251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_MCR
261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_LSR
271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_MSR
281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#undef UART_SCR
291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_RX		0*8	/* In:  Receive buffer (DLAB=0) */
311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_TX		0*8	/* Out: Transmit buffer (DLAB=0) */
321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_DLL	0*8	/* Out: Divisor Latch Low (DLAB=1) */
331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_DLM	1*8	/* Out: Divisor Latch High (DLAB=1) */
341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_IER	1*8	/* Out: Interrupt Enable Register */
351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_IIR	2*8	/* In:  Interrupt ID Register */
361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_FCR	2*8	/* Out: FIFO Control Register */
371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR	3*8	/* Out: Line Control Register */
381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_MCR	4*8	/* Out: Modem Control Register */
391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LSR	5*8	/* In:  Line Status Register */
401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_MSR	6*8	/* In:  Modem Status Register */
411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_SCR	7*8	/* I/O: Scratch Register */
421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_DLAB	0x80	/* Divisor latch access bit */
441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_SBC	0x40	/* Set break control */
451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_SPAR	0x20	/* Stick parity (?) */
461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_EPAR	0x10	/* Even parity select */
471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_PARITY	0x08	/* Parity Enable */
481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_STOP	0x04	/* Stop bits: 0=1 stop bit, 1= 2 stop bits */
491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_WLEN5  0x00	/* Wordlength: 5 bits */
501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_WLEN6  0x01	/* Wordlength: 6 bits */
511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_WLEN7  0x02	/* Wordlength: 7 bits */
521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define UART_LCR_WLEN8  0x03	/* Wordlength: 8 bits */
531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif /* _GDB_IO_H */
56