diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_re_pci.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c index a6907ba5929..230c462d517 100644 --- a/sys/dev/pci/if_re_pci.c +++ b/sys/dev/pci/if_re_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_re_pci.c,v 1.30 2010/09/07 16:21:45 deraadt Exp $ */ +/* $OpenBSD: if_re_pci.c,v 1.31 2011/03/13 15:35:20 stsp Exp $ */ /* * Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org> @@ -163,6 +163,11 @@ re_pci_attach(struct device *parent, struct device *self, void *aux) pci_conf_write(pc, pa->pa_tag, RL_PCI_INTLINE, irq); } +#ifndef SMALL_KERNEL + /* Enable power management for wake on lan. */ + pci_conf_write(pc, pa->pa_tag, RL_PCI_PMCSR, RL_PME_EN); +#endif + /* * Map control/status registers. */ |