Move parsing the BCDC header on RX into a protocol specific RX
authorpatrick <patrick@openbsd.org>
Wed, 7 Feb 2018 22:02:48 +0000 (22:02 +0000)
committerpatrick <patrick@openbsd.org>
Wed, 7 Feb 2018 22:02:48 +0000 (22:02 +0000)
function so it can be shared with the SDIO attachment driver.

sys/dev/pci/if_bwfm_pci.c

index a195ba9..5dab929 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_bwfm_pci.c,v 1.16 2018/01/11 16:09:19 patrick Exp $        */
+/*     $OpenBSD: if_bwfm_pci.c,v 1.17 2018/02/07 22:02:48 patrick Exp $        */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
  * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se>
@@ -286,6 +286,7 @@ struct bwfm_bus_ops bwfm_pci_bus_ops = {
 struct bwfm_proto_ops bwfm_pci_msgbuf_ops = {
        .proto_query_dcmd = bwfm_pci_msgbuf_query_dcmd,
        .proto_set_dcmd = bwfm_pci_msgbuf_set_dcmd,
+       .proto_rx = NULL,
 };
 
 struct cfattach bwfm_pci_ca = {