TianoCore EDK2 master
|
#include "Serial.h"
Go to the source code of this file.
Variables | |
EFI_DRIVER_BINDING_PROTOCOL | gSerialControllerDriver |
CONTROLLER_DEVICE_PATH | mControllerDevicePathTemplate |
SERIAL_DEV | gSerialDevTemplate |
Serial driver for PCI or SIO UARTS.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Serial.c.
EFI_STATUS CreateSerialDevice | ( | IN EFI_HANDLE | Controller, |
IN UART_DEVICE_PATH * | Uart, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | ParentDevicePath, | ||
IN BOOLEAN | CreateControllerNode, | ||
IN UINT32 | Instance, | ||
IN PARENT_IO_PROTOCOL_PTR | ParentIo, | ||
IN PCI_SERIAL_PARAMETER *PciSerialParameter | OPTIONAL, | ||
IN PCI_DEVICE_INFO *PciDeviceInfo | OPTIONAL | ||
) |
Create the child serial device instance.
Controller | The parent controller handle. |
Uart | Pointer to the UART device path node in RemainingDevicePath, or NULL if RemainingDevicePath is NULL. |
ParentDevicePath | Pointer to the parent device path. |
CreateControllerNode | TRUE to create the controller node. |
Instance | Instance number of the serial device. The value will be set to the controller node if CreateControllerNode is TRUE. |
ParentIo | A union type pointer to either Sio or PciIo. |
PciSerialParameter | The PCI serial parameter to be used by current serial device. NULL for SIO serial device. |
PciDeviceInfo | The PCI device info for the current serial device. NULL for SIO serial device. |
EFI_SUCCESS | The serial device was created successfully. |
others | The serial device wasn't created. |
SERIAL_DEV ** GetChildSerialDevices | ( | IN EFI_HANDLE | Controller, |
IN EFI_GUID * | IoProtocolGuid, | ||
OUT UINTN * | Count | ||
) |
Returns an array of pointers containing all the child serial device pointers.
Controller | The parent controller handle. |
IoProtocolGuid | The protocol GUID, either equals to gEfiSioProtocolGuid or equals to gEfiPciIoProtocolGuid. |
Count | Count of the serial devices. |
EFI_STATUS EFIAPI InitializePciSioSerial | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The user Entry Point for module PciSioSerial. The user code starts with this function.
[in] | ImageHandle | The firmware allocated handle for the EFI image. |
[in] | SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
other | Some error occurs when executing this entry point. |
EFI_STATUS IsPciSerialController | ( | EFI_HANDLE | Controller | ) |
EFI_STATUS IsSioSerialController | ( | EFI_HANDLE | Controller | ) |
BOOLEAN IsUartFlowControlDevicePathNode | ( | IN UART_FLOW_CONTROL_DEVICE_PATH * | FlowControl | ) |
EFI_STATUS EFIAPI SerialControllerDriverStart | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Start to management the controller passed in
This | A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance. |
Controller | The handle of the controller to test. |
RemainingDevicePath | A pointer to the remaining portion of a device path. |
EFI_STATUS EFIAPI SerialControllerDriverStop | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN UINTN | NumberOfChildren, | ||
IN EFI_HANDLE * | ChildHandleBuffer | ||
) |
Disconnect this driver with the controller, uninstall related protocol instance
This | A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance. |
Controller | The handle of the controller to test. |
NumberOfChildren | Number of child device. |
ChildHandleBuffer | A pointer to the remaining portion of a device path. |
EFI_SUCCESS | Operation successfully |
EFI_DEVICE_ERROR | Cannot stop the driver successfully |
EFI_STATUS EFIAPI SerialControllerDriverSupported | ( | IN EFI_DRIVER_BINDING_PROTOCOL * | This, |
IN EFI_HANDLE | Controller, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | RemainingDevicePath | ||
) |
Check to see if this driver supports the given controller
This | A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance. |
Controller | The handle of the controller to test. |
RemainingDevicePath | A pointer to the remaining portion of a device path. |
EFI_DRIVER_BINDING_PROTOCOL gSerialControllerDriver |
SERIAL_DEV gSerialDevTemplate |
CONTROLLER_DEVICE_PATH mControllerDevicePathTemplate |