smc90cx6.c (106937) | smc90cx6.c (108470) |
---|---|
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */ | 1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */ |
2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 106937 2002-11-14 23:54:55Z sam $ */ | 2/* $FreeBSD: head/sys/dev/cm/smc90cx6.c 108470 2002-12-30 21:18:15Z schweikh $ */ |
3 4/*- 5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Ignatios Souvatzis. 10 * --- 1033 unchanged lines hidden (view full) --- 1044 1045/* 1046 * watchdog routine for transmitter. 1047 * 1048 * We need this, because else a receiver whose hardware is alive, but whose 1049 * software has not enabled the Receiver, would make our hardware wait forever 1050 * Discovered this after 20 times reading the docs. 1051 * | 3 4/*- 5 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to The NetBSD Foundation 9 * by Ignatios Souvatzis. 10 * --- 1033 unchanged lines hidden (view full) --- 1044 1045/* 1046 * watchdog routine for transmitter. 1047 * 1048 * We need this, because else a receiver whose hardware is alive, but whose 1049 * software has not enabled the Receiver, would make our hardware wait forever 1050 * Discovered this after 20 times reading the docs. 1051 * |
1052 * Only thing we do is disable transmitter. We'll get an transmit timeout, | 1052 * Only thing we do is disable transmitter. We'll get a transmit timeout, |
1053 * and the int handler will have to decide not to retransmit (in case 1054 * retransmission is implemented). 1055 * 1056 * This one assumes being called inside splimp() 1057 */ 1058 1059void 1060cm_watchdog(ifp) 1061 struct ifnet *ifp; 1062{ 1063 struct cm_softc *sc = ifp->if_softc; 1064 1065 PUTREG(CMCMD, CM_TXDIS); 1066 return; 1067} | 1053 * and the int handler will have to decide not to retransmit (in case 1054 * retransmission is implemented). 1055 * 1056 * This one assumes being called inside splimp() 1057 */ 1058 1059void 1060cm_watchdog(ifp) 1061 struct ifnet *ifp; 1062{ 1063 struct cm_softc *sc = ifp->if_softc; 1064 1065 PUTREG(CMCMD, CM_TXDIS); 1066 return; 1067} |