Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ofono to 1.33 #29

Open
wants to merge 316 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
2fb7b49
telit: Remove unneeded if
denkenz Apr 29, 2019
9aef3eb
stemodem: Remove unneeded if
denkenz Apr 29, 2019
422a899
phoneseim: Remove unneeded if
denkenz Apr 29, 2019
fc24aaf
mbmmodem: Remove unneeded if
denkenz Apr 29, 2019
95109f8
log: Fix potential buffer overflow
denkenz Apr 29, 2019
ce3056f
qmimodem: Fix potential memory leak
denkenz Apr 29, 2019
1425e3d
sim: Dereference only after validating !NULL
denkenz Apr 29, 2019
d81097a
handsfree: Dereference after validating !NULL
denkenz Apr 29, 2019
2a4f68b
siri: Dereference after validating !NULL
denkenz Apr 29, 2019
5c8ede4
gatchat: Remove unneeded if
denkenz Apr 29, 2019
764b0a2
stkutil: Call va_end on failure
denkenz Apr 29, 2019
bd4caed
phonebook: fix invalid sprintf sequence
denkenz Apr 30, 2019
ebe6734
gprs: Remove unneeded if statement
denkenz Apr 30, 2019
7ec592d
gprs: Fix invalid string comparison
denkenz Apr 30, 2019
0621b18
gprs: Remove unneeded if conditions
denkenz Apr 30, 2019
c871cc5
message-waiting: Fix logic error
denkenz Apr 30, 2019
ca45c59
sim-auth: Use memcpy instead of strncpy
denkenz Apr 30, 2019
2ed75bc
netmon: Fix logic error
denkenz Apr 30, 2019
f71949c
voicecall: Fix possible crash
denkenz Apr 30, 2019
cc941d5
sierra: Abort initialization on CFUN failure
denkenz Apr 30, 2019
a6d4429
atmodem: Fix a race if a context get deactivated while read
d99roric May 8, 2019
8b583a7
udevng: add SIMCom SIM7600 modem support
herbrechtsmeier May 8, 2019
caf4265
AUTHORS: Mention Stefan's contributions
denkenz May 8, 2019
e4d0a3b
build: Add check for explicit_bzero support
holtmann May 15, 2019
3d386f1
gatchat: Avoid string overflow warning in debug function
holtmann May 15, 2019
5e08e3d
radio-settings: adding UE dual mode operation property
aborwank May 13, 2019
2e895ba
radio-settings: handling of dual mode technology preference
aborwank May 13, 2019
6e5a5b7
xmm7modem: handling of dual mode technology preference
aborwank May 13, 2019
531eaed
xmm7modem: enabling simtoolkit in modem driver
aborwank May 15, 2019
ce343b1
stemodem: Quiet warning about strncpy use
piggz Feb 13, 2022
8312c98
core: Quiet warning about strncpy use
piggz Feb 13, 2022
e3f8f4c
main: Quiet ld errors with external ell
denkenz May 16, 2019
55d7594
qmi: Fix style issues
denkenz May 24, 2019
051afd1
netmon: adding method to fetch neighbouring cell mesurement
aborwank May 30, 2019
6a07496
hfp_ag_bluez5: Remove unneeded forward declarations
denkenz May 31, 2019
958e5fd
atutil: Introduce at_util_open_device
denkenz May 31, 2019
a16f127
wavecom: Use at_util_open_device
denkenz May 31, 2019
b2cabfc
xmm7xxx: Use at_util_open_device
denkenz May 31, 2019
c5fc120
zte: Use at_util_open_device
denkenz May 31, 2019
3fa6955
ublox: Use at_util_open_device
denkenz May 31, 2019
feb05e7
telit: Use at_util_open_device
denkenz May 31, 2019
4469b50
speedup: Use at_util_open_device
denkenz May 31, 2019
d033e36
speedupcdma: Use at_util_open_device
denkenz May 31, 2019
4cac144
sierra: Use at_util_open_device
denkenz May 31, 2019
7b88419
samsung: Use at_util_open_device
denkenz May 31, 2019
798b0c7
quectel: Use at_util_open_device
denkenz May 31, 2019
b640936
novatel: Use at_util_open_device
denkenz May 31, 2019
1668c17
nokia: Use at_util_open_device
denkenz May 31, 2019
a4b00c1
mbm: Use at_util_open_device
denkenz May 31, 2019
cd4bada
linktop: Use at_util_open_device
denkenz May 31, 2019
8ec9581
icera: Use at_util_open_device
denkenz May 31, 2019
0db57c3
huawei: Use at_util_open_device
denkenz May 31, 2019
14b46de
hso: Use at_util_open_device
denkenz May 31, 2019
e27f003
alcatel: Use at_util_open_device
denkenz May 31, 2019
faa4959
qmimodem: change msg class none to store/notify
Jun 5, 2019
714ab26
netmon: adding get function for neighbouring cell information
aborwank Jun 7, 2019
d2c8d1e
netmon: adding get functionality for neighbouring cell information
aborwank Jun 7, 2019
8a274b8
xmm7modem: adding netmon changes for reporting neighbouring cell
aborwank Jun 7, 2019
70ceaf6
atmodem: fix to activate context with cid zero
aborwank Jun 14, 2019
c2f50a6
isimodem: gprs-context: properly null terminate cd->password
Jun 17, 2019
f225cc9
xmm7modem: disabling reporting of intermediate results for CGDATA
aborwank Jun 20, 2019
aa02471
mbim: Fix warning
denkenz Jun 21, 2019
9913835
ubloxmodem: fix maybe-unitialized error
hundeboll Jun 21, 2019
5591a16
gatresult: include glib header
hundeboll Jul 3, 2019
4578df7
atutil: guard call to g_hash_table_destroy()
hundeboll Jul 3, 2019
5ea0d23
quectel: improve coding style
hundeboll Jul 3, 2019
c5dca89
quectel: fix initial channel/device configuration
hundeboll Jul 4, 2019
24897ee
atmodem: sms: add quectel m95 quirks
hundeboll Jul 10, 2019
0d43f04
quectel: always print modem pointer in debug messages
hundeboll Jul 10, 2019
93160e0
quectel: unwrap call to at_util_open_device()
hundeboll Jul 10, 2019
d6320b4
quectel: add basic support for serial connected modems
hundeboll Jul 10, 2019
f23e4ba
quectel: support gpio to power on/off the modem
hundeboll Jul 10, 2019
2c0b370
quectel: configure flow control when enabled
hundeboll Jul 10, 2019
24d67b0
quectel: query device model to enable vendor quirks
hundeboll Jul 10, 2019
00add5e
quectel: initialize call, phonebook and sms when ready
hundeboll Jul 10, 2019
93cf357
gatchat: Fix use of unterminated strings
denkenz Jul 17, 2019
78218e1
gatresult: strip trailing spaces from unquoted strings
hundeboll Jul 16, 2019
7733673
atmodem: rename OFONO_VENDOR_QUECTEL_M95
hundeboll Jul 16, 2019
86b87eb
quectel: enable call volume settings
hundeboll Jul 16, 2019
d9ddf43
quectel: store model id in private data
hundeboll Jul 16, 2019
cc7f572
quectel: add support for the Quectel MC60 modem
hundeboll Jul 16, 2019
3812f03
qmimodem: remember lac and cellid
christopheronco Jul 17, 2019
ffb0efc
test: process-context-settings: use ip instead of ifconfig/route
hundeboll Jul 18, 2019
c073911
test: process-context-settings: print settings to stderr
hundeboll Jul 18, 2019
cc3395d
atmodem: export generic netreg funcs
Jul 18, 2019
2f94036
atmodem: export struct netreg
Jul 18, 2019
35866eb
ublox: determine gprs-context driver from network interface
Jul 18, 2019
b6471b8
ublox: create only 1 gprs context
Jul 18, 2019
1ac2c29
ublox: add voicecall support
Jul 18, 2019
6b7b1e1
ublox: add SMS support
Jul 18, 2019
ffc611e
ublox: be explicit about lack of IPv6
Jul 18, 2019
1b1161c
ublox: network-registration atom
Jul 19, 2019
c5e88d3
ublox: use custom netreg atom
Jul 19, 2019
fc3e89d
ubloxmodem: Add model entries for LARA R2 series
Jul 19, 2019
a35e47c
udevng: detect LARA R2 series
Jul 19, 2019
38b3e8a
atmodem: gprs-context: parse list-less CGDATA response
hundeboll Jul 19, 2019
62c6778
quectel: pass vendor id to gprs and gprs-context
hundeboll Jul 19, 2019
658f075
doc: add documentaion for Quectel hardware API
hundeboll Jul 19, 2019
e63fd55
quectel: add dbus hardware interface
hundeboll Jul 19, 2019
c98881a
doc: document power-event signals for quectel Hardware API
hundeboll Jul 19, 2019
8a138dc
quectel: implement dbus signals for modem power notifications
hundeboll Jul 19, 2019
467a44f
atmodem: Check for auto activated contexts during init
d99roric Jul 24, 2019
cd0a724
gprs: Use -1 as netreg status during init.
d99roric Aug 6, 2019
4d459f4
gprs: Do not leak CID on failure to assign context
d99roric Aug 6, 2019
7924bac
isimodem: Fix size calculation for address array
holtmann Aug 12, 2019
2316766
gisi: Fix compiler warnings from -Waddress-of-packed-member
holtmann Aug 12, 2019
0eb85ec
build: Add internal copy of linux/gpio.h for older systems
holtmann Aug 12, 2019
554b871
build: Add internal copy of linux/gsmmux.h for older systems
holtmann Aug 12, 2019
af5f3f7
quectel: Add missing include for sys/socket.h
holtmann Aug 12, 2019
a3f519f
build: Add missing drivers/atmodem/network-registration.h
holtmann Aug 12, 2019
77df5b2
Release 1.30
holtmann Aug 12, 2019
18283c1
gprs: Do not detach when running LTE and GPRS is unavailable.
d99roric Aug 12, 2019
616f4a4
gisi: Fix compiler warnings from -Wpragmas
holtmann Aug 12, 2019
4c90eac
atmodem: Remove the pointless #pragma once
holtmann Aug 12, 2019
e599d1d
gprs: Add list_active_contexts
d99roric Aug 12, 2019
9dfb07a
gprs: Ignore activated contexts during init, list them later
d99roric Aug 12, 2019
1c0d3da
atmodem: Implement the list_activated_contexts callback
d99roric Aug 12, 2019
c2106c5
gatchat: add g_at_chat_retry()
hundeboll Aug 12, 2019
5a9ca0d
quectel: replace g_at_chat_set_wakeup_command() with g_at_chat_retry()
hundeboll Aug 12, 2019
572d536
doc: convert quectel power event reasons to lower case
hundeboll Aug 13, 2019
73dd1b4
quectel: convert power event reasons to lower case
hundeboll Aug 13, 2019
27100f8
atmodem: introduce send_clcc() to reduce code duplication
pavelmachek Aug 16, 2019
f9045f5
gprs: Remove prior attaching state logic
d99roric Aug 20, 2019
00cc9b2
quectel: swap cmuxed ports
hundeboll Sep 2, 2019
c850478
ublox: gprs: React on context deactivation
d99roric Sep 3, 2019
e1835b8
atmodem: sms: don't request URC buffering for Quectel UC15 modems
hundeboll Sep 5, 2019
b08e5ef
quectel: handle sim states
hundeboll Sep 5, 2019
9f39a96
xmm7modem: Fix to set gateway in pdp context
aborwank Sep 18, 2019
38e406d
gprs: Only release detachable context on de-attach
d99roric Sep 17, 2019
7119679
plugins: quectel: Fix compiler warning
d99roric Sep 22, 2019
52ce10a
gprs: Do nothing on detached when attaching.
d99roric Sep 23, 2019
ce8459c
ublox: raise call to open device
Sep 24, 2019
c870e42
ublox: network-registration: Check ureg for tech also for L2 modems
d99roric Sep 24, 2019
7715ad7
ublox: consolidate teardown in common function
Sep 25, 2019
b60197c
ublox: use common close_devices when modem disabled
Sep 25, 2019
8134a02
ublox: rework device initialization sequence
Sep 25, 2019
447d6d6
gprs: free interface name in gprs_context_remove()
hundeboll Sep 26, 2019
b6636ac
atmodem: sim: remove quectel serial vendor quirk
hundeboll Sep 26, 2019
6c6eff6
quectel: remove leftover reset of wakeup command
hundeboll Sep 26, 2019
bcc0e32
udev: Adding PCIe as a subsystem in udev
aborwank Sep 27, 2019
6fc72be
ublox: netreg: Also subscribe to UREG URC's
d99roric Sep 27, 2019
14b2b55
gatmux: take reference to mux object while processing incoming data
hundeboll Oct 8, 2019
49f7c6e
gatmux: disable destroy notification on read watcher
hundeboll Oct 8, 2019
02c14f2
quectel: rework sim detection
hundeboll Oct 7, 2019
e289a47
quectel: support both internal and n_gsm muxes
hundeboll Oct 7, 2019
0e791e7
udevng: Support quectel MUX settings
hundeboll Oct 7, 2019
fac7704
gprs: update attached on netreg updates when running LTE
d99roric Oct 11, 2019
aed4bb9
huawei: Increase string buffer to avoid overflow
holtmann Oct 31, 2019
caa9c51
Release 1.31
holtmann Oct 31, 2019
4cc8f87
log: Remove dead code
denkenz Nov 13, 2019
eb155e6
gprs: Remove pointless check
denkenz Nov 13, 2019
0c34e3d
mbim: Don't copy too much
denkenz Nov 13, 2019
e10cbdf
gatchat: Make sure to set out length for omitted hexstrings
denkenz Nov 13, 2019
7643035
xmm7xxx: Remove unreachable statement
denkenz Nov 13, 2019
12c0b6a
atutil: Add missing va_end
denkenz Nov 13, 2019
66477fe
test: make all files executable
dlech Nov 17, 2019
cd41bc7
huawei: Fix infinite loop on modem removal
Nov 19, 2019
cdd329f
gprs: Update attach state on context deactivation for LTE
d99roric Dec 11, 2019
7d0afcb
xmm7xxx: modified handling of XSIM states for xmm modems
aborwank Dec 19, 2019
796ea56
sim: handling crash in error scenario for SIM PIN query
aborwank Dec 19, 2019
e6aa85e
Instead of implementing an own copy of requesting and parsing
d99roric Feb 7, 2020
dfc3e82
allowed-apns: Do not try to unregister unnecessarily
denkenz Feb 7, 2020
368969c
ublox: network-registration: Handle UREG unsolicited during poll
d99roric Feb 14, 2020
17342e0
build: require dbus >= 1.6
piggz Feb 16, 2022
282ff35
rilmodem: update call direction from the isMT value
JSFamily Apr 5, 2020
4ab4e70
quectel: Add Quectel EC21 to known serial modems
poeschel May 26, 2020
8ce1696
quectel: use lte atom on EC21
poeschel May 26, 2020
b28dc78
quectel: Query the model before setting up the mux
poeschel May 26, 2020
10c20c0
quectel: EC21 does not understand AT+QIURC
poeschel May 26, 2020
d09b455
voicecall: Quectel modem do not understand AT+CNAP
poeschel May 26, 2020
21b59aa
quectel: EC21 add ussd with atmodem driver
poeschel May 26, 2020
28be770
AUTHORS: Mention Lars' contributions
denkenz May 21, 2020
98c0f17
quectel: EC21 needs aux channel to be the first mux channel
poeschel May 29, 2020
e98d748
doc: sim-api was missing SetProperty method
denkenz May 27, 2020
b06b9cc
qmimodem: Implement data capability bearer notify
mariogrip Jun 10, 2020
659455f
AUTHORS: Mention Marius' contributions
denkenz Jun 10, 2020
be078c7
huawei: use AT^SYSCFG for radio setting operations on 3G only modems
christopheronco Jun 11, 2020
9c137f8
lte: Use the right D-Bus interface for property change signal
monich Jun 16, 2020
3bcae1c
huawei: the AT^SYSCFGEX command supports additional modes
Jun 25, 2020
9f9d002
AUTHORS: Mention Jimmy's contributions
denkenz Jun 25, 2020
ca50fc3
huawei: send restore settings command on startup
Jun 25, 2020
142b2bf
huawei: fix AT^SYSCFGEX acqorder "0201"
Jun 26, 2020
c678d18
plugins: udevng: detect Centirion ELS81x modem
geomatsi Jun 27, 2020
075160d
plugins: gemalto: enable LTE for ELS81x
geomatsi Jun 27, 2020
7cdd37d
AUTHORS: Mention Sergey's contributions
denkenz Jun 29, 2020
b991197
gatchat: increase line buffer max size
shwetaja2 Jul 6, 2020
4206352
AUTHORS: Mention Shweta's contributions
denkenz Jul 8, 2020
4260b8b
udevng: Add support for Quectel BG96 modem
sknsean Jul 11, 2020
e0cd682
rilmodem: fix typo error in netmon.c
JSFamily Jul 20, 2020
3e6c987
AUTHORS: Mention JongSeok's contributions
denkenz Jul 21, 2020
96d03a6
rilmodem: set proto type during setting initial attach apn
JSFamily Jul 20, 2020
3605ed7
doc: added PCI, TAC, SNR property in networkmonitor-api
JSFamily Jul 31, 2020
754305e
netmon: added PCI, TAC, SNR value
JSFamily Jul 31, 2020
3a20056
rilmodem: support cell type LTE for netmon
JSFamily Jul 31, 2020
5aa7968
Revert "quectel: EC21 needs aux channel to be the first mux channel"
poeschel Aug 4, 2020
bd71d94
quectel: Set URC port to uart1 on EC21
poeschel Aug 4, 2020
5cf4dfb
quectel: Try to update voltage only, when received "vbatt"
poeschel Aug 4, 2020
087357f
Add a vendor OFONO_VENDOR_QUECTEL_EC2X
poeschel Aug 11, 2020
57fe42a
atmodem: Get strength and tech the quectel way on EC21
poeschel Aug 11, 2020
6c2a946
xmm7xxx-enable-esim-feature-in-xmm_ofono
shwetaja2 Jul 30, 2020
e086f7e
drivers: gemalto: add gprs-context driver
geomatsi Aug 18, 2020
df65896
plugins: udevng: detect gemalto network interfaces
geomatsi Aug 18, 2020
3a06c7a
plugins: gemalto: alternative gprs-context driver
geomatsi Aug 18, 2020
1d4976b
atmodem: Signal quality on quectel serial modems
poeschel Aug 21, 2020
5bdfb2d
xmm7xxx: Fix non compiling file
poeschel Sep 3, 2020
814948d
qmimodem: Fix format warning
denkenz Sep 8, 2020
a6d3c33
droid 4: add special handling required for voice calls and SIM
pavelmachek Sep 15, 2020
b0c5a3d
droid 4: special handling for SMSes
pavelmachek Sep 15, 2020
9be48fb
droid 4: Add probing.
pavelmachek Sep 15, 2020
dc50e4d
common: APN with a dot in second position are not invalid
christopheronco Sep 28, 2020
a1ba388
build: remove obsolete m4 macro
nikhiljha Aug 25, 2020
6c062dc
quectel: Extend power-on timeout
poeschel Sep 24, 2020
d7b6283
quectel: Power on/off with a gpio pulse
poeschel Oct 6, 2020
b524a92
huawei: Fix implicit enum conversion
d99roric Dec 20, 2020
c5d51f1
util: Fix implicit enum conversion
d99roric Dec 20, 2020
ee77578
build: Add check for rawmemchr
denkenz Dec 22, 2020
02e542d
plugin: gemalto: fix source of gprs notifications
geomatsi Dec 21, 2020
ca71e5e
gemalto: gprs: cgev gprs context deactivation
geomatsi Dec 21, 2020
b727bd3
gemalto: gprs: support different gprs protocols
Dec 21, 2020
67de2ff
gemalto: Fix compiler error
denkenz Dec 26, 2020
dade1d5
gemalto: gprs: support automatic context activation
geomatsi Dec 26, 2020
d4bc0f2
gemalto: gprs: support authentication settings
geomatsi Dec 26, 2020
babcc8c
gsmdial: adding support for selection of authentication method
G-S-E Jan 7, 2021
b4b4431
ppp: using RX ACCM = 0 by default
G-S-E Jan 7, 2021
3ced3c0
AUTHORS: Mention Sergei's contributions
denkenz Jan 8, 2021
3b82c00
quectel: adding support for the Quectel EC200 USB modem series
G-S-E Jan 7, 2021
ebf8452
gemalto: add netmon driver
geomatsi Jan 15, 2021
6064323
plugin: gemalto: enable netmon
geomatsi Jan 15, 2021
067a700
gemalto: netmon measurements scaling
geomatsi Jan 15, 2021
8e4adf0
simutil: add validate_utf8_tlv
geomatsi Jan 16, 2021
092a9f4
sim: validate IMS private identity
geomatsi Jan 16, 2021
80c80a4
unit: add validate_utf8_tlv tests
geomatsi Jan 16, 2021
035fe44
qmimodem: Add USSD indication support
a-andreyev Feb 19, 2021
ebfacdb
AUTHORS: Mention Alexey's contributions
denkenz Feb 22, 2021
6ae415c
mbimmodem: Remove usage of likely and unlikely
holtmann Apr 28, 2021
3b2d4b8
treewide: Replace g_memdup with g_memdup2
holtmann Apr 28, 2021
2bbdfe8
build: require glib >= 2.60
JSFamily Mar 8, 2021
c552506
build: check for glib >= 2.68 first before checking for glib >= 2.60
holtmann May 4, 2021
0654a31
treewide: Introduce support for missing g_memdup2
holtmann May 5, 2021
25a5881
Release 1.32
holtmann May 5, 2021
98120f7
doc: radio-settings: adding UE dual mode operation property
sknsean May 31, 2021
0c45cfb
radio-settings: Add handling of dual mode technology preference
sknsean May 31, 2021
21cf305
qmimodem: Add handling of dual mode technology preference
sknsean May 31, 2021
371ab0b
radio-settings: Do not use enum ofono_access_mode
denkenz Jun 1, 2021
8b83d99
README: Mention the new OFTC irc channel
denkenz Jun 15, 2021
7d5cbf8
gemalto: add radio-settings driver
geomatsi Jul 4, 2021
049b59d
plugins: gemalto: add radio-settings atom
geomatsi Jul 4, 2021
2407001
plugins: gemalto: move ussd atom to post_online
geomatsi Jul 4, 2021
f60cebd
gemalto: radio-settings: cleanup
geomatsi Jul 23, 2021
81d6bbb
Release 1.33
holtmann Sep 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions linux/gpio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* <linux/gpio.h> - userspace ABI for the GPIO character devices
*
* Copyright (C) 2016 Linus Walleij
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#ifndef _GPIO_H_
#define _GPIO_H_

