コード例 #1
0
ファイル: ehci_pci.c プロジェクト: sofuture/bitrig
void
ehci_pci_shutdown(void *v)
{
	struct ehci_pci_softc *sc = (struct ehci_pci_softc *)v;

	ehci_shutdown(&sc->sc);
#if 0
	/* best not to do this anymore; BIOS SMM spins? */
	ehci_pci_givecontroller(sc);
#endif
}
コード例 #2
0
static int
ehci_pci_shutdown(device_t self)
{
	ehci_softc_t *sc = device_get_softc(self);
	int err;

	err = bus_generic_shutdown(self);
	if (err)
		return (err);
	ehci_shutdown(sc);
	ehci_pci_givecontroller(self);

	return 0;
}
コード例 #3
0
ファイル: ehci_pci.c プロジェクト: ajinkya93/OpenBSD
int
ehci_pci_activate(struct device *self, int act)
{
	struct ehci_pci_softc *sc = (struct ehci_pci_softc *)self;
	int rv;

	switch (act) {
	case DVACT_RESUME:
		ehci_pci_takecontroller(sc, 1);
		break;
	}

	rv = ehci_activate(self, act);

#if 0
	switch (act) {
	case DVACT_POWERDOWN:
		ehci_pci_givecontroller(sc);
		break;
	}
#endif
	return (rv);
}