Add driver for Intel XMM7360 LTE modem, based upon Linux driver available

at https://github.com/xmm7360/xmm7360-pci

This version works on Linux, OpenBSD, and NetBSD.

OpenBSD port written for genua GmbH

Modem requires python script from the master site to initialize the network,
it will be added to pkgsrc shortly
This commit is contained in:
jdolecek 2020-07-26 14:51:18 +00:00
parent 9a9cf6b25b
commit d40a03f552
4 changed files with 3349 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: ALL,v 1.157 2020/07/19 14:31:31 maxv Exp $
# $NetBSD: ALL,v 1.158 2020/07/26 14:51:18 jdolecek Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@ -17,7 +17,7 @@ include "arch/amd64/conf/std.amd64"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "ALL-$Revision: 1.157 $"
#ident "ALL-$Revision: 1.158 $"
maxusers 64 # estimated number of users
@ -1022,6 +1022,8 @@ wi* at pci? dev ? function ? # Intersil Prism Mini-PCI (802.11b)
wm* at pci? dev ? function ? # Intel 8254x gigabit
wpi* at pci? dev ? function ? # Intel PRO/Wireless 3945ABG
xge* at pci? dev ? function ? # Neterion (S2io) Xframe-I 10GbE
wwanc* at pci? dev ? function ? # Intel XMM7360 LTE modem
wwan* at wwanc? # Intel XMM7360 LTE modem
# PCMCIA network interfaces
an* at pcmcia? function ? # Aironet PC4500/PC4800 (802.11)

View File

@ -1,4 +1,4 @@
# $NetBSD: majors,v 1.94 2020/06/07 09:45:19 maxv Exp $
# $NetBSD: majors,v 1.95 2020/07/26 14:51:18 jdolecek Exp $
#
# Device majors for Machine-Independent drivers.
#
@ -89,3 +89,4 @@ device-major ipmi char 354 ipmi
device-major vhci char 355 vhci
device-major vio9p char 356 vio9p
device-major fault char 357 fault
device-major wwanc char 358 wwanc

View File

@ -1,4 +1,4 @@
# $NetBSD: files.pci,v 1.429 2020/06/24 03:38:01 thorpej Exp $
# $NetBSD: files.pci,v 1.430 2020/07/26 14:51:18 jdolecek Exp $
#
# Config file and device description for machine-independent PCI code.
# Included by ports that need it. Requires that the SCSI files be
@ -1165,3 +1165,10 @@ file dev/pci/if_ixl.c ixl
defflag opt_if_ixl.h IXL_DEBUG
defparam opt_if_ixl.h IXL_STATS_INTERVAL_MSEC
IXL_QUEUE_NUM
# Intel XMM 7360 LTE modem
device wwanc {} : tty
attach wwanc at pci
device wwan: ifnet
attach wwan at wwanc
file dev/pci/xmm7360.c wwanc | wwan needs-flag

3335
sys/dev/pci/xmm7360.c Normal file

File diff suppressed because it is too large Load Diff