#include <linux/ioctl.h>
#include <linux/types.h>

/**
* struct gpiochip_info - Information about a certain GPIO chip
* @name: the Linux kernel name of this GPIO chip
* @label: a functional name for this GPIO chip, such as a product
* number, may be NULL
* @lines: number of GPIO lines on this chip
*/
struct gpiochip_info {
char name[32];
char label[32];
__u32 lines;
};

/* Informational flags */
#define GPIOLINE_FLAG_KERNEL (1UL << 0) /* Line used by the kernel */
#define GPIOLINE_FLAG_IS_OUT (1UL << 1)
#define GPIOLINE_FLAG_ACTIVE_LOW (1UL << 2)
#define GPIOLINE_FLAG_OPEN_DRAIN (1UL << 3)
#define GPIOLINE_FLAG_OPEN_SOURCE (1UL << 4)

/**
* struct gpioline_info - Information about a certain GPIO line
* @line_offset: the local offset on this GPIO device, fill this in when
* requesting the line information from the kernel
* @flags: various flags for this line
* @name: the name of this GPIO line, such as the output pin of the line on the
* chip, a rail or a pin header name on a board, as specified by the gpio
* chip, may be NULL
* @consumer: a functional name for the consumer of this GPIO line as set by
* whatever is using it, will be NULL if there is no current user but may
* also be NULL if the consumer doesn't set this up
*/
struct gpioline_info {
__u32 line_offset;
__u32 flags;
char name[32];
char consumer[32];
};

