diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-06 21:08:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-06 21:08:27 +0000 |
commit | 0499b8250ef43faf29977ef964fe96df877da251 (patch) | |
tree | dd6dcca3d71dc6876457a6a9d9b198df3ef1736c /sys/dev | |
parent | a5ac431469afbc189d4dec56661dcee512224d08 (diff) |
com@isa suspend and resume; logic cloned from ../puc/com_puc.c
ok kettenis
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/com_isa.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/sys/dev/isa/com_isa.c b/sys/dev/isa/com_isa.c index 5752e360b54..acacfdb67aa 100644 --- a/sys/dev/isa/com_isa.c +++ b/sys/dev/isa/com_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_isa.c,v 1.5 2009/12/15 21:58:55 fgsch Exp $ */ +/* $OpenBSD: com_isa.c,v 1.6 2010/08/06 21:08:26 deraadt Exp $ */ /* * Copyright (c) 1997 - 1999, Jason Downs. All rights reserved. * @@ -74,9 +74,11 @@ int com_isa_probe(struct device *, void *, void *); void com_isa_attach(struct device *, struct device *, void *); +int com_isa_activate(struct device *, int); struct cfattach com_isa_ca = { - sizeof(struct com_softc), com_isa_probe, com_isa_attach + sizeof(struct com_softc), com_isa_probe, com_isa_attach, NULL, + com_isa_activate }; int @@ -175,3 +177,18 @@ com_isa_attach(struct device *parent, struct device *self, void *aux) } } +int +com_isa_activate(struct device *self, int act) +{ + struct com_softc *sc = (struct com_softc *)self; + + switch (act) { + case DVACT_SUSPEND: + break; + case DVACT_RESUME: + com_resume(sc); + break; + } + + return (0); +} |