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

Go to the source code of this file.

Data Structures

struct  arqb
 
struct  arsb
 
struct  msb
 
struct  aidaw
 
struct  aob
 
struct  aob_rq_header
 
struct  scm_device
 
struct  scm_driver
 
struct  eadm_ops
 

Macros

#define ARQB_CMD_MOVE   1
 
#define MSB_OC_CLEAR   0
 
#define MSB_OC_READ   1
 
#define MSB_OC_WRITE   2
 
#define MSB_OC_RELEASE   3
 
#define MSB_FLAG_BNM   0x80
 
#define MSB_FLAG_IDA   0x40
 
#define MSB_BS_4K   0
 
#define MSB_BS_1M   1
 
#define AOB_NR_MSB   124
 
#define OP_STATE_GOOD   1
 
#define OP_STATE_TEMP_ERR   2
 
#define OP_STATE_PERM_ERR   3
 

Functions

struct aob __aligned (PAGE_SIZE)
 
int scm_driver_register (struct scm_driver *scmdrv)
 
void scm_driver_unregister (struct scm_driver *scmdrv)
 
int scm_start_aob (struct aob *aob)
 
void scm_irq_handler (struct aob *aob, int error)
 
int scm_get_ref (void)
 
void scm_put_ref (void)
 
void register_eadm_ops (struct eadm_ops *ops)
 
void unregister_eadm_ops (struct eadm_ops *ops)
 

Variables

struct arqb __packed
 
struct arqb request
 
struct arsb response
 
struct msb msb [AOB_NR_MSB]
 
struct aob_rq_header __aligned
 

Macro Definition Documentation

#define AOB_NR_MSB   124

Definition at line 67 of file eadm.h.

#define ARQB_CMD_MOVE   1

Definition at line 17 of file eadm.h.

#define MSB_BS_1M   1

Definition at line 65 of file eadm.h.

#define MSB_BS_4K   0

Definition at line 64 of file eadm.h.

#define MSB_FLAG_BNM   0x80

Definition at line 61 of file eadm.h.

#define MSB_FLAG_IDA   0x40

Definition at line 62 of file eadm.h.

#define MSB_OC_CLEAR   0

Definition at line 56 of file eadm.h.

#define MSB_OC_READ   1

Definition at line 57 of file eadm.h.

#define MSB_OC_RELEASE   3

Definition at line 59 of file eadm.h.

#define MSB_OC_WRITE   2

Definition at line 58 of file eadm.h.

#define OP_STATE_GOOD   1

Definition at line 95 of file eadm.h.

#define OP_STATE_PERM_ERR   3

Definition at line 97 of file eadm.h.

#define OP_STATE_TEMP_ERR   2

Definition at line 96 of file eadm.h.

Function Documentation

struct aob __aligned ( PAGE_SIZE  )
void register_eadm_ops ( struct eadm_ops ops)

Definition at line 97 of file scm.c.

int scm_driver_register ( struct scm_driver scmdrv)

scm_driver_register() - register a scm driver : driver to be registered

Definition at line 56 of file scm.c.

void scm_driver_unregister ( struct scm_driver scmdrv)

scm_driver_unregister() - deregister a scm driver : driver to be deregistered

Definition at line 70 of file scm.c.

int scm_get_ref ( void  )

Definition at line 76 of file scm.c.

void scm_irq_handler ( struct aob aob,
int  error 
)

Definition at line 119 of file scm.c.

void scm_put_ref ( void  )

Definition at line 89 of file scm.c.

int scm_start_aob ( struct aob aob)

Definition at line 113 of file scm.c.

void unregister_eadm_ops ( struct eadm_ops ops)

Definition at line 105 of file scm.c.

Variable Documentation

struct aob_rq_header __aligned

Definition at line 76 of file eadm.h.

Definition at line 74 of file eadm.h.

Definition at line 75 of file eadm.h.