/* Maximum number of requested handles */
#define GPIOHANDLES_MAX 64

/* Linerequest flags */
#define GPIOHANDLE_REQUEST_INPUT (1UL << 0)
#define GPIOHANDLE_REQUEST_OUTPUT (1UL << 1)
#define GPIOHANDLE_REQUEST_ACTIVE_LOW (1UL << 2)
#define GPIOHANDLE_REQUEST_OPEN_DRAIN (1UL << 3)
#define GPIOHANDLE_REQUEST_OPEN_SOURCE (1UL << 4)

/**
* struct gpiohandle_request - Information about a GPIO handle request
* @lineoffsets: an array of desired lines, specified by offset index for the
* associated GPIO device
* @flags: desired flags for the desired GPIO lines, such as
* GPIOHANDLE_REQUEST_OUTPUT, GPIOHANDLE_REQUEST_ACTIVE_LOW etc, OR:ed
* together. Note that even if multiple lines are requested, the same flags
* must be applicable to all of them, if you want lines with individual
* flags set, request them one by one. It is possible to select
* a batch of input or output lines, but they must all have the same
* characteristics, i.e. all inputs or all outputs, all active low etc
* @default_values: if the GPIOHANDLE_REQUEST_OUTPUT is set for a requested
* line, this specifies the default output value, should be 0 (low) or
* 1 (high), anything else than 0 or 1 will be interpreted as 1 (high)
* @consumer_label: a desired consumer label for the selected GPIO line(s)
* such as "my-bitbanged-relay"
* @lines: number of lines requested in this request, i.e. the number of
* valid fields in the above arrays, set to 1 to request a single line
* @fd: if successful this field will contain a valid anonymous file handle
* after a GPIO_GET_LINEHANDLE_IOCTL operation, zero or negative value
* means error
*/
struct gpiohandle_request {
__u32 lineoffsets[GPIOHANDLES_MAX];
__u32 flags;
__u8 default_values[GPIOHANDLES_MAX];
char consumer_label[32];
__u32 lines;
int fd;
};

