PCIEM_CAP_PORT_TYPE
port_type = expr->expr_cap & PCIEM_CAP_PORT_TYPE;
switch (flags & PCIEM_CAP_PORT_TYPE) {
printf("type %d", (flags & PCIEM_CAP_PORT_TYPE) >> 8);