Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usb_boot.c File Reference
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/usb.h>
#include <linux/unistd.h>
#include <linux/slab.h>
#include <linux/firmware.h>
#include <asm/byteorder.h>
#include "gdm_usb.h"
#include "usb_boot.h"

Go to the source code of this file.

Data Structures

struct  dn_header
 
struct  img_header
 
struct  fw_info
 

Macros

#define DN_KERNEL_MAGIC_NUMBER   0x10760001
 
#define DN_ROOTFS_MAGIC_NUMBER   0x10760002
 
#define DOWNLOAD_SIZE   1024
 
#define MAX_IMG_CNT   16
 
#define FW_DIR   "gdm72xx/"
 
#define FW_UIMG   "gdmuimg.bin"
 
#define FW_KERN   "zImage"
 
#define FW_FS   "ramdisk.jffs2"
 
#define DOWNLOAD_CHUCK   2048
 
#define KERNEL_TYPE_STRING   "linux"
 
#define FS_TYPE_STRING   "rootfs"
 

Functions

int usb_boot (struct usb_device *usbdev, u16 pid)
 
int usb_emergency (struct usb_device *usbdev)
 

Macro Definition Documentation

#define DN_KERNEL_MAGIC_NUMBER   0x10760001

Definition at line 27 of file usb_boot.c.

#define DN_ROOTFS_MAGIC_NUMBER   0x10760002

Definition at line 28 of file usb_boot.c.

#define DOWNLOAD_CHUCK   2048

Definition at line 255 of file usb_boot.c.

#define DOWNLOAD_SIZE   1024

Definition at line 30 of file usb_boot.c.

#define FS_TYPE_STRING   "rootfs"

Definition at line 257 of file usb_boot.c.

#define FW_DIR   "gdm72xx/"

Definition at line 33 of file usb_boot.c.

#define FW_FS   "ramdisk.jffs2"

Definition at line 36 of file usb_boot.c.

#define FW_KERN   "zImage"

Definition at line 35 of file usb_boot.c.

#define FW_UIMG   "gdmuimg.bin"

Definition at line 34 of file usb_boot.c.

#define KERNEL_TYPE_STRING   "linux"

Definition at line 256 of file usb_boot.c.

#define MAX_IMG_CNT   16

Definition at line 32 of file usb_boot.c.

Function Documentation

int usb_boot ( struct usb_device *  usbdev,
u16  pid 
)

Definition at line 142 of file usb_boot.c.

int usb_emergency ( struct usb_device *  usbdev)

Definition at line 360 of file usb_boot.c.