summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/files.pci
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-12-24 19:50:56 +0000
committerpatrick <patrick@openbsd.org>2017-12-24 19:50:56 +0000
commite5ec1e726bc6e8e32507f9f08379b1b6411e3989 (patch)
tree33aaf5b8dbb5d3730b955890e74f0d8fcec09b2e /sys/dev/pci/files.pci
parentFor systems where the cpu node in the device tree has a "clocks" property, (diff)
downloadwireguard-openbsd-e5ec1e726bc6e8e32507f9f08379b1b6411e3989.tar.xz
wireguard-openbsd-e5ec1e726bc6e8e32507f9f08379b1b6411e3989.zip
Add a PCI attachment driver for bwfm(4). It's not finished, but it's
already past the point where development can occur out of the tree. With this I can successfully scan for access points and tell the chip to attach to an SSID. RX path should work as well, but since I forgot to bring the antenna with me to my parents, the reception is a bit horrible in the metal enclosure. There are a few reasons this driver is rather big. First we set up the ARM Cores, uploading the firmware and kicking it off. Then we need to read all needed information from the registers. Once that is done we have to set up countless buffers. There are 2 TX rings and 3 RX rings, plus N TX rings for the actual data that is yet to be implemented. Merry Christmas! ok kettenis@
Diffstat (limited to 'sys/dev/pci/files.pci')
-rw-r--r--sys/dev/pci/files.pci5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/files.pci b/sys/dev/pci/files.pci
index a1a21f91cfe..9d0c00a728a 100644
--- a/sys/dev/pci/files.pci
+++ b/sys/dev/pci/files.pci
@@ -1,4 +1,4 @@
-# $OpenBSD: files.pci,v 1.332 2017/11/28 23:54:04 dlg Exp $
+# $OpenBSD: files.pci,v 1.333 2017/12/24 19:50:56 patrick Exp $
# $NetBSD: files.pci,v 1.20 1996/09/24 17:47:15 christos Exp $
#
# Config file and device description for machine-independent PCI code.
@@ -816,5 +816,8 @@ file dev/pci/virtio_pci.c virtio_pci
attach dwiic at pci with dwiic_pci
file dev/pci/dwiic_pci.c dwiic_pci
+attach bwfm at pci with bwfm_pci: firmload
+file dev/pci/if_bwfm_pci.c bwfm_pci
+
include "dev/pci/files.agp"
include "dev/pci/drm/files.drm"