OpenCore
1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
PciExtInternal.h
Go to the documentation of this file.
1
15
#ifndef PCI_EXT_INTERNAL_H
16
#define PCI_EXT_INTERNAL_H
17
21
#define PCI_BRIDGE_RCBA_OFFSET 0xF0U
22
26
#define PCI_BRIDGE_RCBA_ADDRESS_MASK 0xFFFFC000U
27
31
#define PCI_BRIDGE_RCBA_ACCESS_ENABLE BIT0
32
36
#define RCBA_HTPC_REGISTER 0x3404U
37
41
#define RCBA_HTPC_HPET_ENABLE BIT7
42
46
#define XHC_HCCPARAMS_OFFSET 0x10
47
#define XHC_NEXT_CAPABILITY_MASK 0xFF00
48
#define XHC_CAPABILITY_ID_MASK 0xFF
49
#define XHC_USBCMD_OFFSET 0x0
50
#define XHC_USBSTS_OFFSET 0x4
51
#define XHC_POLL_DELAY 1000
52
56
#define EHC_BAR_INDEX 0x0
57
#define EHC_HCCPARAMS_OFFSET 0x8
58
#define EHC_USBCMD_OFFSET 0x0
59
#define EHC_USBSTS_OFFSET 0x4
60
#define EHC_USBINT_OFFSET 0x8
61
65
#define PCI_CLASS_MEDIA_HDA 0x03
66
70
#define PCI_MEDIA_TCSEL_OFFSET 0x44U
71
75
#define TCSEL_CLASS_MASK 0x7U
76
84
#define PCI_BAR_CAP_1MB BIT0
85
#define PCI_BAR_CAP_2MB BIT1
86
#define PCI_BAR_CAP_4MB BIT2
87
#define PCI_BAR_CAP_8MB BIT3
88
#define PCI_BAR_CAP_16MB BIT4
89
#define PCI_BAR_CAP_32MB BIT5
90
#define PCI_BAR_CAP_64MB BIT6
91
#define PCI_BAR_CAP_128MB BIT7
92
#define PCI_BAR_CAP_256MB BIT8
93
#define PCI_BAR_CAP_512MB BIT9
94
#define PCI_BAR_CAP_1GB BIT10
95
#define PCI_BAR_CAP_2GB BIT11
96
#define PCI_BAR_CAP_4GB BIT12
97
#define PCI_BAR_CAP_8GB BIT13
98
#define PCI_BAR_CAP_16GB BIT14
99
#define PCI_BAR_CAP_32GB BIT15
100
#define PCI_BAR_CAP_64GB BIT16
101
#define PCI_BAR_CAP_128GB BIT17
102
#define PCI_BAR_CAP_256GB BIT18
103
#define PCI_BAR_CAP_512GB BIT19
104
108
#define PCI_BAR_CAP_LIMIT(BarSize) ((1U << ((BarSize) + 1)) - 1)
109
110
#endif
// PCI_EXT_INTERNAL_H
Library
OcDeviceMiscLib
PciExtInternal.h
Generated by
1.12.0