/* If two MSI vector are allocated, Advanced Error Interrupt Message Number is 1. otherwise 0. 17. RPERRSTS, 32:27 bit Advanced Error Interrupt Message Number.  */
static uint8_t ioh3420_aer_vector(const PCIDevice *d)
/* If two MSI vector are allocated, Advanced Error Interrupt Message Number is 1. otherwise 0. 17. RPERRSTS, 32:27 bit Advanced Error Interrupt Message Number.  */
static uint8_t ioh3420_aer_vector(const PCIDevice *d)
{
    switch (msi_nr_vectors_allocated(d)) {
    case 1:
        return 0;
    case 2:
        return 1;
    case 4:
    case 8:
    case 16:
    case 32:
    default:
        break;
    }
    abort();
    return 0;
}