36 EFI_HANDLE *HandleBuffer;
38 EFI_PCI_IO_PROTOCOL *PciIo;
42 Status =
gBS->LocateHandleBuffer (
44 &gEfiPciIoProtocolGuid,
50 if (EFI_ERROR (Status)) {
51 DEBUG ((DEBUG_INFO,
"OCDM: No PCI devices for TCSEL reset - %r\n", Status));
55 for (Index = 0; Index < HandleCount; ++Index) {
56 Status =
gBS->HandleProtocol (
58 &gEfiPciIoProtocolGuid,
62 if (EFI_ERROR (Status)) {
66 Status = PciIo->Pci.Read (
73 if (EFI_ERROR (Status)) {
77 if ((ClassCode.
BaseCode == PCI_CLASS_MEDIA) &&
82 if (EFI_ERROR (Status)) {
88 "OCDM: Discovered audio device at %u/%u with TCSEL %X\n",
100 TrafficClass &= ~TCSEL_CLASS_MASK;