panic("ve_config: weird memory size %d", sc->sc_memsize);
panic("ve_config: weird memory size %ld", sc->sc_memsize);
ve_config(sc)	struct vam7990_softc *sc;{	int mem;	/* Make sure the chip is stopped. */	ve_stop(sc);	/* Initialize ifnet structure. */	bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);	ifp->if_softc = sc;	ifp->if_start = ve_start;	ifp->if_ioctl = ve_ioctl;	ifp->if_watchdog = ve_watchdog;	ifp->if_flags =	IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST;#ifdef LANCE_REVC_BUG	ifp->if_flags &= ~IFF_MULTICAST;#endif	/* Attach the interface. */	if_attach(ifp);	ether_ifattach(ifp);	if (sc->sc_memsize > 262144)		sc->sc_memsize = 262144;	switch (sc->sc_memsize) {	case 8192:		sc->sc_nrbuf = 4;		sc->sc_ntbuf = 1;		break;	case 16384:		sc->sc_nrbuf = 8;		sc->sc_ntbuf = 2;		break;	case 32768:		sc->sc_nrbuf = 16;		sc->sc_ntbuf = 4;		break;	case 65536:		sc->sc_nrbuf = 32;		sc->sc_ntbuf = 8;		break;	case 131072:		sc->sc_nrbuf = 64;		sc->sc_ntbuf = 16;		break;	case 262144:		sc->sc_nrbuf = 128;		sc->sc_ntbuf = 32;		break;	default:		panic("ve_config: weird memory size %d", sc->sc_memsize);	}	printf("\n%s: address %s\n", sc->sc_dev.dv_xname,	       ether_sprintf(sc->sc_arpcom.ac_enaddr));	printf("%s: %d receive buffers, %d transmit buffers\n",	       sc->sc_dev.dv_xname, sc->sc_nrbuf, sc->sc_ntbuf);	sc->sc_sh = shutdownhook_establish(ve_shutdown, sc);	if (sc->sc_sh == NULL)		panic("ve_config: can't establish shutdownhook");	mem = 0;	sc->sc_initaddr = mem;	mem += sizeof(struct veinit);	sc->sc_rmdaddr = mem;	mem += sizeof(struct vermd) * sc->sc_nrbuf;	sc->sc_tmdaddr = mem;	mem += sizeof(struct vetmd) * sc->sc_ntbuf;	sc->sc_rbufaddr = mem;	mem += LEBLEN * sc->sc_nrbuf;	sc->sc_tbufaddr = mem;	mem += LEBLEN * sc->sc_ntbuf;#ifdef notyet	if (mem > ...)		panic(...);#endif}