]> git.proxmox.com Git - mirror_edk2.git/blob - ArmEbPkg/Library/GdbSerialLib/GdbSerialLib.c
A better template, with some build scripts, for ArmEbPkg. New libraries are just...
[mirror_edk2.git] / ArmEbPkg / Library / GdbSerialLib / GdbSerialLib.c
1 /** @file
2 Basic serial IO abstaction for GDB
3
4 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #include <Uefi.h>
17 #include <Library/GdbSerialLib.h>
18 #include <Library/PcdLib.h>
19 #include <Library/IoLib.h>
20 #include <Library/DebugLib.h>
21 #include <ArmEb/ArmEb.h>
22
23 RETURN_STATUS
24 EFIAPI
25 GdbSerialLibConstructor (
26 VOID
27 )
28 {
29 return RETURN_SUCCESS;
30 }
31
32 RETURN_STATUS
33 EFIAPI
34 GdbSerialInit (
35 IN UINT64 BaudRate,
36 IN UINT8 Parity,
37 IN UINT8 DataBits,
38 IN UINT8 StopBits
39 )
40 {
41 return RETURN_SUCCESS;
42 }
43
44 BOOLEAN
45 EFIAPI
46 GdbIsCharAvailable (
47 VOID
48 )
49 {
50 return FALSE;
51 }
52
53 CHAR8
54 EFIAPI
55 GdbGetChar (
56 VOID
57 )
58 {
59 return (CHAR8)0;
60 }
61
62 VOID
63 EFIAPI
64 GdbPutChar (
65 IN CHAR8 Char
66 )
67 {
68 return;
69 }
70
71 VOID
72 GdbPutString (
73 IN CHAR8 *String
74 )
75 {
76 while (*String != '\0') {
77 GdbPutChar (*String);
78 String++;
79 }
80 }
81
82
83
84