/* Mark the given read buffer descriptor as free  */
static void fec_rbd_clean(int last, struct fec_bd *prbd)
/* Mark the given read buffer descriptor as free  */
static void fec_rbd_clean(int last, struct fec_bd *prbd)
{
	unsigned short flags = FEC_RBD_EMPTY;
	if (last)
		flags |= FEC_RBD_WRAP;
	writew(flags, &prbd->status);
	writew(0, &prbd->data_length);
}