diff options
Diffstat (limited to 'drivers/acpi/acpica/utmisc.c')
-rw-r--r-- | drivers/acpi/acpica/utmisc.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c index fbe782348b0b..9cd65334ca75 100644 --- a/drivers/acpi/acpica/utmisc.c +++ b/drivers/acpi/acpica/utmisc.c | |||
@@ -120,6 +120,34 @@ const char *acpi_ut_validate_exception(acpi_status status) | |||
120 | 120 | ||
121 | /******************************************************************************* | 121 | /******************************************************************************* |
122 | * | 122 | * |
123 | * FUNCTION: acpi_ut_is_pci_root_bridge | ||
124 | * | ||
125 | * PARAMETERS: Id - The HID/CID in string format | ||
126 | * | ||
127 | * RETURN: TRUE if the Id is a match for a PCI/PCI-Express Root Bridge | ||
128 | * | ||
129 | * DESCRIPTION: Determine if the input ID is a PCI Root Bridge ID. | ||
130 | * | ||
131 | ******************************************************************************/ | ||
132 | |||
133 | u8 acpi_ut_is_pci_root_bridge(char *id) | ||
134 | { | ||
135 | |||
136 | /* | ||
137 | * Check if this is a PCI root bridge. | ||
138 | * ACPI 3.0+: check for a PCI Express root also. | ||
139 | */ | ||
140 | if (!(ACPI_STRCMP(id, | ||
141 | PCI_ROOT_HID_STRING)) || | ||
142 | !(ACPI_STRCMP(id, PCI_EXPRESS_ROOT_HID_STRING))) { | ||
143 | return (TRUE); | ||
144 | } | ||
145 | |||
146 | return (FALSE); | ||
147 | } | ||
148 | |||
149 | /******************************************************************************* | ||
150 | * | ||
123 | * FUNCTION: acpi_ut_is_aml_table | 151 | * FUNCTION: acpi_ut_is_aml_table |
124 | * | 152 | * |
125 | * PARAMETERS: Table - An ACPI table | 153 | * PARAMETERS: Table - An ACPI table |