txp_cmd_desc
struct txp_cmd_desc *cmd;
cmd = (struct txp_cmd_desc *)(((u_int8_t *)sc->sc_cmdring.base) + idx);
idx += sizeof(struct txp_cmd_desc);
idx += sizeof(struct txp_cmd_desc);
nfree = br->br_cmd_siz - sizeof(struct txp_cmd_desc);
(widx - ridx + sizeof(struct txp_cmd_desc));
nfree = ridx - widx - sizeof(struct txp_cmd_desc);
return (nfree / sizeof(struct txp_cmd_desc));
struct txp_cmd_desc *cmd = d;
bzero(&ld->txp_cmdring, sizeof(struct txp_cmd_desc) * CMD_ENTRIES);
boot->br_cmd_siz = CMD_ENTRIES * sizeof(struct txp_cmd_desc);
sc->sc_cmdring.base = (struct txp_cmd_desc *)&ld->txp_cmdring;
sc->sc_cmdring.size = CMD_ENTRIES * sizeof(struct txp_cmd_desc);
struct txp_cmd_desc *base;
struct txp_cmd_desc txp_cmdring[CMD_ENTRIES];