/**
* struct gpiohandle_data - Information of values on a GPIO handle
* @values: when getting the state of lines this contains the current
* state of a line, when setting the state of lines these should contain
* the desired target state
*/
struct gpiohandle_data {
__u8 values[GPIOHANDLES_MAX];
};

#define GPIOHANDLE_GET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x08, struct gpiohandle_data)
#define GPIOHANDLE_SET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x09, struct gpiohandle_data)

/* Eventrequest flags */
#define GPIOEVENT_REQUEST_RISING_EDGE (1UL << 0)
#define GPIOEVENT_REQUEST_FALLING_EDGE (1UL << 1)
#define GPIOEVENT_REQUEST_BOTH_EDGES ((1UL << 0) | (1UL << 1))

/**
* struct gpioevent_request - Information about a GPIO event request
* @lineoffset: the desired line to subscribe to events from, specified by
* offset index for the associated GPIO device
* @handleflags: desired handle flags for the desired GPIO line, such as
* GPIOHANDLE_REQUEST_ACTIVE_LOW or GPIOHANDLE_REQUEST_OPEN_DRAIN
* @eventflags: desired flags for the desired GPIO event line, such as
* GPIOEVENT_REQUEST_RISING_EDGE or GPIOEVENT_REQUEST_FALLING_EDGE
* @consumer_label: a desired consumer label for the selected GPIO line(s)
* such as "my-listener"
* @fd: if successful this field will contain a valid anonymous file handle
* after a GPIO_GET_LINEEVENT_IOCTL operation, zero or negative value
* means error
*/
struct gpioevent_request {
__u32 lineoffset;
__u32 handleflags;
__u32 eventflags;
char consumer_label[32];
int fd;
};

