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 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 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 22 of file if_usb.h.

#define BOOT_CMD_FW_IN_EEPROM   0x02

Definition at line 23 of file if_usb.h.

#define BOOT_CMD_MAGIC_NUMBER   0x4C56524D /* LVRM */

Definition at line 26 of file if_usb.h.

#define BOOT_CMD_RESP_FAIL   0x0000

Definition at line 35 of file if_usb.h.

#define BOOT_CMD_RESP_OK   0x0001

Definition at line 34 of file if_usb.h.

#define BOOT_CMD_UPDATE_BOOT2   0x03

Definition at line 24 of file if_usb.h.

#define BOOT_CMD_UPDATE_FW   0x04

Definition at line 25 of file if_usb.h.

#define CMD_TYPE_DATA   0xBEADC0DE

Definition at line 19 of file if_usb.h.

#define CMD_TYPE_INDICATION   0xBEEFFACE

Definition at line 20 of file if_usb.h.

#define CMD_TYPE_REQUEST   0xF00DFACE

This file contains definition for USB interface.

Definition at line 18 of file if_usb.h.

#define FW_HAS_DATA_TO_RECV   0x00000001

Definition at line 97 of file if_usb.h.

#define FW_HAS_LAST_BLOCK   0x00000004

Definition at line 98 of file if_usb.h.

#define FW_MAX_DATA_BLK_SIZE   600

Definition at line 83 of file if_usb.h.