diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-01-21 00:29:03 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2016-01-21 00:29:03 +0000 |
commit | c0beed6de1c87f19357c20582b8d3a87db3c7794 (patch) | |
tree | adb6e7184ffb7ae58297cd6951b9a88b9998cf2d | |
parent | 4cd75dd0276baa0803be4fa5590baad5e79cb916 (diff) | |
download | edk2-platforms-c0beed6de1c87f19357c20582b8d3a87db3c7794.tar.xz |
MdeModulePkg: SerialDxe: lay out mSerialIoMode initializer more nicely
This patch doesn't change behavior; it only modifies whitespace and
comments.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19699 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/SerialDxe/SerialIo.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/SerialDxe/SerialIo.c b/MdeModulePkg/Universal/SerialDxe/SerialIo.c index de928d1719..489a4a201a 100644 --- a/MdeModulePkg/Universal/SerialDxe/SerialIo.c +++ b/MdeModulePkg/Universal/SerialDxe/SerialIo.c @@ -181,13 +181,16 @@ SERIAL_DEVICE_PATH mSerialDevicePath = { // Template used to initialize the Serial IO protocols.
//
EFI_SERIAL_IO_MODE mSerialIoMode = {
- 0, // ControlMask
- 0, // Timeout
- 0, // BaudRate
- 1, // ReceiveFifoDepth
- 0, // DataBits
- 0, // Parity
- 0 // StopBits
+ //
+ // value field set in SerialDxeInitialize()?
+ //--------- ------------------- -----------------------------
+ 0, // ControlMask
+ 0, // Timeout
+ 0, // BaudRate yes
+ 1, // ReceiveFifoDepth
+ 0, // DataBits yes
+ 0, // Parity yes
+ 0 // StopBits yes
};
EFI_SERIAL_IO_PROTOCOL mSerialIoTemplate = {
|