/**
* GPIO event types
*/
#define GPIOEVENT_EVENT_RISING_EDGE 0x01
#define GPIOEVENT_EVENT_FALLING_EDGE 0x02

/**
* struct gpioevent_data - The actual event being pushed to userspace
* @timestamp: best estimate of time of event occurrence, in nanoseconds
* @id: event identifier
*/
struct gpioevent_data {
__u64 timestamp;
__u32 id;
};

#define GPIO_GET_CHIPINFO_IOCTL _IOR(0xB4, 0x01, struct gpiochip_info)
#define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info)
#define GPIO_GET_LINEHANDLE_IOCTL _IOWR(0xB4, 0x03, struct gpiohandle_request)
#define GPIO_GET_LINEEVENT_IOCTL _IOWR(0xB4, 0x04, struct gpioevent_request)

#endif /* _GPIO_H_ */
41 changes: 41 additions & 0 deletions linux/gsmmux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _LINUX_GSMMUX_H
#define _LINUX_GSMMUX_H

#include <linux/if.h>
#include <linux/ioctl.h>
#include <linux/types.h>

struct gsm_config
{
unsigned int adaption;
unsigned int encapsulation;
unsigned int initiator;
unsigned int t1;
unsigned int t2;
unsigned int t3;
unsigned int n2;
unsigned int mru;
unsigned int mtu;
unsigned int k;
unsigned int i;
unsigned int unused[8]; /* Padding for expansion without
breaking stuff */
};

