17 if (hotplug_map[
port]) {
27 if (hotplug_map[
port]) {
28 char scope_name[] =
"\\_SB.PCI0.RP0x";
29 scope_name[
sizeof(
"\\_SB.PCI0.RP0x") - 2] =
'1' +
port;
76 if (hotplug_map[
port]) {
77 char reg_name[] =
"\\_SB.PCI0.RP0x.HPCS";
78 reg_name[
sizeof(
"\\_SB.PCI0.RP0x") - 2] =
'1' +
port;
93 memcpy(reg_name +
sizeof(
"\\_SB.PCI0.RP0x.") - 1,
"PDC", 4);
105 reg_name[
sizeof(
"\\_SB.PCI0.RP0x") - 1] =
'\0';
void acpigen_write_len_f(void)
void acpigen_emit_namestring(const char *namepath)
void acpigen_pop_len(void)
void acpigen_write_name_byte(const char *name, uint8_t val)
void acpigen_write_scope(const char *name)
void acpigen_emit_byte(unsigned char b)
void acpigen_write_byte(unsigned int data)
void acpigen_write_device(const char *name)
void acpigen_write_method(const char *name, int nargs)
void * memcpy(void *dest, const void *src, size_t n)
void intel_acpi_pcie_hotplug_generator(u8 *hotplug_map, int port_number)