summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-06 13:40:55 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-06 13:40:55 +0000
commitd7650b956f19c0bff282c81344c155f1c6018acb (patch)
tree74bec4fa01b95c334157d34214645cf0c533769b
parentbbbc2b97f0e0f33515732a8af4fc2e5e0d415de2 (diff)
Porting librfid on ARM, I got trouble using 14443B due to alignment issue. This
patch fix it. (Pierrick Hascoet <pierrick@hydromel.net>) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1954 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--include/librfid/rfid_layer2_iso14443b.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/librfid/rfid_layer2_iso14443b.h b/include/librfid/rfid_layer2_iso14443b.h
index 7d2cb29..89999c6 100644
--- a/include/librfid/rfid_layer2_iso14443b.h
+++ b/include/librfid/rfid_layer2_iso14443b.h
@@ -25,7 +25,7 @@ struct iso14443b_atqb {
unsigned char fo:2,
adc:2,
fwi:4;
- } protocol_info;
+ } __attribute__ ((packed)) protocol_info;
} __attribute__ ((packed));
struct iso14443b_attrib_hdr {
@@ -37,20 +37,20 @@ struct iso14443b_attrib_hdr {
eof:1,
min_tr1:2,
min_tr0:2;
- } param1;
+ } __attribute__ ((packed)) param1;
struct {
unsigned char fsdi:4,
spd_out:2,
spd_in:2;
- } param2;
+ } __attribute__ ((packed)) param2;
struct {
unsigned char protocol_type:4,
rfu:4;
- } param3;
+ } __attribute__ ((packed)) param3;
struct {
unsigned char cid:4,
rfu:4;
- } param4;
+ } __attribute__ ((packed)) param4;
} __attribute__ ((packed));
struct iso14443b_handle {
personal git repositories of Harald Welte. Your mileage may vary