/*
* Copyright (c) 2002, 2003 Genetec corp. All rights reserved.
* Written by Hiroyuki Bessho for Genetec corp.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of Genetec corp. may not be used to endorse
* or promote products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY GENETEC CORP. ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORP.
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* XXX:
* AX88796's reset register doesn't seem to work, and
* ne2000_detect() fails. We hardcord NIC type here.
*/
sc->nsc.sc_type = NE2000_TYPE_NE2000; /* XXX _AX88796 ? */
sc->nsc.sc_dp8390.sc_flags = DP8390_NO_REMOTE_DMA_COMPLETE;
/* DP8390_NO_MULTI_BUFFERING; XXX */
/* G4250EBX doesn't have EEPROM hooked to AX88796. Read MAC
* address set by Redboot and don't let ne2000_atthch() try to
* read MAC from hardware. (current ne2000 driver doesn't
* support AX88796's EEPROM interface)
*/
#endif
/* delay intr_establish until this IF is enabled
to avoid spurious interrupts. */
sc->nsc.sc_dp8390.sc_enabled = 0;
sc->nsc.sc_dp8390.sc_enable = ne_obio_enable;
sc->intr_no = oba->oba_intr;