summaryrefslogtreecommitdiffstats
path: root/meif.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-08-13 13:03:54 (GMT)
committerPaul Kocialkowski <contact@paulk.fr>2012-08-13 13:03:54 (GMT)
commit927c1c92dd092cec8c56351bf663101183f19076 (patch)
tree6e395a97e5cd50fb0ce6f2786cc95aaba4fbb601 /meif.h
parentb153cbd84327b97c6d1f7eacad52dab79e0c2d7e (diff)
downloadbcm4751-927c1c92dd092cec8c56351bf663101183f19076.zip
bcm4751-927c1c92dd092cec8c56351bf663101183f19076.tar.gz
bcm4751-927c1c92dd092cec8c56351bf663101183f19076.tar.bz2
MEIF: Added multi-line parser
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'meif.h')
-rw-r--r--meif.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/meif.h b/meif.h
index f79b9b8..2652529 100644
--- a/meif.h
+++ b/meif.h
@@ -24,8 +24,8 @@
#ifndef _MEIF_H_
#define _MEIF_H_
-#define MEIF_START 0xA593
-#define MEIF_END 0xA568
+#define MEIF_START 0xA5 + (0x93 << 8)
+#define MEIF_END 0xA5 + (0x68 << 8)
/*
* Commands
@@ -45,6 +45,12 @@
* Structures
*/
+struct meif_header {
+ uint16_t marker;
+ uint16_t command;
+ uint16_t length;
+} __attribute__((__packed__));
+
struct meif_message {
uint16_t command;
uint16_t length;