~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to include/grub/serial.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* serial.h - serial device interface */
 
2
/*
 
3
 *  GRUB  --  GRand Unified Bootloader
 
4
 *  Copyright (C) 2000,2001,2002,2005,2007  Free Software Foundation, Inc.
 
5
 *
 
6
 *  GRUB is free software: you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation, either version 3 of the License, or
 
9
 *  (at your option) any later version.
 
10
 *
 
11
 *  GRUB is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef GRUB_SERIAL_HEADER
 
21
#define GRUB_SERIAL_HEADER      1
 
22
 
 
23
/* Macros.  */
 
24
 
 
25
/* The offsets of UART registers.  */
 
26
#define UART_TX         0
 
27
#define UART_RX         0
 
28
#define UART_DLL        0
 
29
#define UART_IER        1
 
30
#define UART_DLH        1
 
31
#define UART_IIR        2
 
32
#define UART_FCR        2
 
33
#define UART_LCR        3
 
34
#define UART_MCR        4
 
35
#define UART_LSR        5
 
36
#define UART_MSR        6
 
37
#define UART_SR         7
 
38
 
 
39
/* For LSR bits.  */
 
40
#define UART_DATA_READY         0x01
 
41
#define UART_EMPTY_TRANSMITTER  0x20
 
42
 
 
43
/* The type of parity.  */
 
44
#define UART_NO_PARITY          0x00
 
45
#define UART_ODD_PARITY         0x08
 
46
#define UART_EVEN_PARITY        0x18
 
47
 
 
48
/* The type of word length.  */
 
49
#define UART_5BITS_WORD 0x00
 
50
#define UART_6BITS_WORD 0x01
 
51
#define UART_7BITS_WORD 0x02
 
52
#define UART_8BITS_WORD 0x03
 
53
 
 
54
/* The type of the length of stop bit.  */
 
55
#define UART_1_STOP_BIT         0x00
 
56
#define UART_2_STOP_BITS        0x04
 
57
 
 
58
/* the switch of DLAB.  */
 
59
#define UART_DLAB       0x80
 
60
 
 
61
/* Enable the FIFO.  */
 
62
#define UART_ENABLE_FIFO        0xC7
 
63
 
 
64
/* Turn on DTR, RTS, and OUT2.  */
 
65
#define UART_ENABLE_MODEM       0x0B
 
66
 
 
67
#endif /* ! GRUB_SERIAL_MACHINE_HEADER */