hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/** @file
  This library class provides capability to get/set usb3 debug port parameter.
 
  Copyright (c) 2013 - 2019, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
 
**/
 
#ifndef __USB3_DEBUG_PORT_PARAMETER_LIB__
#define __USB3_DEBUG_PORT_PARAMETER_LIB__
 
typedef struct {
  UINT8  Function;
  UINT8  Device;
  UINT8  Bus;
} PCI_ADDRESS;
 
typedef union {
  UINT32       Controller;
  PCI_ADDRESS  PciAddress;
} USB3_DEBUG_PORT_CONTROLLER;
 
/**
  Returns the USB debug port controller.
  bit:  0~ 7: Function
  bit:  8~15: Device
  bit: 16~24: Bus
 
  @return  Controller information of USB debug port.
 
**/
UINT32
EFIAPI
GetUsb3DebugPortController (
  VOID
  );
 
/**
  Sets the USB debug port controller.
  bit:  0~ 7: Function
  bit:  8~15: Device
  bit: 16~24: Bus
 
  @param[in]    Controller information of USB debug port value to be set.
 
  @retval  TRUE           The controller of USB debug port was sucessfully set.
  @retval  FALSE          The controller of USB debug port could not be set.
 
**/
BOOLEAN
EFIAPI
SetUsb3DebugPortController (
  UINT32        Controller
  );
 
#endif