summaryrefslogtreecommitdiffstats
path: root/plugins/g1.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-17Convert all the modem drivers to the new APIDenis Kenzior1-5/+14
2009-09-04Make G1 driver use the permissive parserDenis Kenzior1-85/+1
2009-09-02Some minor coding style cleanups for G1 pluginMarcel Holtmann1-8/+7
2009-09-02Parse and use Device option from modem.confMarcel Holtmann1-1/+6
2009-09-02G1: Add an SMS quirk for CNMI modeAndres Salomon1-0/+3
The G1 doesn't support mode2, despite advertising it. The G1 chokes w/ an "Error 303" when we specify NMI mode 2. Adding a quirk to drop that mode from the supported list (just use mode 1) allows the G1 to properly deal with SMS.
2009-09-02G1: Add a G1 syntax for parsingAndres Salomon1-2/+85
This is based on the generic_at parser, with unnecessary stuff removed. The G1 routinely screws up CRLFs, so the parser needs to account for that. This parser ignores leading CRLFs (which is what reference-ril does as well), as well as trailing LFs (which are sometimes left out). CRs are used as end-of-message indicators. Since we're not bothering tracking CRLFs, there's also no need for a GARBAGE state, or MULTILINE stuff.
2009-09-02G1: Add initial HTC G1 modem supportAndres Salomon1-0/+182
G1 plugin is based on generic_at, with a bunch of stuff dropped and simplified. We use AT+CFUN=1 for powering on rather than having a configurable init string. We also manually set the default state during init (the G1 appears to start in mode V0 by default). The device (/dev/smd0) is hardcoded.