Note the status of the card, so we don't print inserted lines twice on

boot.
This commit is contained in:
Warner Losh 2001-08-29 15:54:12 +00:00
parent 083a83a73e
commit 51af6062b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82507

View File

@ -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));
}