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

Go to the source code of this file.

Data Structures

struct  bootcmd
 
struct  bootcmdresp
 
struct  if_usb_card
 
struct  fwheader
 
struct  fwdata
 
struct  fwsyncheader
 

Macros

#define CMD_TYPE_REQUEST   0xF00DFACE
 
#define CMD_TYPE_DATA   0xBEADC0DE
 
#define CMD_TYPE_INDICATION   0xBEEFFACE
 
#define IPFIELD_ALIGN_OFFSET   2
 
#define BOOT_CMD_FW_BY_USB   0x01
 
#define BOOT_CMD_FW_IN_EEPROM   0x02
 
#define BOOT_CMD_UPDATE_BOOT2   0x03
 
#define BOOT_CMD_UPDATE_FW   0x04
 
#define BOOT_CMD_MAGIC_NUMBER   0x4C56524D /* LVRM */
 
#define BOOT_CMD_RESP_OK   0x0001
 
#define BOOT_CMD_RESP_FAIL   0x0000
 
#define BOOT_CMD_RESP_NOT_SUPPORTED   0x0002
 
#define FW_MAX_DATA_BLK_SIZE   600
 
#define FW_HAS_DATA_TO_RECV   0x00000001
 
#define FW_HAS_LAST_BLOCK   0x00000004
 

Macro Definition Documentation

#define BOOT_CMD_FW_BY_USB   0x01

Definition at line 18 of file if_usb.h.

#define BOOT_CMD_FW_IN_EEPROM   0x02

Definition at line 19 of file if_usb.h.

#define BOOT_CMD_MAGIC_NUMBER   0x4C56524D /* LVRM */

Definition at line 22 of file if_usb.h.

#define BOOT_CMD_RESP_FAIL   0x0000

Definition at line 32 of file if_usb.h.

#define BOOT_CMD_RESP_NOT_SUPPORTED   0x0002

Definition at line 33 of file if_usb.h.

#define BOOT_CMD_RESP_OK   0x0001

Definition at line 31 of file if_usb.h.

#define BOOT_CMD_UPDATE_BOOT2   0x03

Definition at line 20 of file if_usb.h.

#define BOOT_CMD_UPDATE_FW   0x04

Definition at line 21 of file if_usb.h.

#define CMD_TYPE_DATA   0xBEADC0DE

Definition at line 13 of file if_usb.h.

#define CMD_TYPE_INDICATION   0xBEEFFACE

Definition at line 14 of file if_usb.h.

#define CMD_TYPE_REQUEST   0xF00DFACE

Definition at line 12 of file if_usb.h.

#define FW_HAS_DATA_TO_RECV   0x00000001

Definition at line 102 of file if_usb.h.

#define FW_HAS_LAST_BLOCK   0x00000004

Definition at line 103 of file if_usb.h.

#define FW_MAX_DATA_BLK_SIZE   600

Definition at line 88 of file if_usb.h.

#define IPFIELD_ALIGN_OFFSET   2

Definition at line 16 of file if_usb.h.