#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)

struct gsm_netconfig {
unsigned int adaption; /* Adaption to use in network mode */
unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */
unsigned short unused2;
char if_name[IFNAMSIZ]; /* interface name format string */
__u8 unused[28]; /* For future use */
};

#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
#define GSMIOC_DISABLE_NET _IO('G', 3)


#endif
1 change: 0 additions & 1 deletion ofono/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ test-driver
test-suite.log
unit/test-common
unit/test-util
unit/test-idmap
unit/test-sms
unit/test-sms-root
unit/test-simutil
Expand Down
12 changes: 12 additions & 0 deletions ofono/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Lukasz Nowak <[email protected]>
Jonas Bonn <[email protected]>
Matthijs Kooijman <[email protected]>
Clayton Craft <[email protected]>
Alexander Couzens <[email protected]>
Joey Hewitt <[email protected]>
Richard Röjfors <[email protected]>
Philippe De Swert <[email protected]>
Expand All @@ -139,5 +140,16 @@ Martin Hundebøll <[email protected]>
Julien Tournier <[email protected]>
Nandini Rebello <[email protected]>
Giacinto Cifelli <[email protected]>
Pau Espin Pedrol <[email protected]>
Khaled Romdhani <[email protected]>
Pavel Machek <[email protected]>
Tom Nguyen <[email protected]>
Stefan Herbrechtsmeier <[email protected]>
Lars Poeschel <[email protected]>
Marius Gripsgard <[email protected]>
Jimmy Gysens <[email protected]>
Sergey Matyukevich <[email protected]>
Shweta Jain <[email protected]>
JongSeok Won <[email protected]>
Sergei Golubtsov <[email protected]>
Alexey Andreyev <[email protected]>
28 changes: 28 additions & 0 deletions ofono/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
ver 1.33:
Fix issue with filling unused part of AID with FFs.
Fix issue with reads beyond the first block of SIM filesystem.
Fix issue with parsing auth response according to TS 31.102.

