XHCI_MAX_SLOTS
else if (slot > XHCI_MAX_SLOTS)
if (slot == 0 || slot > XHCI_MAX_SLOTS) {
sc->slots = calloc(XHCI_MAX_SLOTS, sizeof(struct pci_xhci_dev_emu *));
if (*cp != '\0' || slot <= 0 || slot > XHCI_MAX_SLOTS) {
XHCI_SET_HCSP1_MAXSLOTS(XHCI_MAX_SLOTS);
sc->rtsoff = XHCI_SET_RTSOFFSET(sc->dboff + (XHCI_MAX_SLOTS+1) * 32);
for (i = 1; i <= XHCI_MAX_SLOTS; i++) {
assert(slot > 0 && slot <= XHCI_MAX_SLOTS);
for (i = 1; i <= XHCI_MAX_SLOTS; i++) {
B_FALSE, sizeof (uint64_t) * XHCI_MAX_SLOTS, B_FALSE) == B_FALSE) {
bzero(dcb->xdc_base_addrs, sizeof (uint64_t) * XHCI_MAX_SLOTS);