Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sm_common.h File Reference
#include <linux/bitops.h>
#include <linux/mtd/mtd.h>

Go to the source code of this file.

Data Structures

struct  sm_oob


#define SM_SECTOR_SIZE   512
#define SM_OOB_SIZE   16
#define SM_MAX_ZONE_SIZE   1024
#define SM_SMALL_PAGE   256
#define SM_SMALL_OOB_SIZE   8


struct sm_oob __attribute__ ((packed))
int sm_register_device (struct mtd_info *mtd, int smartmedia)


uint32_t reserved
uint8_t data_status
uint8_t block_status
uint8_t lba_copy1 [2]
uint8_t ecc2 [3]
uint8_t lba_copy2 [2]
uint8_t ecc1 [3]

Macro Definition Documentation

#define SM_MAX_ZONE_SIZE   1024

Definition at line 32 of file sm_common.h.

#define SM_OOB_SIZE   16

Definition at line 28 of file sm_common.h.

#define SM_SECTOR_SIZE   512

Definition at line 25 of file sm_common.h.

#define SM_SMALL_OOB_SIZE   8

Definition at line 36 of file sm_common.h.

#define SM_SMALL_PAGE   256

Definition at line 35 of file sm_common.h.

Function Documentation

struct sm_oob __attribute__ ( (packed)  )

Definition at line 171 of file esd_usb2.c.

int sm_register_device ( struct mtd_info mtd,
int  smartmedia 

Definition at line 110 of file sm_common.c.

Variable Documentation

uint8_t block_status

Definition at line 24 of file sm_common.h.

uint8_t data_status

Definition at line 23 of file sm_common.h.

uint8_t ecc1[3]

Definition at line 28 of file sm_common.h.

uint8_t ecc2[3]

Definition at line 26 of file sm_common.h.

uint8_t lba_copy1[2]

Definition at line 25 of file sm_common.h.

uint8_t lba_copy2[2]

Definition at line 27 of file sm_common.h.

uint32_t reserved

Definition at line 22 of file sm_common.h.