From 97acb4446619c5573f564a6d1159a2c3bba27188 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 7 Dec 2004 06:10:25 +0000 Subject: Cleanup. Rename some defines, add wp_lite_set_te1_cfg() (used to change LBO and T1/E1 clock configurations) ok deraadt@ --- sys/dev/pci/if_san_xilinx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_san_xilinx.c') diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c index 2153c5f8d97..b85b6326850 100644 --- a/sys/dev/pci/if_san_xilinx.c +++ b/sys/dev/pci/if_san_xilinx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_xilinx.c,v 1.5 2004/11/10 10:14:47 grange Exp $ */ +/* $OpenBSD: if_san_xilinx.c,v 1.6 2004/12/07 06:10:24 mcbride Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -339,6 +339,8 @@ wan_xilinx_init(sdla_t *card) } memset(sc, 0, sizeof(xilinx_softc_t)); ifp = (struct ifnet *)&sc->common.ifp; + ifp->if_softc = sc; + sc->common.card = card; if (wanpipe_generic_register(card, ifp, card->devname)) { free(sc, M_DEVBUF); return (NULL); @@ -346,8 +348,6 @@ wan_xilinx_init(sdla_t *card) strlcpy(sc->if_name, ifp->if_xname, IFNAMSIZ); - ifp->if_softc = sc; - sc->common.card = card; sc->first_time_slot=-1; sc->time_slot_map = 0; -- cgit v1.2.3