Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
i1480-dfu.h File Reference
#include <linux/uwb/spec.h>
#include <linux/types.h>
#include <linux/completion.h>

Go to the source code of this file.

Data Structures

struct  i1480
 
struct  i1480_evt_confirm
 
struct  i1480_rceb
 
struct  i1480_evt_confirm_GMPI
 
struct  i1480_cmd_mpi_write
 
struct  i1480_cmd_mpi_read
 
struct  i1480_evt_mpi_read
 

Macros

#define i1480_FW_UPLOAD_MODE_MASK   (cpu_to_le32(0x00000018))
 

Enumerations

enum  {
  i1480_CET_VS1 = 0xfd, i1480_CMD_SET_IP_MAS = 0x000e, i1480_CMD_GET_MAC_PHY_INFO = 0x0003, i1480_CMD_MPI_WRITE = 0x000f,
  i1480_CMD_MPI_READ = 0x0010, i1480_EVT_CONFIRM = 0x0002, i1480_EVT_RM_INIT_DONE = 0x0101, i1480_EVT_DEV_ADD = 0x0103,
  i1480_EVT_DEV_RM = 0x0104, i1480_EVT_DEV_ID_CHANGE = 0x0105, i1480_EVT_GET_MAC_PHY_INFO = i1480_EVT_CONFIRM
}
 

Functions

int i1480_fw_upload (struct i1480 *)
 
int i1480_pre_fw_upload (struct i1480 *)
 
int i1480_mac_fw_upload (struct i1480 *)
 
int i1480_phy_fw_upload (struct i1480 *)
 
ssize_t i1480_cmd (struct i1480 *, const char *, size_t, size_t)
 
int i1480_rceb_check (const struct i1480 *, const struct uwb_rceb *, const char *, u8, u8, unsigned)
 
struct i1480_evt_confirm __attribute__ ((packed))
 

Variables

struct i1480 __attribute__
 
struct uwb_rceb rceb
 
u8 bResultCode
 
u8 status
 
u8 mac_addr [8]
 
u8 dev_addr [2]
 
__le16 mac_fw_rev
 
__le16 phy_fw_rev
 
__le16 mac_caps
 
u8 phy_caps
 
u8 key_stores
 
__le16 mcast_addr_stores
 
u8 sec_mode_supported
 
u8 page
 
u8 offset
 
struct uwb_rccb rccb
 
__le16 size
 
u8 value
 

Macro Definition Documentation

#define i1480_FW_UPLOAD_MODE_MASK   (cpu_to_le32(0x00000018))

Definition at line 71 of file i1480-dfu.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
i1480_CET_VS1 
i1480_CMD_SET_IP_MAS 
i1480_CMD_GET_MAC_PHY_INFO 
i1480_CMD_MPI_WRITE 
i1480_CMD_MPI_READ 
i1480_EVT_CONFIRM 
i1480_EVT_RM_INIT_DONE 
i1480_EVT_DEV_ADD 
i1480_EVT_DEV_RM 
i1480_EVT_DEV_ID_CHANGE 
i1480_EVT_GET_MAC_PHY_INFO 

Definition at line 150 of file i1480-dfu.h.

Function Documentation

struct i1480_evt_confirm __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

ssize_t i1480_cmd ( struct i1480 ,
const char ,
size_t  ,
size_t   
)

Definition at line 92 of file dfu.c.

int i1480_fw_upload ( struct i1480 )

Definition at line 177 of file dfu.c.

int i1480_mac_fw_upload ( struct i1480 i1480)

Upload MAC firmware, wait for it to start

: Device instance : Name of the file that contains the firmware

This has to be called after the pre fw has been uploaded (if there is any).

Definition at line 451 of file mac.c.

int i1480_phy_fw_upload ( struct i1480 i1480)

Upload a PHY firmware, wait for it to start

: Device instance : Name of the file that contains the firmware

We assume the MAC fw is up and running. This means we can use the MPI interface to write the PHY firmware. Once done, we issue an MBOA Reset, which will force the MAC to reset and reinitialize the PHY. If that works, we are ready to go.

Max packet size for the MPI write is 512, so the max buffer is 480 (which gives us 160 byte triads of MSB, LSB and VAL for the data).

Definition at line 162 of file phy.c.

int i1480_pre_fw_upload ( struct i1480 i1480)

Upload a pre-PHY firmware

Definition at line 364 of file mac.c.

int i1480_rceb_check ( const struct i1480 ,
const struct uwb_rceb ,
const char ,
u8  ,
u8  ,
unsigned   
)

Definition at line 52 of file dfu.c.

Variable Documentation

u8 bResultCode

Definition at line 188 of file i1480-dfu.h.

struct uwb_dev_addr dev_addr

Definition at line 248 of file i1480-dfu.h.

u8 key_stores

Definition at line 253 of file i1480-dfu.h.

Definition at line 247 of file i1480-dfu.h.

__le16 mac_caps

Definition at line 251 of file i1480-dfu.h.

__le16 mac_fw_rev

Definition at line 249 of file i1480-dfu.h.

__le16 mcast_addr_stores

Definition at line 254 of file i1480-dfu.h.

Definition at line 244 of file i1480-dfu.h.

Definition at line 244 of file i1480-dfu.h.

u8 phy_caps

Definition at line 252 of file i1480-dfu.h.

__le16 phy_fw_rev

Definition at line 250 of file i1480-dfu.h.

Definition at line 245 of file i1480-dfu.h.

Definition at line 184 of file i1480-dfu.h.

u8 sec_mode_supported

Definition at line 255 of file i1480-dfu.h.

__le16 size

Definition at line 246 of file i1480-dfu.h.

Definition at line 246 of file i1480-dfu.h.

u8 value

Definition at line 257 of file i1480-dfu.h.