/* Check if the SSB has actually been written by the adapter.  */
static unsigned char tms380tr_chk_ssb(struct net_local *tp, unsigned short IrqType)
/* Check if the SSB has actually been written by the adapter.  */
static unsigned char tms380tr_chk_ssb(struct net_local *tp, unsigned short IrqType)
{
	SSB *ssb = &tp->ssb;
	if(IrqType != STS_IRQ_TRANSMIT_STATUS &&
	   IrqType != STS_IRQ_RECEIVE_STATUS &&
	   IrqType != STS_IRQ_COMMAND_STATUS &&
	   IrqType != STS_IRQ_RING_STATUS)
	{
		return (1);
	}
	if(ssb->STS == (unsigned short) -1)
		return (0);
	if(IrqType == STS_IRQ_COMMAND_STATUS)
		return (1);
	if(ssb->Parm[0] == (unsigned short) -1)
		return (0);
	if(IrqType == STS_IRQ_RING_STATUS)
		return (1);
	if(ssb->Parm[1] == (unsigned short) -1)
		return (0);
	if(ssb->Parm[2] == (unsigned short) -1)
		return (0);
	return (1);
}