Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
aic94xx_sds.h File Reference

Go to the source code of this file.

Data Structures

struct  controller_id
 
struct  image_info
 
struct  bios_file_header
 

Macros

#define FLASH_MANUF_ID_AMD   0x01
 
#define FLASH_MANUF_ID_ST   0x20
 
#define FLASH_MANUF_ID_FUJITSU   0x04
 
#define FLASH_MANUF_ID_MACRONIX   0xC2
 
#define FLASH_MANUF_ID_INTEL   0x89
 
#define FLASH_MANUF_ID_UNKNOWN   0xFF
 
#define FLASH_DEV_ID_AM29LV008BT   0x3E
 
#define FLASH_DEV_ID_AM29LV800DT   0xDA
 
#define FLASH_DEV_ID_STM29W800DT   0xD7
 
#define FLASH_DEV_ID_STM29LV640   0xDE
 
#define FLASH_DEV_ID_STM29008   0xEA
 
#define FLASH_DEV_ID_MBM29LV800TE   0xDA
 
#define FLASH_DEV_ID_MBM29DL800TA   0x4A
 
#define FLASH_DEV_ID_MBM29LV008TA   0x3E
 
#define FLASH_DEV_ID_AM29LV640MT   0x7E
 
#define FLASH_DEV_ID_AM29F800B   0xD6
 
#define FLASH_DEV_ID_MX29LV800BT   0xDA
 
#define FLASH_DEV_ID_MX29LV008CT   0xDA
 
#define FLASH_DEV_ID_I28LV00TAT   0x3E
 
#define FLASH_DEV_ID_UNKNOWN   0xFF
 
#define FLASH_STATUS_BIT_MASK_DQ6   0x40
 
#define FLASH_STATUS_BIT_MASK_DQ5   0x20
 
#define FLASH_STATUS_BIT_MASK_DQ2   0x04
 
#define FLASH_STATUS_ERASE_DELAY_COUNT   50
 
#define FLASH_STATUS_WRITE_DELAY_COUNT   25
 
#define FLASH_SECTOR_SIZE   0x010000
 
#define FLASH_SECTOR_SIZE_MASK   0xffff0000
 
#define FLASH_OK   0x000000
 
#define FAIL_OPEN_BIOS_FILE   0x000100
 
#define FAIL_CHECK_PCI_ID   0x000200
 
#define FAIL_CHECK_SUM   0x000300
 
#define FAIL_UNKNOWN   0x000400
 
#define FAIL_VERIFY   0x000500
 
#define FAIL_RESET_FLASH   0x000600
 
#define FAIL_FIND_FLASH_ID   0x000700
 
#define FAIL_ERASE_FLASH   0x000800
 
#define FAIL_WRITE_FLASH   0x000900
 
#define FAIL_FILE_SIZE   0x000a00
 
#define FAIL_PARAMETERS   0x000b00
 
#define FAIL_OUT_MEMORY   0x000c00
 
#define FLASH_IN_PROGRESS   0x001000
 

Enumerations

enum  { FLASH_METHOD_UNKNOWN, FLASH_METHOD_A, FLASH_METHOD_B }
 

Functions

int asd_verify_flash_seg (struct asd_ha_struct *asd_ha, const void *src, u32 dest_offset, u32 bytes_to_verify)
 
int asd_write_flash_seg (struct asd_ha_struct *asd_ha, const void *src, u32 dest_offset, u32 bytes_to_write)
 
int asd_chk_write_status (struct asd_ha_struct *asd_ha, u32 sector_addr, u8 erase_flag)
 
int asd_check_flash_type (struct asd_ha_struct *asd_ha)
 
int asd_erase_nv_sector (struct asd_ha_struct *asd_ha, u32 flash_addr, u32 size)
 

Variables

enum { ... }  __attribute__
 

Macro Definition Documentation

#define FAIL_CHECK_PCI_ID   0x000200

Definition at line 71 of file aic94xx_sds.h.

#define FAIL_CHECK_SUM   0x000300

Definition at line 72 of file aic94xx_sds.h.

#define FAIL_ERASE_FLASH   0x000800

Definition at line 77 of file aic94xx_sds.h.

#define FAIL_FILE_SIZE   0x000a00

Definition at line 79 of file aic94xx_sds.h.

#define FAIL_FIND_FLASH_ID   0x000700

Definition at line 76 of file aic94xx_sds.h.

#define FAIL_OPEN_BIOS_FILE   0x000100

Definition at line 70 of file aic94xx_sds.h.

#define FAIL_OUT_MEMORY   0x000c00

Definition at line 81 of file aic94xx_sds.h.

#define FAIL_PARAMETERS   0x000b00

Definition at line 80 of file aic94xx_sds.h.

#define FAIL_RESET_FLASH   0x000600

Definition at line 75 of file aic94xx_sds.h.

#define FAIL_UNKNOWN   0x000400

Definition at line 73 of file aic94xx_sds.h.

#define FAIL_VERIFY   0x000500

