]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/MdeModulePkg.dec
Add generic SerialPortLib instance for 16550 UARTs configured through PCDs. Depends...
[mirror_edk2.git] / MdeModulePkg / MdeModulePkg.dec
index 8cf4b75309b27e8c06c2a254a712d0c53940deb9..3a4b0aa2ccfbc95840c977df5fcccc63bb789230 100644 (file)
   #\r
   DebugAgentLib|Include/Library/DebugAgentLib.h\r
 \r
   #\r
   DebugAgentLib|Include/Library/DebugAgentLib.h\r
 \r
+  ##  @libraryclass  Provide platform specific hooks.\r
+  #\r
+  PlatformHookLib|Include/Library/PlatformHookLib.h\r
+  \r
 [Guids]\r
   ## MdeModule package token space guid\r
   # Include/Guid/MdeModulePkgTokenSpace.h\r
 [Guids]\r
   ## MdeModule package token space guid\r
   # Include/Guid/MdeModulePkgTokenSpace.h\r
   ## RTC Update Timeout Value\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout|100000|UINT32|0x00010034\r
 \r
   ## RTC Update Timeout Value\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout|100000|UINT32|0x00010034\r
 \r
+  ## If TRUE, then 16550 serial port registers are in MMIO space.  \r
+  #  If FALSE, then 16550 serial port registers are in I/O space.  Default value.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE|BOOLEAN|0x00020000\r
+  \r
+  ## If TRUE, then the 16550 serial port hardware flow control is enabled.\r
+  #  If FALSE, then the 16550 serial port hardware flow control is disabled.  Default value.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE|BOOLEAN|0x00020001\r
+\r
+  ## Base address of 16550 serial port registers in MMIO or I/O space.  Default is 0x3F8.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x03F8|UINT64|0x00020002\r
+\r
+  ## Baud rate for the 16550 serial port.  Default is 115200 baud.\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|115200|UINT32|0x00020003\r
+\r
+  ## Line Control Register (LCR) for the 16550 serial port.  This encodes data bits, parity, and stop bits.  \r
+  #    BIT1..BIT0 - Data bits.  00b = 5 bits, 01b = 6 bits, 10b = 7 bits, 11b = 8 bits\r
+  #    BIT2       - Stop Bits.  0 = 1 stop bit.  1 = 1.5 stop bits if 5 data bits selected, otherwise 2 stop bits.\r
+  #    BIT5..BIT2 - Parity.  xx0b = No Parity, 001b = Odd Parity, 011b = Even Parity, 101b = Mark Parity, 111b=Stick Parity\r
+  #    BIT7..BIT6 - Reserved.  Must be 0.\r
+  #\r
+  # Default is No Parity, 8 Data Bits, 1 Stop Bit.\r
+  #\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|0x03|UINT8|0x00020004\r
+\r
+  ## FIFO Control Register (FCR) for the 16550 serial port.   \r
+  #    BIT0       - FIFO Enable.  0 = Disable FIFOs.  1 = Enable FIFOs.\r
+  #    BIT1       - Clear receive FIFO.  1 = Clear FIFO.\r
+  #    BIT2       - Clear transmit FIFO.  1 = Clear FIFO.\r
+  #    BIT7..BIT3 - Reserved.  Must be 0.\r
+  #\r
+  # Default is to enable and clear all FIFOs.\r
+  #\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|0x07|UINT8|0x00020005\r
+\r
   ## Maximum address that the DXE Core will allocate the EFI_SYSTEM_TABLE_POINTER\r
   #  structure.  The default value for this PCD is 0, which means that the DXE Core\r
   #  will allocate the buffer from the EFI_SYSTEM_TABLE_POINTER structure on a 4MB\r
   ## Maximum address that the DXE Core will allocate the EFI_SYSTEM_TABLE_POINTER\r
   #  structure.  The default value for this PCD is 0, which means that the DXE Core\r
   #  will allocate the buffer from the EFI_SYSTEM_TABLE_POINTER structure on a 4MB\r