chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide: use _packed_ macro instead of raw gcc __attribute__
[elogind.git]
/
src
/
udev
/
mtd_probe
/
mtd_probe.h
diff --git
a/src/udev/mtd_probe/mtd_probe.h
b/src/udev/mtd_probe/mtd_probe.h
index 2a37ede578b3de040addb43131df27ae5b908b84..caea5c26938ac8abae91724b5922e20b98926aef 100644
(file)
--- a/
src/udev/mtd_probe/mtd_probe.h
+++ b/
src/udev/mtd_probe/mtd_probe.h
@@
-17,8
+17,12
@@
* Boston, MA 02110-1301 USA
*/
* Boston, MA 02110-1301 USA
*/
+#pragma once
+
#include <mtd/mtd-user.h>
#include <mtd/mtd-user.h>
+#include "macro.h"
+
/* Full oob structure as written on the flash */
struct sm_oob {
uint32_t reserved;
/* Full oob structure as written on the flash */
struct sm_oob {
uint32_t reserved;
@@
-28,8
+32,7
@@
struct sm_oob {
uint8_t ecc2[3];
uint8_t lba_copy2[2];
uint8_t ecc1[3];
uint8_t ecc2[3];
uint8_t lba_copy2[2];
uint8_t ecc1[3];
-} __attribute__((packed));
-
+} _packed_;
/* one sector is always 512 bytes, but it can consist of two nand pages */
#define SM_SECTOR_SIZE 512
/* one sector is always 512 bytes, but it can consist of two nand pages */
#define SM_SECTOR_SIZE 512
@@
-45,5
+48,4
@@
struct sm_oob {
#define SM_SMALL_PAGE 256
#define SM_SMALL_OOB_SIZE 8
#define SM_SMALL_PAGE 256
#define SM_SMALL_OOB_SIZE 8
-
void probe_smart_media(int mtd_fd, mtd_info_t *info);
void probe_smart_media(int mtd_fd, mtd_info_t *info);