2 Include for Serial Driver
4 Copyright (c) 2006 - 2009, Intel Corporation.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #include <FrameworkDxe.h>
21 #include <Protocol/IsaIo.h>
22 #include <Protocol/SerialIo.h>
23 #include <Protocol/DevicePath.h>
25 #include <Library/DebugLib.h>
26 #include <Library/UefiDriverEntryPoint.h>
27 #include <Library/UefiLib.h>
28 #include <Library/DevicePathLib.h>
29 #include <Library/BaseMemoryLib.h>
30 #include <Library/MemoryAllocationLib.h>
31 #include <Library/UefiBootServicesTableLib.h>
32 #include <Library/ReportStatusCodeLib.h>
33 #include <Library/PcdLib.h>
36 // Driver Binding Externs
38 extern EFI_DRIVER_BINDING_PROTOCOL gSerialControllerDriver
;
39 extern EFI_COMPONENT_NAME_PROTOCOL gIsaSerialComponentName
;
40 extern EFI_COMPONENT_NAME2_PROTOCOL gIsaSerialComponentName2
;
43 // Internal Data Structures
45 #define SERIAL_DEV_SIGNATURE SIGNATURE_32 ('s', 'e', 'r', 'd')
46 #define SERIAL_MAX_BUFFER_SIZE 16
47 #define TIMEOUT_STALL_INTERVAL 10
50 // Name: SERIAL_DEV_FIFO
51 // Purpose: To define Receive FIFO and Transmit FIFO
52 // Context: Used by serial data transmit and receive
54 // First UINT32: The index of the first data in array Data[]
55 // Last UINT32: The index, which you can put a new data into array Data[]
56 // Surplus UINT32: Identify how many data you can put into array Data[]
57 // Data[] UINT8 : An array, which used to store data
63 UINT8 Data
[SERIAL_MAX_BUFFER_SIZE
];
75 // Purpose: To provide device specific information
78 // Signature UINTN: The identity of the serial device
79 // SerialIo SERIAL_IO_PROTOCOL: Serial I/O protocol interface
80 // SerialMode SERIAL_IO_MODE:
81 // DevicePath EFI_DEVICE_PATH_PROTOCOL *: Device path of the serial device
82 // Handle EFI_HANDLE: The handle instance attached to serial device
83 // BaseAddress UINT16: The base address of specific serial device
84 // Receive SERIAL_DEV_FIFO: The FIFO used to store data,
85 // which is received by UART
86 // Transmit SERIAL_DEV_FIFO: The FIFO used to store data,
87 // which you want to transmit by UART
88 // SoftwareLoopbackEnable BOOLEAN:
89 // Type EFI_UART_TYPE: Specify the UART type of certain serial device
95 EFI_SERIAL_IO_PROTOCOL SerialIo
;
96 EFI_SERIAL_IO_MODE SerialMode
;
97 EFI_DEVICE_PATH_PROTOCOL
*DevicePath
;
99 EFI_DEVICE_PATH_PROTOCOL
*ParentDevicePath
;
100 UART_DEVICE_PATH UartDevicePath
;
101 EFI_ISA_IO_PROTOCOL
*IsaIo
;
104 SERIAL_DEV_FIFO Receive
;
105 SERIAL_DEV_FIFO Transmit
;
106 BOOLEAN SoftwareLoopbackEnable
;
107 BOOLEAN HardwareFlowControl
;
109 EFI_UNICODE_STRING_TABLE
*ControllerNameTable
;
112 #define SERIAL_DEV_FROM_THIS(a) CR (a, SERIAL_DEV, SerialIo, SERIAL_DEV_SIGNATURE)
115 // Serial Driver Defaults
117 #define SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH 1
118 #define SERIAL_PORT_DEFAULT_TIMEOUT 1000000
119 #define SERIAL_PORT_DEFAULT_CONTROL_MASK 0
123 // (24000000/13)MHz input clock
125 #define SERIAL_PORT_INPUT_CLOCK 1843200
128 // 115200 baud with rounding errors
130 #define SERIAL_PORT_MAX_BAUD_RATE 115400
131 #define SERIAL_PORT_MIN_BAUD_RATE 50
133 #define SERIAL_PORT_MAX_RECEIVE_FIFO_DEPTH 16
134 #define SERIAL_PORT_MIN_TIMEOUT 1 // 1 uS
135 #define SERIAL_PORT_MAX_TIMEOUT 100000000 // 100 seconds
139 #define SERIAL_REGISTER_THR 0 // WO Transmit Holding Register
140 #define SERIAL_REGISTER_RBR 0 // RO Receive Buffer Register
141 #define SERIAL_REGISTER_DLL 0 // R/W Divisor Latch LSB
142 #define SERIAL_REGISTER_DLM 1 // R/W Divisor Latch MSB
143 #define SERIAL_REGISTER_IER 1 // R/W Interrupt Enable Register
144 #define SERIAL_REGISTER_IIR 2 // RO Interrupt Identification Register
145 #define SERIAL_REGISTER_FCR 2 // WO FIFO Cotrol Register
146 #define SERIAL_REGISTER_LCR 3 // R/W Line Control Register
147 #define SERIAL_REGISTER_MCR 4 // R/W Modem Control Register
148 #define SERIAL_REGISTER_LSR 5 // R/W Line Status Register
149 #define SERIAL_REGISTER_MSR 6 // R/W Modem Status Register
150 #define SERIAL_REGISTER_SCR 7 // R/W Scratch Pad Register
153 // Name: SERIAL_PORT_IER_BITS
154 // Purpose: Define each bit in Interrupt Enable Register
157 // Ravie Bit0: Receiver Data Available Interrupt Enable
158 // Theie Bit1: Transmistter Holding Register Empty Interrupt Enable
159 // Rie Bit2: Receiver Interrupt Enable
160 // Mie Bit3: Modem Interrupt Enable
161 // Reserved Bit4-Bit7: Reserved
169 } SERIAL_PORT_IER_BITS
;
172 // Name: SERIAL_PORT_IER
176 // Bits SERIAL_PORT_IER_BITS: Bits of the IER
177 // Data UINT8: the value of the IER
180 SERIAL_PORT_IER_BITS Bits
;
185 // Name: SERIAL_PORT_FCR_BITS
186 // Purpose: Define each bit in FIFO Control Register
189 // TrFIFOE Bit0: Transmit and Receive FIFO Enable
190 // ResetRF Bit1: Reset Reciever FIFO
191 // ResetTF Bit2: Reset Transmistter FIFO
192 // Dms Bit3: DMA Mode Select
193 // Reserved Bit4-Bit5: Reserved
194 // Rtb Bit6-Bit7: Receive Trigger Bits
203 } SERIAL_PORT_FCR_BITS
;
206 // Name: SERIAL_PORT_FCR
210 // Bits SERIAL_PORT_FCR_BITS: Bits of the FCR
211 // Data UINT8: the value of the FCR
214 SERIAL_PORT_FCR_BITS Bits
;
219 // Name: SERIAL_PORT_LCR_BITS
220 // Purpose: Define each bit in Line Control Register
223 // SerialDB Bit0-Bit1: Number of Serial Data Bits
224 // StopB Bit2: Number of Stop Bits
225 // ParEn Bit3: Parity Enable
226 // EvenPar Bit4: Even Parity Select
227 // SticPar Bit5: Sticky Parity
228 // BrCon Bit6: Break Control
229 // DLab Bit7: Divisor Latch Access Bit
239 } SERIAL_PORT_LCR_BITS
;
242 // Name: SERIAL_PORT_LCR
246 // Bits SERIAL_PORT_LCR_BITS: Bits of the LCR
247 // Data UINT8: the value of the LCR
250 SERIAL_PORT_LCR_BITS Bits
;
255 // Name: SERIAL_PORT_MCR_BITS
256 // Purpose: Define each bit in Modem Control Register
259 // DtrC Bit0: Data Terminal Ready Control
260 // Rts Bit1: Request To Send Control
261 // Out1 Bit2: Output1
262 // Out2 Bit3: Output2, used to disable interrupt
263 // Lme; Bit4: Loopback Mode Enable
264 // Reserved Bit5-Bit7: Reserved
273 } SERIAL_PORT_MCR_BITS
;
276 // Name: SERIAL_PORT_MCR
280 // Bits SERIAL_PORT_MCR_BITS: Bits of the MCR
281 // Data UINT8: the value of the MCR
284 SERIAL_PORT_MCR_BITS Bits
;
289 // Name: SERIAL_PORT_LSR_BITS
290 // Purpose: Define each bit in Line Status Register
293 // Dr Bit0: Receiver Data Ready Status
294 // Oe Bit1: Overrun Error Status
295 // Pe Bit2: Parity Error Status
296 // Fe Bit3: Framing Error Status
297 // Bi Bit4: Break Interrupt Status
298 // Thre Bit5: Transmistter Holding Register Status
299 // Temt Bit6: Transmitter Empty Status
300 // FIFOe Bit7: FIFO Error Status
311 } SERIAL_PORT_LSR_BITS
;
314 // Name: SERIAL_PORT_LSR
318 // Bits SERIAL_PORT_LSR_BITS: Bits of the LSR
319 // Data UINT8: the value of the LSR
322 SERIAL_PORT_LSR_BITS Bits
;
327 // Name: SERIAL_PORT_MSR_BITS
328 // Purpose: Define each bit in Modem Status Register
331 // DeltaCTS Bit0: Delta Clear To Send Status
332 // DeltaDSR Bit1: Delta Data Set Ready Status
333 // TrailingEdgeRI Bit2: Trailing Edge of Ring Indicator Status
334 // DeltaDCD Bit3: Delta Data Carrier Detect Status
335 // Cts Bit4: Clear To Send Status
336 // Dsr Bit5: Data Set Ready Status
337 // Ri Bit6: Ring Indicator Status
338 // Dcd Bit7: Data Carrier Detect Status
343 UINT8 TrailingEdgeRI
: 1;
349 } SERIAL_PORT_MSR_BITS
;
352 // Name: SERIAL_PORT_MSR
356 // Bits SERIAL_PORT_MSR_BITS: Bits of the MSR
357 // Data UINT8: the value of the MSR
360 SERIAL_PORT_MSR_BITS Bits
;
366 // Define serial register I/O macros
368 #define READ_RBR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_RBR)
369 #define READ_DLL(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_DLL)
370 #define READ_DLM(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_DLM)
371 #define READ_IER(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_IER)
372 #define READ_IIR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_IIR)
373 #define READ_LCR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_LCR)
374 #define READ_MCR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_MCR)
375 #define READ_LSR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_LSR)
376 #define READ_MSR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_MSR)
377 #define READ_SCR(IO, B) IsaSerialReadPort (IO, B, SERIAL_REGISTER_SCR)
379 #define WRITE_THR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_THR, D)
380 #define WRITE_DLL(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_DLL, D)
381 #define WRITE_DLM(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_DLM, D)
382 #define WRITE_IER(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_IER, D)
383 #define WRITE_FCR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_FCR, D)
384 #define WRITE_LCR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_LCR, D)
385 #define WRITE_MCR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_MCR, D)
386 #define WRITE_LSR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_LSR, D)
387 #define WRITE_MSR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_MSR, D)
388 #define WRITE_SCR(IO, B, D) IsaSerialWritePort (IO, B, SERIAL_REGISTER_SCR, D)
392 // Driver model protocol interface
395 Check to see if this driver supports the given controller
397 @param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
398 @param Controller The handle of the controller to test.
399 @param RemainingDevicePath A pointer to the remaining portion of a device path.
401 @return EFI_SUCCESS This driver can support the given controller
406 SerialControllerDriverSupported (
407 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
408 IN EFI_HANDLE Controller
,
409 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
413 Start to management the controller passed in
415 @param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
416 @param Controller The handle of the controller to test.
417 @param RemainingDevicePath A pointer to the remaining portion of a device path.
419 @return EFI_SUCCESS Driver is started successfully
423 SerialControllerDriverStart (
424 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
425 IN EFI_HANDLE Controller
,
426 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
430 Disconnect this driver with the controller, uninstall related protocol instance
432 @param This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
433 @param Controller The handle of the controller to test.
434 @param NumberOfChildren Number of child device.
435 @param ChildHandleBuffer A pointer to the remaining portion of a device path.
437 @retval EFI_SUCCESS Operation successfully
438 @retval EFI_DEVICE_ERROR Cannot stop the driver successfully
443 SerialControllerDriverStop (
444 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
445 IN EFI_HANDLE Controller
,
446 IN UINTN NumberOfChildren
,
447 IN EFI_HANDLE
*ChildHandleBuffer
451 // Serial I/O Protocol Interface
456 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
458 @retval EFI_SUCCESS Reset successfully
459 @retval EFI_DEVICE_ERROR Failed to reset
465 IN EFI_SERIAL_IO_PROTOCOL
*This
469 Set new attributes to a serial device.
471 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
472 @param BaudRate The baudrate of the serial device
473 @param ReceiveFifoDepth The depth of receive FIFO buffer
474 @param Timeout The request timeout for a single char
475 @param Parity The type of parity used in serial device
476 @param DataBits Number of databits used in serial device
477 @param StopBits Number of stopbits used in serial device
479 @retval EFI_SUCCESS The new attributes were set
480 @retval EFI_INVALID_PARAMETERS One or more attributes have an unsupported value
481 @retval EFI_UNSUPPORTED Data Bits can not set to 5 or 6
482 @retval EFI_DEVICE_ERROR The serial device is not functioning correctly (no return)
487 IsaSerialSetAttributes (
488 IN EFI_SERIAL_IO_PROTOCOL
*This
,
490 IN UINT32 ReceiveFifoDepth
,
492 IN EFI_PARITY_TYPE Parity
,
494 IN EFI_STOP_BITS_TYPE StopBits
500 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
501 @param Control Control bits that can be settable
503 @retval EFI_SUCCESS New Control bits were set successfully
504 @retval EFI_UNSUPPORTED The Control bits wanted to set are not supported
509 IsaSerialSetControl (
510 IN EFI_SERIAL_IO_PROTOCOL
*This
,
517 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
518 @param Control Control signals of the serial device
520 @retval EFI_SUCCESS Get Control signals successfully
525 IsaSerialGetControl (
526 IN EFI_SERIAL_IO_PROTOCOL
*This
,
531 Write the specified number of bytes to serial device.
533 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
534 @param BufferSize On input the size of Buffer, on output the amount of
535 data actually written
536 @param Buffer The buffer of data to write
538 @retval EFI_SUCCESS The data were written successfully
539 @retval EFI_DEVICE_ERROR The device reported an error
540 @retval EFI_TIMEOUT The write operation was stopped due to timeout
546 IN EFI_SERIAL_IO_PROTOCOL
*This
,
547 IN OUT UINTN
*BufferSize
,
552 Read the specified number of bytes from serial device.
554 @param This Pointer to EFI_SERIAL_IO_PROTOCOL
555 @param BufferSize On input the size of Buffer, on output the amount of
556 data returned in buffer
557 @param Buffer The buffer to return the data into
559 @retval EFI_SUCCESS The data were read successfully
560 @retval EFI_DEVICE_ERROR The device reported an error
561 @retval EFI_TIMEOUT The read operation was stopped due to timeout
567 IN EFI_SERIAL_IO_PROTOCOL
*This
,
568 IN OUT UINTN
*BufferSize
,
573 // Internal Functions
576 Use scratchpad register to test if this serial port is present.
578 @param SerialDevice Pointer to serial device structure
580 @return if this serial port is present
583 IsaSerialPortPresent (
584 IN SERIAL_DEV
*SerialDevice
588 Detect whether specific FIFO is full or not.
590 @param Fifo A pointer to the Data Structure SERIAL_DEV_FIFO
592 @return whether specific FIFO is full or not
597 IN SERIAL_DEV_FIFO
*Fifo
601 Detect whether specific FIFO is empty or not.
603 @param Fifo A pointer to the Data Structure SERIAL_DEV_FIFO
605 @return whether specific FIFO is empty or not
610 IN SERIAL_DEV_FIFO
*Fifo
614 Add data to specific FIFO.
616 @param Fifo A pointer to the Data Structure SERIAL_DEV_FIFO
617 @param Data the data added to FIFO
619 @retval EFI_SUCCESS Add data to specific FIFO successfully
620 @retval EFI_OUT_OF_RESOURCE Failed to add data because FIFO is already full
625 IN SERIAL_DEV_FIFO
*Fifo
,
630 Remove data from specific FIFO.
632 @param Fifo A pointer to the Data Structure SERIAL_DEV_FIFO
633 @param Data the data removed from FIFO
635 @retval EFI_SUCCESS Remove data from specific FIFO successfully
636 @retval EFI_OUT_OF_RESOURCE Failed to remove data because FIFO is empty
640 IsaSerialFifoRemove (
641 IN SERIAL_DEV_FIFO
*Fifo
,
646 Reads and writes all avaliable data.
648 @param SerialDevice The device to flush
650 @retval EFI_SUCCESS Data was read/written successfully.
651 @retval EFI_OUT_OF_RESOURCE Failed because software receive FIFO is full. Note, when
652 this happens, pending writes are not done.
656 IsaSerialReceiveTransmit (
657 IN SERIAL_DEV
*SerialDevice
661 Use IsaIo protocol to read serial port.
663 @param IsaIo Pointer to EFI_ISA_IO_PROTOCOL instance
664 @param BaseAddress Serial port register group base address
665 @param Offset Offset in register group
667 @return Data read from serial port
672 IN EFI_ISA_IO_PROTOCOL
*IsaIo
,
673 IN UINT16 BaseAddress
,
678 Use IsaIo protocol to write serial port.
680 @param IsaIo Pointer to EFI_ISA_IO_PROTOCOL instance
681 @param BaseAddress Serial port register group base address
682 @param Offset Offset in register group
683 @param Data data which is to be written to some serial port register
688 IN EFI_ISA_IO_PROTOCOL
*IsaIo
,
689 IN UINT16 BaseAddress
,
696 // EFI Component Name Functions
699 Retrieves a Unicode string that is the user readable name of the driver.
701 This function retrieves the user readable name of a driver in the form of a
702 Unicode string. If the driver specified by This has a user readable name in
703 the language specified by Language, then a pointer to the driver name is
704 returned in DriverName, and EFI_SUCCESS is returned. If the driver specified
705 by This does not support the language specified by Language,
706 then EFI_UNSUPPORTED is returned.
708 @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
709 EFI_COMPONENT_NAME_PROTOCOL instance.
711 @param Language[in] A pointer to a Null-terminated ASCII string
712 array indicating the language. This is the
713 language of the driver name that the caller is
714 requesting, and it must match one of the
715 languages specified in SupportedLanguages. The
716 number of languages supported by a driver is up
717 to the driver writer. Language is specified
718 in RFC 4646 or ISO 639-2 language code format.
720 @param DriverName[out] A pointer to the Unicode string to return.
721 This Unicode string is the name of the
722 driver specified by This in the language
723 specified by Language.
725 @retval EFI_SUCCESS The Unicode string for the Driver specified by
726 This and the language specified by Language was
727 returned in DriverName.
729 @retval EFI_INVALID_PARAMETER Language is NULL.
731 @retval EFI_INVALID_PARAMETER DriverName is NULL.
733 @retval EFI_UNSUPPORTED The driver specified by This does not support
734 the language specified by Language.
739 IsaSerialComponentNameGetDriverName (
740 IN EFI_COMPONENT_NAME_PROTOCOL
*This
,
742 OUT CHAR16
**DriverName
747 Retrieves a Unicode string that is the user readable name of the controller
748 that is being managed by a driver.
750 This function retrieves the user readable name of the controller specified by
751 ControllerHandle and ChildHandle in the form of a Unicode string. If the
752 driver specified by This has a user readable name in the language specified by
753 Language, then a pointer to the controller name is returned in ControllerName,
754 and EFI_SUCCESS is returned. If the driver specified by This is not currently
755 managing the controller specified by ControllerHandle and ChildHandle,
756 then EFI_UNSUPPORTED is returned. If the driver specified by This does not
757 support the language specified by Language, then EFI_UNSUPPORTED is returned.
759 @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
760 EFI_COMPONENT_NAME_PROTOCOL instance.
762 @param ControllerHandle[in] The handle of a controller that the driver
763 specified by This is managing. This handle
764 specifies the controller whose name is to be
767 @param ChildHandle[in] The handle of the child controller to retrieve
768 the name of. This is an optional parameter that
769 may be NULL. It will be NULL for device
770 drivers. It will also be NULL for a bus drivers
771 that wish to retrieve the name of the bus
772 controller. It will not be NULL for a bus
773 driver that wishes to retrieve the name of a
776 @param Language[in] A pointer to a Null-terminated ASCII string
777 array indicating the language. This is the
778 language of the driver name that the caller is
779 requesting, and it must match one of the
780 languages specified in SupportedLanguages. The
781 number of languages supported by a driver is up
782 to the driver writer. Language is specified in
783 RFC 4646 or ISO 639-2 language code format.
785 @param ControllerName[out] A pointer to the Unicode string to return.
786 This Unicode string is the name of the
787 controller specified by ControllerHandle and
788 ChildHandle in the language specified by
789 Language from the point of view of the driver
792 @retval EFI_SUCCESS The Unicode string for the user readable name in
793 the language specified by Language for the
794 driver specified by This was returned in
797 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
799 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid
802 @retval EFI_INVALID_PARAMETER Language is NULL.
804 @retval EFI_INVALID_PARAMETER ControllerName is NULL.
806 @retval EFI_UNSUPPORTED The driver specified by This is not currently
807 managing the controller specified by
808 ControllerHandle and ChildHandle.
810 @retval EFI_UNSUPPORTED The driver specified by This does not support
811 the language specified by Language.
816 IsaSerialComponentNameGetControllerName (
817 IN EFI_COMPONENT_NAME_PROTOCOL
*This
,
818 IN EFI_HANDLE ControllerHandle
,
819 IN EFI_HANDLE ChildHandle OPTIONAL
,
821 OUT CHAR16
**ControllerName
825 Add the component name for the serial io device
827 @param SerialDevice A pointer to the SERIAL_DEV instance.
829 @param IsaIo A pointer to the EFI_ISA_IO_PROTOCOL instance.
834 IN SERIAL_DEV
*SerialDevice
,
835 IN EFI_ISA_IO_PROTOCOL
*IsaIo