OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ReleaseUsbOwnership.c File Reference
#include <Uefi.h>
#include <IndustryStandard/Pci.h>
#include <Protocol/PciIo.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/IoLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/OcDeviceMiscLib.h>
#include "PciExtInternal.h"

Go to the source code of this file.

Functions

STATIC EFI_STATUS XhciReleaseOwnership (IN EFI_PCI_IO_PROTOCOL *PciIo)
 
STATIC EFI_STATUS EhciReleaseOwnership (IN EFI_PCI_IO_PROTOCOL *PciIo)
 
STATIC EFI_STATUS UhciReleaseOwnership (IN EFI_PCI_IO_PROTOCOL *PciIo)
 
EFI_STATUS ReleaseUsbOwnership (VOID)
 

Detailed Description

Copyright (C) 2016 - 2017, The HermitCrabs Lab. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file ReleaseUsbOwnership.c.

Function Documentation

◆ EhciReleaseOwnership()

STATIC EFI_STATUS EhciReleaseOwnership ( IN EFI_PCI_IO_PROTOCOL * PciIo)

Release EHCI USB controllers ownership.

Parameters
[in]PciIoPCI I/O protocol for the device.
Return values
EFI_NOT_FOUNDNo EHCI controllers had ownership incorrectly set.
EFI_SUCCESSCorrected EHCI controllers ownership to OS.

Definition at line 193 of file ReleaseUsbOwnership.c.

◆ ReleaseUsbOwnership()

EFI_STATUS ReleaseUsbOwnership ( VOID )

Release UEFI ownership from USB controllers at booting.

Definition at line 534 of file ReleaseUsbOwnership.c.

◆ UhciReleaseOwnership()

STATIC EFI_STATUS UhciReleaseOwnership ( IN EFI_PCI_IO_PROTOCOL * PciIo)

Release UHCI USB controllers ownership.

Parameters
[in]PciIoPCI I/O protocol for the device.
Return values
EFI_NOT_FOUNDNo UHCI controllers had ownership incorrectly set.
EFI_SUCCESSCorrected UHCI controllers ownership to OS.

Definition at line 491 of file ReleaseUsbOwnership.c.

◆ XhciReleaseOwnership()

STATIC EFI_STATUS XhciReleaseOwnership ( IN EFI_PCI_IO_PROTOCOL * PciIo)

Release XHCI USB controllers ownership.

Parameters
[in]PciIoPCI I/O protocol for the device.
Return values
EFI_NOT_FOUNDNo XHCI controllers had ownership incorrectly set.
EFI_SUCCESSCorrected XHCI controllers ownership to OS.

Definition at line 39 of file ReleaseUsbOwnership.c.