summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2024-05-24 09:51:15 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2024-05-24 09:51:15 +0000
commit8232e57e0301887ae81abef55bcc2cf8ab9cf7a5 (patch)
treece14614f33b55a4f8a00abe8db2fb6863816981b /sys/dev/pci
parent2a72747ad867b3d191a71dae0a0e41dd2faaa8ae (diff)
Add support for suspend/resume.
ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/ufshci_pci.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/pci/ufshci_pci.c b/sys/dev/pci/ufshci_pci.c
index c94cf14abcb..f265d2064cd 100644
--- a/sys/dev/pci/ufshci_pci.c
+++ b/sys/dev/pci/ufshci_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufshci_pci.c,v 1.3 2024/05/13 01:15:51 jsg Exp $ */
+/* $OpenBSD: ufshci_pci.c,v 1.4 2024/05/24 09:51:13 mglocker Exp $ */
/*
* Copyright (c) 2024 Marcus Glocker <mglocker@openbsd.org>
@@ -41,12 +41,14 @@ struct ufshci_pci_softc {
int ufshci_pci_match(struct device *, void *, void *);
void ufshci_pci_attach(struct device *, struct device *, void *);
int ufshci_pci_detach(struct device *, int);
+int ufshci_pci_activate(struct device *, int);
const struct cfattach ufshci_pci_ca = {
sizeof(struct ufshci_pci_softc),
ufshci_pci_match,
ufshci_pci_attach,
- ufshci_pci_detach
+ ufshci_pci_detach,
+ ufshci_pci_activate
};
int
@@ -106,3 +108,11 @@ ufshci_pci_detach(struct device *self, int flags)
{
return 0;
}
+
+int
+ufshci_pci_activate(struct device *self, int act)
+{
+ struct ufshci_pci_softc *psc = (struct ufshci_pci_softc *)self;
+
+ return ufshci_activate(&psc->psc_ufshci, act);
+}