ver 1.32:
Fix issue with handling of IMS private identity validation.
Fix issue with handling of SIM EF structure bit processing.
Fix issue with handling removal of Huawai modems.
Add support for USSD indication with QMI modems.

ver 1.31:
Fix issue with handling CID 0 context identifier.
Fix issue with handling detach state and running LTE.
Fix issue with handling SIM states and Quectel modems.

ver 1.30:
Fix issue with handling of IPv6 address and xmm7xxx modems.
Fix issue with default context creation with an empty APN.
Fix issue with activation of context with CID zero.
Add support for Quectel MC60 modems.

ver 1.29:
Fix issue with QMI and SIM initialized notification.
Add support for multiple PDP contexts and xmm7xxx modems.
Add support for handling Dual SIM Single Active feature
Add support for SIM PIN caching feature.

ver 1.28:
Fix issue with SIM initialization and Gemalto modems.

Expand Down
11 changes: 10 additions & 1 deletion ofono/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ builtin_sources += drivers/atmodem/atmodem.h \
drivers/atmodem/cbs.c \
drivers/atmodem/call-forwarding.c \
drivers/atmodem/call-meter.c \
drivers/atmodem/network-registration.h \
drivers/atmodem/network-registration.c \
drivers/atmodem/sim.c \
drivers/atmodem/stk.c \
Expand Down Expand Up @@ -404,6 +405,7 @@ builtin_sources += drivers/atmodem/atutil.h \
drivers/ubloxmodem/ubloxmodem.h \
drivers/ubloxmodem/ubloxmodem.c \
drivers/ubloxmodem/gprs-context.c \
drivers/ubloxmodem/network-registration.c \
drivers/ubloxmodem/netmon.c \
drivers/ubloxmodem/lte.c

