2010-03-18 23:51:42 +03:00
|
|
|
/* $NetBSD: if_re_cardbus.c,v 1.25 2010/03/18 20:51:42 dyoung Exp $ */
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2004 Jonathan Stone
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* 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 the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 THE AUTHOR 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* if_re_cardbus.c:
|
|
|
|
* Cardbus specific routines for Realtek 8169 ethernet adapter.
|
|
|
|
* Tested for :
|
|
|
|
* Netgear GA-511 (8169S)
|
2005-01-13 17:13:18 +03:00
|
|
|
* Buffalo LPC-CB-CLGT
|
2004-12-23 09:26:30 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2010-03-18 23:51:42 +03:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: if_re_cardbus.c,v 1.25 2010/03/18 20:51:42 dyoung Exp $");
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/device.h>
|
|
|
|
|
|
|
|
#include <net/if.h>
|
|
|
|
#include <net/if_ether.h>
|
|
|
|
#include <net/if_media.h>
|
|
|
|
|
2007-10-19 15:59:34 +04:00
|
|
|
#include <sys/bus.h>
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
#include <dev/pci/pcireg.h>
|
|
|
|
#include <dev/pci/pcivar.h>
|
|
|
|
#include <dev/pci/pcidevs.h>
|
|
|
|
|
|
|
|
#include <dev/cardbus/cardbusvar.h>
|
|
|
|
|
|
|
|
#include <dev/mii/mii.h>
|
|
|
|
#include <dev/mii/miivar.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default to using PIO access for this driver. On SMP systems,
|
|
|
|
* there appear to be problems with memory mapped mode: it looks like
|
|
|
|
* doing too many memory mapped access back to back in rapid succession
|
|
|
|
* can hang the bus. I'm inclined to blame this on crummy design/construction
|
|
|
|
* on the part of Realtek. Memory mapped mode does appear to work on
|
|
|
|
* uniprocessor systems though.
|
|
|
|
*/
|
2005-02-27 03:26:58 +03:00
|
|
|
#define RTK_USEIOSPACE
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
#include <dev/ic/rtl81x9reg.h>
|
|
|
|
#include <dev/ic/rtl81x9var.h>
|
|
|
|
|
|
|
|
#include <dev/ic/rtl8169var.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Various supported device vendors/types and their names.
|
|
|
|
*/
|
|
|
|
static const struct rtk_type re_cardbus_devs[] = {
|
|
|
|
{ PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169,
|
|
|
|
RTK_8169, "Realtek 10/100/1000baseT" },
|
|
|
|
{ 0, 0, 0, NULL }
|
|
|
|
};
|
|
|
|
|
2008-04-25 15:27:19 +04:00
|
|
|
static int re_cardbus_match(device_t, cfdata_t, void *);
|
|
|
|
static void re_cardbus_attach(device_t, device_t, void *);
|
|
|
|
static int re_cardbus_detach(device_t, int);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
struct re_cardbus_softc {
|
2005-02-27 03:26:58 +03:00
|
|
|
struct rtk_softc sc_rtk; /* real rtk softc */
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/* CardBus-specific goo. */
|
|
|
|
void *sc_ih;
|
|
|
|
cardbus_devfunc_t sc_ct;
|
2010-02-24 22:52:51 +03:00
|
|
|
pcitag_t sc_tag;
|
2010-02-26 03:01:27 +03:00
|
|
|
pcireg_t sc_csr;
|
2004-12-23 09:26:30 +03:00
|
|
|
int sc_bar_reg;
|
|
|
|
pcireg_t sc_bar_val;
|
|
|
|
bus_size_t sc_mapsize;
|
2008-06-24 23:44:51 +04:00
|
|
|
cardbus_intr_line_t sc_intrline;
|
2004-12-23 09:26:30 +03:00
|
|
|
};
|
|
|
|
|
2008-04-25 15:27:19 +04:00
|
|
|
CFATTACH_DECL_NEW(re_cardbus, sizeof(struct re_cardbus_softc),
|
2004-12-23 09:26:30 +03:00
|
|
|
re_cardbus_match, re_cardbus_attach, re_cardbus_detach, re_activate);
|
|
|
|
|
2005-01-15 15:32:09 +03:00
|
|
|
const struct rtk_type *re_cardbus_lookup(const struct cardbus_attach_args *);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
2005-01-15 15:32:09 +03:00
|
|
|
void re_cardbus_setup(struct re_cardbus_softc *);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
2005-01-15 15:32:09 +03:00
|
|
|
int re_cardbus_enable(struct rtk_softc *);
|
|
|
|
void re_cardbus_disable(struct rtk_softc *);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
const struct rtk_type *
|
2005-01-15 15:32:09 +03:00
|
|
|
re_cardbus_lookup(const struct cardbus_attach_args *ca)
|
2004-12-23 09:26:30 +03:00
|
|
|
{
|
|
|
|
const struct rtk_type *t;
|
|
|
|
|
|
|
|
for (t = re_cardbus_devs; t->rtk_name != NULL; t++) {
|
2010-02-26 03:57:01 +03:00
|
|
|
if (PCI_VENDOR(ca->ca_id) == t->rtk_vid &&
|
|
|
|
PCI_PRODUCT(ca->ca_id) == t->rtk_did) {
|
2005-01-15 15:32:09 +03:00
|
|
|
return t;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
}
|
2005-01-15 15:32:09 +03:00
|
|
|
return NULL;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
2008-04-25 15:27:19 +04:00
|
|
|
re_cardbus_match(device_t parent, cfdata_t cf, void *aux)
|
2004-12-23 09:26:30 +03:00
|
|
|
{
|
|
|
|
struct cardbus_attach_args *ca = aux;
|
|
|
|
|
|
|
|
if (re_cardbus_lookup(ca) != NULL)
|
2005-01-15 15:32:09 +03:00
|
|
|
return 1;
|
2004-12-23 09:26:30 +03:00
|
|
|
|
2005-01-15 15:32:09 +03:00
|
|
|
return 0;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2008-04-25 15:27:19 +04:00
|
|
|
re_cardbus_attach(device_t parent, device_t self, void *aux)
|
2004-12-23 09:26:30 +03:00
|
|
|
{
|
2006-03-29 10:22:38 +04:00
|
|
|
struct re_cardbus_softc *csc = device_private(self);
|
2004-12-23 09:26:30 +03:00
|
|
|
struct rtk_softc *sc = &csc->sc_rtk;
|
|
|
|
struct cardbus_attach_args *ca = aux;
|
|
|
|
cardbus_devfunc_t ct = ca->ca_ct;
|
|
|
|
const struct rtk_type *t;
|
|
|
|
bus_addr_t adr;
|
|
|
|
|
2008-04-25 15:27:19 +04:00
|
|
|
sc->sc_dev = self;
|
2004-12-23 09:26:30 +03:00
|
|
|
sc->sc_dmat = ca->ca_dmat;
|
|
|
|
csc->sc_ct = ct;
|
|
|
|
csc->sc_tag = ca->ca_tag;
|
|
|
|
csc->sc_intrline = ca->ca_intrline;
|
|
|
|
|
2005-02-27 03:26:58 +03:00
|
|
|
t = re_cardbus_lookup(ca);
|
|
|
|
if (t == NULL) {
|
|
|
|
aprint_error("\n");
|
2008-04-25 15:27:19 +04:00
|
|
|
panic("%s: impossible", __func__);
|
2005-02-27 03:26:58 +03:00
|
|
|
}
|
|
|
|
aprint_normal(": %s\n", t->rtk_name);
|
|
|
|
|
2004-12-23 09:26:30 +03:00
|
|
|
/*
|
|
|
|
* Power management hooks.
|
|
|
|
*/
|
|
|
|
sc->sc_enable = re_cardbus_enable;
|
|
|
|
sc->sc_disable = re_cardbus_disable;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Map control/status registers.
|
|
|
|
*/
|
2010-02-26 03:57:01 +03:00
|
|
|
csc->sc_csr = PCI_COMMAND_MASTER_ENABLE;
|
2004-12-23 09:26:30 +03:00
|
|
|
#ifdef RTK_USEIOSPACE
|
2010-02-26 03:57:01 +03:00
|
|
|
if (Cardbus_mapreg_map(ct, RTK_PCI_LOIO, PCI_MAPREG_TYPE_IO, 0,
|
2004-12-23 09:26:30 +03:00
|
|
|
&sc->rtk_btag, &sc->rtk_bhandle, &adr, &csc->sc_mapsize) == 0) {
|
2010-02-26 03:57:01 +03:00
|
|
|
csc->sc_csr |= PCI_COMMAND_IO_ENABLE;
|
2004-12-23 09:26:30 +03:00
|
|
|
csc->sc_bar_reg = RTK_PCI_LOIO;
|
2010-02-26 03:57:01 +03:00
|
|
|
csc->sc_bar_val = adr | PCI_MAPREG_TYPE_IO;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
#else
|
2010-02-26 03:57:01 +03:00
|
|
|
if (Cardbus_mapreg_map(ct, RTK_PCI_LOMEM, PCI_MAPREG_TYPE_MEM, 0,
|
2004-12-23 09:26:30 +03:00
|
|
|
&sc->rtk_btag, &sc->rtk_bhandle, &adr, &csc->sc_mapsize) == 0) {
|
2010-02-26 03:57:01 +03:00
|
|
|
csc->sc_csr |= PCI_COMMAND_MEM_ENABLE;
|
2004-12-23 09:26:30 +03:00
|
|
|
csc->sc_bar_reg = RTK_PCI_LOMEM;
|
2010-02-26 03:57:01 +03:00
|
|
|
csc->sc_bar_val = adr | PCI_MAPREG_TYPE_MEM;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
else {
|
2008-04-25 15:27:19 +04:00
|
|
|
aprint_error_dev(self, "unable to map deviceregisters\n");
|
2004-12-23 09:26:30 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Handle power management nonsense and initialize the
|
|
|
|
* configuration registers.
|
|
|
|
*/
|
|
|
|
re_cardbus_setup(csc);
|
|
|
|
|
|
|
|
sc->sc_dmat = ca->ca_dmat;
|
|
|
|
re_attach(sc);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Power down the socket.
|
|
|
|
*/
|
|
|
|
Cardbus_function_disable(csc->sc_ct);
|
|
|
|
}
|
|
|
|
|
2005-02-27 03:26:58 +03:00
|
|
|
int
|
2008-04-25 15:27:19 +04:00
|
|
|
re_cardbus_detach(device_t self, int flags)
|
2004-12-23 09:26:30 +03:00
|
|
|
{
|
2006-03-29 10:22:38 +04:00
|
|
|
struct re_cardbus_softc *csc = device_private(self);
|
2004-12-23 09:26:30 +03:00
|
|
|
struct rtk_softc *sc = &csc->sc_rtk;
|
|
|
|
struct cardbus_devfunc *ct = csc->sc_ct;
|
2008-04-25 15:27:19 +04:00
|
|
|
int rv;
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
#ifdef DIAGNOSTIC
|
|
|
|
if (ct == NULL)
|
|
|
|
panic("%s: cardbus softc, cardbus_devfunc NULL",
|
2008-04-25 15:27:19 +04:00
|
|
|
device_xname(self));
|
2004-12-23 09:26:30 +03:00
|
|
|
#endif
|
2007-12-09 23:27:42 +03:00
|
|
|
|
2004-12-23 09:26:30 +03:00
|
|
|
rv = re_detach(sc);
|
|
|
|
if (rv)
|
2005-01-15 15:32:09 +03:00
|
|
|
return rv;
|
2007-12-09 23:27:42 +03:00
|
|
|
|
2004-12-23 09:26:30 +03:00
|
|
|
/*
|
|
|
|
* Unhook the interrupt handler.
|
|
|
|
*/
|
|
|
|
if (csc->sc_ih != NULL)
|
2010-03-18 23:51:42 +03:00
|
|
|
Cardbus_intr_disestablish(ct, csc->sc_ih);
|
2005-02-27 03:26:58 +03:00
|
|
|
|
2004-12-23 09:26:30 +03:00
|
|
|
/*
|
|
|
|
* Release bus space and close window.
|
|
|
|
*/
|
|
|
|
if (csc->sc_bar_reg != 0)
|
|
|
|
Cardbus_mapreg_unmap(ct, csc->sc_bar_reg,
|
2008-04-25 15:27:19 +04:00
|
|
|
sc->rtk_btag, sc->rtk_bhandle, csc->sc_mapsize);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
2005-01-15 15:32:09 +03:00
|
|
|
return 0;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
|
2005-02-27 03:26:58 +03:00
|
|
|
void
|
2004-12-23 09:26:30 +03:00
|
|
|
re_cardbus_setup(struct re_cardbus_softc *csc)
|
|
|
|
{
|
|
|
|
struct rtk_softc *sc = &csc->sc_rtk;
|
|
|
|
cardbus_devfunc_t ct = csc->sc_ct;
|
|
|
|
cardbus_chipset_tag_t cc = ct->ct_cc;
|
|
|
|
cardbus_function_tag_t cf = ct->ct_cf;
|
2008-04-25 15:27:19 +04:00
|
|
|
pcireg_t reg, command;
|
|
|
|
int pmreg;
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Handle power management nonsense.
|
|
|
|
*/
|
|
|
|
if (cardbus_get_capability(cc, cf, csc->sc_tag,
|
|
|
|
PCI_CAP_PWRMGMT, &pmreg, 0)) {
|
2010-02-26 03:57:01 +03:00
|
|
|
command = Cardbus_conf_read(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
pmreg + PCI_PMCSR);
|
2006-10-27 22:47:07 +04:00
|
|
|
if (command & PCI_PMCSR_STATE_MASK) {
|
2008-04-25 15:27:19 +04:00
|
|
|
pcireg_t iobase, membase, irq;
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/* Save important PCI config data. */
|
2010-02-26 03:57:01 +03:00
|
|
|
iobase = Cardbus_conf_read(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
RTK_PCI_LOIO);
|
2010-02-26 03:57:01 +03:00
|
|
|
membase = Cardbus_conf_read(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
RTK_PCI_LOMEM);
|
2010-02-26 03:57:01 +03:00
|
|
|
irq = Cardbus_conf_read(ct, csc->sc_tag,
|
|
|
|
PCI_INTERRUPT_REG);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/* Reset the power state. */
|
2008-04-25 15:27:19 +04:00
|
|
|
aprint_normal_dev(sc->sc_dev,
|
|
|
|
"chip is in D%d power mode -- setting to D0\n",
|
2006-10-27 22:47:07 +04:00
|
|
|
command & PCI_PMCSR_STATE_MASK);
|
|
|
|
command &= ~PCI_PMCSR_STATE_MASK;
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
pmreg + PCI_PMCSR, command);
|
|
|
|
|
|
|
|
/* Restore PCI config data. */
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
RTK_PCI_LOIO, iobase);
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag,
|
2004-12-23 09:26:30 +03:00
|
|
|
RTK_PCI_LOMEM, membase);
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag,
|
|
|
|
PCI_INTERRUPT_REG, irq);
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Program the BAR */
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag, csc->sc_bar_reg, csc->sc_bar_val);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/* Enable the appropriate bits in the CARDBUS CSR. */
|
2010-02-26 03:57:01 +03:00
|
|
|
reg = Cardbus_conf_read(ct, csc->sc_tag, PCI_COMMAND_STATUS_REG);
|
|
|
|
reg &= ~(PCI_COMMAND_IO_ENABLE|PCI_COMMAND_MEM_ENABLE);
|
2004-12-23 09:26:30 +03:00
|
|
|
reg |= csc->sc_csr;
|
2010-02-26 03:57:01 +03:00
|
|
|
Cardbus_conf_write(ct, csc->sc_tag, PCI_COMMAND_STATUS_REG, reg);
|
2004-12-23 09:26:30 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Make sure the latency timer is set to some reasonable
|
|
|
|
* value.
|
|
|
|
*/
|
2010-02-26 03:57:01 +03:00
|
|
|
reg = Cardbus_conf_read(ct, csc->sc_tag, PCI_BHLC_REG);
|
|
|
|
if (PCI_LATTIMER(reg) < 0x40) {
|
|
|
|
reg &= ~(PCI_LATTIMER_MASK << PCI_LATTIMER_SHIFT);
|
|
|
|
reg |= (0x40 << PCI_LATTIMER_SHIFT);
|
|
|
|
Cardbus_conf_write(ct, csc->sc_tag, PCI_BHLC_REG, reg);
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-02-27 03:26:58 +03:00
|
|
|
int
|
2004-12-23 09:26:30 +03:00
|
|
|
re_cardbus_enable(struct rtk_softc *sc)
|
|
|
|
{
|
2008-04-25 15:27:19 +04:00
|
|
|
struct re_cardbus_softc *csc = (struct re_cardbus_softc *)sc;
|
2004-12-23 09:26:30 +03:00
|
|
|
cardbus_devfunc_t ct = csc->sc_ct;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Power on the socket.
|
|
|
|
*/
|
|
|
|
Cardbus_function_enable(ct);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set up the PCI configuration registers.
|
|
|
|
*/
|
|
|
|
re_cardbus_setup(csc);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Map and establish the interrupt.
|
|
|
|
*/
|
2010-03-18 23:51:42 +03:00
|
|
|
csc->sc_ih = Cardbus_intr_establish(ct, csc->sc_intrline,
|
2004-12-23 09:26:30 +03:00
|
|
|
IPL_NET, re_intr, sc);
|
|
|
|
if (csc->sc_ih == NULL) {
|
2008-04-25 15:27:19 +04:00
|
|
|
aprint_error_dev(sc->sc_dev,
|
2008-06-24 23:44:51 +04:00
|
|
|
"unable to establish interrupt\n");
|
2004-12-23 09:26:30 +03:00
|
|
|
Cardbus_function_disable(csc->sc_ct);
|
2005-01-15 15:32:09 +03:00
|
|
|
return 1;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
2005-01-15 15:32:09 +03:00
|
|
|
return 0;
|
2004-12-23 09:26:30 +03:00
|
|
|
}
|
|
|
|
|
2005-02-27 03:26:58 +03:00
|
|
|
void
|
2004-12-23 09:26:30 +03:00
|
|
|
re_cardbus_disable(struct rtk_softc *sc)
|
|
|
|
{
|
2008-04-25 15:27:19 +04:00
|
|
|
struct re_cardbus_softc *csc = (struct re_cardbus_softc *)sc;
|
2004-12-23 09:26:30 +03:00
|
|
|
cardbus_devfunc_t ct = csc->sc_ct;
|
|
|
|
|
|
|
|
/* Unhook the interrupt handler. */
|
2010-03-18 23:51:42 +03:00
|
|
|
Cardbus_intr_disestablish(ct, csc->sc_ih);
|
2004-12-23 09:26:30 +03:00
|
|
|
csc->sc_ih = NULL;
|
|
|
|
|
|
|
|
/* Power down the socket. */
|
|
|
|
Cardbus_function_disable(ct);
|
|
|
|
}
|