diff options
author | imp <imp@FreeBSD.org> | 2001-08-29 15:54:12 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-08-29 15:54:12 +0000 |
commit | 943c3f4c138d3284ce8ef0d078e77eb375868c1d (patch) | |
tree | 79eb5573696b67d09f19bde1a7b4d34d0abaab86 /sys/pccard | |
parent | 51be9866062d3fd37b86478a60e7e0b14f7e02f6 (diff) | |
download | FreeBSD-src-943c3f4c138d3284ce8ef0d078e77eb375868c1d.zip FreeBSD-src-943c3f4c138d3284ce8ef0d078e77eb375868c1d.tar.gz |
Note the status of the card, so we don't print inserted lines twice on
boot.
Diffstat (limited to 'sys/pccard')
-rw-r--r-- | sys/pccard/pcic_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index ec96693..c0f7e01 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -706,6 +706,7 @@ pcic_pci_attach(device_t dev) struct pcic_slot *sp; struct pcic_softc *sc; u_int32_t sockbase; + u_int32_t stat; struct pcic_pci_table *itm; int rid; struct resource *r = NULL; @@ -827,6 +828,8 @@ pcic_pci_attach(device_t dev) } } + stat = bus_space_read_4(sp->bst, sp->bsh, CB_SOCKET_STATE); + sc->cd_present = (stat & CB_SS_CD) == 0; return (pcic_attach(dev)); } |