SLOT
if ((strcmp(pname, BAY) == 0 || strcmp(pname, SLOT) == 0 ||
{ SLOT, TOPO_STABILITY_PRIVATE },
strcmp(name, RECEPTACLE) == 0 || strcmp(name, SLOT) == 0) {
SLOT, slotinfo->usi_slotid, NULL, auth, NULL, NULL, NULL)) ==
if ((slotnode = topo_node_bind(mod, ufmnode, SLOT,
SLOT);
if (topo_node_range_create(mod, ufmnode, SLOT, 0, 0) < 0) {
topo_mod_dprintf(mod, "error creating %s range", SLOT);
SLOT, smed->sme_slot_inst, NULL, auth, NULL, NULL, NULL)) ==
if ((slotnode = topo_node_bind(mod, smed->sme_pnode, SLOT,
": %s", SLOT, smed->sme_slot_inst, topo_strerror(err));
SLOT, smed->sme_slot_inst, topo_strerror(err));
"%s=%" PRIu64 ": %s", SLOT, smed->sme_slot_inst,
topo_mod_dprintf(mod, "failed to create %s node", SLOT);
if (strcmp(name, SLOT) == 0) {
if (topo_node_range_create(mod, img_tn, SLOT, 0, nslots - 1) != 0) {
"%s", SLOT, nslots - 1, topo_mod_errmsg(mod));
SLOT(start_slot + 1, tx_ring_size),
&dp->tx_ring[SFE_DESC_SIZE * SLOT(slot + ndesc - 1, tx_ring_size)];
n = SLOT(slot + i, tx_ring_size);
&dp->tx_ring[SFE_DESC_SIZE * SLOT(slot - 1, tx_ring_size)];
&dp->rx_ring[SFE_DESC_SIZE * SLOT(slot - 1, rx_ring_size)];
SLOT(dp->rx_active_head, rx_ring_size));
sn, SLOT(sn, dp->gc.gc_tx_buf_size),
head, SLOT(head, dp->gc.gc_tx_buf_size),
tail, SLOT(tail, dp->gc.gc_tx_buf_size));
&(dp)->tx_buf[SLOT((dp)->tx_slots_base + (sn), (dp)->gc.gc_tx_buf_size)]
SLOT(dp->tx_desc_head, tx_ring_size),
SLOT(tbp->txb_desc, tx_ring_size), ndescs);
dp->name, sn, SLOT(sn, tx_ring_size));
head, SLOT(head, dp->gc.gc_tx_buf_size),
tail, SLOT(tail, dp->gc.gc_tx_buf_size));
SLOT(sn, tx_ring_size),
SLOT(tbp_head->txb_desc, dp->gc.gc_tx_ring_size),
SLOT(tail, rx_ring_size),
SLOT(active_head, rx_ring_size),
SLOT(active_head, rx_ring_size),
SLOT(head, rx_ring_size), dp->rx_active_tail - head);
SLOT(dp->rx_active_head, dp->gc.gc_rx_ring_size),
SLOT(head, dp->gc.gc_rx_ring_size), nslot,
SLOT(dp->tx_active_head, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_active_tail, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_softq_head, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_softq_tail, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_free_head, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_free_tail, dp->gc.gc_tx_buf_size),
SLOT(dp->tx_desc_head, dp->gc.gc_tx_ring_size),
SLOT(dp->tx_desc_tail, dp->gc.gc_tx_ring_size),
SLOT(dp->tx_desc_intr, dp->gc.gc_tx_ring_size),
&dp->tx_buf[SLOT(i + 1, dp->gc.gc_tx_buf_size)];
SLOT(dp->tx_slots_base + dp->tx_softq_head, tx_buf_size);
#define CHERRYSTONE_GETAID(SLOT, SID) (((SLOT&2)<<1)|(SLOT&1)|((SID)<<1))
#define DAK_GETAID(SLOT, RELCPU) (((SLOT&2)<<1)|(SLOT&1)|((RELCPU)<<1))
#define DAK_GET_SBD_APID(BUF, SZ, SLOT) (void) snprintf((BUF), (SZ), "SB%c", \
'a'+(SLOT))
#define DAK_GET_PCI_APID(BUF, SZ, SLOT) (void) snprintf((BUF), \
(SLOT))
#define HPC3130_GENERAL_CONFIG_REG(SLOT) (0x00 + ((SLOT) * 8))
#define HPC3130_HP_STATUS_REG(SLOT) (0x01 + ((SLOT) * 8))
#define HPC3130_HP_CONTROL_REG(SLOT) (0x02 + ((SLOT) * 8))
#define HPC3130_ATTENTION_INDICATOR(SLOT) (0x03 + ((SLOT) * 8))
#define HPC3130_INTERRUPT_STATUS_REG(SLOT) (0x06 + ((SLOT) * 8))
#define HPC3130_INTERRUPT_ENABLE_REG(SLOT) (0x07 + ((SLOT) * 8))