/* To remove a packet from the receive queue you clear its PKT_IN_USE bit, and then bump the pointers. Once the pointers get to the end, they must be wrapped back to the start.  */
void remove_receive(struct Port *PortP)
/* To remove a packet from the receive queue you clear its PKT_IN_USE bit, and then bump the pointers. Once the pointers get to the end, they must be wrapped back to the start.  */
void remove_receive(struct Port *PortP)
{
	writew(readw(PortP->RxRemove) & ~PKT_IN_USE, PortP->RxRemove);
	PortP->RxRemove = (PortP->RxRemove == PortP->RxEnd) ? PortP->RxStart : PortP->RxRemove + 1;
	writew(RIO_OFF(PortP->Caddr, PortP->RxRemove), &PortP->PhbP->rx_remove);
}