- Mar 20, 2017
-
-
Alessandro Rubini authored
This also include a ppsi commit. We must have both at the same time, because each uses a feature of the other, to link sw-uart at build time. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Mar 08, 2017
-
-
Grzegorz Daniluk authored
-
- Feb 28, 2017
-
-
See gcc info pages: "Macros with a Variable Number of Arguments." The ISO-C stadanrd doesn't allow varargs macros to get zero or more arguments. So this fixes the problem using the gcc extension. A standard-compliant alternative would be to have "fmt" included in the variadic part, like this: #define assert(cond, ...) \ if (CONFIG_HAS_ASSERT && !(cond)) \ __assert(__func__, __LINE__, 1 /* forever */, __VA_ARGS__) But the reader wouldn't now it's a fmt+args. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Feb 27, 2017
-
-
By default, the bit is zero (masked), which means that PPS signal output is masked when the link status is not ok. This is useful to pervent spurious PPS when in SLAVE mode and the link goes down. When the bit is set, then a PPS is always generated (as long as the PPS valid bit in the ESCR register is set). This is useful in master mode.
-
-
- Feb 23, 2017
-
-
When wrpc binary is compiled with CONFIG_WR_NODE_SIM, it prevents callnig some time-consuming fuctions or other stuff that prevents the code to work in simulated LM32
-
Adam Wujek authored
When any of exported structures is changed please update WRPC_SHMEM_VERSION or WRS_PPSI_SHMEM_VERSION (for PPSI) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Feb 16, 2017
-
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 01, 2016
-
-
Grzegorz Daniluk authored
-
- Oct 27, 2016
-
-
Grzegorz Daniluk authored
-
- Aug 03, 2016
-
-
- Jul 29, 2016
-
-
Adam Wujek authored
We revert this commit, since we decided to support objects only from our own MIB. So we don't need this this specific time format. So, revert the commit: util: add the perverse SNMP 'string' time format Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move SNMP just after syslog. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
/var/lib/mibs/ietf/SNMPv2-TC DateAndTime ::= TEXTUAL-CONVENTION DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d" STATUS current DESCRIPTION "A date-time specification. field octets contents range ----- ------ -------- ----- 1 1-2 year* 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..60 (use 60 for leap-second) 7 8 deci-seconds 0..9 8 9 direction from UTC '+' / '-' 9 10 hours from UTC* 0..13 10 11 minutes from UTC 0..59 * Notes: - the value of year is in network-byte order - daylight saving time in New Zealand is +13 For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be displayed as: 1992-5-26,13:30:15.0,-4:0 Note that if only local time is known, then timezone information (fields 8-10) is not present." SYNTAX OCTET STRING (SIZE (8 | 11)) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jun 10, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use git config --get-all user.name as an build author, if not available use user@hostname. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally use type checking Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
By making struct wr_minic non static it is possible for mini SNMP to get RX/TX counters' values directly from the memory instead of writing a separate function that will call minic_get_stats. Avoiding extra function saves about 100 bytes. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Don't use "static char pn" top store sfp's pn. --Print error when unable to read SFP Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
EE_BASE_INIT did not include t24p and sfpcount. Due to that init script was overwriten by adding the 4th SFP. Limit number of SFP in the database to 3. Keep init script's starting address unchanged for backward compatibility. SDB is not affected. Use maximum 4 SFPs in the database when SDB is used. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- May 20, 2016
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
(one is just a comment update: most of that stanza was not true any more) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- May 18, 2016
-
-
Alessandro Rubini authored
This is used by the latency measurement, to send high-priority frames Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is a safe measure before adding UDP support, which adds a socket. And we have other ongoing net-related activities too, so I'd better spend 16 bytes now and feel safer. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Trigger start/stop of PTP from wrc_check_link job instead of PTP's job. This picks ppsi's new master that matches the change. We need to remove prototype for an unused function, now that the one in ppsi changed arguments and we'd otherwise get error: conflicting types for 'wr_servo_reset' Signed-off-by:
Adam Wujek <adam.wujek@cern.ch> Signed-off-by:
Alessandro Rubini <a.rubini@gsi.de>
-
- Apr 04, 2016
-
-
Alessandro Rubini authored
This allows several functions to be static in the files where they are defined. See temperature.c for an example. But mainly, the idea is allowing ease addition of features (likely Kconfig'd ones) for specific WR users, without any modification to the main function and other generic code. This will happen soon for snmp, for example. We may push this a little further, by moving all shell stuff into shell.c, the ptp task within ppsi itself, and so on. But now my time is over. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
These changes have no effect at this point, but are the initial steps introducing host builds. Some changes are minor cleanups, some depend on CONFIG_HOST_PROCESS which is not defined at this point. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This costs anoter 220 bytes in the binary, becuase we now loop among all temperature providers in order to return data to the caller. The providers are clustered using an ELF section. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds data structures, methods and a process to manage temperature. Currently the only temperature being read is the onewire thermometer, so there is no difference with what we had before. The cost is 1.1 kB in binary size. Well, there is a difference: only the stat engine was reading temperature, while now the thermometer is read continuously (every 15 seconds, or another Kconfig-urable interval). This takes quite some CPU time (18.5ms per polling loop, but allows any user to read temperature (using the API we now provide) without re-reading the onewire bus. The real aim of this is monitoring a board-specific set of sensors, as implemented and show in the next commit. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Also, this changes how to mac address is retrieved in patching pfilter rules. I'd better use format_mac(get_mac) for the verbose message, so get_mac is also the source for patching the rules. register and get_mac/set_mac are guaranteed to be in-sync. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit Unfortunately this commit makes the internal communication between minic and lan asymmetric: on receive the tag is discarded (and the longer header falls into the payload) while on transmit it must be provided by lan.c. The reason is that on receive we can trim 4 bytes from the payload, but on send we can't add 4 bytes without a memmove. The functions receive pointers to two different header structures, so hopefully user errors will be signalled by the compiler. Still, users interact with net.c, which hides vlan completely from them. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We used to have "struct ethhdr" local in net.c, passing "void *hdr" to minic. We exports the structure to an header so to use it in communicating with the minic. Unfortunaltey, ethhdr is defined elsewhere too, so we'd better rename to wr_ethhdr. This is a step towards the introduction of vlans, but has no technical effect by itself. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Feb 16, 2016
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit turns individual calls to polling functions into an array of tasks. On this basis we can add profiling and periodic execution (instead of continuous polling). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-