Deleted Added
full compact
efiser.h (96893) efiser.h (163898)
1/* $FreeBSD: head/sys/boot/efi/include/efiser.h 96893 2002-05-19 03:17:22Z marcel $ */
1/* $FreeBSD: head/sys/boot/efi/include/efiser.h 163898 2006-11-02 02:42:48Z marcel $ */
2#ifndef _EFI_SER_H
3#define _EFI_SER_H
4
5/*++
6
2#ifndef _EFI_SER_H
3#define _EFI_SER_H
4
5/*++
6
7Copyright (c) 1998 Intel Corporation
7Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
8This software and associated documentation (if any) is furnished
9under a license and may only be used or copied in accordance
10with the terms of the license. Except as permitted by such
11license, no part of this software or documentation may be
12reproduced, stored in a retrieval system, or transmitted in any
13form or by any means without the express written consent of
14Intel Corporation.
8
9Module Name:
10
11 efiser.h
12
13Abstract:
14
15 EFI serial protocol
16
17Revision History
18
19--*/
20
15
16Module Name:
17
18 efiser.h
19
20Abstract:
21
22 EFI serial protocol
23
24Revision History
25
26--*/
27
21/*
22 * Serial protocol
23 */
28//
29// Serial protocol
30//
24
25#define SERIAL_IO_PROTOCOL \
26 { 0xBB25CF6F, 0xF1D4, 0x11D2, 0x9A, 0x0C, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0xFD }
27
28INTERFACE_DECL(_SERIAL_IO_INTERFACE);
29
30typedef enum {
31 DefaultParity,
32 NoParity,
33 EvenParity,
34 OddParity,
35 MarkParity,
36 SpaceParity
37} EFI_PARITY_TYPE;
38
39typedef enum {
31
32#define SERIAL_IO_PROTOCOL \
33 { 0xBB25CF6F, 0xF1D4, 0x11D2, 0x9A, 0x0C, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0xFD }
34
35INTERFACE_DECL(_SERIAL_IO_INTERFACE);
36
37typedef enum {
38 DefaultParity,
39 NoParity,
40 EvenParity,
41 OddParity,
42 MarkParity,
43 SpaceParity
44} EFI_PARITY_TYPE;
45
46typedef enum {
40 DefaultStopBits,
41 OneStopBit,
42 OneFiveStopBits,
43 TwoStopBits
47 DefaultStopBits,
48 OneStopBit, // 1 stop bit
49 OneFiveStopBits, // 1.5 stop bits
50 TwoStopBits // 2 stop bits
44} EFI_STOP_BITS_TYPE;
45
51} EFI_STOP_BITS_TYPE;
52
46#define EFI_SERIAL_CLEAR_TO_SEND 0x0010
47#define EFI_SERIAL_DATA_SET_READY 0x0020
48#define EFI_SERIAL_RING_INDICATE 0x0040
49#define EFI_SERIAL_CARRIER_DETECT 0x0080
50#define EFI_SERIAL_REQUEST_TO_SEND 0x0002
51#define EFI_SERIAL_DATA_TERMINAL_READY 0x0001
52#define EFI_SERIAL_INPUT_BUFFER_EMPTY 0x0100
53#define EFI_SERIAL_OUTPUT_BUFFER_EMPTY 0x0200
54#define EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE 0x1000
55#define EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE 0x2000
56#define EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE 0x4000
53#define EFI_SERIAL_CLEAR_TO_SEND 0x0010 // RO
54#define EFI_SERIAL_DATA_SET_READY 0x0020 // RO
55#define EFI_SERIAL_RING_INDICATE 0x0040 // RO
56#define EFI_SERIAL_CARRIER_DETECT 0x0080 // RO
57#define EFI_SERIAL_REQUEST_TO_SEND 0x0002 // WO
58#define EFI_SERIAL_DATA_TERMINAL_READY 0x0001 // WO
59#define EFI_SERIAL_INPUT_BUFFER_EMPTY 0x0100 // RO
60#define EFI_SERIAL_OUTPUT_BUFFER_EMPTY 0x0200 // RO
61#define EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE 0x1000 // RW
62#define EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE 0x2000 // RW
63#define EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE 0x4000 // RW
57
58typedef
59EFI_STATUS
60(EFIAPI *EFI_SERIAL_RESET) (
61 IN struct _SERIAL_IO_INTERFACE *This
62 );
63
64typedef

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

101 IN struct _SERIAL_IO_INTERFACE *This,
102 IN OUT UINTN *BufferSize,
103 OUT VOID *Buffer
104 );
105
106typedef struct {
107 UINT32 ControlMask;
108
64
65typedef
66EFI_STATUS
67(EFIAPI *EFI_SERIAL_RESET) (
68 IN struct _SERIAL_IO_INTERFACE *This
69 );
70
71typedef

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

108 IN struct _SERIAL_IO_INTERFACE *This,
109 IN OUT UINTN *BufferSize,
110 OUT VOID *Buffer
111 );
112
113typedef struct {
114 UINT32 ControlMask;
115
109 /* current Attributes. */
116 // current Attributes
110 UINT32 Timeout;
111 UINT64 BaudRate;
112 UINT32 ReceiveFifoDepth;
113 UINT32 DataBits;
114 UINT32 Parity;
115 UINT32 StopBits;
116} SERIAL_IO_MODE;
117

--- 15 unchanged lines hidden ---
117 UINT32 Timeout;
118 UINT64 BaudRate;
119 UINT32 ReceiveFifoDepth;
120 UINT32 DataBits;
121 UINT32 Parity;
122 UINT32 StopBits;
123} SERIAL_IO_MODE;
124

--- 15 unchanged lines hidden ---