Expand All @@ -413,7 +415,10 @@ builtin_sources += drivers/atmodem/atutil.h \
drivers/gemaltomodem/gemaltomodem.h \
drivers/gemaltomodem/gemaltomodem.c \
drivers/gemaltomodem/location-reporting.c \
drivers/gemaltomodem/voicecall.c
drivers/gemaltomodem/voicecall.c \
drivers/gemaltomodem/gprs-context.c \
drivers/gemaltomodem/radio-settings.c \
drivers/gemaltomodem/netmon.c

builtin_modules += xmm7modem
builtin_sources += drivers/atmodem/atutil.h \
Expand Down Expand Up @@ -539,6 +544,9 @@ builtin_sources += plugins/connman.c
builtin_modules += mnclength
builtin_sources += plugins/mnclength.c

builtin_modules += droid
builtin_sources += plugins/droid.c

if BLUETOOTH
if BLUEZ4
builtin_modules += sap
Expand Down Expand Up @@ -696,6 +704,7 @@ endif
sbin_PROGRAMS = src/ofonod

src_ofonod_SOURCES = $(builtin_sources) $(gatchat_sources) src/ofono.ver \
linux/gsmmux.h linux/gpio.h src/missing.h \
src/main.c src/ofono.h src/log.c src/plugin.c \
src/modem.c src/common.h src/common.c \
src/manager.c src/dbus.c src/util.h src/util.c \
Expand Down
3 changes: 3 additions & 0 deletions ofono/README
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ Information
Mailing list:
[email protected]

IRC:
irc://irc.oftc.net/#ofono

For additional information about the project visit oFono web site:
http://www.ofono.org
20 changes: 14 additions & 6 deletions ofono/configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AC_PREREQ(2.60)
AC_INIT(ofono, 1.28)
AC_INIT(ofono, 1.33)

AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
AC_CONFIG_HEADERS(config.h)
Expand Down Expand Up @@ -28,7 +28,7 @@ m4_define([_LT_AC_TAGCONFIG], [])
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])

AC_DISABLE_STATIC
AC_PROG_LIBTOOL
LT_INIT

AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
[disable code optimization through compiler]), [
Expand All @@ -55,14 +55,22 @@ AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
fi
])

AC_CHECK_FUNCS(explicit_bzero)
AC_CHECK_FUNCS(rawmemchr)

AC_CHECK_FUNC(signalfd, dummy=yes,
AC_MSG_ERROR(signalfd support is required))

AC_CHECK_LIB(dl, dlopen, dummy=yes,
AC_MSG_ERROR(dynamic linking loader is required))

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32, dummy=yes,
AC_MSG_ERROR(GLib >= 2.32 is required))
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.68, [
AC_DEFINE_UNQUOTED(HAVE_G_MEMDUP2, 1,
[Define to 1 if you have the `g_memdup2' function.])
], [
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.60, dummy=yes,
AC_MSG_ERROR(GLib >= 2.60 is required))
])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

Expand All @@ -76,8 +84,8 @@ PKG_CHECK_MODULES(GIO, gio-2.0, dummy=yes,
GLIB_CFLAGS="$GLIB_CFLAGS $GIO_CFLAGS"
GLIB_LIBS="$GLIB_LIBS $GIO_LIBS"

PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.4, dummy=yes,
AC_MSG_ERROR(D-Bus >= 1.4 is required))
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.6, dummy=yes,
AC_MSG_ERROR(D-Bus >= 1.6 is required))
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

Expand Down
Loading