Definition at line 74 of file aic94xx_sds.h.

#define FAIL_WRITE_FLASH   0x000900

Definition at line 78 of file aic94xx_sds.h.

#define FLASH_DEV_ID_AM29F800B   0xD6

Definition at line 51 of file aic94xx_sds.h.

#define FLASH_DEV_ID_AM29LV008BT   0x3E

Definition at line 42 of file aic94xx_sds.h.

#define FLASH_DEV_ID_AM29LV640MT   0x7E

Definition at line 50 of file aic94xx_sds.h.

#define FLASH_DEV_ID_AM29LV800DT   0xDA

Definition at line 43 of file aic94xx_sds.h.

#define FLASH_DEV_ID_I28LV00TAT   0x3E

Definition at line 54 of file aic94xx_sds.h.

#define FLASH_DEV_ID_MBM29DL800TA   0x4A

Definition at line 48 of file aic94xx_sds.h.

#define FLASH_DEV_ID_MBM29LV008TA   0x3E

Definition at line 49 of file aic94xx_sds.h.

#define FLASH_DEV_ID_MBM29LV800TE   0xDA

Definition at line 47 of file aic94xx_sds.h.

#define FLASH_DEV_ID_MX29LV008CT   0xDA

Definition at line 53 of file aic94xx_sds.h.

#define FLASH_DEV_ID_MX29LV800BT   0xDA

Definition at line 52 of file aic94xx_sds.h.

#define FLASH_DEV_ID_STM29008   0xEA

Definition at line 46 of file aic94xx_sds.h.

#define FLASH_DEV_ID_STM29LV640   0xDE

Definition at line 45 of file aic94xx_sds.h.

#define FLASH_DEV_ID_STM29W800DT   0xD7

Definition at line 44 of file aic94xx_sds.h.

#define FLASH_DEV_ID_UNKNOWN   0xFF

Definition at line 55 of file aic94xx_sds.h.

#define FLASH_IN_PROGRESS   0x001000

Definition at line 82 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_AMD   0x01

Definition at line 35 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_FUJITSU   0x04

Definition at line 37 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_INTEL   0x89

Definition at line 39 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_MACRONIX   0xC2

Definition at line 38 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_ST   0x20

Definition at line 36 of file aic94xx_sds.h.

#define FLASH_MANUF_ID_UNKNOWN   0xFF

Definition at line 40 of file aic94xx_sds.h.

#define FLASH_OK   0x000000

Definition at line 69 of file aic94xx_sds.h.

#define FLASH_SECTOR_SIZE   0x010000

Definition at line 66 of file aic94xx_sds.h.

#define FLASH_SECTOR_SIZE_MASK   0xffff0000

Definition at line 67 of file aic94xx_sds.h.

#define FLASH_STATUS_BIT_MASK_DQ2   0x04

Definition at line 60 of file aic94xx_sds.h.

#define FLASH_STATUS_BIT_MASK_DQ5   0x20

Definition at line 59 of file aic94xx_sds.h.

#define FLASH_STATUS_BIT_MASK_DQ6   0x40

Definition at line 58 of file aic94xx_sds.h.

#define FLASH_STATUS_ERASE_DELAY_COUNT   50

Definition at line 63 of file aic94xx_sds.h.

#define FLASH_STATUS_WRITE_DELAY_COUNT   25

Definition at line 64 of file aic94xx_sds.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
FLASH_METHOD_UNKNOWN 
FLASH_METHOD_A 
FLASH_METHOD_B 

Definition at line 29 of file aic94xx_sds.h.

Function Documentation

int asd_check_flash_type ( struct asd_ha_struct asd_ha)

Definition at line 1314 of file aic94xx_sds.c.

int asd_chk_write_status ( struct asd_ha_struct asd_ha,
u32  sector_addr,
u8  erase_flag 
)

Definition at line 1206 of file aic94xx_sds.c.

int asd_erase_nv_sector ( struct asd_ha_struct asd_ha,
u32  flash_addr,
u32  size 
)

asd_hwi_erase_nv_sector - Erase the flash memory sectors. : pointer to the host adapter structure : pointer to offset from flash memory : total bytes to erase.

Definition at line 1269 of file aic94xx_sds.c.

int asd_verify_flash_seg ( struct asd_ha_struct asd_ha,
const void src,
u32  dest_offset,
u32  bytes_to_verify 
)

asd_verify_flash_seg - verify data with flash memory : pointer to the host adapter structure : pointer to the source data to be verified : offset from flash memory : total bytes to verify

Definition at line 1096 of file aic94xx_sds.c.

int asd_write_flash_seg ( struct asd_ha_struct asd_ha,
const void src,
u32  dest_offset,
u32  bytes_to_write 
)

asd_write_flash_seg - write data into flash memory : pointer to the host adapter structure : pointer to the source data to be written : offset from flash memory : total bytes to write

Definition at line 1127 of file aic94xx_sds.c.

Variable Documentation

enum { ... } __attribute__