kernels/linux-2.4.0/drivers/net/acenic.c
/*
 * Commands are considered to be slow.
 */
Commands are considered to be slow.
Commands are considered to be slow .
static inline void ace_issue_cmd(struct ace_regs *regs, struct cmd *cmd)
{
	u32 idx;
	idx = readl(&regs->CmdPrd);
	writel(*(u32 *)(cmd), &regs->CmdRng[idx]);
	idx = (idx + 1) % CMD_RING_ENTRIES;
	writel(idx, &regs->CmdPrd);
}
static inline void ace_issue_cmd ( struct ace_regs * regs , struct cmd * cmd ) { u32 idx ; idx = readl ( & regs -> CmdPrd ) ; writel ( * ( u32 * ) ( cmd ) , & regs -> CmdRng [ idx ] ) ; idx = ( idx + 1 ) % CMD_RING_ENTRIES ; writel ( idx , & regs -> CmdPrd ) ; }
Commands are considered to be slow.
Commands are considered to be slow .