summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_qwx_pci.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2024-02-22 09:06:12 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2024-02-22 09:06:12 +0000
commit5ee4a51030dc19e42764c5fdfa4f3a25314514f6 (patch)
treec2219d9c85d5630f8c60927df069cb52b722e607 /sys/dev/pci/if_qwx_pci.c
parent47ce2a7631d431412b4d96223e249ee3ea4edf95 (diff)
add suspend/resume support to qwx(4)
testing + ok phessler@ deraadt@
Diffstat (limited to 'sys/dev/pci/if_qwx_pci.c')
-rw-r--r--sys/dev/pci/if_qwx_pci.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/pci/if_qwx_pci.c b/sys/dev/pci/if_qwx_pci.c
index 05cab4d0fc2..016b456ca2a 100644
--- a/sys/dev/pci/if_qwx_pci.c
+++ b/sys/dev/pci/if_qwx_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_qwx_pci.c,v 1.10 2024/02/16 16:37:42 stsp Exp $ */
+/* $OpenBSD: if_qwx_pci.c,v 1.11 2024/02/22 09:06:11 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
@@ -402,7 +402,6 @@ int qwx_pci_match(struct device *, void *, void *);
void qwx_pci_attach(struct device *, struct device *, void *);
int qwx_pci_detach(struct device *, int);
void qwx_pci_attach_hook(struct device *);
-int qwx_pci_activate(struct device *, int);
void qwx_pci_free_xfer_rings(struct qwx_pci_softc *);
int qwx_pci_alloc_xfer_ring(struct qwx_softc *, struct qwx_pci_xfer_ring *,
uint32_t, uint32_t, uint32_t, size_t);
@@ -526,7 +525,7 @@ const struct cfattach qwx_pci_ca = {
qwx_pci_match,
qwx_pci_attach,
qwx_pci_detach,
- qwx_pci_activate
+ qwx_activate
};
/* XXX pcidev */
@@ -1204,19 +1203,6 @@ qwx_pci_attach_hook(struct device *self)
splx(s);
}
-int
-qwx_pci_activate(struct device *self, int act)
-{
- switch (act) {
- case DVACT_SUSPEND:
- break;
- case DVACT_WAKEUP:
- break;
- }
-
- return 0;
-}
-
void
qwx_pci_free_xfer_rings(struct qwx_pci_softc *psc)
{